float: Fix compilation error when gnulib's float.h exists twice.
[gnulib.git] / ChangeLog
blobc9f4f8abed59d0b6ff23d0573db5d5f7c02f255d
1 2020-12-20  Bruno Haible  <bruno@clisp.org>
3         float: Fix compilation error when gnulib's float.h exists twice.
4         Reported by Santiago Vila <sanvila@unex.es>.
5         * lib/float.in.h (GNULIB_defined_long_double_union): New macro.
7 2020-12-19  Bruno Haible  <bruno@clisp.org>
9         free-posix: Assume future POSIX compliance only on OpenBSD and Solaris.
10         * m4/free.m4 (gl_FUNC_FREE): Guess yes only on OpenBSD and Solaris.
11         Don't trust _POSIX_VERSION for this test.
13 2020-12-19  Paul Eggert  <eggert@cs.ucla.edu>
15         free-posix: port to GNU/Linux
16         * m4/free.m4 (gl_FUNC_FREE): Don’t assume GNU hosts are free of
17         the bug, as it occurs on Ubuntu 20.10 x86-64 and, I assume, on
18         other GNU/Linux hosts.
20 2020-12-19  Bruno Haible  <bruno@clisp.org>
22         free-posix: Add tests.
23         * tests/test-free.c: New file.
24         * tests/macros.h (ASSERT_NO_STDIO,
25         WRITE_MACROEXPANDED_INTEGER_TO_STDERR, WRITE_INTEGER_TO_STDERR,
26         WRITE_TO_STDERR): New macros.
27         * modules/free-posix-tests: New file.
29 2020-12-18  Bruno Haible  <bruno@clisp.org>
31         free-posix: Add C++ declaration test.
32         * tests/test-stdlib-c++.cc (free): New declaration.
34 2020-12-18  Bruno Haible  <bruno@clisp.org>
36         free-posix: New module, renamed from 'free'.
37         * modules/free-posix: Renamed from modules/free.
38         (configure.ac): Update gl_STDLIB_MODULE_INDICATOR invocation.
39         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE_POSIX,
40         not GNULIB_FREE.
41         * modules/stdlib (Makefile.am): Substitute GNULIB_FREE_POSIX, not
42         GNULIB_FREE.
43         * lib/stdlib.in.h (free): Test GNULIB_FREE_POSIX, not GNULIB_FREE.
44         * doc/posix-functions/free.texi: Mention the module 'free-posix' and
45         what it does.
46         * NEWS: Mention that module 'free' no longer exists.
47         * modules/canonicalize (Depends-on): Add free-posix. Remove free.
48         * modules/canonicalize-lgpl (Depends-on): Likewise.
50 2020-12-18  Bruno Haible  <bruno@clisp.org>
52         free: Remove support for obsolete platforms.
53         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works. Don't define
54         CANNOT_FREE_NULL.
55         * lib/free.c (rpl_free): Don't test CANNOT_FREE_NULL.
56         * modules/free (Description): Update.
57         * doc/posix-functions/free.texi: Don't mention SunOS 4 any more.
59 2020-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61         intprops: port to ICC 2021.1 Beta 20201112
62         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P):
63         Port to ICC 2021.1, which has a non-working __builtin_mul_overflow_p.
64         Add a clause for other compilers that claim to support
65         __builtin_mul_overflow_p, since we might as well find out about
66         slackers other than Clang and ICC.
67         (INT_MULTIPLY_WRAPV): ICC 2021 has GCC bug 91450, so treat it
68         like older GCCs even when it claims to be a newer one.
70 2020-12-18  Bruno Haible  <bruno@clisp.org>
72         intprops: Avoid potentially buggy __builtin_add_overflow in GCC 5, 6.
73         Reported by Stefan Liebler <stli@linux.ibm.com> in
74         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00152.html>.
75         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Don't define for
76         GCC 5.x and 6.x.
77         * lib/glob.c (size_add_wrapv): Don't use __builtin_add_overflow for
78         GCC 5.x and 6.x.
80 2020-12-17  Bruno Haible  <bruno@clisp.org>
82         free: Fix warning.
83         Reported by Pádraig Brady <P@draigBrady.com> in
84         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00148.html>.
85         * lib/stdlib.in.h (free): New declaration.
86         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether 'free' is declared.
87         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE, REPLACE_FREE.
88         * modules/stdlib (Makefile.am): Substitute GNULIB_FREE, REPLACE_FREE.
89         * m4/free.m4 (gl_FUNC_FREE): Set REPLACE_FREE, instead of defining
90         'free' as a macro here.
91         * modules/free (Depends-on): Add stdlib.
92         (configure.ac): Test REPLACE_FREE. Invoke gl_STDLIB_MODULE_INDICATOR.
94 2020-12-17  Paul Eggert  <eggert@cs.ucla.edu>
96         canonicalize-lgpl: fix AIX test failures
97         This merges the recent canonicalize.c fix into canonicalize-lgpl.c.
98         Problem reported by Bruno Haible in:
99         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00138.html
100         * lib/canonicalize-lgpl.c: Include sys/stat.h.
101         (__realpath): When testing a file name ending in '/', use stat
102         rather than readlink, so that it does the right thing on AIX.
103         * modules/canonicalize-lgpl (Depends-on): Add stat, sys_stat.
105         canonicalize: omit second readlink when not needed
106         * lib/canonicalize.c (canonicalize_filename_mode_stk):
107         Omit second readlink when (can_exist != CAN_MISSING
108         && startlen != 0 && !logical).  Simplify.
110         canonicalize: remove arbitrary 8192-byte limit
111         Remove canonicalize.c’s arbitrary 8192-byte limit on platforms
112         like GNU Hurd that do not define the PATH_MAX macro, and similarly
113         for canonicalize-lgpl.c’s arbitrary 1024-byte limit.  Do this by
114         using scratch buffers.  Lessen the number of differences between
115         the two source files, to simplify this and future maintenance.
116         * lib/canonicalize-lgpl.c (__realpath):
117         * lib/canonicalize.c (canonicalize_filename_mode_stk):
118         Use scratch buffers instead of malloc and malloca.  This avoids
119         the need for alloca, and avoids the need for malloc in most cases.
120         * lib/canonicalize-lgpl.c, lib/canonicalize.c: Make these files
121         easier to compare, e.g., by sorting include files and by switching
122         to the GNU convention of calling file names "file names", not
123         "path names".  Include stdbool.h, scratch_buffer.h.
124         * lib/canonicalize-lgpl.c (IDX_MAX) [_LIBC]: New macro.
125         (malloca) [_LIBC]: Remove.
126         [!_LIBC]: Do not include malloca.h.
127         (get_path_max): New function, so that pathconf is called only in
128         the rare and dubious case when when RESOLVED is not null and
129         PATH_MAX is not defined.  Invoke pathconf on "/" not the input
130         file name, as we care about the longest file name starting from
131         "/" (not from the input file name), and POSIX does not specify
132         what pathconf does on a non-directory file anyway.  If PATH_MAX is
133         not defined, do not worry about overriding a path_max of 0, and do
134         not let path_max exceed IDX_MAX.
135         (__realpath): Remove an assumption that file name components
136         cannot exceed 1024 bytes when PATH_MAX is not defined (wrong for
137         the Hurd, presumably).
138         When allocating the result, allocate it to just the right size;
139         this costs nothing when the result is smaller than 1023 bytes,
140         and for larger results it's probably worth the CPU to call realloc,
141         as canonicalize.c already does.
142         * lib/canonicalize.c: Include attribute.h.
143         Do not include pathmax.h or xgetcwd.h.
144         (PATH_MAX): Do not define, so file names longer than 8192 bytes
145         work on platforms with no fixed limit.
146         (canonicalize_filename_mode_stk): New function, with
147         the content of the old canonicalize_filename_mode.
148         Use getcwd instead of xgetcwd, and readlink instead of areadlink,
149         since the scratch buffers now do memory management for us.
150         Use rawmemchr instead of adding strlen.
151         Use mempcpy instead of mempcpy + size.
152         Assume free preserves errno.
153         (canonicalize_filename_mode): Use it.
154         * modules/canonicalize (Depends-on): Remove areadlink, pathmax,
155         xgetcwd.  Add attribute, free, getcwd, mempcpy, rawmemchr,
156         scratch_buffer, stdbool, xalloc-die.
157         * modules/canonicalize-lgpl (Depends-on): Remove alloca-opt,
158         malloca, realloc-posix.  Add scratch_buffer, stdbool.
160         canonicalize-lgpl: simplify merge to glibc
161         This patch lessens the differences between git glibc
162         stdlib/canonicalize.c and lib/canonicalize-lgpl.c.
163         The (perhaps wishful) goal is to make them identical.
164         * lib/canonicalize-lgpl.c [!_LIBC]:
165         Include <libc-config.h>, not config.h.
166         Omit an unnecessary (!HAVE_CANONICALIZE_FILE_NAME ||
167         !FUNC_REALPATH_WORKS || defined _LIBC) #if.
168         Do not include alloca.h, since we use malloca now.
169         [_LIBC]: Include <eloop-threshold.h>, and define dummy macros
170         FILE_SYSTEM_PREFIX_LEN, IS_ABSOLUTE_FILE_NAME, ISSLASH, malloca,
171         freea so that the mainline code can be kept #ifdef free.
172         [!_LIBC]: Remove dummy macros for SHLIB_COMPAT, versioned_symbol,
173         compat_symbol, weak_alias, __set_errno since libc-config.h does that.
174         Add redirecting macros __mempcpy, __pathconf, __rawmemchr,
175         __eloop_threshold.  All uses of their definiens changed.
176         (SIZE_MAX): Remove; no longer needed.
177         (alloc_failed): Remove, and remove all instances.
178         No need for alloc_failed now that free preserves errno.
179         (__realpath): Default path_max to 1024 instead of 8192, as that’s
180         the glibc tradition and is safer when the 2nd argument is null.
181         Use __rawmemchr instead of strchr.
182         Use __mempcpy where appropriate.
183         Simplify test for overflow so that it does not need SIZE_MAX.
184         Do not preserve errno around free or freea calls; no longer needed.
185         Mark __realpath with libc_hidden_def.
186         * modules/canonicalize-lgpl (Depends-on): Add free, libc-config,
187         malloc-posix, mempcpy, realloc-posix, rawmemchr.
188         * modules/free: Now LGPLv2+, for canonicalize-lgpl.
190         free: preserve errno
191         * lib/free.c (rpl_free): Preserve errno.  Check for null only if
192         CANNOT_FREE_NULL is defined, as an optimization for POSIX 2008
193         platforms that do not preserve errno.
194         * m4/free.m4 (gl_FUNC_FREE): Check whether free preserves errno.
195         Also, define CANNOT_FREE_NULL if free cannot free NULL.
196         * modules/free (configure.ac): Also replace 'free' if
197         it does not preserve errno.
199         idx: simplify IDX_MAX, remove IDX_WIDTH
200         * lib/idx.h (IDX_MAX): Simplify by removing obsolete reference
201         to UNSIGNED_IDX_T.
202         (IDX_WIDTH): Remove, since it’s not used and its value
203         arguably should be PTRDIFF_WIDTH anyway.
205 2020-12-16  Bruno Haible  <bruno@clisp.org>
207         posix_spawn_file_actions_addfchdir-tests: Rename test.
208         * tests/test-posix_spawn-fchdir.c: Renamed from
209         tests/test-posix_spawn5.c.
210         * modules/posix_spawn_file_actions_addfchdir-tests (Files, Makefile.am):
211         Update.
213         posix_spawn_file_actions_addchdir-tests: Rename test.
214         * tests/test-posix_spawn-chdir.c: Renamed from
215         tests/test-posix_spawn4.c.
216         * modules/posix_spawn_file_actions_addchdir-tests (Files, Makefile.am):
217         Update.
219         posix_spawn-tests: Rename test.
220         * tests/test-posix_spawn-open1.c: Renamed from
221         tests/test-posix_spawn3.c.
222         * modules/posix_spawn-tests (Files, Makefile.am): Update.
224         posix_spawnp-tests: Rename test.
225         * tests/test-posix_spawn-dup2-stdin.c: Renamed from
226         tests/test-posix_spawn2.c.
227         * tests/test-posix_spawn-dup2-stdin.in.sh: Renamed from
228         tests/test-posix_spawn2.in.sh.
229         * modules/posix_spawnp-tests (Files, Makefile.am): Update.
231         posix_spawnp-tests: Rename test.
232         * tests/test-posix_spawn-dup2-stdout.c: Renamed from
233         tests/test-posix_spawn1.c.
234         * tests/test-posix_spawn-dup2-stdout.in.sh: Renamed from
235         tests/test-posix_spawn1.in.sh.
236         * modules/posix_spawnp-tests (Files, Makefile.am): Update.
238 2020-12-14  Bruno Haible  <bruno@clisp.org>
240         findprog-in: Allow overriding the current directory.
241         * lib/findprog.h (find_in_given_path): Add directory argument.
242         * lib/findprog-in.c (find_in_given_path): Likewise.
243         * lib/execute.c (execute): Update caller.
244         * lib/spawn-pipe.c (create_pipe): Likewise.
245         * lib/windows-spawn.c (spawnpvech): Likewise.
246         * NEWS: Mention the change.
248 2020-12-14  Bruno Haible  <bruno@clisp.org>
250         posix_spawn-internal: Make better use of 'const'.
251         * lib/spawn_int.h (__spawni): Does not need write access to the elements
252         of argv and envp.
253         * lib/spawni.c (__spawni, script_execute): Likewise.
254         * lib/spawn.c (posix_spawn): Update caller.
255         * lib/spawnp.c (posix_spawnp): Likewise.
257 2020-12-14  Bruno Haible  <bruno@clisp.org>
259         spawn: Make it compile on native Windows.
260         * modules/spawn (Depends-on): Add signal-h.
262 2020-12-14  Bruno Haible  <bruno@clisp.org>
264         windows-spawn: Avoid shadowing a variable.
265         * lib/windows-spawn.c (spawnpvech): Rename local variable 'flags'.
267 2020-12-13  Paul Eggert  <eggert@cs.ucla.edu>
269         string: port memchr macro to AIX 7.2 XLC
270         Its <string.h> defines a memchr macro to help inlining.
271         * lib/string.in.h (memchr): #undef before #defining.
273         canonicalize: fix AIX test failures
274         Problem reported by Bruno Haible in:
275         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00109.html
276         * lib/canonicalize.c (canonicalize_filename_mode):
277         When testing a file name ending in '/', use stat rather than
278         readlink, so that it does the right thing on AIX.
279         * modules/canonicalize (Depends-on): Add readlink, to pull in the
280         recent changes in the Gnulib readlink module.
282         Assume readlink/readlinkat ERANGE fix
283         * lib/areadlink-with-size.c (areadlink_with_size):
284         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
285         * lib/careadlinkat.c (readlink_stk):
286         Do not worry about readlink or readlinkat failing with errno == ERANGE,
287         since the Gnulib readlink and readlinkat modules now fix that.
289         getcwd: port to AIX
290         * lib/getcwd.c [!_LIBC]: Undef stat64 before #defining it,
291         in case our sys/stat.h #defined a function macro with the same name.
293         readlink, readlinkat: add ERANGE portability
294         Fix some portability issues with Gnulib's readlink and readlinkat,
295         notably mostly working around the ERANGE problem in AIX and HP-UX.
296         * doc/posix-functions/readlink.texi:
297         * doc/posix-functions/readlinkat.texi:
298         ERANGE problem is mostly fixed now.  Mention AIX problem with
299         trailing / and EINVAL.  Lessen differences between these two files.
300         * lib/readlink.c (rpl_readlink):
301         * lib/readlinkat.c (rpl_readlinkat):
302         If stat ("FILE/", ...) reports EOVERFLOW, treat FILE/ as an
303         existing directory.  Mostly work around READLINK_TRUNCATE BUG.
304         Lessen spurious differences between the readlink and readlinkat code.
305         * lib/readlinkat.c (rpl_readlinkat):
306         Fix bug where stat was used where fstatat was intended.
307         * m4/readlink.m4 (gl_FUNC_READLINK):
308         Rename gl_cv_func_readlink_works to gl_cv_func_readlink_trailing_slash
309         to identify readlink problems more precisely.  All uses changed.
310         Guess no on AIX or HP-UX for this variable.
311         Add check for whether readlink truncates results,
312         and define new macro READLINK_TRUCATE_BUG accordingly.
313         * m4/readlinkat.m4 (gl_FUNC_READLINKAT):
314         Also check gl_cv_func_readlink_trailing_slash when deciding
315         whether to replace readlinkat.
316         * modules/readlinkat (Depends-on): Most dependencies are also
317         needed if replacing readlinkat.  fstatat is different, as it
318         is needed only if replacing an existing readlinkat.
320 2020-12-13  Bruno Haible  <bruno@clisp.org>
322         spawn-pipe: Fix hanging processes on Windows (regression 2020-11-30).
323         * lib/spawn-pipe.c (create_pipe): After spawning the subprocess, close
324         the stdin_handle and/or stdout_handle.
326 2020-12-12  Bruno Haible  <bruno@clisp.org>
328         Fix gnulib-tool error when some modules occur in tests/.
329         * doc/gnulib.texi (Specification): Update statistics.
330         (Autoconf macros): Don't suggest to use AC_LIBOBJ in a .m4 file.
331         (Using AC_LIBOBJ): New section.
332         * check-AC_LIBOBJ: New file.
333         * modules/fnmatch-gnu (Files): Add lib/fnmatch.c.
334         * modules/fopen-gnu (Files): Add lib/fopen.c.
335         * modules/memmem (Files): Add lib/memmem.c.
336         * modules/renameat (Files): Add lib/at-func2.c.
337         * modules/strcasestr (Files): Add lib/strcasestr.c.
338         * modules/strstr (Files): Add lib/strstr.c.
340 2020-12-11  Bruno Haible  <bruno@clisp.org>
342         sh-quote, execute, spawn-pipe, etc.: Make better use of 'const'.
343         * lib/sh-quote.h (shell_quote_argv): Does not need write access to the
344         elements of argv.
345         * lib/sh-quote.c (shell_quote_argv): Likewise.
346         * lib/windows-spawn.h (prepare_spawn): Add 'const' the argument type and
347         the return type.
348         * lib/windows-spawn.c (prepare_spawn): Likewise.
349         * lib/os2-spawn.h (prepare_spawn): Likewise.
350         * lib/os2-spawn.c (prepare_spawn): Likewise.
351         * lib/execute.h (execute): Does not need write access to the elements of
352         prog_argv.
353         * lib/execute.c (execute): Likewise.
354         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
355         Likewise.
356         * lib/spawn-pipe.c (create_pipe, create_pipe_bidi, create_pipe_in,
357         create_pipe_out): Likewise.
358         * lib/pipe-filter.h (pipe_filter_ii_execute, pipe_filter_gi_create):
359         Likewise.
360         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Likewise.
361         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Likewise.
362         * lib/javaexec.h (execute_fn): Does not need write access to the
363         elements of prog_argv.
364         * lib/javaexec.c (execute_java_class): Update variable types and remove
365         casts to 'char *'.
366         * lib/csharpexec.h (execute_fn): Does not need write access to the
367         elements of prog_argv.
368         * lib/csharpexec.c (execute_csharp_using_mono,
369         execute_csharp_using_sscli): Update variable types and remove casts to
370         'char *'.
371         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
372         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
373         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
374         is_jikes_present): Update variable types and remove casts to 'char *'.
375         * lib/javaversion.c (execute_and_read_line): Does not need write access
376         to the elements of prog_argv.
377         * lib/csharpcomp.c (compile_csharp_using_mono,
378         compile_csharp_using_sscli): Update variable types and remove casts to
379         'char *'.
380         * tests/test-sh-quote.c (main): Update variable types and remove casts
381         to 'char *'.
382         * tests/test-execute-main.c (main): Update variable types and remove
383         casts to 'char *'.
384         * tests/test-spawn-pipe-main.c (test_pipe): Update variable types and
385         remove casts to 'char *'.
386         * NEWS: Mention the changes.
388 2020-12-11  Bruno Haible  <bruno@clisp.org>
390         execute-tests: Fix compilation error with MSVC.
391         * tests/test-execute-child.c (is_device): With _fstat, use
392         'struct _stat', not 'struct stat'.
394 2020-12-11  Paul Eggert  <eggert@cs.ucla.edu>
396         vararrays: just use 2.70
397         * m4/vararrays.m4 (AC_C_VARARRAYS): Do not override Autoconf 2.70
398         and later, since Autoconf 2.70 matches Gnulib now.
400         sys_types: just use 2.70
401         * m4/sys_types_h.m4 (AC_HEADER_MAJOR):
402         Reindent to match Autoconf sources.
403         Use Autoconf 2.70 as a prerequisite, not 2.69c.
405         stdint: port to Autoconf 2.70
406         * m4/stdint.m4 (gl_STDINT_H): Check for inttypes.h and sys/types.h
407         instead of assuming that AC_INCLUDES_DEFAULT does it.
408         The old code relied on AC_INCLUDES_DEFAULT being called
409         and setting ac_cv_header_inttypes_h and ac_cv_header_sys_types_h,
410         but this does not occur in Autoconf 2.70.
412         pid_t.m4: just use 2.70
413         * m4/pid_t.m4 (AC_TYPE_PID_T):
414         Use Autoconf 2.70 as a prerequisite, not 2.69c.
416         largefile: just use 2.70
417         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
418         Use Autoconf 2.70 as a prerequisite, not 2.69c.
420         AC_C_RESTRICT: update from Autoconf
421         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use Autoconf 2.70
422         as a prerequisite, not 2.69c, since 2.70 is now out.
423         (AC_C_RESTRICT): Define only for 2.70 or earlier.
424         Try __restrict__ before __restrict.
426         extensions: update from Autoconf
427         * m4/extensions.m4 (AC_CHECK_INCLUDES_DEFAULT):
428         Provide a default implementation for Autoconf 2.69 or earlier.
429         (AC_USE_SYSTEM_EXTENSIONS): Copy from Autoconf git.  Define only
430         if Autoconf 2.70 or earlier, since 2.70.1 or later should be OK.
432         alloca: update from Autoconf
433         * m4/alloca.m4 (gl_PREREQ_ALLOCA):
434         Trivial update to match Autoconf 2.70.
436 2020-12-11  Bruno Haible  <bruno@clisp.org>
438         memchr: Work around memory overrun bug on AIX 7.2.
439         * m4/memchr.m4 (gl_FUNC_MEMCHR): Test against AIX 7.2 bug.
440         * doc/posix-functions/memchr.texi: Mention the AIX bug.
442 2020-12-11  Bruno Haible  <bruno@clisp.org>
444         execute-tests: Fix compilation error on AIX in 32-bit mode.
445         * tests/test-execute-child.c: In order to get the original definition of
446         fstat, don't use '#undef fstat' and '#undef stat'. Instead, arrange to
447         include the system's <sys/stat.h> and use it before including other
448         header files.
450 2020-12-10  Bruno Haible  <bruno@clisp.org>
452         windows-spawn: Relicense under LGPLv2+.
453         * modules/windows-spawn (License): Change to LGPLv2+.
455 2020-12-10  Bruno Haible  <bruno@clisp.org>
457         execute, spawn-pipe: Fix memory leak on native Windows.
458         * lib/windows-spawn.h (prepare_spawn): Add a second parameter.
459         * lib/windows-spawn.c: Don't include xalloc.h.
460         (quoted_arg_length, quoted_arg_string): New functions, extracted from
461         prepare_spawn.
462         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
463         elements of *new_argv together.
464         * modules/windows-spawn (Depends-on): Remove xalloc. Add malloc-posix.
465         * lib/os2-spawn.h (prepare_spawn): Add a second parameter.
466         * lib/os2-spawn.c: Don't include xalloc.h.
467         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
468         elements of *new_argv together.
469         * lib/execute.c: Include xalloc.h.
470         (execute): Check return value of prepare_spawn. Free the memory
471         allocated by prepare_spawn.
472         * modules/execute (Depends-on): Add xalloc-die.
473         * lib/spawn-pipe.c: Include xalloc.h.
474         (create_pipe): Check return value of prepare_spawn. Free the memory
475         allocated by prepare_spawn.
476         * modules/spawn-pipe (Depends-on): Add xalloc-die.
478 2020-12-10  Bruno Haible  <bruno@clisp.org>
480         findprog-in: Relicense under LGPLv2+.
481         Paul Smith's approval is in
482         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00072.html>.
483         * modules/findprog-in (License): Change to LGPLv2+.
485 2020-12-10  Bruno Haible  <bruno@clisp.org>
487         findprog-in: Don't exit upon out-of-memory.
488         * lib/findprog.h (find_in_given_path): Document ENOMEM as possible error
489         code.
490         * lib/findprog-in.c: Don't include xalloc.h.
491         (find_in_given_path): Call concatenated_filename, not
492         xconcatenated_filename. Call strdup, not xstrdup. Upon out-of-memory,
493         return NULL with errno set.
494         * modules/findprog-in (Depends-on): Remove xconcat-filename, xalloc. Add
495         concat-filename, strdup-posix, malloc-posix.
497 2020-12-09  Bruno Haible  <bruno@clisp.org>
499         fmaf: Work around a bug on FreeBSD 12.2/arm.
500         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Add one more test.
501         * doc/posix-functions/fmaf.texi: Mention the FreeBSD bug.
503 2020-12-09  Bruno Haible  <bruno@clisp.org>
505         threadlib: Fix test-fstrcmp failure on FreeBSD 11.
506         * m4/threadlib.m4 (gl_THREADLIB_BODY): When weak symbols are not present
507         on FreeBSD, define PTHREAD_IN_USE_DETECTION_HARD.
508         * lib/glthread/threadlib.c: Include <errno.h>.
509         (glthread_in_use): For FreeBSD, provide an alternative implementation
510         that uses pthread_key_create.
512 2020-12-09  Bruno Haible  <bruno@clisp.org>
514         math C++ tests: Fix compilation error in with clang >= 7 on FreeBSD.
515         * lib/math.in.h (isnan): For clang >= 7 on FreeBSD, declare 'rpl_isnan',
516         not 'isnan'.
518 2020-12-08  Bruno Haible  <bruno@clisp.org>
520         std-gnu11: Make compatible with Autoconf 2.70.
521         * m4/std-gnu11.m4: Disable the entire file if Autoconf >= 2.70 is in
522         use.
524 2020-12-08  Bruno Haible  <bruno@clisp.org>
526         argp: Avoid undefined behaviour when invoking qsort().
527         This fixes a test-argp-2.sh test failure on macOS and FreeBSD.
528         Reported by Jeffrey Walton <noloader@gmail.com> in
529         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00085.html>.
530         * lib/argp-help.c (group_cmp): Remove third argument.
531         (hol_sibling_cluster_cmp, hol_cousin_cluster_cmp): New functions, based
532         upon hol_cluster_cmp.
533         (hol_cluster_cmp): Use hol_cousin_cluster_cmp.
534         (hol_entry_cmp): Rewritten to implement a total order.
536 2020-12-08  Bruno Haible  <bruno@clisp.org>
538         argp: Improve comments.
539         * lib/argp-help.c: Add sectioning comments. Write NULL to designate a
540         null pointer.
541         (struct hol_entry): Fix comment regarding sort order of group.
542         (hol_entry_short_iterate, hol_entry_long_iterate): Add comment.
543         (until_short, canon_doc_option, hol_entry_qcmp): Improve comment.
544         (hol_cluster_is_child, argp_hol): Move functions.
545         (HOL_ENTRY_PTRCMP): Remove unused macro.
547 2020-12-08  Bruno Haible  <bruno@clisp.org>
549         argp: Don't pass invalid arguments to isspace() and isalnum().
550         * lib/argp-help.c (canon_doc_option): Cast character to 'unsigned int'
551         before passing it to isspace() or isalnum().
553 2020-12-08  Bruno Haible  <bruno@clisp.org>
555         argp: Don't rely on undefined behaviour of _tolower().
556         Patch by Eric Blake
557         <https://lists.gnu.org/archive/html/bug-gnulib/2009-09/msg00287.html>.
558         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values that are
559         not upper-case.  Pass correct range to tolower.
561 2020-12-07  Bruno Haible  <bruno@clisp.org>
563         unicodeio: Fix wrong result on FreeBSD.
564         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
565         characters on all platforms.
567 2020-12-07  Bruno Haible  <bruno@clisp.org>
569         get-rusage-data tests: Avoid test failure on FreeBSD/x86_64.
570         * tests/test-get-rusage-data.c (main): Don't expect a strict increase on
571         FreeBSD systems.
573 2020-12-07  Bruno Haible  <bruno@clisp.org>
575         get-rusage-data: Fix link error on FreeBSD 12.2/arm64.
576         * modules/get-rusage-data (configure.ac): Test whether sbrk exists.
577         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit): Define
578         trivially of sbrk is not available.
579         * doc/glibc-functions/sbrk.texi: Mention that the function does not
580         exist in FreeBSD 12.2/arm64.
581         * doc/glibc-functions/brk.texi: Likewise.
583 2020-12-07  Bruno Haible  <bruno@clisp.org>
585         Correct interaction between gl_ANSI_CXX and AC_PROG_CXX.
586         Suggested by Zack Weinberg in
587         <https://savannah.gnu.org/support/?110294>.
588         * m4/ansi-c++.m4 (gl_ANSI_CXX): Mark AC_PROG_CXX as provided.
589         * modules/uchar-c++-tests: Revert the workaround from 2020-08-18.
591 2020-12-07  Bruno Haible  <bruno@clisp.org>
593         Tweak the Windows oldnames workaround.
594         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
595         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00073.html>.
596         * lib/unistd.in.h: On native Windows, include <io.h> and <direct.h>
597         always.
598         (getcwd): Use _GL_CXXALIAS_MDA_CAST.
599         * lib/stdlib.in.h (putenv): Likewise.
601 2020-12-06  Paul Eggert  <eggert@cs.ucla.edu>
603         doc: fix flat address space discussion
604         * doc/gnulib-readme.texi (Other portability assumptions):
605         Move the all-bits-zero assumption outside the flat address space
606         section, since the two issues are independent.
608         doc: document -static-libubsan more
609         * doc/gnulib-readme.texi (High Quality): Document pros and cons of
610         -static-libubsan a bit more.  Mostly cons.
612 2020-12-06  Bruno Haible  <bruno@clisp.org>
614         doc: Add more details regarding the undefined behaviour sanitizer.
615         * doc/gnulib-readme.texi (High Quality): Describe
616         -fsanitize-undefined-trap-on-error better.
618 2020-12-06  Bruno Haible  <bruno@clisp.org>
620         Do the Windows oldnames workaround through the C++ GNULIB_NAMESPACE.
621         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
622         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00029.html>.
623         * lib/c++defs.h (_GL_CXXALIAS_MDA_CAST): New macro.
624         * lib/fcntl.in.h (creat, open):  In C++ mode, when GNULIB_NAMESPACE is
625         defined: 1. Define a symbol in this namespace. 2. Don't redirect using
626         a preprocessor #define.
627         * lib/math.in.h (j0, j1, jn, y0, y1, yn): Likewise.
628         * lib/search.in.h (lfind, lsearch): Likewise.
629         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
630         Likewise.
631         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
632         * lib/string.in.h (memccpy, strdup): Likewise.
633         * lib/sys_stat.in.h (chmod, umask): Likewise.
634         * lib/time.in.h (tzset): Likewise.
635         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
636         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
637         read, rmdir, swab, unlink, write): Likewise.
638         * lib/utime.in.h (utime): Likewise.
639         * lib/wchar.in.h (wcsdup): Likewise.
640         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FCLOSEALL.
641         (gl_STDIO_H): Set HAVE_DECL_FCLOSEALL.
642         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FCLOSEALL.
643         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_ECVT,
644         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
645         (gl_STDLIB_H): Set HAVE_DECL_ECVT, HAVE_DECL_FCVT, HAVE_DECL_GCVT.
646         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_ECVT,
647         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_EXECVPE.
649         (gl_UNISTD_H): Set HAVE_DECL_EXECVPE.
650         * modules/unistd (Makefile.am): Substitute HAVE_DECL_EXECVPE.
651         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCSDUP.
652         (gl_WCHAR_H): Set HAVE_DECL_WCSDUP.
653         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCSDUP.
655 2020-12-06  Bruno Haible  <bruno@clisp.org>
657         doc: Mention some missing function declarations.
658         * doc/glibc-functions/execvpe.texi: Mention the missing declaration on
659         AIX.
660         * doc/glibc-functions/fcloseall.texi: Mention the missing declaration on
661         FreeBSD.
662         * doc/pastposix-functions/ecvt.texi: Mention the missing declaration on
663         Cygwin.
664         * doc/pastposix-functions/fcvt.texi: Likewise.
665         * doc/pastposix-functions/gcvt.texi: Likewise.
667 2020-12-06  Bruno Haible  <bruno@clisp.org>
669         doc: Tweak example.
670         * doc/intprops.texi (Checking Integer Overflow): Use 'printf', not
671         'print'.
673 2020-12-06  Bruno Haible  <bruno@clisp.org>
675         filenamecat-tests: Use idx_t for nonnegative ptrdiff_t variables.
676         * tests/test-filenamecat.c: Include idx.h.
677         (main): Mark prefixlen as nonnegative.
678         * modules/filenamecat-tests (Depends-on): Add idx.
680 2020-12-06  Bruno Haible  <bruno@clisp.org>
682         time_rz: Use idx_t for nonnegative ptrdiff_t variables.
683         * lib/time_rz.c: Include idx.h.
684         (save_abbr): Mark zone_size as nonnegative.
685         * modules/time_rz (Depends-on): Add idx.
687 2020-12-06  Bruno Haible  <bruno@clisp.org>
689         parse-datetime: Use idx_t for nonnegative ptrdiff_t variables.
690         * lib/parse-datetime.y: Include idx.h.
691         (textint): Mark digits as nonnegative.
692         (parser_control): Mark dates_seen, days_seen, local_zones_seen,
693         dsts_seen, times_seen, zones_seen as nonnegative.
694         (lookup_word): Mark wordlen as nonnegative.
695         (yylex): Mark count as nonnegative.
696         (parse_datetime2): Mark tzsize as nonnegative.
697         * modules/parse-datetime (Depends-on): Add idx.
699 2020-12-06  Bruno Haible  <bruno@clisp.org>
701         fnmatch: Use idx_t for nonnegative ptrdiff_t variables.
702         * lib/fnmatch.c: Include idx.h. In glibc, define idx_t directly.
703         * lib/fnmatch_loop.c (EXT): Mark slen, new_used, plensize as
704         nonnegative.
705         * modules/fnmatch (Depends-on): Add idx.
707 2020-12-06  Bruno Haible  <bruno@clisp.org>
709         c-stack: Use idx_t for nonnegative ptrdiff_t variables.
710         * lib/c-stack.c: Include idx.h.
711         (die): Mark buflen as nonnegative.
712         * modules/c-stack (Depends-on): Add idx.
714 2020-12-06  Bruno Haible  <bruno@clisp.org>
716         backupfile: Use idx_t for nonnegative ptrdiff_t variables.
717         * lib/backupfile.c: Include idx.h.
718         (numbered_backup): Mark base_offset as nonnegative.
719         (backupfile_internal): Likewise.
720         * modules/backup-rename (Depends-on): Add idx.
721         * modules/backupfile (Depends-on): Likewise.
723 2020-12-05  Paul Eggert  <eggert@cs.ucla.edu>
725         doc: fix curved quotes issue
726         * doc/gnulib.texi: Set txicodequoteundirected and
727         txicodequotebacktick so that ` and ' in examples do not generate
728         curved single quotes that do the wrong thing when cut and pasted.
730         doc: mention static and dynamic checking
731         * doc/gnulib-readme.texi (High Quality): Add a bit of advice
732         for static and dynamic checking.
734         intprops: Add INT_ADD_OK etc.
735         * doc/intprops.texi (Checking Integer Overflow): New section.
736         * lib/intprops.h: From a suggestion by Bruno Haible in:
737         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00051.html
738         (SAFE_INT_ADD, SAFE_INT_SUBTRACT, SAFE_INT_MULTIPLY): New macros.
740         doc: move exotic platfroms to Target Platforms
741         * doc/gnulib-intro.texi (Supported Platforms)
742         (Formerly Supported Platforms, Unsupported Platforms):
743         New subsections, split off from Target Platforms.
744         (Unsupported Platforms): Move the exotic-platform stuff here ...
745         * doc/gnulib-readme.texi (Exotic platforms): ... from this removed
746         section.
748         doc: mention intptr_t etc. and IBM i
749         * doc/gnulib-readme.texi (Other portability assumptions):
750         Mention intptr_t and uintptr_t, and that arithmetic on them
751         works in the usual way.
752         (Exotic platforms): New section, containing material from
753         the old 'Integer Portability' section.  Also mention IBM i.
754         * doc/intprops.texi (Wraparound Arithmetic):
755         Say that the macros work on unsigned integers too.
756         (Integer Portability): Remove.
758 2020-12-04  Bruno Haible  <bruno@clisp.org>
760         utime: Fix a test failure on macOS 10.13.
761         Reported by Martin Storsjö <martin@martin.st> in
762         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
763         * m4/utime.m4 (gl_FUNC_UTIME): Test whether utime handles trailing
764         slashes on files.
765         * lib/utime.c (utime): Add alternative implementation for Unix
766         platforms.
767         * modules/utime (Depends-on): Add stat.
768         * doc/posix-functions/utime.texi: Mention the macOS 10.13 bug.
769         * doc/posix-functions/lstat.texi: Mention that macOS 10.13 also has the
770         trailing-slash bug.
771         * doc/posix-functions/open.texi: Likewise.
772         * doc/posix-functions/stat.texi: Likewise.
773         * doc/posix-functions/symlink.texi: Likewise.
775 2020-12-04  Paul Eggert  <eggert@cs.ucla.edu>
777         intprops: update doc and mention Unisys
778         * doc/gnulib-readme.texi (Other portability assumptions):
779         Also mention ptrdiff_t when talking about widths and overflow.
780         * doc/intprops.texi (Integer Properties): Summarize new section.
781         (Arithmetic Type Properties): Document that EXPR_SIGNED no longer
782         evaluates its argument.
783         (Integer Bounds): Fix typo.
784         (Wraparound Arithmetic): Remove obsolete comment about efficiency.
785         Document that the _WRAPV macros now support pointers to unsigned
786         integers.
787         (Integer Range Overflow): Update SEI CERT citation.
788         (Integer Portability): New subsection, which mentions
789         the oddball Unisys platforms as non-Gnulib targets.
791 2020-12-03  Bruno Haible  <bruno@clisp.org>
793         idx: Clarify that idx_t always behaves like a signed type.
794         Suggested by Paul Eggert in
795         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00034.html>.
796         * lib/idx.h: Clarify that idx_t always behaves like a signed type.
797         Don't test UNSIGNED_IDX_T.
799 2020-12-03  Bruno Haible  <bruno@clisp.org>
801         idx: New module.
802         * lib/idx.h: New file.
803         * modules/idx: New file.
804         * lib/canonicalize-lgpl.c: Include idx.h. Use idx_t instead of
805         ptrdiff_t.
806         * lib/canonicalize.c: Likewise.
807         * modules/canonicalize-lgpl (Depends-on): Add idx.
808         * modules/canonicalize (Depends-on): Likewise.
810 2020-12-03  Bruno Haible  <bruno@clisp.org>
812         fprintf-posix-tests: Avoid a test failure on macOS 10.13.
813         Reported by Martin Storsjö <martin@martin.st> in
814         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
815         * tests/test-fprintf-posix3.c: Skip the test on macOS.
816         (main): Return a different exit code at each point. Allow 100 KB extra
817         memory consumption.
818         * tests/test-fprintf-posix3.sh: Update. Remove the "get_rusage_as()
819         doesn't work" diagnostic.
821 2020-12-02  Paul Eggert  <eggert@cs.ucla.edu>
823         canonicalize: refactor can_mode flag
824         * lib/canonicalize.c (MULTIPLE_BITS_SET): Remove, replacing with ...
825         (multiple_bits_set): ... this new static function.  Uses changed.
826         (canonicalize_filename_mode): Refactor for clarity to avoid
827         modifying the CAN_MODE argument.
829         canonicalize: prefer signed integer types
830         * lib/canonicalize.c: Include stddef.h, for ptrdiff_t.
831         (seen_triple, canonicalize_filename_mode): Prefer signed to
832         unsigned types where either will do, as they avoid some glitches
833         in comparisons and can trap on overflow when debugging.
835         canonicalize: fix most of another EOVERFLOW issue
836         * lib/canonicalize.c (canonicalize_filename_mode):
837         Do not call stat if fewer than 20 symlinks have been traversed.
838         This avoids EOVERFLOW failure in the common case where there
839         are not that many symlinks, while continuing to catch loops
840         (or fail due to EOVERFLOW) in the unusual case when there
841         are many symlinks to traverse.
843         canonicalize: do not assume symlinks have st_ino
844         * lib/canonicalize.c (canonicalize_filename_mode):
845         When checking for loops, use st_dev and st_ino from the parent
846         directory not from the symlink, as pre-2017 POSIX says these
847         members are not reliable for symlinks.  Couple this with START
848         (the remaining file name to be resolved), not NAME (the whole file
849         name with START as its suffix).
850         * modules/canonicalize (Depends-on): Depend on stat, not lstat.
852         canonicalize: fix EOVERFLOW bug
853         * lib/canonicalize.c (canonicalize_filename_mode):
854         When testing whether a directory entry is a symbolic link, or a
855         directory or other, do not use lstat or stat or
856         areadlink_with_size.  Just use areadlink, as this suffices and it
857         avoids the EOVERFLOW problem that lstat and stat have.
858         * modules/canonicalize (Depends-on): Depend on areadlink instead
859         of areadlink-with-size and stat.
861         canonicalize-lgpl: fix EOVERFLOW bug
862         * lib/canonicalize-lgpl.c: Do not include <sys/stat.h>.
863         (__realpath): Do not use lstat.  Just use readlink, as this
864         suffices and it avoids the EOVERFLOW problem that lstat has.
865         * modules/canonicalize-lgpl (Depends-on): Remove lstat, sys_stat.
867 2020-12-02  Bruno Haible  <bruno@clisp.org>
869         strsignal-tests: Fix test failure on macOS 10.13.
870         Reported by Martin Storsjö <martin@martin.st> in
871         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
872         * tests/test-strsignal.c (ASSERT_DESCRIPTION): Allow the actual result
873         to be longer than the expected result.
875 2020-12-02  Bruno Haible  <bruno@clisp.org>
877         Fix compilation errors in test-math-c++.cc on FreeBSD 12.2/arm64.
878         * lib/math.in.h (_GL_INCLUDING_MATH_H): New macro, to work around
879         recursive self-include problem on FreeBSD 12.2 in C++ mode.
881 2020-12-02  Bruno Haible  <bruno@clisp.org>
883         spawn-pipe: Allow caller to specify directory for the subprocess.
884         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
885         Add directory argument.
886         * lib/spawn-pipe.c: Include canonicalize.h, filename.h, findprog.h.
887         (create_pipe): Add directory argument. If specified, resolve the program
888         file name and make it absolute, first. Pass the directory to spawnpvech
889         and posix_spawn_file_actions_addchdir.
890         (create_pipe_bidi, create_pipe_in, create_pipe_out): Add directory
891         argument.
892         * modules/spawn-pipe (Depends-on): Add canonicalize, filename,
893         findprog-in, posix_spawn, posix_spawn_file_actions_addchdir.
894         * tests/test-spawn-pipe-main.c (test_pipe): Update.
895         * NEWS: Mention the change.
896         * lib/csharpcomp.c (compile_csharp_using_mono,
897         compile_csharp_using_sscli): Update.
898         * lib/javacomp.c (is_envjavac_gcj, is_envjavac_gcj43, is_gcj_present,
899         is_gcj_43): Update.
900         * lib/javaversion.c (execute_and_read_line): Update.
901         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Update.
902         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Update.
904 2020-12-02  Bruno Haible  <bruno@clisp.org>
906         execute: Allow caller to specify directory for the subprocess.
907         * lib/execute.h (execute): Add directory argument.
908         * lib/execute.c: Include canonicalize.h, filename.h, findprog.h.
909         (execute): Add directory argument. If specified, resolve the program
910         file name and make it absolute, first. Pass the directory to spawnpvech
911         and posix_spawn_file_actions_addchdir.
912         * modules/execute (Depends-on): Add canonicalize, filename, findprog-in,
913         posix_spawn, posix_spawn_file_actions_addchdir.
914         * tests/test-execute-main.c: Add test for passing a directory.
915         * tests/test-execute-child.c: Likewise.
916         * tests/test-execute.sh: Update.
917         * modules/execute-tests (Depends-on): Add mkdir.
918         * NEWS: Mention the change.
919         * lib/csharpcomp.c (compile_csharp_using_sscli): Update.
920         * lib/csharpexec.c (execute_csharp_using_mono,
921         execute_csharp_using_sscli): Update.
922         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
923         compile_using_javac, compile_using_jikes, is_javac_present,
924         is_jikes_present): Update.
925         * lib/javaexec.c (execute_java_class): Update.
927 2020-12-01  Bruno Haible  <bruno@clisp.org>
929         vma-iter: Add support for macOS11/arm64.
930         Patch suggested by Hill Ma <maahiuzeon@gmail.com> in
931         <https://gitlab.com/gnu-clisp/clisp/-/issues/27>
932         and by Martin Storsjö <martin@martin.st> in
933         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
934         * lib/vma-iter.c (vma_iterate): On arm64, use 64-bit type definitions.
936 2020-12-01  Bruno Haible  <bruno@clisp.org>
938         spawn-pipe: Fix handling of OS/2 kLIBC.
939         Reported by KO Myung-Hun <komh78@gmail.com> in
940         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00005.html>.
941         * modules/spawn-pipe (configure.ac): Use the common idiom for
942         recognizing the OS/2 operating system.
944 2020-11-30  Bruno Haible  <bruno@clisp.org>
946         execute: Fix uninitialized use of errno.
947         * lib/execute.c (execute): Preserve errno across several system calls.
949 2020-11-30  Bruno Haible  <bruno@clisp.org>
951         access tests: Fix test failure on native Windows.
952         * tests/test-access.c (main): Change permissions of f2 file before
953         attempting to remove it.
955 2020-11-30  Paul Eggert  <eggert@cs.ucla.edu>
957         faccessat: link with $(LIB_EACCESS)
958         * modules/faccessat (Link:): Add $(LIB_EACCESS), since this
959         module depends on euidaccess.
961 2020-11-30  Bruno Haible  <bruno@clisp.org>
963         execute, spawn-pipe: Make multithread-safe on native Windows.
964         * lib/windows-spawn.h: Include <stdint.h>, <windows.h>.
965         (dup_safer_noinherit, undup_safer_noinherit): Remove declarations.
966         (spawnpvech): New declaration.
967         * lib/windows-spawn.c: Include <stdio.h>, <process.h>, findprog.h.
968         Don't include <unistd.h>, cloexec.h, error.h, gettext.h.
969         (_): Remove macro.
970         (dup_noinherit, fd_safer_noinherit, dup_safer_noinherit,
971         undup_safer_noinherit): Remove functions.
972         (spawnpvech): New function.
973         * modules/windows-spawn (Depends-on): Add findprog-in, stdint. Remove
974         cloexec, dup2, error, gettext-h.
975         * lib/execute.c: Include msvc-nothrow.h.
976         (execute) [WIN32]: Use _get_osfhandle, spawnpvech instead of _spawnvpe.
977         * lib/spawn-pipe.c: Include msvc-nothrow.h.
978         (create_pipe) [WIN32]: Use _get_osfhandle, DuplicateHandle, spawnpvech
979         instead of _spawnvpe.
980         * modules/execute (Depends-on): Add msvc-nothrow.
981         * modules/spawn-pipe (Depends-on): Likewise.
983 2020-11-30  Bruno Haible  <bruno@clisp.org>
985         execute, spawn-pipe: Improve documentation.
986         * lib/execute.h: Describe progname, prog_path, prog_argv.
987         * lib/spawn-pipe.h: Likewise.
989 2020-11-30  Bruno Haible  <bruno@clisp.org>
991         execute tests: Add more tests.
992         * tests/test-execute-main.c: Add tests for reading, writing, isatty on
993         inherited file descriptors >= 3.
994         * tests/test-execute-child.c: Likewise.
995         * tests/test-execute.sh: Update.
997 2020-11-30  Bruno Haible  <bruno@clisp.org>
999         havelib: Fix for non-ELF platforms (regression 2019-11-17).
1000         Reported by comex <comexk@gmail.com> in
1001         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00188.html>.
1002         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On non-ELF platforms,
1003         don't expect an ELF header.
1005 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1007         bitset: use integer_length in table implementation
1008         * lib/bitset/table.c (tbitset_list_reverse): Use
1009         BITSET_FOR_EACH_BIT_REVERSE.
1011 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1013         bitset: use integer_length in list implementation
1014         * lib/bitset/list.c (lbitset_list_reverse): Use
1015         BITSET_FOR_EACH_BIT_REVERSE.
1017 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1019         bitset: use integer_length in vector implementation
1020         * lib/bitset/array.c (vbitset_list_reverse): Use
1021         BITSET_FOR_EACH_BIT_REVERSE.
1023 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1025         bitset: use integer_length in array implementation
1026         * modules/bitset (Depends-on): Add integer_length_l.
1027         * lib/bitset/base.h (bitset_fls_, BITSET_FOR_EACH_BIT_REVERSE): New.
1028         * lib/bitset/array.c (abitset_list_reverse): Use it.
1030 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1032         bitset: style: use consistent names
1033         * bitset/list.c (lbitset_list_reverse): Rename 'bcount' as 'bitcnt',
1034         and 'boffset' as 'bitoff', for consistency with the other
1035         implementations.
1036         * bitset/table.c (tbitset_list_reverse): Likewise.
1038 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1040         bitset: style: sort header
1041         * lib/bitset/base.h (bitset_ffs): Rename as...
1042         (bitset_ffs_): this.
1043         (bitset_ffs_, BITSET_FOR_EACH_BIT): Move to better places.
1045 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1047         bitset: tests: check BITSET_FOR_EACH_REVERSE
1048         * tests/test-bitset.c (compare, check_zero, check_one_bit, check_ones):
1049         Check BITSET_FOR_EACH_REVERSE.
1051 2020-11-29  Bruno Haible  <bruno@clisp.org>
1053         spawn-pipe tests: Fix test failure with MSVC.
1054         * tests/test-spawn-pipe-child.c: Include <stdint.h>.
1055         (gl_msvc_invalid_parameter_handler): New function.
1056         (main): Set a global invalid-parameter handler.
1057         * modules/spawn-pipe-tests (Depends-on): Add msvc-inval, stdint.
1059 2020-11-29  Bruno Haible  <bruno@clisp.org>
1061         execute: Add tests.
1062         * tests/test-execute.sh: New file.
1063         * tests/test-execute-main.c: New file.
1064         * tests/test-execute-child.c: New file.
1065         * modules/execute-tests: New file.
1067 2020-11-29  Bruno Haible  <bruno@clisp.org>
1069         fcntl: Work around NetBSD bug with F_DUPFD_CLOEXEC.
1070         * m4/fcntl.m4 (gl_FUNC_FCNTL): Test whether F_DUPFD_CLOEXEC actually
1071         works.
1072         * lib/fcntl.c (rpl_fcntl_DUPFD_CLOEXEC): On NetBSD, use the same
1073         fallback implementation as on Haiku.
1074         * tests/test-fcntl.c (main): Add a test whether F_DUPFD_CLOEXEC is
1075         effective.
1076         * doc/posix-functions/fcntl.texi: Mention the NetBSD bug.
1078 2020-11-29  Bruno Haible  <bruno@clisp.org>
1080         spawn-pipe: Fix build on OS/2 kLIBC (regression 2020-11-28).
1081         * lib/os2-spawn.h: New file, based on lib/windows-spawn.h.
1082         * lib/os2-spawn.c: New file, based on lib/windows-spawn.c.
1083         * lib/spawn-pipe.c: On OS/2 kLIBC, include "os2-spawn.h".
1084         * lib/windows-spawn.c: Remove modifications for kLIBC.
1085         * modules/spawn-pipe (Files): Add the new files.
1086         (configure.ac): Arrange to compile os2-spawn.c on OS/2.
1088 2020-11-28  Bruno Haible  <bruno@clisp.org>
1090         asyncsafe-spin: Fix compilation error with GCC on 32-bit SPARC.
1091         Reported by Paul Eggert in
1092         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00066.html>.
1093         * m4/sparcv8+.m4: New file.
1094         * modules/sparcv8+: New file.
1095         * modules/asyncsafe-spin (Depends-on): Add sparcv8+.
1097 2020-11-28  Bruno Haible  <bruno@clisp.org>
1099         asyncsafe-spin: Fix build error with GCC on 32-bit SPARC.
1100         * lib/asyncsafe-spin.c: Don't use GCC >= 4.1 primitives on SPARC.
1102 2020-11-28  Bruno Haible  <bruno@clisp.org>
1104         windows-spawn: New module.
1105         * lib/windows-spawn.h: Renamed from lib/w32spawn.h. Remove
1106         implementations.
1107         * lib/windows-spawn.c: Renamed from lib/w32spawn.h.
1108         * modules/windows-spawn: New file.
1109         * lib/execute.c: Include "windows-spawn.h" instead of "w32spawn.h".
1110         * lib/spawn-pipe.c: Likewise.
1111         * modules/execute (Files): Remove lib/w32spawn.h.
1112         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
1113         xalloc.
1114         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
1115         * modules/spawn-pipe (Files): Remove lib/w32spawn.h.
1116         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
1117         xalloc.
1118         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
1120 2020-11-27  Bruno Haible  <bruno@clisp.org>
1122         ssfmalloc tests: Port to macOS 11.
1123         * tests/test-ssfmalloc.c (PAGESIZE_MAX): Set to 16384, not 8192.
1125 2020-11-26  Bruno Haible  <bruno@clisp.org>
1127         Fix dependencies of modules that use '_exit' on native Windows.
1128         Reported by Jim Meyering in
1129         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00159.html>.
1130         * modules/_Exit (Depends-on): Add unistd.
1131         * modules/closein (Depends-on): Likewise.
1132         * modules/closeout (Depends-on): Likewise.
1133         * modules/forkpty (Depends-on): Likewise.
1134         * modules/posix_spawn-internal (Depends-on): Likewise.
1135         * modules/savewd (Depends-on): Likewise.
1136         * modules/stat-time-tests (Depends-on): Likewise.
1138 2020-11-26  Bruno Haible  <bruno@clisp.org>
1140         raise-tests: Fix compilation error on MSVC (regression 2020-11-25).
1141         * modules/raise-tests (Depends-on): Add unistd.
1142         * doc/posix-functions/_exit.texi: Mention the 'unistd' module.
1144 2020-11-25  Jim Meyering  <meyering@fb.com>
1146         setlocale-tests: do not trigger gcc's -Wanalyzer-possible-null-argument
1147         * tests/test-setlocale1.c (main): Assert that each strcmp argument is
1148         non-NULL, since we don't bother handing strdup failure.
1150         raise-tests: avoid GCC 11's new exit-from-signal-handler warning
1151         gcc's -Wanalyzer-unsafe-call-within-signal-handler exposed this.
1152         * tests/test-raise.c: Include unistd.h.
1153         (handler): Use _exit, not exit.
1155 2020-11-23  Bruno Haible  <bruno@clisp.org>
1157         Use the correct printf format attribute for mingw.
1158         Reported by Reuben Thomas <rrt@sc3d.org> in
1159         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00133.html>.
1161         * modules/vfprintf-posix (configure.ac): Define GNULIB_VFPRINTF_POSIX.
1162         * modules/vprintf-posix (configure.ac): Define GNULIB_VPRINTF_POSIX.
1164         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD,
1165         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM): New macros.
1166         (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
1167         _GL_ATTRIBUTE_FORMAT_PRINTF. Use _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD.
1168         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use
1169         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM.
1171         * modules/vasnprintf (Depends-on): Add stdio.
1172         * lib/vasnprintf.h: Include <stdio.h>.
1173         (asnprintf, vasnprintf): Use the standard printf format attribute.
1175         * modules/xvasprintf (Depends-on): Add stdio.
1176         * lib/xvasprintf.h: Include <stdio.h>.
1177         (xasprintf, xvasprintf): Use the standard printf format attribute.
1179         * modules/xprintf (Depends-on): List stdio first.
1180         * lib/xprintf.h (xprintf, xvprintf): Use a printf format attribute that
1181         depends on GNULIB_VPRINTF_POSIX.
1182         (xfprintf, xvfprintf): Use a printf format attribute that depends on
1183         GNULIB_VFPRINTF_POSIX.
1185         * modules/c-vasnprintf (Depends-on): Add stdio.
1186         * lib/c-vasnprintf.h: Include <stdio.h>.
1187         (c_vasnprintf): Use the standard printf format attribute.
1189         * modules/c-vasprintf (Depends-on): Add stdio.
1190         * lib/c-vasprintf.h: Include <stdio.h>.
1191         (c_asprintf, c_vasprintf): Use the standard printf format attribute.
1193         * modules/c-vsnprintf (Depends-on): Add stdio.
1194         * lib/c-vsnprintf.h: Include <stdio.h>.
1195         (c_vsnprintf): Use the standard printf format attribute.
1197         * modules/c-snprintf (Depends-on): Add stdio.
1198         * lib/c-snprintf.h: Include <stdio.h>.
1199         (c_snprintf): Use the standard printf format attribute.
1201         * modules/c-xvasprintf (Depends-on): Add stdio.
1202         * lib/c-xvasprintf.h: Include <stdio.h>.
1203         (c_xasprintf, c_xvasprintf): Use the standard printf format attribute.
1205         * modules/error (Depends-on): Depend on stdio always.
1206         * lib/error.h: Include <stdio.h>.
1207         (_GL_ATTRIBUTE_SPEC_PRINTF): Remove macro.
1208         (error, error_at_line): Use a printf format attribute that depends on
1209         GNULIB_VFPRINTF_POSIX.
1210         * lib/error.c (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
1211         _GL_ATTRIBUTE_FORMAT_PRINTF.
1213         * modules/verror (Depends-on): Add stdio.
1214         * lib/verror.h: Include <stdio.h>. Don't include "error.h".
1215         (verror, verror_at_line): Use the standard printf format attribute.
1216         * lib/verror.c: Include "error.h".
1218         * modules/argp (Depends-on): Add stdio.
1219         * lib/argp.h (argp_error, __argp_error, argp_failure, __argp_failure):
1220         Use a printf format attribute that depends on GNULIB_VFPRINTF_POSIX.
1222         * modules/libtextstyle-optional (Depends-on): Add stdio.
1223         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Use the standard
1224         printf format attribute.
1226         * tests/test-nonblocking-misc.h (dbgfprintf): Use the standard printf
1227         format attribute.
1229 2020-11-23  Pádraig Brady  <P@draigBrady.com>
1231         selinux-at, selinux-h: use const correct declarations
1232         * lib/se-selinux.in.h: Use const for "set" functions,
1233         to match current selinux, and support cleaner user code.
1234         * lib/selinux-at.c: Likewise.
1235         * lib/selinux-at.h: Likewise.
1237 2020-11-22  Paul Eggert  <eggert@cs.ucla.edu>
1239         canonicalize-lgpl: fix memory leak
1240         * lib/canonicalize-lgpl.c (__realpath): Fix unlikely memory leak,
1241         which could have occurred if BUF was so large that malloc was
1242         called.  Do this by allocating EXTRA_BUF and BUF at the same time;
1243         this eliminates the need to free BUF separately.
1245 2020-11-22  Bruno Haible  <bruno@clisp.org>
1247         Fix missing module dependencies to 'xalloc' (regression 2020-10-19).
1248         * modules/xvasprintf (Depends-on): Add xalloc.
1249         * modules/pipe-filter-gi (Depends-on): Likewise.
1250         * modules/execute (Depends-on): Likewise, for w32spawn.h.
1251         * modules/spawn-pipe (Depends-on): Likewise.
1253 2020-11-22  Jose E. Marchesi  <jemarch@gnu.org>
1255         bootstrap: add option hooks
1256         * build-aux/bootstrap (bootstrap_print_option_usage_hook): Define.
1257         (bootstrap_option_hook): Likewise.
1258         (usage): Call bootstrap_print_option_usage_hook.
1260 2020-11-22  Bruno Haible  <bruno@clisp.org>
1262         argp: Don't break getprogname on non-glibc systems.
1263         * m4/argp.m4 (gl_ARGP): Don't expect <argp.h> to exist when testing for
1264         program_invocation_name and program_invocation_short_name.
1266 2020-11-22  Bruno Haible  <bruno@clisp.org>
1268         doc: Document <link.h>.
1269         * doc/glibc-headers/link.texi: New file.
1270         * doc/gnulib.texi: Include it.
1272 2020-11-22  Bruno Haible  <bruno@clisp.org>
1274         doc: Add references to the LSB.
1275         * doc/glibc-functions/*.texi: Add references to LSB 5.0.
1276         * doc/posix-functions/*.texi: Likewise.
1278 2020-11-22  Bruno Haible  <bruno@clisp.org>
1280         doc: Fix a makeinfo warning (regression 2020-11-03).
1281         * doc/posix-functions/aligned_alloc.texi: Add missing @item.
1283 2020-11-21  Paul Eggert  <eggert@cs.ucla.edu>
1285         parse-datetime: fix printf format typo
1286         * lib/parse-datetime.y (parse_datetime2): Fix format typo in
1287         previous patch to this file.  Problem reported by Chris Elvidge in
1288         <https://bugs.gnu.org/44763#32>.
1290         setlocale-null-tests: work around GCC bug 44511
1291         * tests/test-setlocale_null-mt-all.c:
1292         * tests/test-setlocale_null-mt-one.c:
1293         Ignore -Wreturn-type, to work around GCC bug 44511.
1295         nl_langinfo-tests: work around GCC bug 44511
1296         * tests/test-nl_langinfo-mt.c: Ignore -Wreturn-type, to work
1297         around a GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44511>.
1298         Problem reported for GNU grep by Andreas Schwab
1299         <https://bugs.gnu.org/44535>.
1301         selinux-h: add stubs for selabel_open etc.
1302         Coreutils with --enable-gcc-warnings does not build on Ubuntu 20.10
1303         because matchpathcon is deprecated in favor of selabel_open etc.,
1304         so this patch adds stubs for these functions.
1305         * lib/se-label.c, lib/se-label.in.h, m4/selinux-label-h.m4: New files.
1306         * lib/se-selinux.in.h (struct selinux_opt): Add incomplete decl,
1307         as it is needed for selabel_open and selinux/selinux.h declares
1308         this type here.
1309         * modules/selinux-h (Files): Add the new files.
1310         (configure.ac): Add gl_HEADERS_SELINUX_LABEL_H.
1311         (lib_SOURCES): Add se-label.in.h, se-label.c.
1312         (BUILT_SOURCES): Add $(SELINUX_LABEL_H).
1313         (selinux/label.h): New rule, mimicking selinux/context.h.
1314         (MOSTLYCLEANFILES): Add selinux/label.h, selinux/label.h-t.
1315         (Include): Add selinux/label.h.
1317 2020-11-21  Bruno Haible  <bruno@clisp.org>
1319         Update after 'test-driver' in Automake changed.
1320         * build-aux/test-driver.diff: Rebase.
1322 2020-11-21  Daiki Ueno  <ueno@gnu.org>
1324         read-file: remove dead assignment
1325         * lib/read-file.c (fread_file): Remove dead assignment when
1326         RF_SENSITIVE is set, flagged by clang-analyzer.
1328 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1330         bitset: tests: exercise the stats too
1332         * tests/test-bitset.c: Display the stats at the end of the test.
1333         * lib/bitset/stats.c (bitset_log_histogram_print): When diplaying the
1334         last bin, display "256-..." rather that "256-511", since the last bin
1335         does count item greater than or equal to 256.
1337 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1339         bitset: tests: try harder to break it
1340         * tests/test-bitset.c (compare): Be ready to use bitsets larger than
1341         BITSET_LIST_SIZE.
1342         (main): Likewise.
1343         While at it, also exercise super small bitsets.
1345 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1347         bitset: use ffs where possible in the vector implementation
1348         * lib/bitset/vector.c (vbitset_list): Use BITSET_FOR_EACH_BIT.
1350 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1352         bitset: use ffs where possible in the table implementation
1353         * lib/bitset/table.c (tbitset_list): Use BITSET_FOR_EACH_BIT.
1355 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1357         bitset: check empty and full bitsets
1358         * tests/test-bitset.c (check_zero, check_ones): New.
1359         (check_attributes): Use them.
1361 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1363         bitset: be sure to always return a value
1364         * lib/bitset/array.c (abitset_small_list): Always update *next and
1365         return a value.
1367 2020-11-19  Siddhesh Poyarekar  <siddhesh@gotplt.org>
1369         vcs-to-changelog: Expect spaces in file names
1370         Reported by Thierry Bothorel <thierry.bothorel@zaclys.net> in
1371         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00040.html>,
1372         * build-aux/vcstocl/vcs_git.py (exec_git_cmd): Do not transform
1373         tabs to spaces.
1374         (list_changes): Use tabs to identify file names.
1376 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1378         bitset: strengthen tests
1379         * tests/test-bitset.c (compare): Also check count.
1380         Deal only with random values, move the one-bit tests to...
1381         (check_one_bit): this new function.
1382         (check_attributes): Call it.
1384 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1386         bitset: fix iteration over table bitsets
1387         * lib/bitset/table.c (tbitset_list): Update bitno when windex is.
1389 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1391         bitset: rename internal details for consistency
1392         * lib/bitset/table.c: Rename all the EBITSET_ symbols as TBITSET_.
1394 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1396         bitset: test: run deterministic tests on several bitset sizes
1397         * tests/test-bitset.c (check_attributes): Run it with small and large
1398         sizes.
1400 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1402         bitset: use ffs where possible in the list implementation
1403         * lib/bitset/list.c (lbitset_list): Use BITSET_FOR_EACH_BIT.
1405 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1407         bitset: use ffs where possible in array implementation
1408         * lib/bitset/array.c (abitset_small_list): Use BITSET_FOR_EACH_BIT.
1410 2020-11-17  Bruno Haible  <bruno@clisp.org>
1412         posixcheck: Don't enable GNULIB_POSIXCHECK in C++ mode.
1413         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
1414         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
1415         * m4/posixcheck.m4 (gl_POSIXCHECK): Don't define GNULIB_POSIXCHECK in
1416         C++ mode.
1418 2020-11-17  Bruno Haible  <bruno@clisp.org>
1420         Fix error when GNULIB_POSIXCHECK is enabled (regression 2019-06-04).
1421         * lib/unistd.in.h (copy_file_range): Don't assume that copy_file_range
1422         is always declared.
1423         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether copy_file_range is
1424         declared.
1426 2020-11-17  Bruno Haible  <bruno@clisp.org>
1428         Fix link errors on AIX.
1429         * modules/clean-temp (Link): Link with $(LIBTHREAD).
1430         * modules/getumask (Link): Link with $(LIBTHREAD).
1431         * modules/getumask-tests (Makefile.am): Link test-getumask with
1432         $(LIBTHREAD).
1433         * modules/supersede (Link): Link with $(LIBTHREAD).
1434         * modules/supersede-tests (Makefile.am): Link test-supersede with
1435         $(LIBTHREAD).
1436         * modules/fatal-signal (Link): New section.
1437         * modules/execute (Link): New section.
1438         * modules/csharpexec (Link): Link with $(LIBTHREAD).
1439         * modules/javaexec (Link): Link with $(LIBTHREAD).
1440         * modules/spawn-pipe (Link): New section.
1441         * modules/spawn-pipe-tests (Makefile.am): Link test-spawn-pipe-main with
1442         $(LIBTHREAD).
1443         * modules/csharpcomp (Link): Link with $(LIBTHREAD).
1444         * modules/javacomp (Link): Link with $(LIBTHREAD).
1445         * modules/javaversion (Link): Link with $(LIBTHREAD).
1446         * modules/pipe-filter-gi (Link): New section.
1447         * modules/pipe-filter-gi-tests (Makefile.am): Link test-pipe-filter-gi1,
1448         test-pipe-filter-gi2-main with $(LIBTHREAD).
1449         * modules/pipe-filter-ii (Link): New section.
1450         * modules/pipe-filter-ii-tests (Makefile.am): Link test-pipe-filter-ii1,
1451         test-pipe-filter-ii2-main with $(LIBTHREAD).
1452         * modules/term-style-control (Link): New section.
1453         * modules/term-style-control-tests (Makefile.am): Link
1454         test-term-style-control-hello, test-term-style-control-yes with
1455         $(LIBTHREAD).
1456         * modules/wait-process (Link): New section.
1457         * modules/nonblocking-pipe-tests (Makefile.am): Link
1458         test-nonblocking-pipe-main with $(LIBTHREAD).
1459         * modules/nonblocking-socket-tests (Makefile.am): Link
1460         test-nonblocking-socket-main with $(LIBTHREAD).
1462 2020-11-16  Bruno Haible  <bruno@clisp.org>
1464         Fix link errors on platforms with libunistring.
1465         * modules/c32isalnum (Link): New section.
1466         * modules/c32isalnum-tests (Makefile.am): Link test-c32isalnum with
1467         $(LIBUNISTRING).
1468         * modules/c32isalpha (Link): New section.
1469         * modules/c32isalpha-tests (Makefile.am): Link test-c32isalpha with
1470         $(LIBUNISTRING).
1471         * modules/c32isblank (Link): New section.
1472         * modules/c32isblank-tests (Makefile.am): Link test-c32isblank with
1473         $(LIBUNISTRING).
1474         * modules/c32iscntrl (Link): New section.
1475         * modules/c32iscntrl-tests (Makefile.am): Link test-c32iscntrl with
1476         $(LIBUNISTRING).
1477         * modules/c32isdigit (Link): New section.
1478         * modules/c32isdigit-tests (Makefile.am): Link test-c32isdigit with
1479         $(LIBUNISTRING).
1480         * modules/c32isgraph (Link): New section.
1481         * modules/c32isgraph-tests (Makefile.am): Link test-c32isgraph with
1482         $(LIBUNISTRING).
1483         * modules/c32islower (Link): New section.
1484         * modules/c32islower-tests (Makefile.am): Link test-c32islower with
1485         $(LIBUNISTRING).
1486         * modules/c32isprint (Link): New section.
1487         * modules/c32isprint-tests (Makefile.am): Link test-c32isprint with
1488         $(LIBUNISTRING).
1489         * modules/c32ispunct (Link): New section.
1490         * modules/c32ispunct-tests (Makefile.am): Link test-c32ispunct with
1491         $(LIBUNISTRING).
1492         * modules/c32isspace (Link): New section.
1493         * modules/c32isspace-tests (Makefile.am): Link test-c32isspace with
1494         $(LIBUNISTRING).
1495         * modules/c32isupper (Link): New section.
1496         * modules/c32isupper-tests (Makefile.am): Link test-c32isupper with
1497         $(LIBUNISTRING).
1498         * modules/c32isxdigit (Link): New section.
1499         * modules/c32isxdigit-tests (Makefile.am): Link test-c32isxdigit with
1500         $(LIBUNISTRING).
1501         * modules/unicodeio (Link): Mention $(LIBUNISTRING).
1502         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
1503         $(LIBUNISTRING).
1505 2020-11-16  Bruno Haible  <bruno@clisp.org>
1507         Fix link errors on platforms with libintl (e.g. Solaris and AIX).
1508         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
1509         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
1510         * modules/getumask-tests (Makefile.am): Link test-getumask with
1511         $(LIBINTL).
1512         * modules/stack-tests (Makefile.am): Link test-stack with $(LIBINTL).
1513         * modules/supersede-tests (Makefile.am): Link test-supersede with
1514         $(LIBINTL).
1515         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
1516         $(LIBINTL).
1518 2020-11-16  Bruno Haible  <bruno@clisp.org>
1520         getumask: Document link dependencies.
1521         * modules/getumask (Link): New section.
1523 2020-11-16  Bruno Haible  <bruno@clisp.org>
1525         Update link dependencies in modules after 2020-09-09 change.
1526         * modules/tempname (Link): Add $(LIB_CLOCK_GETTIME).
1527         * modules/mkdtemp (Link): Likewise.
1528         * modules/mkostemp (Link): Likewise.
1529         * modules/mkostemps (Link): Likewise.
1530         * modules/mkstemp (Link): Likewise.
1531         * modules/mkstemps (Link): Likewise.
1532         * modules/supersede (Link): Likewise.
1533         * modules/tmpfile (Link): Likewise.
1534         * modules/tmpfile-safer (Link): Likewise.
1536 2020-11-15  Paul Eggert  <eggert@cs.ucla.edu>
1538         getumask-tests: port to Solaris 10 etc.
1539         Problem reported by Tom Christensen in:
1540         https://lists.gnu.org/r/bug-gnulib/2020-11/msg00062.html
1541         * modules/getumask-tests (test_getumask_LDADD):
1542         Add $(LIB_CLOCK_GETTIME).
1544 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1546         bitset: use ffsl to accelerate iterations over set bits
1547         Suggested by Bruno Haible.
1548         * modules/bitset: Depend upon ffsl.
1549         * lib/bitset/base.h (bitset_ffs, BITSET_FOR_EACH_BIT): New.
1550         * lib/bitset/array.c (abitset_list): Use BITSET_FOR_EACH_BIT.
1552 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1554         bitset: more tests
1555         * tests/test-bitset.c (compare): Make it clear that the random values
1556         should not be modified.
1557         Check bitset_first, bitset_last and BITSET_FOR_EACH.
1559 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1561         bitset: fix the copy from lbitset to other types
1562         * lib/bitset/list.c (lbitset_copy): Rename as...
1563         (lbitset_copy_): this.
1564         (lbitset_copy): New.
1565         Dispatch to heterogeneous/homogeneous copy.
1567 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1569         bitset: making debug traces more useful
1570         * lib/bitset.c (bitset_print): Print the bitset type in verbose mode.
1572         bitset: comment changes
1573         * lib/bitset.c: Move some documenting comments to...
1574         * lib/bitset.h: here.
1575         * lib/bitset/array.c: Fix some comments.
1577 2020-11-14  Paul Eggert  <eggert@cs.ucla.edu>
1579         careadlinkat: warn better about GCC bug 93644
1580         * lib/careadlinkat.c (readlink_stk): When --enable-gcc-warnings is
1581         not in effect, use "#warning" to let builders know more clearly
1582         about GCC bug 93644, because the bug triggers even if no -W option
1583         is given to GCC.
1585 2020-11-13  Jim Meyering  <meyering@fb.com>
1587         hard-locale-tests: avoid a -Wstrict-prototypes warning
1588         * tests/locale.c (main): Placate gcc's -Wstrict-prototypes by
1589         changing "main ()" to "main (void)". This was the only case that
1590         triggered a warning when building grep with --enable-gcc-warnings.
1592 2020-11-11  Paul Eggert  <eggert@cs.ucla.edu>
1594         time_rz: simplify CVE-2017-7476 fix
1595         * lib/time_rz.c: Do not include limits.h; I think it was included
1596         under the mistaken impression that limits.h defines SIZE_MAX.
1597         (SIZE_MAX): Remove.
1598         (save_abbr): Put string length into a ptrdiff_t variable,
1599         so that the size comparison works naturally.  This
1600         fixes CVE-2017-7476 in a cleaner way.
1602         parse-datetime: streamline overflow checking
1603         When parse-datetime.y’s overflow code was written, INT_ADD_WRAPV
1604         did not work for unsigned destinations, and since time_t might
1605         be unsigned that meant it did not work for time_t destinations.
1606         This limitation of INT_ADD_WRAPV has been fixed, so we can
1607         now streamline parse-datetime.y a bit.
1608         * lib/parse-datetime.y: Do not include limits.h, as LONG_MAX
1609         has not been used for a while.
1610         (yylex, parse_datetime2): Assume C99 declarations after statements.
1611         (yyles): Use INT_SUBTRACT_WRAPV instead of an explicit comparison
1612         to TYPE_MINIMUM.
1613         (parse_datetime2): No need for time_overflow now that
1614         INT_ADD_WRAPV works for unsigned results.
1616         parse-datetime-tests: port to Alpine Linux 3.12.1
1617         * tests/test-parse-datetime.c: Include errno.h for errno,
1618         and unistd.h for _SC_TZNAME_MAX and sysconf.
1619         (main): In the outlandishly-long time zone abbreviation test,
1620         do not exceed TZNAME_MAX as this has undefined behavior,
1621         and on Alpine Linux 3.12.1 it makes the test fail.
1623 2020-11-09  Pádraig Brady  <P@draigBrady.com>
1625         mgetgroups: avoid warning with clang
1626         * lib/mgetgroups.c: Xcode-12.1 identifies as GCC 4.2.1,
1627         so disable -Wpointer-sign for all clang versions.
1629 2020-11-07  Bruno Haible  <bruno@clisp.org>
1631         gnulib-tool: Fix link error with 'version-etc' (regression 2020-05-29).
1632         Reported by Simon Josefsson in
1633         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00032.html>.
1634         * gnulib-tool (func_emit_tests_Makefile_am): Add libtests.a to
1635         LDADD a third time, after the second occurrence of ../lib/libgnu.a.
1636         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
1638 2020-11-04  Paul Eggert  <eggert@cs.ucla.edu>
1640         tests: pacify Sun C 5.9
1641         Without these changes, Sun C 5.9 (2009/11/22) issues complaints like
1642         “"test-nl_langinfo-mt.c", line 75: warning: statement not reached”.
1643         * tests/test-nl_langinfo-mt.c (thread1_func, thread2_func)
1644         (thread3_func, thread4_func, thread5_func, thread6_func, threadN_func):
1645         * tests/test-setlocale_null-mt-all.c (thread1_func, thread2_func):
1646         * tests/test-setlocale_null-mt-one.c (thread1_func, thread2_func):
1647         Remove unreachable ‘return NULL;’s.
1649         tests: port better to XLC 12.01
1650         * tests/test-argmatch.c (CHECK): Do not use -1 as a subscript,
1651         even in code that is not executed, as IBM XLC 12.01 complains "The
1652         subscript -1 is less than zero."
1653         * tests/test-stdint.c (verify_width): Pass an (unused) 3rd
1654         argument to _GL_VERIFY, as ISO C requires.  Otherwise, IBM XLC
1655         12.01 complains "The invocation of macro _GL_VERIFY contains fewer
1656         arguments than are required by the macro definition."
1658 2020-11-03  Bruno Haible  <bruno@clisp.org>
1660         aligned-malloc: Use fixes from the new modules.
1661         * modules/aligned-malloc (Depends-on): Add posix_memalign,
1662         aligned_alloc, memalign.
1663         (configure.ac): Use AC_CHECK_FUNCS_ONCE.
1665 2020-11-03  Bruno Haible  <bruno@clisp.org>
1667         aligned_alloc: Add tests.
1668         * tests/test-aligned_alloc.c: New file.
1669         * modules/aligned_alloc-tests: New file.
1671         aligned_alloc: New module.
1672         * lib/stdlib.in.h (aligned_alloc): New declaration.
1673         * lib/aligned_alloc.c: New file.
1674         * m4/aligned_alloc.m4: New file.
1675         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether aligned_alloc is declared.
1676         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ALIGNED_ALLOC,
1677         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
1678         * modules/stdlib (Makefile.am): Substitute GNULIB_ALIGNED_ALLOC,
1679         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
1680         * modules/aligned_alloc: New file.
1681         * tests/test-stdlib-c++.cc (aligned_alloc): Check signature.
1682         * doc/posix-functions/aligned_alloc.texi: Mention the new module and the
1683         AIX bug.
1685 2020-11-03  Bruno Haible  <bruno@clisp.org>
1687         posix_memalign: Add tests.
1688         * tests/test-posix_memalign.c: New file.
1689         * modules/posix_memalign-tests: New file.
1691         posix_memalign: New module.
1692         * lib/stdlib.in.h (posix_memalign): New declaration.
1693         * lib/posix_memalign.c: New file.
1694         * m4/posix_memalign.m4: New file.
1695         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether posix_memalign is declared.
1696         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_POSIX_MEMALIGN,
1697         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
1698         * modules/stdlib (Makefile.am): Substitute GNULIB_POSIX_MEMALIGN,
1699         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
1700         * modules/posix_memalign: New file.
1701         * tests/test-stdlib-c++.cc (posix_memalign): Check signature.
1702         * doc/posix-functions/posix_memalign.texi: Mention the new module and
1703         the OpenBSD bug.
1705 2020-11-03  Bruno Haible  <bruno@clisp.org>
1707         memalign: Add tests.
1708         * tests/test-memalign.c: New file.
1709         * modules/memalign-tests: New file.
1711         memalign: New module.
1712         * modules/memalign: New file.
1713         * doc/glibc-functions/memalign.texi: Mention the new module.
1715 2020-11-03  Bruno Haible  <bruno@clisp.org>
1717         verify tests: Fix crash with GCC (regression 2020-11-02).
1718         * tests/test-verify.c (main): Fix initializer of s.
1720 2020-11-03  Pádraig Brady  <P@draigBrady.com>
1722         mountlist: recognize more file system types as remote
1724         * lib/mountlist.c (ME_REMOTE): Sync previously unconsidered
1725         "remote" file systems from stat.c in coreutils.
1727 2020-11-02  Bernhard Voelker  <mail@bernhard-voelker.de>
1729         verify tests: Fix -Wuninitialized warning (regression 2020-10-30).
1730         * tests/test-verify.c (main): Initialize state variable.
1731         Reported by Bruno Haible for GCC 5.4.0.
1733 2020-11-02  Paul Eggert  <eggert@cs.ucla.edu>
1735         dfa.h: support inclusion from C++
1736         * lib/dfa.h: Allow multiple inclusion, and inclusion from
1737         C++ code.  The latter was suggested by Arnold Robbins.
1739 2020-11-01  Bruno Haible  <bruno@clisp.org>
1741         ssfmalloc tests: Portability to Linux/PowerPC and Linux/SPARC.
1742         * tests/test-ssfmalloc.c: Include <limits.h>.
1743         (PAGESIZE_MAX): Set to 65536 on Linux/PowerPC.
1745 2020-11-01  Bruno Haible  <bruno@clisp.org>
1747         verify tests: Fix compilation error with MSVC (regression 2020-10-30).
1748         * tests/test-verify.c (test_assume_noreturn): Fix declaration.
1750 2020-11-01  Jim Meyering  <meyering@fb.com>
1752         dfa-tests: test for today's invalid-merge fix
1753         * tests/test-dfa-invalid-merge.sh: New file.
1754         * modules/dfa-tests (Files): Add it.
1755         (TESTS): Add it.
1757 2020-11-01  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1759         dfa: retain sequences of similar nodes in optimization
1760         DFA was merging similar nodes when it should not.  For example,
1761         it would convert a+a+a to a+a.  Now, a sequence of similar nodes
1762         is not merged.  Problem reported by Gonzalo Padrino in
1763         https://bugs.gnu.org/44351
1764         * lib/dfa.c (merge_nfa_state): Skip the follow for repetition in
1765         optimization.
1767 2020-11-01  Jim Meyering  <meyering@fb.com>
1769         test-dfa-match-aux.c: accept EREs, not BREs
1770         * tests/test-dfa-match-aux.c (main): Specify RE_SYNTAX_EGREP, not
1771         RE_SYNTAX_GREP, so tests can use ERE syntax rather than BRE.
1773 2020-10-30  Bernhard Voelker  <mail@bernhard-voelker.de>
1775         verify tests: avoid -Wmissing-declarations warnings
1776         * tests/test-verify.c (test_assume_expressions): Add declaration.
1777         (test_assume_optimization): Likewise.
1778         (test_assume_noreturn): Likewise.
1779         (main): Move down after all other definitions.  While at it, also
1780         call test_assume_expressions and test_assume_optimization as a
1781         runtime check.
1783 2020-10-26  Paul Eggert  <eggert@cs.ucla.edu>
1785         sys_stat: update comments for S_IRWXUGO, S_IXUGO
1786         * lib/sys_stat.in.h (S_IXUGO, S_IRWXUGO): Update comments.
1787         Perhaps these macros should be removed, as they’re not in either
1788         POSIX or GNU.  They could be moved to stat-macros.h, which would
1789         be cleaner in some sense.
1791 2020-10-25  Bruno Haible  <bruno@clisp.org>
1793         ssfmalloc tests: Small tweaks.
1794         * tests/test-ssfmalloc.c: Add comments.
1795         (alloc_pages): Don't require PROT_EXEC bits.
1796         (block_sizes): Add more small sizes, for better coverage of
1797         ssfmalloc-bitmap.h.
1799         ssfmalloc tests: Portability to Minix.
1800         * modules/ssfmalloc-tests (Files): Add m4/mmap-anon.m4.
1801         (configure.ac): Invoke gl_FUNC_MMAP_ANON.
1802         * m4/mmap-anon.m4: Update comment.
1804         ssfmalloc: Portability to AIX.
1805         * modules/ssfmalloc (Include): Add ssfmalloc.h.
1806         (Link): New section.
1807         * modules/ssfmalloc-tests (Makefile.am): Link test-ssfmalloc with
1808         $(LIBTHREAD).
1810         ssfmalloc: Portability to Cygwin.
1811         * lib/ssfmalloc.h: Add parameter PAGESIZE_MAX.
1812         (pg_offset_t): Define depending on PAGESIZE_MAX.
1813         * tests/test-ssfmalloc.c: Undefine PAGESIZE.
1814         (PAGESIZE_MAX): New macro.
1816         ssfmalloc: Fix buffer overrun in bitmap search.
1817         * lib/ssfmalloc-bitmap.h (find_first_packet_set): Don't access the
1818         word *words_end.
1820 2020-10-24  Paul Eggert  <eggert@cs.ucla.edu>
1822         doc: mention ‘restrict’ and C++
1823         * doc/gnulib-readme.texi (C99 features assumed): Document
1824         that ‘restrict’ should be avoided in C++ code.
1826 2020-10-20  Bernhard Voelker  <mail@bernhard-voelker.de>
1828         selinux-at, selinux-h: port to SELinux 3.1
1829         The new release finally deprecated the typedef 'security_context_t',
1830         see <https://github.com/SELinuxProject/selinux/commit/7a124ca275>.
1831         Use the simpler 'char *' instead.
1832         * lib/getfilecon.c (getfilecon): Adjust type of context parameter.
1833         (lgetfilecon): Likewise.
1834         (fgetfilecon): Likewise.
1835         (map_to_failure): Likewise.
1836         (rpl_getfilecon): Likewise.
1837         (rpl_lgetfilecon): Likewise.
1838         (rpl_fgetfilecon): Likewise.
1839         * lib/se-selinux.in.h (security_context_t): Remove typedef.
1840         (getcon): Adjust type of context parameter.
1841         (freecon): Likewise.
1842         (getfscreatecon): Likewise.
1843         (setfscreatecon): Likewise.
1844         (matchpathcon): Likewise.
1845         (getfilecon): Likewise.
1846         (lgetfilecon): Likewise.
1847         (fgetfilecon): Likewise.
1848         (setfilecon): Likewise.
1849         (lsetfilecon): Likewise.
1850         (fsetfilecon): Likewise.
1851         (security_check_context): Likewise.
1852         (security_check_context_raw): Likewise.
1853         (setexeccon): Likewise.
1854         (security_compute_create): Likewise.
1855         * lib/selinux-at.c (getfileconat): Likewise.
1856         (lgetfileconat): Likewise.
1857         (setfileconat): Likewise.
1858         (lsetfileconat): Likewise.
1859         * lib/selinux-at.h: Likewise.
1861 2020-10-19  Bruno Haible  <bruno@clisp.org>
1863         xalloc-die: Fix link error with Solaris cc (regression 2020-07-27).
1864         * lib/xalloc.h (xalloc_die): Don't declare if GNULIB_XALLOC_DIE is 0.
1865         (xmalloc, xzalloc, xcalloc, xrealloc, x2realloc, xmemdup, xstrdup,
1866         XMALLOC, XNMALLOC, XZALLOC, XCALLOC, xnmalloc, xnrealloc, x2nrealloc,
1867         xcharalloc): Don't declare/define if GNULIB_XALLOC is 0.
1868         * modules/xalloc (configure.ac): Define GNULIB_XALLOC.
1869         * modules/xalloc-die (configure.ac): Define GNULIB_XALLOC_DIE.
1871 2020-10-18  Bruno Haible  <bruno@clisp.org>
1873         ssfmalloc: Add tests.
1874         * tests/test-ssfmalloc.c: New file.
1875         * modules/ssfmalloc-tests: New file.
1877         ssfmalloc: New module.
1878         * lib/ssfmalloc.h: New file.
1879         * lib/ssfmalloc-bitmap.h: New file.
1880         * modules/ssfmalloc: New file.
1882 2020-10-18  Bruno Haible  <bruno@clisp.org>
1884         wchar: Fix configure test result on some versions of AIX.
1885         Reported by Clément Chigot <clement.chigot@atos.net> in
1886         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00115.html>.
1887         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Execute the test only on glibc
1888         systems.
1890 2020-10-18  Bruno Haible  <bruno@clisp.org>
1892         time: Fix warning about asctime when asctime is not used.
1893         * lib/time.in.h (asctime_r, ctime, ctime_r): Fix _GL_WARN_ON_USE
1894         invocation.
1896 2020-10-18  Bruno Haible  <bruno@clisp.org>
1898         *-list, *-oset, *-omap: Avoid a GCC warning (regression 2020-10-10).
1899         * lib/gl_anylinked_list2.h (gl_linked_iterator_free): Remove
1900         '_GL_ATTRIBUTE_CONST'.
1901         * lib/gl_anytree_list2.h (gl_tree_iterator_free): Likewise.
1902         * lib/gl_anytree_omap.h (gl_tree_iterator_free): Likewise.
1903         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
1904         * lib/gl_array_list.c (gl_array_iterator_free): Likewise.
1905         * lib/gl_array_omap.c (gl_array_iterator_free): Likewise.
1906         * lib/gl_array_oset.c (gl_array_iterator_free): Likewise.
1907         * lib/gl_carray_list.c (gl_carray_iterator_free): Likewise.
1909 2020-10-18  Bruno Haible  <bruno@clisp.org>
1911         obstack: Fix a clang warning.
1912         * lib/obstack.c (print_and_abort): Mark as __attribute_noreturn__.
1914 2020-10-16  Bruno Haible  <bruno@clisp.org>
1916         hash: Rename hash_delete to hash_remove.
1917         * lib/hash.h (hash_remove): Renamed from hash_delete.
1918         (hash_delete): New declaration.
1919         * lib/hash.c (hash_remove): Renamed from hash_delete.
1920         (hash_delete): New function.
1921         * tests/test-hash.c (main): Update.
1922         * lib/fts-cycle.c (leave_dir): Likewise.
1923         * NEWS: Mention the change.
1925 2020-10-16  Bruno Haible  <bruno@clisp.org>
1927         hash, xhash: Make usable from C++.
1928         * lib/hash.h: Add extern "C".
1930 2020-10-16  Bruno Haible  <bruno@clisp.org>
1932         hash, xhash: Move comments to the .h file.
1933         * lib/hash.c: Move comments meant for the user from here...
1934         * lib/xhash.c: ... and here...
1935         * lib/hash.h: ... to here.
1937 2020-10-13  Philipp Klaus Krause  <pkk@spth.de>  (tiny change)
1939         Don't declare an intention to modify the return value of strerror.
1940         * tests/test-perror2.c (main): Assign the return value of strerror to a
1941         'const char *' variable.
1943 2020-10-11  Bruno Haible  <bruno@clisp.org>
1945         *printf: Avoid "expanded before it was required" warning.
1946         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99): Define through
1947         AC_DEFUN_ONCE.
1949 2020-10-11  Benji Wiebe  <benjiwiebe14@gmail.com>
1951         getprogname: Add support for OpenServer 6 and UnixWare 7.
1952         * lib/getprogname.c: Include <fcntl.h>, <stdlib.h>, <string.h>.
1953         (getprogname): On OpenServer6 and UnixWare, read /proc/<pid>/cmdline.
1955 2020-10-11  Bruno Haible  <bruno@clisp.org>
1957         tests: Avoid a name clash on UnixWare.
1958         Reported by Tim Rice <tim@multitalents.net> in
1959         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00025.html>.
1960         * tests/nap.h (nap): Define as gl_nap on OpenServer and UnixWare.
1962 2020-10-11  Bruno Haible  <bruno@clisp.org>
1964         stdioext: Update comments regarding UnixWare.
1965         Reported by Tim Rice <tim@multitalents.net> in
1966         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
1967         * lib/fbufmode.c: Update comments.
1968         * lib/fflush.c: Likewise.
1969         * lib/fpending.c: Likewise.
1970         * lib/fpurge.c: Likewise.
1971         * lib/freadable.h: Likewise.
1972         * lib/freadable.c: Likewise.
1973         * lib/freadahead.c: Likewise.
1974         * lib/freading.h: Likewise.
1975         * lib/freading.c: Likewise.
1976         * lib/freadptr.c: Likewise.
1977         * lib/freadseek.c: Likewise.
1978         * lib/fseeko.c: Likewise.
1979         * lib/fseterr.c: Likewise.
1980         * lib/fwritable.h: Likewise.
1981         * lib/fwritable.c: Likewise.
1982         * lib/fwriting.h: Likewise.
1983         * lib/fwriting.c: Likewise.
1985 2020-10-11  Bruno Haible  <bruno@clisp.org>
1987         stdioext: Treat OpenServer 6 and UnixWare 7 like OpenServer 5.
1988         Reported by Tim Rice <tim@multitalents.net> in
1989         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
1990         Uses the info from
1991         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00028.html>.
1992         * lib/stdio-impl.h: Test also __SCO_VERSION__ and __sysv5__.
1994 2020-10-11  Bruno Haible  <bruno@clisp.org>
1996         stdioext: Avoid compilation errors on UnixWare 7.
1997         Reported by Tim Rice <tim@multitalents.net> in
1998         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00127.html>.
1999         * lib/fbufmode.c: Don't include <stdio_ext.h> if it does not exist.
2000         * lib/fpurge.c: Likewise.
2001         * lib/freadable.h: Likewise.
2002         * lib/freading.h: Likewise.
2003         * lib/fwritable.h: Likewise.
2004         * lib/fwriting.h: Likewise.
2005         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether <stdio_ext.h> exists.
2006         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
2007         * m4/freadable.m4 (gl_FUNC_FREADABLE): Likewise.
2008         * m4/freading.m4 (gl_FUNC_FREADING): Likewise.
2009         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Likewise.
2010         * m4/fwriting.m4 (gl_FUNC_FWRITING): Likewise.
2012 2020-10-11  Bruno Haible  <bruno@clisp.org>
2014         stdioext: Update comments regarding Cygwin.
2015         * lib/fpending.c: Update comments.
2016         * lib/fpurge.c: Likewise.
2017         * lib/freadable.h: Likewise.
2018         * lib/freadable.c: Likewise.
2019         * lib/freading.h: Likewise.
2020         * lib/freading.c: Likewise.
2021         * lib/fwritable.h: Likewise.
2022         * lib/fwritable.c: Likewise.
2023         * lib/fwriting.h: Likewise.
2024         * lib/fwriting.c: Likewise.
2026 2020-10-11  KO Myung-Hun  <komh78@gmail.com>
2028         Fix "warning: implicit declaration of function 'pthread_sigmask'".
2029         * lib/signal.in.h [__KLIBC__]: Include <pthread.h>.
2030         * lib/sys_select.in.h [__KLIBC__]: Do not include <signal.h>.
2032 2020-10-10  Bruno Haible  <bruno@clisp.org>
2034         *-list, *-oset, *-omap: Avoid possible compiler warnings.
2035         Reported by Marc Nieper-Wißkirchen in
2036         <https://lists.gnu.org/r/bug-gnulib/2020-10/msg00025.html>.
2037         * lib/gl_anylinked_list2.h (gl_linked_iterator,
2038         gl_linked_iterator_from_to): Mark as 'pure'.
2039         (gl_linked_iterator_free): Mark as 'const'.
2040         * lib/gl_anytree_list2.h (gl_tree_size, gl_tree_node_value,
2041         gl_tree_search_from_to, gl_tree_indexof_from_to, gl_tree_iterator,
2042         gl_tree_iterator_from_to, gl_tree_sortedlist_search,
2043         gl_tree_sortedlist_search_from_to, gl_tree_sortedlist_indexof,
2044         gl_tree_sortedlist_indexof_from_to): Mark as 'pure'.
2045         (gl_tree_iterator_free): Mark as 'const'.
2046         * lib/gl_anytree_omap.h (gl_tree_size, gl_tree_iterator): Mark as
2047         'pure'.
2048         (gl_tree_iterator_free): Mark as 'const'.
2049         * lib/gl_anytree_oset.h (gl_tree_size, gl_tree_next_node,
2050         gl_tree_prev_node, gl_tree_iterator): Mark as 'pure'.
2051         (gl_tree_iterator_free): Mark as 'const'.
2052         * lib/gl_anytreehash_list1.h (node_position, compare_by_position,
2053         compare_position_threshold): Mark as 'pure'.
2054         * lib/gl_array_list.c (gl_array_size, gl_array_indexof_from_to,
2055         gl_array_search_from_to, gl_array_iterator, gl_array_iterator_from_to,
2056         gl_array_sortedlist_indexof_from_to, gl_array_sortedlist_indexof,
2057         gl_array_sortedlist_search_from_to, gl_array_sortedlist_search): Mark as
2058         'pure'.
2059         (gl_array_iterator_free): Mark as 'const'.
2060         * lib/gl_array_omap.c (gl_array_size, gl_array_indexof, gl_array_search,
2061         gl_array_search_atleast, gl_array_iterator): Mark as 'pure'.
2062         (gl_array_iterator_free): Mark as 'const'.
2063         * lib/gl_array_oset.c (gl_array_size, gl_array_indexof, gl_array_search,
2064         gl_array_indexof_atleast, gl_array_search_atleast, gl_array_iterator,
2065         gl_array_iterator_atleast): Mark as 'pure'.
2066         (gl_array_iterator_free): Mark as 'const'.
2067         * lib/gl_carray_list.c (gl_carray_size, gl_carray_node_value,
2068         gl_carray_next_node, gl_carray_previous_node, gl_carray_get_at,
2069         gl_carray_indexof_from_to, gl_carray_search_from_to, gl_carray_iterator,
2070         gl_carray_iterator_from_to, gl_carray_sortedlist_indexof_from_to,
2071         gl_carray_sortedlist_indexof, gl_carray_sortedlist_search_from_to,
2072         gl_carray_sortedlist_search): Mark as 'pure'.
2073         (gl_carray_iterator_free): Mark as 'const'.
2075 2020-10-10  Bruno Haible  <bruno@clisp.org>
2077         rbtree-list: Avoid possible compiler warnings.
2078         This mirrors the change of avltree-list on 2014-09-16.
2079         * lib/gl_rbtree_list.c (gl_rbtree_list_check_invariants): Add extern
2080         declaration. Add cast to void for ignored value of check_invariants.
2082 2020-10-10  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
2084         stack: New module.
2085         * MODULES.html.sh: Add entry for the stack module.
2086         * modules/stack: New file.
2087         * modules/stack-tests: New file.
2088         * lib/stack.h: New file.
2089         * tests/test-stack.c: New file.
2091 2020-10-10  Paul Eggert  <eggert@cs.ucla.edu>
2093         attribute: improve const, pure doc
2094         Problem reported by Marc Nieper-Wißkirchen in:
2095         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00035.html
2096         * lib/attribute.h (ATTRIBUTE_CONST, ATTRIBUTE_PURE): Improv doc.  See:
2097         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51971#c1
2099 2020-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2101         thread: pacify GCC on Solaris 10
2102         Problem reported by Kiyoshi KANAZAWA for grep (Bug#43666#29).
2103         * lib/glthread/thread.h (gl_thread_self): Use ‘(pthread_t) 0’
2104         instead of ‘(pthread_t) NULL’, to pacify GCC on Solaris 10
2105         where pthread_t is unsigned int.
2107 2020-10-04  Paul Eggert  <eggert@cs.ucla.edu>
2109         c-stack: avoid AS_IF
2110         Problem reported by Bruno Haible in:
2111         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00018.html
2112         * m4/c-stack.m4 (gl_PREREQ_C_STACK): No need for AS_IF.
2114         c-stack: pacify GCC 9.3.1 when using libsigsegv
2115         * lib/c-stack.c [USE_LIBSIGSEGV]: Disable --suggest-attribute=pure.
2117 2020-10-04  Bruno Haible  <bruno@clisp.org>
2119         localename: Fix a couple of "unused parameter" warnings.
2120         Reported by Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de> in
2121         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00014.html>.
2122         * lib/localename.c (gl_locale_name_thread_unsafe, gl_locale_name_thread,
2123         gl_locale_name_posix, gl_locale_name_environ): Add _GL_UNUSED in
2124         parameter list.
2126 2020-10-04  Bruno Haible  <bruno@clisp.org>
2128         vasnprintf: Don't use %n on modern, ISO C 99 compliant platforms.
2129         Suggested by Jeremie Courreges-Anglas <jca@wxcvbn.org> in
2130         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00010.html>.
2131         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Define
2132         HAVE_SNPRINTF_TRUNCATION_C99.
2133         * lib/vasnprintf.c (VASNPRINTF): Don't use %n if
2134         HAVE_SNPRINTF_RETVAL_C99 && HAVE_SNPRINTF_TRUNCATION_C99.
2136 2020-10-03  Paul Eggert  <eggert@cs.ucla.edu>
2138         c-stack: streamline Solaris configuration
2139         * lib/c-stack.c: Omit mention of HAVE_SIGALTSTACK, since
2140         the code is used only if a test for sigaltstack worked
2141         in some other way.
2142         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Do not require gl_LIBSIGSEGV;
2143         instead, execute gl_LIBSIGSEGV only if needed (because the XSI
2144         heuristic does not work).
2145         * modules/c-stack (Files): Add m4/libsigsegv.m4, since
2146         we no longer require the libsigsegv module.
2147         (Depends-on): Depend on havelib, not libsigsegv.
2149         c-stack: stop using SIGSTKSZ
2150         It’s been proposed to stop making SIGSTKSZ an integer constant:
2151         https://sourceware.org/pipermail/libc-alpha/2020-September/118028.html
2152         Also, using SIGSTKSZ in #if did not conform to current POSIX.
2153         Also, avoiding SIGSTKSZ makes the code simpler and easier to grok.
2154         * lib/c-stack.c (SIGSTKSZ): Remove.
2155         (alternate_signal_stack): Now a 64 KiB array, for simplicity.
2156         All uses changed.
2158         c-stack: fix libsigsegv typo
2159         Problem reported by Bruno Haible in:
2160         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00175.html
2161         * lib/c-stack.c (USE_LIBSIGSEGV): Fix typo that caused libsigsegv
2162         to be used only on Solaris (exactly where it is not needed!).
2164 2020-10-03  Thien-Thi Nguyen  <ttn@gnuvola.org>
2166         MODULES.html.sh: Fix typo.
2167         * MODULES.html.sh (Numeric conversion functions <stdlib.h>): Fix typo.
2169 2020-09-28  Paul Eggert  <eggert@cs.ucla.edu>
2171         version-etc: pacify Oracle Studio 12.6
2172         Without this patch, it complains: "version-etc.h", line 64:
2173         warning: token-less macro argument (E_TOKENLESS_MACRO)" when in
2174         pedantic mode.
2175         * lib/version-etc.h (version_etc): Port to C89 macro rules.
2177 2020-09-27  Bruno Haible  <bruno@clisp.org>
2179         Avoid "warning: The macro `AC_DECL_SYS_SIGLIST' is obsolete".
2180         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2181         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
2182         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check for sys_siglist
2183         ourselves; don't use AC_DECL_SYS_SIGLIST.
2185 2020-09-27  Bruno Haible  <bruno@clisp.org>
2187         Avoid "warning: The macro `_AC_COMPUTE_INT' is obsolete".
2188         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2189         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
2190         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Use AC_COMPUTE_INT
2191         instead of _AC_COMPUTE_INT.
2193 2020-09-27  Bruno Haible  <bruno@clisp.org>
2195         Avoid "warning: The macro `AC_HEADER_STDC' is obsolete".
2196         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2197         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
2198         Based on a patch by Paul Eggert.
2199         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Don't require AC_HEADER_STDC. Don't
2200         test STDC_HEADERS. Assume <stdlib.h> exists.
2201         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
2203 2020-09-27  Bruno Haible  <bruno@clisp.org>
2205         Enable testing of prereleases of Autoconf 2.70.
2206         Suggested by Paul Eggert in
2207         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00160.html>.
2208         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Test for Autoconf >= 2.69c, not
2209         >= 2.70.
2210         * m4/largefile.m4 (AC_SYS_LARGEFILE): Likewise.
2211         * m4/pid_t.m4 (AC_TYPE_PID_T): Likewise.
2212         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Likewise.
2214 2020-09-27  Bruno Haible  <bruno@clisp.org>
2216         Avoid "warning: The macro `AC_PROG_CC_STDC' is obsolete".
2217         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2218         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
2219         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use AC_PROG_CC_C99 or
2220         AC_PROG_CC, depending on the Autoconf version.
2222 2020-09-27  Gavin Smith  <gavinsmith0123@gmail.com>
2224         Avoid "warning: The macro `AC_HELP_STRING' is obsolete".
2225         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Use AS_HELP_STRING instead
2226         of AC_HELP_STRING.
2227         * m4/libgcrypt.m4 (AM_PATH_LIBGCRYPT): Likewise.
2229 2020-09-27  Bruno Haible  <bruno@clisp.org>
2231         Avoid "warning: $as_echo_n is obsolete" from autoconf 2.69c.
2232         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2233         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
2234         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): Use gl_SILENT.
2236 2020-09-27  Bruno Haible  <bruno@clisp.org>
2238         extensions: Simplify last commit.
2239         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't require
2240         AC_GNU_SOURCE ever.
2242 2020-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2244         extensions: require AC_GNU_SOURCE only for <=2.63
2245         Problem reported by Gavin Smith in:
2246         https://lists.gnu.org/r/autoconf/2020-09/msg00012.html
2247         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS):
2248         Require AC_GNU_SOURCE only for Autoconf 2.63 and earlier, since it
2249         shouldn’t be needed after that, and Autoconf 2.70 complains about
2250         it being obsolete.
2252 2020-09-26  Bruno Haible  <bruno@clisp.org>
2254         regex-tests: Make test more robust.
2255         * tests/test-regex.c (main): Make sure to revert the locale to "C" after
2256         the test in "tr_TR.UTF-8" locale. Exit if we can't revert it.
2258 2020-09-25  Paul Eggert  <eggert@cs.ucla.edu>
2260         regex-tests: fix possible Turkish false-alarm
2261         * modules/regex-tests (Depends-on): Add wctype-h.
2262         * tests/test-regex.c: Include wctype.h.
2263         (main): Check that ‘i’ uppercases to ‘İ’ in Turkish,
2264         as the Turkish regex test assumes this.
2266         regex-tests: fix test and add debug output
2267         Perhaps this will fix the recent grep test failure reported at:
2268         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/199
2269         At least, the debug output should help narrow down the failure.
2270         * tests/test-regex.c: Include stdarg.h, stdio.h.
2271         (exit_status): New var.
2272         (report_error): New function.
2273         (main): Use it to report failures to stdout instead of merely
2274         exiting with some nonzero status.  The status info alone isn’t
2275         enough to do remote debugging.  In the new tr_TR.UTF-8 test, clear
2276         regex before calling re_compile_pattern, fixing a portability bug.
2278         regex: no longer match glibc
2279         * config/srclist.txt: Comment out regex_internal.c for now.
2281 2020-09-23  Paul Eggert  <eggert@cs.ucla.edu>
2283         regex: fix ignore-case Turkish bug
2284         * lib/regex_internal.c (build_wcs_upper_buffer):
2285         Do not assume that converting single-byte character to upper
2286         yields a single-byte character.  This is not true for Turkish,
2287         where towupper (L'i') yields L'İ', which is not single-byte.
2288         * tests/test-regex.c (main): Test for this bug.
2290         regex: port to weird isascii platforms
2291         * lib/regex_internal.h (isascii) [!_LIBC]: Supply glibc version.
2293 2020-09-20  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2295         dfa: make dfasupported a global function
2296         * lib/dfa.c (dfasupported): Rename, and make it global.
2297         Update caller.
2298         * lib/dfa.h (dfasupported): Add prototype.
2300 2020-09-20  Bruno Haible  <bruno@clisp.org>
2302         canonicalize: Add support for UNC file names on native Windows.
2303         Reported and initial patch by Vaclav Slavik <vaclav@slavik.io> in
2304         <https://savannah.gnu.org/bugs/?59079>.
2305         * lib/canonicalize.c (canonicalize_filename_mode): For UNC file names,
2306         extend the prefix to include the server.
2308 2020-09-20  Bruno Haible  <bruno@clisp.org>
2310         supersede: Fix test failures on native Windows.
2311         * lib/supersede.c (open_supersede): Handle non-regular files on native
2312         Windows like on Solaris.
2313         * tests/test-supersede-open.h (test_open_supersede): Use O_BINARY flag.
2315 2020-09-20  Paul Eggert  <eggert@cs.ucla.edu>
2317         test-stdalign: test Oracle Studio better
2318         * doc/posix-headers/stdalign.texi (stdalign.h):
2319         * tests/test-stdalign.c (main):
2320         Sun Studio Bug #2125432 seems to be fixed.
2322         c-stack: output diagnostic in single 'write'
2323         * lib/c-stack.c (die): In the typical case, use just one 'write'
2324         syscall to output the diagnostic, as this lessens interleaving.
2325         (die, c_stack_action): Assume C99.
2326         * modules/c-stack (Depends-on): Add c99, mempcpy.
2328         c-stack: improve checking if !libsigsegv
2329         If SIGINFO_WORKS, do not treat a null pointer dereference as if it
2330         were a stack overflow.  Use uintptr_t and INT_ADD_WRAPV to avoid
2331         unlikely pointer overflow.  Also, fix some obsolete code and typos.
2332         I found these problems while looking into this bug report:
2333         https://lists.gnu.org/r/grep-devel/2020-09/msg00053.html
2334         * lib/c-stack.c: Include c-stack.h first, to test interface.
2335         Include inttypes.h for UINTPTR_MAX, stdbool.h, stddef.h for
2336         max_align_t, intprops.h for INT_ADD_WRAPV.
2337         (USE_LIBSIGSEGV): New macro; use it to simplify later code.
2338         (SIGSTKSZ): Simplify setup.  Work around libsigsegv bug only
2339         for libsigsegv 2.8 and earlier since the bug should be fixed
2340         after that.
2341         (alternate_signal_stack): Use max_align_t instead of doing it by hand.
2342         (segv_handler, overflow_handler, segv_handler) [DEBUG]:
2343         Assume sprintf returns byte count; this assumption is safe now.
2344         (page_size): New static volatile variable, since sysconf isn’t
2345         documented to be async-signal-safe on Solaris.  This variable is
2346         present and used if (!USE_LIBSIGSEGV && HAVE_SIGALTSTACK &&
2347         HAVE_DECL_SIGALTSTACK && HAVE_STACK_OVERFLOW_HANDLING &&
2348         SIGINFO_WORKS).
2349         (segv_handler): Use it if present.  Never report null pointer
2350         dereference as a stack overflow.  Check for (unlikely) unsigned
2351         and/or pointer overflow.
2352         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
2353         Rename cache variables to gl_cv_sys_stack_overflow_works
2354         and gl_cv_sys_xsi_stack_overflow_heuristic.
2355         All uses changed.
2356         (gl_PREREQ_C_STACK): Do not require AC_FUNC_ALLOCA, since
2357         c-stack no longer uses STACK_DIRECTION.
2358         Do not check for unistd.h, since we depend on unistd.
2359         Fix shell typo ‘$"ac_cv_sys_xsi_stack_overflow_heuristic"’.
2360         * modules/c-stack (Depends-on): Sort.  Add intprops, inttypes,
2361         stdbool, stddef.
2363 2020-09-20  Bruno Haible  <bruno@clisp.org>
2365         Revert now-unnecessary override of config.guess on Alpine Linux 3.10.
2366         * m4/musl.m4: Revert 2020-09-19 patch.
2367         * m4/setlocale_null.m4: Likewise.
2368         * modules/setlocale-null: Likewise.
2370 2020-09-19  Ben Pfaff  <blp@cs.stanford.edu>
2371             Bruno Haible  <bruno@clisp.org>
2373         relocatable-prog: Fix for multiple relocatable library directories.
2374         * build-aux/reloc-ldflags: Fix handling of multiple relocatable library
2375         directories.  Each one needs its own -Wl,-rpath,$dir option, instead of
2376         being attached to a single one.
2378 2020-09-19  Jim Meyering  <meyering@fb.com>
2380         test-verify.c: avoid -Wshadow warnings
2381         * tests/test-verify.c (gx): Rename global from "x". Adjust use.
2382         (enum): Capitalize member names. Adjust uses.
2384 2020-09-19  Bruno Haible  <bruno@clisp.org>
2386         havelib: Avoid linking with libc.a on GNU systems.
2387         Reported by Bruce Dubbs <bruce.dubbs@gmail.com> in
2388         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00052.html>.
2389         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When processing the
2390         dependency_libs value of a .la file, ignore '-lc' options on GNU
2391         systems.
2393 2020-09-19  Bruno Haible  <bruno@clisp.org>
2395         Fix recognition of musl libc on Alpine Linux 3.10.
2396         Reported by Jeffrey Walton <noloader@gmail.com> in
2397         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00020.html>.
2398         * m4/musl.m4 (gl_MUSL_CANONICAL_HOST): New macro.
2399         (gl_MUSL_LIBC): Require it.
2400         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Likewise.
2401         * modules/setlocale-null (Files): Add m4/musl.m4.
2403 2020-09-19  Bruno Haible  <bruno@clisp.org>
2405         nl_langinfo: Make multithread-safe on Solaris 10 and Solaris 11.3.
2406         Reported for Solaris 10 by Dagobert Michelsen via Paul Eggert in
2407         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00023.html>
2408         and for Solaris 11.3 by Jeffrey Walton <noloader@gmail.com> in
2409         <https://lists.gnu.org/archive/html/bug-grep/2020-06/msg00013.html>.
2410         * lib/nl_langinfo-lock.c: New file, based on lib/setlocale_null-lock.c.
2411         * lib/nl_langinfo.c: Include <stdlib.h> and <windows.h> or <pthread.h>
2412         or <threads.h>.
2413         (ITEMS, MAX_RESULT_LEN): New macros.
2414         (nl_langinfo_unlocked): New function.
2415         (gl_get_nl_langinfo_lock): New declaration.
2416         (nl_langinfo_with_lock): New function, based on lib/setlocale_null.c.
2417         (rpl_nl_langinfo): Use nl_langinfo_with_lock instead of nl_langinfo.
2418         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require gl_PTHREADLIB. Define
2419         HAVE_THREADS_H. Set NL_LANGINFO_MTSAFE. If setting it to 0, also set
2420         REPLACE_NL_LANGINFO.
2421         (gl_PREREQ_NL_LANGINFO_LOCK): New macro.
2422         * modules/nl_langinfo (Files): Add lib/nl_langinfo-lock.c,
2423         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
2424         (configure.ac): Compile nl_langinfo-lock.c when NL_LANGINFO_MTSAFE is 0.
2425         * doc/posix-functions/nl_langinfo.texi: Mention the Solaris bug.
2427 2020-09-18  Bruno Haible  <bruno@clisp.org>
2429         fsusage, getaddrinfo: Produce more regular configure output.
2430         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove AC_MSG_CHECKING without
2431         corresponding AC_MSG_RESULT.
2432         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
2434 2020-09-18  Bruno Haible  <bruno@clisp.org>
2436         Add back gl_SILENT.
2437         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): New macros.
2439 2020-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2441         c-stack-tests: fix -fsanitize=undefined false alarm
2442         * tests/test-c-stack2.sh: Skip the test-harness self-test
2443         if ‘gcc -fsanitize=undefined’ is in use.
2445 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
2447         signalblocking: simplify and remove gl_SILENT
2448         gl_SILENT was problematic because if a trap was sprung, stderr
2449         generated during the trap was lost.  Avoid the problem by
2450         removing the need for gl_SILENT.
2451         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): Remove.
2452         * m4/signalblocking.m4 (gl_SIGNALBLOCKING):
2453         Simplify, avoiding the need for gl_SILENT while preserving the
2454         ability of the user to override the value of the cache variable,
2455         now ac_cv_func_sigprocmask.
2457 2020-09-17  Bruno Haible  <bruno@clisp.org>
2459         sigprocmask: Fix configuration failure on Solaris 10 (regr. 2020-07-25).
2460         * m4/gnulib-common.m4 (GL_TMP_FD): New macro.
2461         (gl_SILENT): Use 'exec', not a compound statement, to redirect
2462         AS_MESSAGE_FD.
2464 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
2466         intprops, xalloc: avoid __builtin_mul_overflow_p with Clang
2467         Problem reported by Nelson H. F. Beebe for clang 9.0.1 in:
2468         https://lists.gnu.org/r/grep-devel/2020-09/msg00028.html
2469         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P) [__clang__]:
2470         Define to 0.
2471         * lib/xalloc-oversized.h (xalloc_oversized) [__clang__]:
2472         Do not use __builtin_mul_overflow_p.
2474         libc-config: port __THROW to Ubuntu 4
2475         * lib/cdefs.h (__THROW): Do not use __attribute__ ((__nothrow__))
2476         for GCC 3.3.  Problem reported by Jeffrey Walton in:
2477         https://lists.gnu.org/r/bug-gnulib/2019-07/msg00058.html
2478         The GCC 3.3.4 documentation says the attribute should work, but
2479         apparently it does not work on Ubuntu 4’s GCC 3.3.  There seems
2480         little point or desire to research this circa-2004 platform further,
2481         so just avoid the attribute there.
2483 2020-09-17  Jim Meyering  <meyering@fb.com>
2485         test-dfa-match.sh: port timeout work-around to newer Busybox
2486         * tests/test-dfa-match.sh: Update timeout -t portability test to
2487         accommodate Busybox 1.30.0 and newer.
2489 2020-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2491         fnmatch: adjust to match glibc fix
2492         This fixes handling of collating symbols in fnmatch (glibc bug 26620).
2493         This does not affect Gnulib; it merely keeps Gnulib and glibc
2494         closer together, to help with any eventual merge, by incorporating
2495         a recent glibc patch.  The patch and the following commentary is
2496         by Andreas Schwab.
2497         * lib/fnmatch_loop.c (FCT) [WIDE_CHAR_VERSION]: The variable idx
2498         contains the index into the extra array, whereas wextra points
2499         into the extra array at this index, containing the length of the
2500         following collating sequence in the wide character representation.
2502 2020-09-16  Bruno Haible  <bruno@clisp.org>
2504         stat, fstat: Fix compilation error with old mingw headers.
2505         Reported by Eli Zaretskii <eliz@gnu.org> in
2506         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
2507         * lib/stat-w32.c (VOLUME_NAME_NONE): Define if the Windows headers don't
2508         define it.
2510 2020-09-16  Bruno Haible  <bruno@clisp.org>
2512         stat, fstat: Fix when compiling for versions older than Windows Vista.
2513         Reported by Eli Zaretskii <eliz@gnu.org> in
2514         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
2515         * lib/stat-w32.c: Include <sdkddkver.h>. Test the value of _WIN32_WINNT
2516         that was originally set before we redefined it.
2517         * m4/stat.m4 (gl_PREREQ_STAT_W32): New macro.
2518         (gl_PREREQ_STAT): Require it.
2519         * m4/fstat.m4 (gl_PREREQ_FSTAT): Likewise.
2521 2020-09-15  Paul Eggert  <eggert@cs.ucla.edu>
2523         dfa: remove dfa-heap-overrun workaround
2524         * lib/dfa.c (reorder_tokens): Go back to a single pass that
2525         both sets map[*] and does other things.  This reverts
2526         2020-09-14T01:20:01Z!eggert@cs.ucla.edu, which is no longer
2527         neeeded now that 2020-09-14T13:21:05Z!noritnk@kcn.ne.jp
2528         fixed the underlying problem.
2530 2020-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2532         dfa: avoid use of uninitialized constraint
2533         * lib/dfa.c (merge_nfa_state): Do not initialize the constraint
2534         to zero here.
2535         (dfaoptimize): Do it here instead, via xcalloc.  This prevents the
2536         use of an uninitialized constraint by later code when ! (flags[i]
2537         & OPT_QUEUED) means merge_nfa_state was not called to initialize
2538         the constraint.  Problem found by running 'valgrind src/grep -E
2539         '(^| )*(a|b)*(c|d)*( |$)' < /dev/null' on Ubuntu 18.04.5 x86-64.
2541         dfa: assume C99 in reorder_tokens
2542         * lib/dfa.c (reorder_tokens): Assume C99 and simplify.
2544         dfa: fix dfa-heap-overrun failure
2545         * lib/dfa.c (reorder_tokens): When setting
2546         map[d->follows[i].elems[j].index], instead of incorrectly assuming
2547         that (i < d->follows[i].elems[j].index), use two loops, one to set
2548         the map array and the other to use it.  The incorrect assumption
2549         caused some elements to be missed, and this in turn caused grep's
2550         dfa-heap-overrun test to fail on Solaris 10 sparc when compiled
2551         with GCC.  I found this bug while investigating
2552         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/183
2553         and I think the bug also occurs on GNU/Linux but with more-subtle
2554         symptoms.  The bug predates the recent dfa.c changes; perhaps the
2555         recent changes make the bug more likely.
2557 2020-09-13  Bruno Haible  <bruno@clisp.org>
2559         parse-datetime: Make the build rule work with parallel 'make'.
2560         Reported by Daiki Ueno <ueno@gnu.org> in
2561         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00036.html>.
2562         * modules/parse-datetime (Makefile.am): Use a phony target and the
2563         general idiom for rules that produce multiple files.
2565 2020-09-13  Ben Pfaff  <blp@cs.stanford.edu>
2567         getpass: Check for nonnull prompt argument while avoiding warnings.
2568         * lib/getpass.c (_GL_ARG_NONNULL): Define to empty.
2569         (getpass) [!_WIN32]: Print prompt only if nonnull.
2571 2020-09-12  Paul Eggert  <eggert@cs.ucla.edu>
2573         dfa: epsilon-closure tweaks (Bug#40634)
2574         Rename BACKWORD to BACKWARD consistently.
2575         * lib/dfa.c (struct dfa): Reorder members to reduce fragmentation.
2576         (addtok_mb): Redo slightly to make it act more like a state machine.
2577         Check depth only when it increases.
2578         (epsclosure): Let the switch test the tokens.
2579         (dfaanalyze): Cache tindex.  Simplify position loops.
2580         Prefer xcalloc to xnmalloc + explicit zeroing.  Free BACKWARD
2581         only if it is not null, since we're testing that anyway.
2582         (dfaanalyze, build_state): Use merge2 instead of doing it by hand.
2584 2020-09-12  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2586         dfa: use backward set in removal of epsilon closure
2587         When removing in epsilon closure, the code searched all nodes
2588         sequentially, and this was slow for some cases.  Build a backward
2589         set before search, and only check previous position with the set.
2590         Problem reported in <https://bugs.gnu.org/40634>.
2591         * lib/dfa.c (struct dfa): New member 'epsilon'.
2592         (addtok_mb): Check whether a pattern has epsilon node or not.
2593         (epsclosure): New arg BACKWORD; caller changed.  When removing
2594         epsilon node and reconnecting, check only previous positions.
2595         Treat BEG as if it were character.
2596         (dfaanalyze): Build backward set.
2598 2020-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2600         canonicalize: fix pointer indexing bugs
2601         Problem reported by Florian Weimer in:
2602         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00025.html
2603         * lib/canonicalize-lgpl.c (__realpath):
2604         * lib/canonicalize.c (canonicalize_filename_mode):
2605         Do not generate a pointer past the end of the array.
2606         * lib/canonicalize.c (canonicalize_filename_mode):
2607         Do not use a pointer after passing it to realloc.
2609 2020-09-09  Paul Eggert  <eggert@cs.ucla.edu>
2611         tempname: help merge with glibc
2612         Inspired by draft patches by Adhemerval Zanella in:
2613         https://sourceware.org/pipermail/libc-alpha/2020-September/117501.html
2614         https://sourceware.org/pipermail/libc-alpha/2020-September/117502.html
2615         * lib/tempname.c: Include stdalign.h, time.h.
2616         If _LIBC, do not include random-bits.h.
2617         (__getrandom, __clock_gettime64, __timespec64) [!_LIBC]: New macros.
2618         (RANDOM_BITS): Remove, replacing with ...
2619         (random_bits): ... this new static function.  All uses changed.
2620         Add entropy each time if getrandom is not supported.
2621         (RANDOM_VALUE, BASE_62_DIGITS, BASE_62_POWER):
2622         Assume 64-bit support a la C99.
2623         (try_tempname_len): Take advantage of ASLR when initializing
2624         random value.
2625         * modules/tempname (Depends-on): Add clock-time, stdalign, time.
2627         getcwd: merge recent glibc changes
2628         * lib/getcwd.c (GETCWD_RETURN_TYPE) [!_LIBC]: New macro.
2629         (__getcwd, getcwd) [_LIBC && !GETCWD_RETURN_TYPE]: Add aliases.
2631 2020-09-06  Bruno Haible  <bruno@clisp.org>
2633         attribute: Clarify which file to include.
2634         * modules/attribute (Include): Add "attribute.h".
2636 2020-09-06  Bruno Haible  <bruno@clisp.org>
2638         pipe-filter-ii, pipe-filter-gi: Fix warnings on native Windows.
2639         * lib/pipe-filter-ii.c: Include <process.h>.
2640         * lib/pipe-filter-gi.c: Likewise.
2642 2020-09-05  Paul Eggert  <eggert@cs.ucla.edu>
2644         verify: avoid __builtin_assume
2645         Our latest attempt to use Clang’s __builtin_assume caused a crash
2646         in GNU Emacs that we spent quite some time tracking down as being
2647         caused by the switch to __builtin_assume.  It’s not known whether
2648         the crash is due is a Clang bug or a portability bug in GNU Emacs.
2649         For now, play it safe and avoid __builtin_assume.
2650         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): Remove.
2651         (assume): Simplify by not trying to use Clang’s __builtin_assume.
2653 2020-09-05  Bruno Haible  <bruno@clisp.org>
2655         Fix several "warning: no previous prototype for function".
2656         * modules/unicase/locale-language (Makefile.am): Add a 'static' keyword
2657         in front of the declaration of the lookup function in
2658         unicase/locale-languages.h.
2659         * modules/unictype/bidiclass-byname (Makefile.am): Likewise in
2660         unictype/bidi_byname.h.
2661         * modules/unictype/category-byname (Makefile.am): Likewise in
2662         unictype/categ_byname.h.
2663         * modules/unictype/combining-class-byname (Makefile.am): Likewise in
2664         unictype/combiningclass_byname.h.
2665         * modules/unictype/joininggroup-byname (Makefile.am): Likewise in
2666         unictype/joininggroup_byname.h.
2667         * modules/unictype/joiningtype-byname (Makefile.am): Likewise in
2668         unictype/joiningtype_byname.h.
2669         * modules/unictype/property-byname (Makefile.am): Likewise in
2670         unictype/pr_byname.h.
2671         * modules/unictype/scripts (Makefile.am): Likewise in
2672         unictype/scripts_byname.h.
2673         * modules/uninorm/composition (Makefile.am): Likewise in
2674         uninorm/composition-table.h.
2676 2020-09-05  Bruno Haible  <bruno@clisp.org>
2678         select: Fix "warning: no previous prototype for function".
2679         * lib/select.c: Include <sys/select.h>.
2681 2020-09-05  Bruno Haible  <bruno@clisp.org>
2683         Use module 'c99' when needed for variadic macros with '...' syntax.
2684         * modules/crypto/sm3 (Depends-on): Add c99.
2686 2020-09-05  Bruno Haible  <bruno@clisp.org>
2688         Use module 'c99' when needed for subobject initializer syntax.
2689         * modules/tempname (Depends-on): Add c99.
2690         * modules/nstrftime-tests (Depends-on): Likewise.
2692 2020-09-05  Bruno Haible  <bruno@clisp.org>
2694         Use module 'c99' when needed for declaration-after-statement syntax.
2695         * modules/backup-rename (Depends-on): Add c99.
2696         * modules/backupfile (Depends-on): Likewise.
2697         * modules/bitset-tests (Depends-on): Likewise.
2698         * modules/bitsetv (Depends-on): Likewise.
2699         * modules/c-strtod (Depends-on): Likewise.
2700         * modules/c-strtold (Depends-on): Likewise.
2701         * modules/clean-temp (Depends-on): Likewise.
2702         * modules/copy-file (Depends-on): Likewise.
2703         * modules/crypto/hmac-md5-tests (Depends-on): Likewise.
2704         * modules/crypto/hmac-sha1-tests (Depends-on): Likewise.
2705         * modules/crypto/hmac-sha256-tests (Depends-on): Likewise.
2706         * modules/crypto/hmac-sha512-tests (Depends-on): Likewise.
2707         * modules/crypto/md5-buffer (Depends-on): Likewise.
2708         * modules/crypto/md5-tests (Depends-on): Likewise.
2709         * modules/crypto/sha1-buffer (Depends-on): Likewise.
2710         * modules/crypto/sha1-tests (Depends-on): Likewise.
2711         * modules/crypto/sha256-buffer (Depends-on): Likewise.
2712         * modules/crypto/sha256-tests (Depends-on): Likewise.
2713         * modules/crypto/sha512-buffer (Depends-on): Likewise.
2714         * modules/crypto/sha512-tests (Depends-on): Likewise.
2715         * modules/diffseq (Depends-on): Likewise.
2716         * modules/fatal-signal (Depends-on): Likewise.
2717         * modules/fchmodat (Depends-on): Likewise.
2718         * modules/fstrcmp (Depends-on): Likewise.
2719         * modules/fsusage (Depends-on): Likewise.
2720         * modules/fts (Depends-on): Likewise.
2721         * modules/fts-tests (Depends-on): Likewise.
2722         * modules/getumask (Depends-on): Likewise.
2723         * modules/git-merge-changelog (Depends-on): Likewise.
2724         * modules/hash-map (Depends-on): Likewise.
2725         * modules/hash-set (Depends-on): Likewise.
2726         * modules/lchmod (Depends-on): Likewise.
2727         * modules/libgmp-tests (Depends-on): Likewise.
2728         * modules/libtextstyle-optional-tests (Depends-on): Likewise.
2729         * modules/linkedhash-map (Depends-on): Likewise.
2730         * modules/linkedhash-set (Depends-on): Likewise.
2731         * modules/long-options (Depends-on): Likewise.
2732         * modules/mbrtoc32 (Depends-on): Likewise.
2733         * modules/memchr2-tests (Depends-on): Likewise.
2734         * modules/memmem-tests (Depends-on): Likewise.
2735         * modules/memrchr-tests (Depends-on): Likewise.
2736         * modules/mktime-internal (Depends-on): Likewise.
2737         * modules/nstrftime (Depends-on): Likewise.
2738         * modules/opendirat (Depends-on): Likewise.
2739         * modules/parse-datetime (Depends-on): Likewise.
2740         * modules/quotearg-simple-tests (Depends-on): Likewise.
2741         * modules/same (Depends-on): Likewise.
2742         * modules/supersede (Depends-on): Likewise.
2743         * modules/supersede-tests (Depends-on): Likewise.
2744         * modules/time_rz (Depends-on): Likewise.
2745         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
2746         * modules/unistr/u32-chr-tests (Depends-on): Likewise.
2747         * modules/unistr/u8-chr-tests (Depends-on): Likewise.
2748         * modules/xalloc (Depends-on): Likewise.
2749         * modules/xnanosleep (Depends-on): Likewise.
2751 2020-09-05  Bruno Haible  <bruno@clisp.org>
2753         Fix "warning: array initialized from parenthesized string constant".
2754         * tests/test-memmem.c (main): Remove parentheses around string constant.
2755         * tests/test-c-strcasestr.c (main): Likewise.
2756         * tests/test-strcasestr.c (main): Likewise.
2758 2020-09-05  Bruno Haible  <bruno@clisp.org>
2760         argmatch tests: Fix ISO C compliance warning.
2761         * tests/test-argmatch.c: Omit semicolon after ARGMATCH_DEFINE_GROUP
2762         invocation.
2764 2020-09-05  Bruno Haible  <bruno@clisp.org>
2766         uniname/uniname: Fix -Wshadow warning.
2767         * lib/uniname/uniname.c (unicode_name_word): Don't declare i upfront.
2768         * modules/uniname/uniname (Depends-on): Add c99.
2770 2020-09-05  Bruno Haible  <bruno@clisp.org>
2772         uniname/uniname: Fix -Wshorten-64-to-32 warnings.
2773         * lib/uniname/uniname.c (unicode_name_word_lookup): Change type of last
2774         argument to size_t.
2775         (unicode_name_character): Change type of len, n1, n2, n3, words_length,
2776         n to size_t.
2778 2020-09-05  Bruno Haible  <bruno@clisp.org>
2780         unistr/u{8,16,32}-uctomb: Avoid possible trouble with huge strings.
2781         * lib/unistr.in.h (u8_uctomb_aux, u8_uctomb, u16_uctomb_aux, u16_uctomb,
2782         u32_uctomb): Change type of last argument to ptrdiff_t.
2783         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
2784         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
2785         * lib/unistr/u16-uctomb.c (u16_uctomb): Likewise.
2786         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise.
2787         * lib/unistr/u32-uctomb.c (u32_uctomb): Likewise.
2789 2020-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2791         manywarnings: remove -Wchkp and -Wabi from C++ too
2792         Suggested by Reuben Thomas in:
2793         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00001.html
2794         At some point somebody should merge the many other manywarnings-c.m4
2795         changes into manywarnings-c++.m4 too, e.g.,
2796         2020-07-02T00:00:51Z!eggert@cs.ucla.edu.
2797         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
2798         Remove -Wchkp, -Wabi.
2800 2020-08-30  Bruno Haible  <bruno@clisp.org>
2802         strerrorname_np: Add tests.
2803         * tests/test-strerrorname_np.c: New file.
2804         * modules/strerrorname_np-tests: New file.
2806         strerrorname_np: New module.
2807         * lib/string.in.h (strerrorname_np): New declaration.
2808         * lib/strerrorname_np.c: New file.
2809         * m4/strerrorname_np.m4: New file.
2810         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether strerrorname_np
2811         is declared.
2812         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERRORNAME_NP,
2813         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
2814         * modules/string (Makefile.am): Substitute GNULIB_STRERRORNAME_NP,
2815         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
2816         * modules/strerrorname_np: New file.
2817         * tests/test-string-c++.cc: Verify the signature of strerrorname_np.
2818         * doc/glibc-functions/strerrorname_np.texi: Mention the new module and
2819         the glibc 2.32 bug.
2821 2020-08-27  Paul Eggert  <eggert@cs.ucla.edu>
2823         perror, strerror_r: remove unportable tests
2824         Problem reported by Florian Weimer in:
2825         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
2826         * tests/test-perror2.c (main):
2827         * tests/test-strerror_r.c (main): Omit unportable tests.
2829 2020-08-26  Bruno Haible  <bruno@clisp.org>
2831         stdint, wchar, wctype-h: Change configure message.
2832         * m4/wint_t.m4 (gt_TYPE_WINT_T): Say "checking whether wint_t is large
2833         enough..." instead of "checking whether wint_t is too small...".
2835 2020-08-26  Bruno Haible  <bruno@clisp.org>
2837         time_rz: Change configure message.
2838         * m4/time_rz.m4 (gl_TIME_RZ): Say "checking whether localtime works even
2839         near extrema..." instead of "checking whether localtime loops forever
2840         near extrema...".
2842 2020-08-26  Bruno Haible  <bruno@clisp.org>
2844         stdint: Change configure message.
2845         * m4/stdint.m4 (gl_STDINT_H): Say "checking whether stdint.h works
2846         without ISO C predefines..." instead of "checking whether stdint.h
2847         predates C++11...".
2849 2020-08-26  Bruno Haible  <bruno@clisp.org>
2851         socketlib: Change configure message.
2852         * m4/socketlib.m4 (gl_SOCKETLIB): Say "checking for WSAStartup..."
2853         instead of "checking if we need to call WSAStartup in winsock2.h and
2854         -lws2_32...".
2856 2020-08-26  Bruno Haible  <bruno@clisp.org>
2858         include_next: Change configure message.
2859         * m4/include_next.m4 (gl_INCLUDE_NEXT): Say "checking whether source
2860         code line length is unlimited..." instead of "checking whether system
2861         header files limit the line length...".
2863 2020-08-26  Bruno Haible  <bruno@clisp.org>
2865         getcwd: Change configure message.
2866         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Say "checking
2867         whether getcwd succeeds when 4k < cwd_length < 16k..." instead of
2868         "checking whether getcwd aborts when 4k < cwd_length < 16k...".
2870 2020-08-26  Bruno Haible  <bruno@clisp.org>
2872         chdir-long: Change configure message.
2873         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Say "checking whether this
2874         system supports file names of any length..." instead of "checking
2875         whether this system has an arbitrary file name length limit...".
2876         Set gl_cv_have_unlimited_file_name_length instead of
2877         gl_cv_have_arbitrary_file_name_length_limit.
2878         * modules/chdir-long (Depends-on, configure.ac): Update accordingly.
2880 2020-08-26  Bruno Haible  <bruno@clisp.org>
2882         ceill: Change configure message.
2883         * m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..."
2884         instead of "checking whether ceill() breaks with small values...".
2886 2020-08-26  Bruno Haible  <bruno@clisp.org>
2888         iconv: Change configure message.
2889         * m4/iconv.m4 (AM_ICONV): Say "checking whether iconv is compatible
2890         with its POSIX signature..." instead of "checking for iconv
2891         declaration...". Remove K&R C support.
2893 2020-08-26  Paul Eggert  <eggert@cs.ucla.edu>
2895         getcwd: help the merge back into glibc
2896         This patch was inspired by Adhemerval Zanella’s proposed glibc patches:
2897         https://sourceware.org/pipermail/libc-alpha/2020-August/117294.html
2898         The idea is to make it easier for Gnulib lib/getcwd.c to match
2899         glibc io/getcwd-generic.c.
2900         * lib/getcwd.c [_LIBC]: Do not include pathmax.h.
2901         Include not-cancel.h.
2902         (HAVE_OPENAT, D_INO_IN_DIRENT, HAVE_MSVC_INVALID_PARAMETER_HANDLER)
2903         (HAVE_MINIMALLY_WORKING_GETCWD): Define for the _LIBC case.
2904         (__getcwd, __lstat, __readdir) [!_LIBC]: Remove these macros.
2905         (__close_nocancel_nostatus, __getcwd_generic, stat64, __fstat64)
2906         (__fstatat64, __lstat64, __readdir64, __fdopendir, __openat)
2907         (__rewinddir, __openat64, dirent64) [_LIBC]: New macros.
2908         (__getcwd_generic): Rename from __getcwd.
2909         Use the abovementioned macros for consistency with glibc.
2910         (weak_alias): Remove.
2912 2020-08-25  Bruno Haible  <bruno@clisp.org>
2914         verify: Avoid warnings when assume(0) is used.
2915         Reported by Mattias Engdegård <mattiase@acm.org> via Paul Eggert in
2916         <https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00838.html>.
2917         * lib/verify.h (assume): Use __builtin_unreachable if the argument is
2918         the constant 0.
2919         * tests/test-verify.c (f): New function.
2920         (state): New type.
2921         (test_assume_expressions, test_assume_optimization,
2922         test_assume_noreturn): New functions.
2924 2020-08-25  Bruno Haible  <bruno@clisp.org>
2926         fstrcmp: Clarification regarding NOTE_ORDERED.
2927         * lib/fstrcmp.c (NOTE_ORDERED): Define to false.
2929 2020-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2931         diffseq: new option NOTE_ORDERED
2932         Problem reported by Phil Sainty <https://bugs.gnu.org/42931>.
2933         * NEWS: Mention this.
2934         * lib/diffseq.h (NOTE_ORDERED): New macro.
2935         (IF_LINT2): Remove; no longer needed.
2936         (compareseq): If (!NOTE_ORDERED), recurse on the smaller
2937         subproblem and iterate to do the larger.
2939 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2941         sys_types: let Autoconf 2.70 do pid_t
2942         * m4/pid_t.m4 (AC_TYPE_PID_T): Redefine this Autoconf macro
2943         only for Autoconf versions 2.69 and earlier, since 2.70
2944         will be fixed.
2946 2020-08-23  Bruno Haible  <bruno@clisp.org>
2948         tests: Don't assume that pid_t fits in an 'int'.
2949         * tests/test-nonblocking-pipe-main.c (main): Use type 'pid_t' instead
2950         of 'int'.
2951         * tests/test-nonblocking-socket-main.c (main): Likewise.
2953         sys_types: Fix definition of pid_t on 64-bit MSVC.
2954         * m4/pid_t.m4: New file.
2955         * modules/sys_types (Files): Add it.
2956         * modules/dirent (Files): Likewise.
2957         * modules/fcntl-h (Files): Likewise.
2958         * modules/sched (Files): Likewise.
2959         * modules/signal-h (Files): Likewise.
2960         * modules/spawn (Files): Likewise.
2961         * modules/sys_stat (Files): Likewise.
2962         * modules/sys_wait (Files): Likewise.
2963         * modules/termios (Files): Likewise.
2964         * modules/unistd (Files): Likewise.
2966 2020-08-23  Bruno Haible  <bruno@clisp.org>
2968         inttypes: Fix {PRI,SCN}*PTR on 32-bit native Windows (regr. 2020-07-21).
2969         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Fix syntax error in test
2970         program.
2972 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2974         intprops: be consistent about +X vs X+0
2975         * lib/intprops.h (_GL_SIGNED_INT_MAXIMUM): Simplify.
2977         intprops: fix INT_MULTIPLY_WRAPV bit-field bug
2978         The bug occurs when using INT_MULTIPLY_WRAPV (a, b, c) where B
2979         is a bit-field, on older GCC or non-GCC compilers where we do
2980         things ourselves instead of using __builtin_mul_overflow.
2981         Without this fix, INT_MULTIPLY_WRAPV would not compile, due
2982         to applying sizeof to a bit-field.
2983         * lib/intprops.h (_GL_INT_MULTIPLY_RANGE_OVERFLOW):
2984         Promote B before giving it to TYPE_WIDTH, in case B is a bit-field.
2986 2020-08-23  Bruno Haible  <bruno@clisp.org>
2988         supersede: Avoid a failure when writing to /dev/null in Solaris zones.
2989         Reported by Jörg Sonnenberger <joerg@netbsd.org>
2990         via Thomas Klausner <tk@giga.or.at> in
2991         <https://pkgsrc.se/files.php?messageId=20200812233110.30230FB28@cvs.NetBSD.org>.
2992         * lib/supersede.c (open_supersede): When opening an existing non-regular
2993         file on Solaris, use O_CREAT although it should not be necessary.
2995 2020-08-23  Bruno Haible  <bruno@clisp.org>
2997         verify: Make assume work on bit field expressions (regr. 2020-08-22).
2998         Reported by Benno Schulenberg <bensberg@telfort.nl> in
2999         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00202.html>.
3000         * lib/verify.h (assume): Use '_Bool' or 'bool' as type of the temporary
3001         variable.
3003 2020-08-23  Bruno Haible  <bruno@clisp.org>
3005         libc-config: Improve comments.
3006         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Explain why we
3007         cannot use clang's __diagnose_if__ here.
3009 2020-08-22  Bruno Haible  <bruno@clisp.org>
3011         verify: Do use __builtin_assume on clang.
3012         * lib/verify.h (assume): Use clang’s __builtin_assume, with a temporary
3013         variable in a statement expression.
3015 2020-08-22  Bruno Haible  <bruno@clisp.org>
3017         sig2str: Add more signals.
3018         * lib/sig2str.c (numname_table): Add SIGCPUFAIL, SIGTHR, SIGBREAK.
3020 2020-08-22  Bruno Haible  <bruno@clisp.org>
3022         doc: Update for OpenBSD 6.0, 6.7.
3023         * doc/*/*.texi: Update.
3024         * m4/printf.m4: Update comments and cross-compilation guesses.
3025         * m4/ceill.m4: Update comments.
3026         * m4/getcwd-abort-bug.m4: Likewise.
3027         * m4/ilogb.m4: Likewise.
3028         * m4/ilogbf.m4: Likewise.
3029         * m4/langinfo_h.m4: Likewise.
3030         * m4/modf.m4: Likewise.
3031         * m4/modff.m4: Likewise.
3033 2020-08-22  Bruno Haible  <bruno@clisp.org>
3035         doc: Mention sig2str module.
3036         * doc/glibc-functions/sigabbrev_np.texi: Mention the sig2str module.
3038 2020-08-21  Bruno Haible  <bruno@clisp.org>
3040         sigdescr_np: Add tests.
3041         * tests/test-sigdescr_np.c: New file.
3042         * modules/sigdescr_np-tests: New file.
3044         sigdescr_np: New module.
3045         * lib/string.in.h (sigdescr_np): New declaration.
3046         * lib/sigdescr_np.c: New file.
3047         * m4/sigdescr_np.m4: New file.
3048         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigdescr_np is
3049         declared.
3050         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGDESCR_NP,
3051         HAVE_SIGDESCR_NP.
3052         * modules/string (Makefile.am): Substitute GNULIB_SIGDESCR_NP,
3053         HAVE_SIGDESCR_NP.
3054         * modules/sigdescr_np: New file.
3055         * tests/test-string-c++.cc: Verify the signature of sigdescr_np.
3056         * doc/glibc-functions/sigdescr_np.texi: Mention the new module.
3058 2020-08-20  Bruno Haible  <bruno@clisp.org>
3060         sigabbrev_np: Add tests.
3061         * tests/test-sigabbrev_np.c: New file.
3062         * modules/sigabbrev_np-tests: New file.
3064         sigabbrev_np: New module.
3065         * lib/string.in.h (sigabbrev_np): New declaration.
3066         * lib/sigabbrev_np.c: New file.
3067         * m4/sigabbrev_np.m4: New file.
3068         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigabbrev_np is
3069         declared.
3070         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGABBREV_NP,
3071         HAVE_SIGABBREV_NP.
3072         * modules/string (Makefile.am): Substitute GNULIB_SIGABBREV_NP,
3073         HAVE_SIGABBREV_NP.
3074         * modules/sigabbrev_np: New file.
3075         * tests/test-string-c++.cc: Verify the signature of sigabbrev_np.
3076         * doc/glibc-functions/sigabbrev_np.texi: Mention the new module.
3078 2020-08-20  Bruno Haible  <bruno@clisp.org>
3080         stdalign tests: Skip test with AIX xlclang.
3081         * tests/test-stdalign.c (main): Skip alignas tests with AIX xlclang.
3083 2020-08-20  Bruno Haible  <bruno@clisp.org>
3085         stdalign: Fix test failures on 32-bit platforms with clang versions < 8.
3086         * lib/stdalign.in.h (_Alignof): For clang versions < 8, use the same
3087         workaround as for GCC versions < 4.9.
3089 2020-08-20  Siddhesh Poyarekar  <siddhesh@gotplt.org>
3091         Sync up ProjectQuirks comments and documentation
3092         Transform the ProjectQuirks comments into a docstring so that it can
3093         be accessed from python as ProjectQuirks.__doc__ and harmonize
3094         descriptions with the documentation.
3095         * build-aux/vcstocl/projectquirks.py (ProjectQuirks):
3096         Transform comments into a docstring.
3097         * doc/vcs-to-changelog.texi: Sync up description with comments.
3099         Split ProjectQuirks out into its own file
3100         ProjectQuirks is used by external quirks files and importing it from
3101         vcs-to-changelog.py is broken since it was renamed to use hyphens.  It
3102         is cleaner to put it in its own file anyway.
3103         * build-aux/vcstocl/projectquirks.py: A new file...
3104         * build-aux/vcs-to-changelog.py (ProjectQuirks): ...to which
3105         we move ProjectQuirks and import the file.
3107 2020-08-19  Bruno Haible  <bruno@clisp.org>
3109         uchar: Fix compilation errors in C++ mode on macOS.
3110         * m4/uchar.m4 (gl_UCHAR_H): Require gl_ANSI_CXX if present. Include some
3111         system header file before attempting to use 'char16_t' and 'char32_t'.
3113 2020-08-19  Bruno Haible  <bruno@clisp.org>
3115         ansi-c++-opt: Work around an autoconf macro reordering problem.
3116         * modules/ansi-c++-opt: Require gl_ANSI_CXX already in the early
3117         section.
3119 2020-08-19  Bruno Haible  <bruno@clisp.org>
3121         math C++ tests: Fix compilation error in with GCC 10.
3122         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
3123         hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder, rint,
3124         round, trunc): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
3126 2020-08-19  Bruno Haible  <bruno@clisp.org>
3128         uchar: Fix compilation errors in C++ mode on OpenBSD.
3129         * lib/uchar.in.h (char16_t, char32_t): Don't define in C++ mode if
3130         CXX_HAS_UCHAR_TYPES is 1.
3131         * m4/uchar.m4 (gl_UCHAR_H): Determine whether the C++ compiler
3132         predefines char16_t and char32_t. Substitute CXX_HAS_UCHAR_TYPES.
3133         * modules/uchar (Makefile.am): Substitute CXX_HAS_UCHAR_TYPES.
3135 2020-08-19  Bruno Haible  <bruno@clisp.org>
3137         Fix compilation errors in C++ mode on OpenBSD.
3138         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on
3139         OpenBSD with clang, use the approach without C preprocessor macro.
3141 2020-08-18  Bruno Haible  <bruno@clisp.org>
3143         uchar C++ tests: Fix side effect on math modules (regr. 2020-08-17).
3144         * modules/uchar-c++-tests (configure.ac): Don't use AC_LANG_PUSH and
3145         AC_LANG_POP.
3147 2020-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3149         verify: avoid __built_assume on Clang
3150         * lib/verify.h (assume): Do not use Clang’s __builtin_assume, as
3151         Clang 9 incorrectly diagnoses arguments as having side effects
3152         even when they do not.  I guess Clang 9 considers any function
3153         call as if it had a side effect here.
3155         libc-config: avoid Clang’s __diagnose_if__
3156         * lib/cdefs.h (__warndecl, __warnattr, __errordecl):
3157         For now, do not use __diagnose_if__ here, as this fails
3158         on Fedora 31 with Clang 9.0.1, with diagnostic
3159         "/usr/include/bits/stdio2.h:263:9: error: fgets called with bigger
3160         size than length of destination buffer
3161         [-Werror,-Wuser-defined-warnings]".  I guess Clang 9 warns even
3162         for functions that are not called?
3164         careadlinkat: speedup for GCC 10 with GCC_LINT
3165         Inspired by a suggestion by Bruno Haible in:
3166         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00155.html
3167         * lib/careadlinkat.c (STACK_BUF_SIZE): New constant.
3168         (readlink_stk): New function, with most of the old careadlinkat
3169         contents and with a new STACK_BUF arg.  Inline it in GCC 10
3170         if GCC_LINT.
3171         (careadlinkat): Use the new function for everything but the
3172         stack buffer.
3174         * build-aux/gcc-warning.spec: Update comments.
3176 2020-08-17  Bruno Haible  <bruno@clisp.org>
3178         Assume autoconf >= 2.64.
3179         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO_LIMIT always.
3181 2020-08-17  Bruno Haible  <bruno@clisp.org>
3183         Revert autoupdate's revert.
3184         * config/srclist.txt: Mark regcomp.c as needing sync with glibc.
3186 2020-08-17  Bruno Haible  <bruno@clisp.org>
3188         uchar C++ tests: Fix build error on FreeBSD 12.
3189         * modules/uchar-c++-tests (configure.ac): Test whether <cuchar> exists.
3190         (Makefile.am): Don't include test-uchar-c++2.cc in the compilation if
3191         <cuchar> does not exist.
3193 2020-08-16  Paul Eggert  <eggert@cs.ucla.edu>
3195         time_rz: remove unused functions
3196         * lib/time_rz.c (isdst_differ, equal_tm): Remove; no longer used.
3198         time_rz: fix issues with mktime_z failures
3199         * lib/time_rz.c (mktime_z): Do not update *TM if revert_tz fails.
3200         Use a cheaper tm_yday test for failed mktime.
3202 2020-08-16  Bruno Haible  <bruno@clisp.org>
3204         intprops test: Strengthen on clang.
3205         * tests/test-intprops.c (VERIFY): Use verify_stmt.
3207 2020-08-16  Bruno Haible  <bruno@clisp.org>
3209         nstrftime: Guide inlining also on clang.
3210         * lib/nstrftime.c (iso_week_days): Inline also on clang.
3212 2020-08-16  Bruno Haible  <bruno@clisp.org>
3214         intprops: Avoid bogus "warning: division by zero is undefined" on clang.
3215         * lib/intprops.h (_GL__GENERIC_BOGUS): Define to 1 on clang.
3217 2020-08-16  Bruno Haible  <bruno@clisp.org>
3219         log2l: Disable MSVC workaround on clang.
3220         * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L.
3222 2020-08-16  Bruno Haible  <bruno@clisp.org>
3224         argp: Emit a warning also with clang.
3225         * lib/argp-help.c (__argp_short_program_name): Use #warning also on
3226         clang.
3228 2020-08-16  Bruno Haible  <bruno@clisp.org>
3230         libc-config: Enable __REDIRECT macro also on clang.
3231         * lib/cdefs.h (__REDIRECT, __REDIRECT_NTH, __REDIRECT_NTHNL, __ASMNAME,
3232         __ASMNAME2): Define on clang like on GCC.
3234 2020-08-16  Bruno Haible  <bruno@clisp.org>
3236         regex: Use initializer shorthand syntax also with clang.
3237         * lib/regcomp.c (utf8_sb_map): Use the initializer shorthand syntax also
3238         with clang.
3240 2020-08-16  Bruno Haible  <bruno@clisp.org>
3242         regex: Use space optimization also with clang.
3243         * lib/regex_internal.h (re_token_t): Use a single byte for the type also
3244         with clang.
3246 2020-08-16  Bruno Haible  <bruno@clisp.org>
3248         Use _Static_assert and static_assert primitives when present on clang.
3249         * lib/cdefs.h (_Static_assert): Don't define as a macro on clang.
3250         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1,
3251         _GL_HAVE_STATIC_ASSERT1): Define as appropriate on clang.
3253 2020-08-16  Bruno Haible  <bruno@clisp.org>
3255         Use 'throw ()' for optimization in C++ mode also on clang.
3256         * lib/cdefs.h (__THROW): Define to 'throw ()' also on clang.
3257         * lib/getopt-cdefs.in.h (__THROW): Likewise.
3258         * lib/md5.h (__THROW): Likewise.
3260 2020-08-16  Bruno Haible  <bruno@clisp.org>
3262         absolute-header: Add support for clang.
3263         * modules/absolute-header (Makefile.am): Include '__clang__' in the
3264         HAVE_INCLUDE_NEXT expression.
3266 2020-08-16  Bruno Haible  <bruno@clisp.org>
3268         Fix "warning: implicitly declaring library function 'strcasecmp'".
3269         * lib/argp-help.c: Include <strings.h>.
3271 2020-08-16  Bruno Haible  <bruno@clisp.org>
3273         stdio: Don't break attribute 'scanf' on clang.
3274         * lib/stdio.in.h (scanf): Treat clang like GCC.
3276 2020-08-16  Bruno Haible  <bruno@clisp.org>
3278         Use __restrict also on clang.
3279         * lib/argp.h (__restrict): Don't define as a macro on clang >= 3.
3280         * lib/glob.in.h (_Restrict_): Use __restrict on clang >= 3.
3281         * lib/unitypes.in.h (_UC_RESTRICT): Likewise.
3283 2020-08-16  Bruno Haible  <bruno@clisp.org>
3285         pthread-spin: Use GCC built-ins also on clang.
3286         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
3287         pthread_spin_trylock, pthread_spin_unlock): Use the newer GCC built-ins
3288         also on clang.
3290 2020-08-16  Bruno Haible  <bruno@clisp.org>
3292         asyncsafe-spin tests: Update.
3293         * tests/test-asyncsafe-spin2.c: Update to match the change in
3294         lib/asyncsafe-spin.c from 2020-08-11.
3296 2020-08-16  Bruno Haible  <bruno@clisp.org>
3298         setenv: Use tree code also with clang.
3299         * lib/setenv.c (USE_TSEARCH): Treat clang like GCC.
3301 2020-08-16  Bruno Haible  <bruno@clisp.org>
3303         math: Optimize signbit also on clang.
3304         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Optimize also
3305         on clang.
3307 2020-08-16  Bruno Haible  <bruno@clisp.org>
3309         avltreehash-list, rbtreehash-list: Optimize also on clang.
3310         * lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
3311         __builtin_expect also on clang.
3313 2020-08-16  Bruno Haible  <bruno@clisp.org>
3315         Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
3316         * lib/socket.c: Use WSASocketW, not WSASocketA.
3318         Fix "warning: format specifies type 'unsigned long'".
3319         * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf
3320         argument to match the format directive.
3322         Fix "warning: no case matching constant switch condition '0'".
3323         * tests/test-fcntl.c (check_flags): Add a 'default' case.
3325         Fix "warning: integer overflow in expression".
3326         * tests/test-strtol.c (main): Use an 'unsigned long' expression to
3327         remove a 'long' overflow.
3329         Fix "warning: "getpagesize" redefined".
3330         * tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
3331         macro.
3333         Fix "warning: implicitly declaring library function 'strncasecmp'".
3334         * lib/strptime.c: Include <strings.h>.
3336         Fix "warning: 'snprintf' macro redefined".
3337         * lib/strerror_r.c (snprintf): Undefine before redefining.
3339         Fix "warning: address of array 'locale' will always evaluate to 'true'".
3340         * lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
3342         Fix "warning: '__stat64' macro redefined".
3343         * lib/glob.c (__stat64): Undefine also on MSVC/clang.
3345         Fix "warning: 'format' attribute argument not supported: rpl_printf".
3346         * lib/stdio.in.h (printf): Treat clang like GCC.
3348         Fix "warning: attribute declaration must precede definition" with clang.
3349         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
3350         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
3351         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
3352         on non-glibc systems.
3353         * lib/netdb.in.h (gai_strerror): Likewise.
3354         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
3355         * lib/sys_stat.in.h (fstat): Likewise.
3356         * lib/utime.in.h (utime): Likewise.
3358         Fix undesired warnings.
3359         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
3360         clang.
3362 2020-08-16  Bruno Haible  <bruno@clisp.org>
3364         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
3365         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
3366         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
3367         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
3368         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
3370 2020-08-16  Bruno Haible  <bruno@clisp.org>
3372         Don't use Autoconf quadrigraphs.
3373         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
3374         Autoconf quadrigraph.
3375         * m4/free.m4 (gl_FUNC_FREE): Likewise.
3376         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
3377         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
3378         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
3379         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
3380         * m4/math_h.m4 (gl_MATH_H): Likewise.
3381         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
3383 2020-08-16  Bruno Haible  <bruno@clisp.org>
3385         Fix quoting of AC_LANG_PROGRAM arguments.
3386         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
3387         arguments through [[...]].
3388         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
3389         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
3390         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
3391         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
3392         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
3393         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3394         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
3395         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3396         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
3397         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
3398         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
3399         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
3400         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
3402 2020-08-16  Bruno Haible  <bruno@clisp.org>
3404         Assume autoconf >= 2.64.
3405         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
3406         * DEPENDENCIES: Require Autoconf 2.64 or newer.
3407         * NEWS: Mention the changed requirement.
3408         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
3409         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
3410         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
3411         variables.
3412         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3413         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
3414         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
3415         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
3416         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
3417         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
3418         Likewise.
3419         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
3420         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
3421         * m4/configmake.m4: Update comment.
3423 2020-08-16  Bruno Haible  <bruno@clisp.org>
3425         sys_ioctl: Simplify.
3426         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
3427         AC_INCLUDES_DEFAULT.
3429 2020-08-16  Bruno Haible  <bruno@clisp.org>
3431         Fix quoting of AC_LANG_SOURCE arguments.
3432         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
3433         GL_NOCRASH expansion.
3434         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
3435         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
3436         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
3437         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3438         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3440 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3442         nstrftime: be more predictable about errno
3443         This aligns nstrftime better with draft POSIX 202x strftime.
3444         * lib/nstrftime.c: Include errno.h.
3445         (width_add, __strftime_internal): Set errno on failure,
3446         and preserve it on success.  Check for mktime_z failure.
3447         * modules/nstrftime (Depends-on): Add errno.
3448         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
3449         * tests/test-nstrftime.c: Include intprops.h, limits.h.
3450         (errno_test): New test function.
3451         (main): Call it.
3453 2020-08-15  Bruno Haible  <bruno@clisp.org>
3455         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
3456         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
3457         from dependency analysis first.
3459 2020-08-15  Bruno Haible  <bruno@clisp.org>
3461         Determine asm output option and filename suffix for MSVC/clang.
3462         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
3463         clang-cl.
3465 2020-08-15  Bruno Haible  <bruno@clisp.org>
3467         doc: Update for MSVC/clang.
3468         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
3469         that MSVC 14 does not have.
3471 2020-08-15  Bruno Haible  <bruno@clisp.org>
3473         Revert autoupdate's revert.
3474         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
3476 2020-08-15  Bruno Haible  <bruno@clisp.org>
3478         frexpl: Fix configuration test result on MSVC.
3479         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
3480         zero.
3482 2020-08-15  Bruno Haible  <bruno@clisp.org>
3484         Support compiling without -loldnames on native Windows.
3485         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
3486         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
3487         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
3488         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
3489         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
3490         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
3491         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
3492         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
3493         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
3494         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
3495         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
3496         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
3497         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
3498         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
3499         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
3500         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
3501         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3502         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3503         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
3504         Likewise.
3505         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
3506         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3507         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
3508         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
3509         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
3510         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
3511         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
3512         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
3513         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
3514         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
3515         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
3516         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
3517         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
3518         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3519         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
3520         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3521         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
3522         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3523         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
3524         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
3525         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
3526         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
3527         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
3528         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3529         * m4/utimens.m4 (gl_UTIMENS): Likewise.
3530         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3531         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
3532         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
3533         test for getcwd.
3534         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
3535         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
3536         with GL_MDA_DEFINES.
3537         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
3538         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
3539         prefixed symbol.
3540         * lib/search.in.h (lfind, lsearch): Likewise.
3541         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
3542         Likewise.
3543         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
3544         * lib/string.in.h (memccpy, strdup): Likewise.
3545         * lib/sys_stat.in.h (chmod, umask): Likewise.
3546         * lib/time.in.h (tzset): Likewise.
3547         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
3548         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
3549         read, rmdir, swab, unlink, write): Likewise.
3550         * lib/utime.in.h (utime): Likewise.
3551         * lib/wchar.in.h (wcsdup): Likewise.
3552         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
3553         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
3554         rpl_-prefixed macro.
3555         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
3556         * lib/close.c (close_nothrow): On native Windows, use _close.
3557         * lib/creat.c (orig_creat): On native Windows, use _creat.
3558         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
3559         * lib/dup2.c (dup2_nothrow): Use _dup2.
3560         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
3561         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
3562         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
3563         * lib/open.c (orig_open): On native Windows, use _open.
3564         * lib/read.c (read_nothrow): Use _read.
3565         * lib/rmdir.c: On native Windows, use _rmdir.
3566         * lib/unlink.c: On native Windows, use _unlink.
3567         * lib/write.c (write_nothrow): Use _write.
3568         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
3569         undefined symbol.
3570         * lib/sys_socket.in.h (close): Likewise.
3571         * lib/sys_time.in.h (close): Likewise.
3572         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
3574 2020-08-15  Bruno Haible  <bruno@clisp.org>
3576         Fix "unknown pragma ignored" warnings with clang on native Windows.
3577         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
3578         * lib/cbrtf.c: Likewise.
3579         * lib/ceil.c: Likewise.
3580         * lib/floor.c: Likewise.
3581         * lib/fma.c: Likewise.
3582         * lib/fmod.c: Likewise.
3583         * lib/rint.c: Likewise.
3584         * lib/round.c: Likewise.
3585         * lib/trunc.c: Likewise.
3586         * tests/test-ceil2.c: Likewise.
3587         * tests/test-ceilf2.c: Likewise.
3588         * tests/test-floor2.c: Likewise.
3589         * tests/test-floorf2.c: Likewise.
3590         * tests/test-trunc2.c: Likewise.
3591         * tests/test-truncf2.c: Likewise.
3592         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3593         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3595 2020-08-15  Bruno Haible  <bruno@clisp.org>
3597         Fix compilation errors in C++ mode with clang on native Windows.
3598         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
3599         non-glibc systems.
3600         * lib/sched.in.h (sched_yield): Likewise.
3602 2020-08-14  Bruno Haible  <bruno@clisp.org>
3604         stdnoreturn: Work around problem with MSVC/clang.
3605         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
3606         system header after <stdnoreturn.h>.
3607         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
3609 2020-08-14  Bruno Haible  <bruno@clisp.org>
3611         utime-h: Generate an utime.h file always.
3612         * modules/utime-h (Makefile.am): Generate utime.h always.
3613         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
3614         GL_GENERATE_UTIME_H.
3616 2020-08-14  Bruno Haible  <bruno@clisp.org>
3618         mktime, mktime-internal: Remove obsolete code.
3619         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
3621 2020-08-14  Bruno Haible  <bruno@clisp.org>
3623         getcwd: Remove obsolete code.
3624         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
3625         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3627 2020-08-14  Bruno Haible  <bruno@clisp.org>
3629         tzset: Assume the function exists.
3630         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
3631         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
3632         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
3633         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
3634         HAVE_TZSET.
3635         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
3636         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
3638         nstrftime: Assume tzset exists.
3639         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
3640         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
3641         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
3643         mktime, mktime-internal: Assume tzset exists.
3644         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
3645         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
3647 2020-08-14  Bruno Haible  <bruno@clisp.org>
3649         strdup: Assume the function exists.
3650         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
3651         whether strdup exists.
3652         * modules/strdup (Files): Remove lib/strdup.c.
3653         (configure.ac): Don't compile strdup.c.
3654         * modules/strdup-posix (Depends-on, configure.ac): Don't test
3655         ac_cv_func_strdup.
3656         * doc/posix-functions/strdup.texi: Update.
3657         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
3658         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
3659         (Depends-on): Remove unistr/u8-strlen.
3661 2020-08-13  Bruno Haible  <bruno@clisp.org>
3663         sys_random: Work around an uClibc bug.
3664         Reported by akater <nuclearspace@gmail.com>
3665         via Stefan Kangas <stefan@marxist.se>
3666         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
3667         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
3668         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
3669         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
3670         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
3672 2020-08-12  Bruno Haible  <bruno@clisp.org>
3674         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
3675         Reported by Florian Weimer in
3676         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
3677         * lib/gen-uni-tables.c (output_predicate): Change the element type of
3678         the level3 array to 'unsigned int'.
3679         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
3680         * lib/unictype/categ_*.h: Regenerated.
3681         * lib/unictype/ctype_*.h: Regenerated.
3682         * lib/unictype/pr_*.h: Regenerated.
3683         * lib/unictype/sy_*.h: Regenerated.
3684         * lib/unicase/cased.h: Regenerated.
3685         * lib/unicase/ignorable.h: Regenerated.
3687 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
3689         stdint: port intptr_t to more-recent MinGW
3690         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
3691         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
3692         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
3693         Apparently those two macros were removed in mingwrt-3.22
3694         dated 2016-07-14.
3696 2020-08-12  Bruno Haible  <bruno@clisp.org>
3698         thread-optim: Export function-like macros only.
3699         Suggested by Paul Eggert.
3700         * lib/thread-optim.h (gl_multithreaded): New macro.
3701         (IF_MT_DECL, IF_MT): Remove macros.
3702         * doc/multithread.texi (Multithreading Optimizations): Add a small
3703         example.
3704         * lib/fatal-signal.c: Update all uses.
3705         * lib/clean-temp.c: Likewise.
3706         * lib/localename.c: Likewise.
3707         * modules/localename (Depends-on): Add stdbool.
3709 2020-08-12  Bruno Haible  <bruno@clisp.org>
3711         Revert autoupdate's revert.
3712         * config/srclist.txt: Mark regex.h as needing sync with glibc.
3714 2020-08-11  Bruno Haible  <bruno@clisp.org>
3716         thread-optim: Fix a compiler warning.
3717         * lib/thread-optim.h (IF_MT_DECL): Define differently.
3719 2020-08-11  Bruno Haible  <bruno@clisp.org>
3721         Use __restrict also on clang.
3722         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
3723         (__restrict_arr): On clang, define like on GCC.
3724         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
3725         (_Restrict_arr_): Use _Restrict_ also on clang.
3726         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
3727         (_Restrict_arr_): Use _Restrict_ also on clang.
3729 2020-08-11  Bruno Haible  <bruno@clisp.org>
3731         Use flexible array syntax also on clang.
3732         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
3733         define like for GCC 3.
3735 2020-08-11  Bruno Haible  <bruno@clisp.org>
3737         fcntl: On native Windows, use _setmode, not setmode.
3738         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
3739         * lib/binary-io.h: Update comment.
3740         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
3741         * tests/test-dup2.c: Likewise.
3742         * tests/test-dup-safer.c: Likewise.
3743         * tests/test-fcntl.c: Likewise.
3745 2020-08-11  Bruno Haible  <bruno@clisp.org>
3747         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
3748         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
3749         * lib/spawn-pipe.c (create_pipe): Likewise.
3750         * tests/test-nonblocking-pipe-main.c (main): Likewise.
3751         * tests/test-nonblocking-socket-main.c (main): Likewise.
3752         * lib/wait-process.c: Update comment.
3753         * doc/posix-functions/fork.texi: Update.
3755 2020-08-11  Bruno Haible  <bruno@clisp.org>
3757         asyncsafe-spin: Use GCC built-ins also on clang.
3758         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
3759         the newer GCC built-ins also on clang.
3761 2020-08-11  Bruno Haible  <bruno@clisp.org>
3763         Use expression statements also on clang.
3764         * lib/cdefs.h (__extension__): Don't define to empty on clang.
3765         * lib/obstack.h (__extension__): Likewise.
3766         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
3767         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
3768         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
3769         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
3770         obstack_finish, obstack_free): Enable as optimized macros also on clang.
3771         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
3773 2020-08-10  Bruno Haible  <bruno@clisp.org>
3775         Use many __attribute__s with clang.
3776         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
3777         on clang.
3778         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
3779         New macros.
3780         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
3781         on clang.
3782         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
3783         also on older clang versions.
3784         (__attribute__): Don't define to empty on clang.
3785         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
3786         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
3787         (__attribute_const__): Use __attribute__ __const__ also on clang.
3788         (__attribute_used__): Use __attribute__ __used__ also on clang.
3789         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
3790         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
3791         clang.
3792         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
3793         clang.
3794         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
3795         also on clang.
3796         (__nonnull): Use __attribute__ __nonnull__ also on clang.
3797         (__attribute_warn_unused_result__): Use __attribute__
3798         __warn_unused_result__ also on clang.
3799         (__always_inline): Use __attribute__ __always_inline__ also on clang.
3800         (__attribute_artificial__): Use __attribute__ __artificial__ also on
3801         clang >= 7.
3802         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
3803         clang versions.
3804         (_Noreturn): Don't redefine on clang >= 3.5.
3805         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
3806         also on clang.
3807         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
3808         on clang.
3809         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3810         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3811         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3812         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
3813         also on clang.
3814         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3815         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
3816         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
3817         also on clang.
3818         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
3819         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
3820         __attribute__ __noreturn__ also on clang.
3821         * lib/obstack.h (__attribute_noreturn__): Likewise.
3822         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
3823         clang.
3824         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
3825         always_inline also on clang.
3826         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
3827         clang.
3829 2020-08-10  Bruno Haible  <bruno@clisp.org>
3831         c-ldtoastr tests: Fix test failure.
3832         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
3833         is longer than 'double'.
3835 2020-08-10  Bruno Haible  <bruno@clisp.org>
3837         Revert autoupdate's revert.
3838         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
3840 2020-08-09  Bruno Haible  <bruno@clisp.org>
3842         string: Fix build error in C++ mode with clang (regression from today).
3843         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
3844         parameters, one for GCC, one for clang.
3845         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
3846         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
3847         as return type.
3849 2020-08-09  Bruno Haible  <bruno@clisp.org>
3851         ftruncate: Use _chsize, not chsize.
3852         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
3853         * lib/ftruncate.c: Test HAVE__CHSIZE.
3854         (chsize_nothrow): Use _chsize, not chsize.
3856 2020-08-09  Bruno Haible  <bruno@clisp.org>
3858         Silence warnings from clang 10 with -Wimplicit-fallthrough.
3859         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
3860         clang >= 10.
3861         * lib/fnmatch.c (FALLTHROUGH): Likewise.
3862         * lib/fts.c (FALLTHROUGH): Likewise.
3863         * tests/macros.h (FALLTHROUGH): Likewise.
3864         * lib/regex_internal.h (FALLTHROUGH): Likewise.
3865         * config/srclist.txt: Mark it as needing sync with glibc.
3867 2020-08-09  Bruno Haible  <bruno@clisp.org>
3869         stdbool tests: Enable the stricter tests also on clang.
3870         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
3871         (e): Enable the address-to-bool conversion test also on clang.
3873 2020-08-09  Bruno Haible  <bruno@clisp.org>
3875         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
3876         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
3878 2020-08-09  Bruno Haible  <bruno@clisp.org>
3880         Use attribute __aligned__ with clang.
3881         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
3882         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
3884 2020-08-09  Bruno Haible  <bruno@clisp.org>
3886         Use __alignof__ with clang.
3887         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
3888         on clang.
3889         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
3890         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
3891         clang.
3892         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
3893         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
3894         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
3895         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
3897 2020-08-09  Bruno Haible  <bruno@clisp.org>
3899         ignore-value: Simplify on clang.
3900         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
3901         workaround.
3903 2020-08-09  Bruno Haible  <bruno@clisp.org>
3905         Use __typeof__ with clang.
3906         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
3907         "clang -std=gnu99".
3908         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
3909         * tests/test-stdint.c (verify_same_types): Enable the check also on
3910         clang.
3912 2020-08-09  Bruno Haible  <bruno@clisp.org>
3914         Add ability to emit user-defined warnings and errors with clang.
3915         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
3916         _GL_ATTRIBUTE_WARNING using an attribute for clang.
3917         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
3918         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
3919         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
3920         attribute for clang.
3922 2020-08-09  Bruno Haible  <bruno@clisp.org>
3924         intprops: Fix typo in comment.
3925         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
3927 2020-08-09  Bruno Haible  <bruno@clisp.org>
3929         Use __builtin_signbit* with clang.
3930         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
3931         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
3932         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
3933         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
3934         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
3935         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
3936         not REPLACE_SIGNBIT_USING_GCC.
3938 2020-08-09  Bruno Haible  <bruno@clisp.org>
3940         Use __builtin_isnan with clang.
3941         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
3942         not __builtin_isnanf. Also on clang.
3943         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
3944         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
3945         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
3946         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
3947         built-in.
3948         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
3949         not __builtin_isnanl. Also on clang.
3950         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
3951         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
3952         * lib/math.in.h (__has_builtin): Remove macro.
3953         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
3954         __builtin_isnanf. Also on clang.
3955         (isnand, gl_isnan_d): With clang, use the GCC built-in.
3956         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
3957         __builtin_isnanl. Also on clang.
3958         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
3959         on clang.
3961 2020-08-09  Bruno Haible  <bruno@clisp.org>
3963         thread-optim: Fix logic error.
3964         Reported by Paul Eggert.
3965         * lib/thread-optim.h (IF_MT): Fix logic error.
3967 2020-08-08  Bruno Haible  <bruno@clisp.org>
3969         localename: Use module 'thread-optim'.
3970         * lib/localename.c: Include thread-optim.h.
3971         (struniq): Use IF_MT macro.
3972         * modules/localename (Depends-on): Add thread-optim.
3974         clean-temp: Use module 'thread-optim'.
3975         * lib/clean-temp.c: Include thread-optim.h.
3976         (register_temporary_file, unregister_temporary_file, create_temp_dir,
3977         register_temp_file, unregister_temp_file, register_temp_subdir,
3978         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
3979         close_temp, fclose_variant_temp): Use IF_MT macro.
3980         * modules/clean-temp (Depends-on): Add thread-optim.
3982         fatal-signal: Use module 'thread-optim'.
3983         * lib/fatal-signal.c: Include thread-optim.h.
3984         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
3985         macro.
3986         * modules/fatal-signal (Depends-on): Add thread-optim.
3988 2020-08-08  Bruno Haible  <bruno@clisp.org>
3990         New module 'thread-optim'.
3991         * lib/thread-optim.h: New file.
3992         * modules/thread-optim: New file.
3993         * doc/multithread.texi (Multithreading Optimizations): New section.
3995 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
3997         doc: more updates for glibc 2.32
3998         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
3999         * doc/posix-functions/fchmodat.texi: Update.
4001 2020-08-07  Bruno Haible  <bruno@clisp.org>
4003         doc: Update for glibc 2.32.
4004         * doc/glibc-functions/__libc_single_threaded.texi: New file.
4005         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
4006         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
4007         * doc/glibc-functions/sigabbrev_np.texi: New file.
4008         * doc/glibc-functions/sigdescr_np.texi: New file.
4009         * doc/glibc-functions/strerrordesc_np.texi: New file.
4010         * doc/glibc-functions/strerrorname_np.texi: New file.
4011         * doc/gnulib.texi: Include them.
4012         (Glibc sys/single_threaded.h): New section.
4013         * doc/pastposix-functions/h_errno.texi: Update.
4014         * doc/posix-functions/*.texi: Likewise.
4015         * doc/glibc-functions/*.texi: Likewise.
4017 2020-08-07  Bruno Haible  <bruno@clisp.org>
4019         alloca: No need to compile alloca.c with clang.
4020         * lib/alloca.c: Skip all code with clang.
4022         Use __builtin_alloca with clang.
4023         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
4025 2020-08-06  Bruno Haible  <bruno@clisp.org>
4027         Use __builtin_assume with clang.
4028         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
4029         (assume): Use __builtin_assume when available.
4031 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
4033         libgmp: add <gmp/gmp.h> support
4034         * m4/libgmp.m4 (gl_LIBGMP):
4035         * modules/libgmp (configure.ac, Makefile.am):
4036         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
4037         ‘#include <gmp.h>’.
4039 2020-08-06  Bruno Haible  <bruno@clisp.org>
4041         Consider that clang defines __OPTIMIZE__ like GCC does.
4042         * lib/streq.h: Define the inline functions also on clang.
4043         * lib/c-strcaseeq.h: Likewise.
4044         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
4045         the GCC workaround to clang.
4047 2020-08-06  Bruno Haible  <bruno@clisp.org>
4049         safe-alloc: Remove unused code.
4050         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
4052 2020-08-06  Bruno Haible  <bruno@clisp.org>
4054         Use __builtin_expect with clang everywhere.
4055         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
4056         also on clang.
4058 2020-08-05  Bruno Haible  <bruno@clisp.org>
4060         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
4061         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
4062         built-in also on clang.
4063         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
4064         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
4066 2020-08-05  Bruno Haible  <bruno@clisp.org>
4068         Use __builtin_clz{,l,ll} with clang, also on Windows.
4069         * lib/integer_length.c: With clang, use the GCC built-in, not
4070         <intrin.h>.
4071         * lib/integer_length_l.c: Likewise.
4072         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
4073         also on clang.
4074         * lib/vasnprintf.c (divide): Likewise.
4076 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
4078         Update srclist.txt as per recent glibc changes
4079         * config/srclist.txt: Uncomment lines to reflect recent merges
4080         from Gnulib to glibc.
4082 2020-08-03  Bruno Haible  <bruno@clisp.org>
4084         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
4085         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
4087 2020-08-03  Bruno Haible  <bruno@clisp.org>
4089         integer_length_ll: Optimize for MSVC in 64-bit mode.
4090         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
4091         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
4093 2020-08-03  Bruno Haible  <bruno@clisp.org>
4095         integer_length_ll: Optimize for MSVC in 32-bit mode.
4096         * lib/integer_length_l.c: Include <intrin.h>.
4097         (integer_length): Define as inline function, like in
4098         lib/integer_length.c.
4100 2020-08-03  Bruno Haible  <bruno@clisp.org>
4102         integer_length: Optimize for MSVC.
4103         * lib/integer_length.c: Include <intrin.h>.
4104         (integer_length): With MSVC, use the _BitScanReverse built-in.
4106 2020-08-03  Bruno Haible  <bruno@clisp.org>
4108         ffsll: Optimize for MSVC in 64-bit mode.
4109         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
4110         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
4111         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
4113 2020-08-03  Bruno Haible  <bruno@clisp.org>
4115         ffsll: Optimize for MSVC in 32-bit mode.
4116         * lib/ffsl.h: Include <intrin.h>.
4117         (ffs): Define as inline function, like in lib/ffs.c.
4119 2020-08-03  Bruno Haible  <bruno@clisp.org>
4121         ffs: Optimize for MSVC.
4122         * lib/ffs.c: Include <intrin.h>.
4123         (ffs): With MSVC, use the _BitScanForward built-in.
4125 2020-08-03  Bruno Haible  <bruno@clisp.org>
4127         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
4128         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
4129         variable.
4131 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
4133         fopen: Avoid undesired interactions with glibc headers.
4134         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
4135         __need_FILE, as the latter does not work with glibc.
4137 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
4139         fcntl: document some F_SETLK errno variations
4140         * doc/posix-functions/fcntl.texi (fcntl): Document
4141         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
4143 2020-08-02  Bruno Haible  <bruno@clisp.org>
4145         oset: Add an 'iterator_atleast' operation.
4146         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
4147         extracted from gl_array_search_atleast.
4148         (gl_array_search_atleast): Use it.
4149         (gl_array_iterator_atleast): New function.
4150         (gl_array_oset_implementation): Use it.
4151         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
4152         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
4153         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
4154         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
4155         member.
4156         (gl_oset_iterator_atleast): New function.
4157         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
4158         (gl_OSet::iterator): Add another auxiliary constructor.
4159         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
4160         New functions.
4161         (main): Test also gl_oset_iterator_atleast.
4162         * tests/test-avltree_oset.c (is_at_least): New function.
4163         (main): Test also gl_oset_iterator_atleast.
4164         * tests/test-rbtree_oset.c (is_at_least): New function.
4165         (main): Test also gl_oset_iterator_atleast.
4166         * tests/test-oset-c++.cc (is_at_most): New function.
4167         (main): Test also gl_OSet::begin_atleast.
4169 2020-08-02  Bruno Haible  <bruno@clisp.org>
4171         oset-c++, omap-c++: Remove restriction for search_atleast method.
4172         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
4173         a different type than the element.
4174         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
4175         a different type than the key.
4177 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
4179         gnumakefile: say ‘$(MAKE)’ not ‘make’
4180         * top/GNUmakefile (abort-due-to-no-makefile):
4181         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
4182         This change is backported from Autoconf.
4184 2020-08-01  Bruno Haible  <bruno@clisp.org>
4186         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
4187         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
4188         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
4189         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
4190         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
4191         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
4193 2020-08-01  Bruno Haible  <bruno@clisp.org>
4195         libtextstyle-optional: Update tests.
4196         * modules/libtextstyle-optional-tests (configure.ac): Invoke
4197         gl_LIBTEXTSTYLE_OPTIONAL.
4199 2020-08-01  Bruno Haible  <bruno@clisp.org>
4201         parse-datetime: Fix wrong #line statements.
4202         * modules/parse-datetime (Makefile.am): Correct #line statements also in
4203         parse-datetime-gen.h.
4205 2020-08-01  Bruno Haible  <bruno@clisp.org>
4207         libtextstyle[-optional]: Allow requesting a minimum version.
4208         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
4209         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
4210         gl_LIBTEXTSTYLE_SEARCH): New macros.
4211         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
4212         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
4213         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
4214         * modules/libtextstyle-optional (configure.ac): Don't invoke
4215         gl_LIBTEXTSTYLE_OPTIONAL.
4216         * NEWS: Mention the changes.
4218 2020-07-31  Bruno Haible  <bruno@clisp.org>
4220         _GL_CMP: Improve documentation.
4221         Reported by Paul Eggert in
4222         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
4223         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
4224         passed.
4226 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
4228         largefile: sync with Autoconf master
4229         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
4230         Avoid undefined behavior on platforms where off_t is 32 bits.
4231         See: https://bugs.debian.org/742780
4233         alloca: sync with Autoconf master
4234         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4235         Do not define if Autoconf 2.70 or later, since Autoconf master
4236         now matches us.
4238 2020-07-30  Bruno Haible  <bruno@clisp.org>
4240         unicodeio: Add comment.
4241         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
4242         different iconv behaviours.
4244 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
4246         Work around some Oracle Studio attribute bugs
4247         These were discovered when building bleeding-edge Emacs with
4248         Oracle Studio.
4249         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
4250         Port to Oracle Studio 12.6, which mishandles __attribute__
4251         ((__cold__)) and __attribute__ ((__may_alias__)) even though
4252         __has_attribute says they work.
4254 2020-07-29  Bruno Haible  <bruno@clisp.org>
4256         unicodeio: Fix wrong result on musl libc.
4257         Reported by A. Wilcox <awilfox@adelielinux.org> in
4258         <https://www.openwall.com/lists/musl/2020/07/29/2>.
4259         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
4260         on musl libc.
4261         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
4262         * modules/unicodeio (Files): Add m4/musl.m4.
4264 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
4266         fsusage, regex, stat-size: remove Cray support
4267         As near as I can make out this is actually support for UNICOS/mp,
4268         last released 2005, and Cray hasn’t supported that for years.
4269         * config/srclist.txt: Comment out regex.h for now.
4270         * lib/fsusage.c (get_fs_usage):
4271         * lib/regex.h (re_comp, re_exec):
4272         * lib/stat-size.h (ST_NBLOCKSIZE):
4273         Don’t worry about _CRAY.
4275 2020-07-29  Bruno Haible  <bruno@clisp.org>
4277         parse-datetime: Fix compilation error with bison 3.7.
4278         * modules/parse-datetime (Makefile.am): Create a generated header file
4279         parse-datetime-gen.h in the source directory. Correct #include and
4280         #line statements during preprocessing.
4282 2020-07-28  Bruno Haible  <bruno@clisp.org>
4284         fopen-gnu: Create files correctly (regression from 2020-05-24).
4285         * lib/fopen.c (rpl_open): Pass a third argument to open().
4287 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
4289         xalloc-die: don’t depend on xalloc
4290         This removes a circular dependency, as xalloc depends on xalloc-die.
4291         * modules/xalloc-die (Files): Add lib/xalloc.h.
4292         (Depends-on): Remove xalloc.
4293         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
4295         dfa-tests: port to MSVC
4296         Problem reported by Gisle Vanem in:
4297         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
4298         Also, remove an unnecessary dependency on getprogname.
4299         * modules/dfa-tests (Depends-on): Remove getprogname.
4300         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
4301         (exit_status): New static var.
4302         (dfawarn): Set it instead of exiting.
4303         Do not declare as _Noreturn, to pacify MSVC.
4304         (main): Return exit_status.
4306 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
4308         argz: pacify MSVC
4309         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
4310         Problem reported by Gisle Vanem.
4312         libgmp: remove dependency on havelib
4313         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
4314         use the more-traditional AC_SEARCH_LIBS approach.
4315         This should work better with GNU Emacs configuration,
4316         which uses pkg-config instead of a havelib-style approach.
4317         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
4318         * modules/libgmp (Depends-on): Remove havelib.
4320         libgmp: remove HAVE_GMP, LIB_GMP
4321         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
4322         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
4324 2020-07-26  Bruno Haible  <bruno@clisp.org>
4326         inttypes: Remove support for AIX 4.
4327         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
4328         * m4/inttypes-pri.m4: Remove file.
4329         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
4330         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
4331         * modules/inttypes-incomplete (Makefile.am): Don't substitute
4332         PRI_MACROS_BROKEN.
4333         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
4335 2020-07-26  Bruno Haible  <bruno@clisp.org>
4337         gettimeofday: Remove workaround for Mac OS X 10.0.
4338         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
4339         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
4340         * lib/gettimeofday.c: Don't include localtime-buffer.h.
4341         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4342         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4343         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
4344         * modules/localtime-buffer: Remove file.
4345         * lib/localtime-buffer.h: Remove file.
4346         * lib/localtime-buffer.c: Remove file.
4347         * m4/localtime-buffer.m4: Remove file.
4348         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
4350 2020-07-26  Bruno Haible  <bruno@clisp.org>
4352         tzset: Remove workaround for Solaris 2.6.
4353         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
4354         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
4355         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
4356         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
4357         * lib/localtime-buffer.c: Likewise.
4358         * lib/localtime.c: Likewise.
4359         * lib/tzset.c: Don't include localtime-buffer.h.
4360         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
4361         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
4362         is 1.
4363         * modules/tzset (Depends-on): Remove localtime-buffer.
4365 2020-07-26  Bruno Haible  <bruno@clisp.org>
4367         expl: Simplify autoconf test.
4368         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
4369         with small values..." test into the "checking whether expl works..."
4370         test.
4372 2020-07-26  Bruno Haible  <bruno@clisp.org>
4374         alloca: Remove Cray-2 and Cray Y-MP support.
4375         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
4376         Enable also on Autoconf >= 2.69.
4377         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
4378         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
4379         i00afunc): Remove.
4381 2020-07-25  Bruno Haible  <bruno@clisp.org>
4383         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
4384         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
4386 2020-07-25  Bruno Haible  <bruno@clisp.org>
4388         sigprocmask: Small autoconf macro improvement.
4389         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
4390         user to override the value of gl_cv_func_sigprocmask.
4391         * m4/gnulib-common.m4 (gl_SILENT): New macro.
4393 2020-07-25  Bruno Haible  <bruno@clisp.org>
4395         Small autoconf macro improvements.
4396         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
4397         override the value of gl_cv_func_working_mktime.
4398         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
4399         compiler produces multi-arch binaries..." in the configure output.
4400         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
4401         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
4403 2020-07-25  Bruno Haible  <bruno@clisp.org>
4405         doc: Update for NetBSD 7.1, 8.0, 9.0.
4406         * doc/*/*.texi: Update.
4407         * m4/exp2l.m4: Update comments.
4408         * m4/expl.m4: Likewise.
4409         * m4/ilogb.m4: Likewise.
4410         * m4/ilogbf.m4: Likewise.
4411         * m4/log10l.m4: Likewise.
4412         * m4/logl.m4: Likewise.
4413         * m4/printf.m4: Likewise.
4414         * m4/rintl.m4: Likewise.
4415         * m4/wcwidth.m4: Likewise.
4417 2020-07-24  Bruno Haible  <bruno@clisp.org>
4419         doc: Update for Mac OS X 10.13.
4420         * doc/*/*.texi: Update.
4421         * m4/expm1l.m4: Update comments.
4422         * m4/getgroups.m4: Likewise.
4423         * m4/getlogin_r.m4: Likewise.
4424         * m4/linkat.m4: Likewise.
4425         * m4/printf.m4: Likewise.
4427 2020-07-24  Bruno Haible  <bruno@clisp.org>
4429         doc: Update for Cygwin 2.9.0.
4430         * doc/*/*.texi: Update.
4432 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4434         parse-datetime: modernize doc
4435         * doc/parse-datetime.texi: Use more-current examples.
4436         Don’t lead with 32-bit time_t, as it’s on its way out.
4437         Capitalize “Epoch” to be consistent with POSIX.
4439         timespec: remove dependence on ‘verify’
4440         * lib/timespec.h: Do not include verify.h; no longer needed.
4441         * modules/timespec (Depends-on): Remove ‘verify’.
4443         Optimize a few more three-valued comparisons
4444         * lib/timespec.h (timespec_cmp, timespec_sign):
4445         * lib/utimecmp.c (utimecmpat):
4446         Avoid conditional branches by using _GL_CMP.
4448         Fix _GL_CMP parenthesization typo
4449         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
4451 2020-07-24  Bruno Haible  <bruno@clisp.org>
4453         dfa: Revert breaking gawk.
4454         Reported by Arnold Robbins <arnold@skeeve.com>.
4455         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
4457 2020-07-23  Bruno Haible  <bruno@clisp.org>
4459         Optimize three-valued comparison between integers.
4460         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
4461         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
4462         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
4463         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
4464         * lib/dfa.c (compare): Likewise.
4465         * lib/fts.c (fts_compare_ino): Likewise.
4466         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
4467         * lib/mbscasecmp.c (mbscasecmp): Likewise.
4468         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
4469         * lib/memcasecmp.c (memcasecmp): Likewise.
4470         * lib/memcmp2.c (memcmp2): Likewise.
4471         * lib/savedir.c (direntry_cmp_inode): Likewise.
4472         * lib/strcasecmp.c (strcasecmp): Likewise.
4473         * lib/strncasecmp.c (strncasecmp): Likewise.
4474         * lib/unistr/u-cmp2.h (FUNC): Likewise.
4476 2020-07-23  Bruno Haible  <bruno@clisp.org>
4478         lchmod: Use /proc on Cygwin.
4479         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
4481 2020-07-23  Ken Brown  <kbrown@cornell.edu>
4483         fchmodat: Use /proc on Cygwin
4484         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
4486 2020-07-21  Bruno Haible  <bruno@clisp.org>
4488         aligned-malloc: Optionally use aligned_alloc.
4489         * lib/aligned-malloc.h: Verify the alignment.
4490         (aligned_malloc): Use aligned_alloc as an alternative.
4491         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
4492         * doc/posix-functions/aligned_alloc.texi: Mention the modules
4493         'aligned-malloc' and 'pagealign_alloc'.
4495 2020-07-21  Bruno Haible  <bruno@clisp.org>
4497         aligned-malloc: Add tests.
4498         * tests/test-aligned-malloc.c: New file.
4499         * modules/aligned-malloc-tests: New file.
4501         aligned-malloc: New module.
4502         * lib/aligned-malloc.h: New file.
4503         * m4/malloc-align.m4: New file.
4504         * modules/aligned-malloc: New file.
4505         * doc/posix-functions/posix_memalign.texi: Mention the new module.
4506         * doc/glibc-functions/memalign.texi: Likewise.
4508 2020-07-21  Bruno Haible  <bruno@clisp.org>
4510         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
4511         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
4512         sure PRIPTR_PREFIX is defined to "ll", not "l".
4514 2020-07-21  Bruno Haible  <bruno@clisp.org>
4516         printf-posix: Make an autoconf test more future-proof.
4517         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
4518         using uintptr_t.
4520 2020-07-20  Bruno Haible  <bruno@clisp.org>
4522         list, oset, omap: Relicense some of the container modules under LGPLv2+.
4523         * modules/list (License): Change to LGPLv2+.
4524         * modules/array-list (License): Likewise.
4525         * modules/carray-list (License): Likewise.
4526         * modules/linked-list (License): Likewise.
4527         * modules/avltree-list (License): Likewise.
4528         * modules/rbtree-list (License): Likewise.
4529         * modules/oset (License): Likewise.
4530         * modules/array-oset (License): Likewise.
4531         * modules/avltree-oset (License): Likewise.
4532         * modules/rbtree-oset (License): Likewise.
4533         * modules/omap (License): Likewise.
4534         * modules/array-omap (License): Likewise.
4535         * modules/avltree-omap (License): Likewise.
4536         * modules/rbtree-omap (License): Likewise.
4538 2020-07-20  Bruno Haible  <bruno@clisp.org>
4540         oset: Add an 'update' operation.
4541         * lib/gl_array_oset.c (gl_array_update): New function.
4542         (gl_array_oset_implementation): Use it.
4543         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4544         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4545         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
4546         extracted from gl_tree_nx_add_before.
4547         (gl_tree_nx_add_before): Invoke it.
4548         (gl_tree_add_node_after): New function, extracted from
4549         gl_tree_nx_add_after.
4550         (gl_tree_nx_add_after): Invoke it.
4551         (gl_tree_remove_node_no_free): New function, extracted from
4552         gl_tree_remove_node.
4553         (gl_tree_remove_node): Invoke it.
4554         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
4555         extracted from gl_tree_nx_add_before.
4556         (gl_tree_nx_add_before): Invoke it.
4557         (gl_tree_add_node_after): New function, extracted from
4558         gl_tree_nx_add_after.
4559         (gl_tree_nx_add_after): Invoke it.
4560         (gl_tree_remove_node_no_free): New function, extracted from
4561         gl_tree_remove_node.
4562         (gl_tree_remove_node): Invoke it.
4563         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
4564         from gl_tree_iterator_next.
4565         (gl_tree_iterator_next): Invoke it.
4566         (gl_tree_prev_node, gl_tree_update): New functions.
4567         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4568         (gl_avltree_oset_implementation): Use gl_tree_update.
4569         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4570         (gl_rbtree_oset_implementation): Use gl_tree_update.
4571         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
4572         (gl_oset_update): New function.
4573         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
4574         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
4575         * modules/rbtree-oset (configure.ac): Likewise.
4576         * tests/test-oset-update.h: New file.
4577         * tests/test-array_oset.c: Include test-oset-update.h.
4578         (main): Invoke test_update.
4579         * tests/test-avltree_oset.c: Likewise.
4580         * tests/test-rbtree_oset.c: Likewise.
4581         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
4582         * modules/avltree-oset-tests (Files): Likewise.
4583         * modules/rbtree-oset-tests (Files): Likewise.
4584         * tests/test-oset-c++.cc (action): New function.
4585         (main): Test the 'update' member function.
4587 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4589         md5, sha1, sha256, sha512: pacify Autoconf 2.70
4590         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
4591         shell if, so that the argument to AC_CHECK_HEADERS is
4592         a simple string that does not require shell evaluation.
4593         This fixes a warning generated by Autoconf 2.69b.
4595 2020-07-12  Bruno Haible  <bruno@clisp.org>
4597         libgmp: Avoid warning when --without-libgmp is used.
4598         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
4599         GCC >= 8, not for GCC >= 4.6.
4601 2020-07-12  Bruno Haible  <bruno@clisp.org>
4603         libgmp: Link to the correct shared library.
4604         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
4605         * modules/libgmp (Depends-on): Add havelib.
4606         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
4607         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
4609 2020-07-12  Bruno Haible  <bruno@clisp.org>
4611         libgmp tests: Add some safety checks.
4612         * modules/libgmp-tests (Depends-on): Add verify.
4613         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
4614         (main): Verify that gmp.h and libgmp versions match.
4616 2020-07-10  Bruno Haible  <bruno@clisp.org>
4618         unicodeio: Fix wrong result on NetBSD.
4619         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
4620         characters also on NetBSD.
4622 2020-07-09  Bruno Haible  <bruno@clisp.org>
4624         unicodeio: Fix wrong result on Solaris 11.
4625         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
4626         via Akim Demaille <akim.demaille@gmail.com> in
4627         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
4628         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
4629         characters on Solaris.
4630         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
4631         UTF-8 output or the specified fallback.
4633 2020-07-08  Bruno Haible  <bruno@clisp.org>
4635         unicodeio: Add tests.
4636         * tests/test-unicodeio.c: New file.
4637         * tests/test-unicodeio1.sh: New file.
4638         * tests/test-unicodeio2.sh: New file.
4639         * tests/test-unicodeio3.sh: New file.
4640         * modules/unicodeio-tests: New file.
4642 2020-07-08  Bruno Haible  <bruno@clisp.org>
4644         unicodeio: Document link requirements.
4645         * modules/unicodeio (Link): New section.
4647 2020-07-07  Bruno Haible  <bruno@clisp.org>
4649         doc: Remove support for some very old platforms.
4650         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
4651         * doc/posix-functions/memcpy.texi: Likewise.
4652         * doc/posix-functions/memmove.texi: Likewise.
4653         * doc/posix-functions/memset.texi: Likewise.
4654         * doc/posix-functions/getcwd.texi: Likewise.
4656         memchr: Remove support for some very old platforms.
4657         * m4/memchr-obsolete.m4: Remove file.
4658         * modules/memchr-obsolete: Remove file.
4659         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
4660         absent. Don't define HAVE_MEMCHR.
4661         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
4662         * modules/memchr (Depends-on): Remove memchr-obsolete.
4663         (configure.ac): Assume HAVE_MEMCHR is 1.
4664         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
4665         HAVE_MEMCHR.
4666         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
4667         * doc/posix-functions/memchr.texi: Don't mention module
4668         'memchr-obsolete'.
4669         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
4670         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
4671         * modules/strnlen (Depends-on): Remove memchr-obsolete.
4673         dup2: Remove support for some very old platforms.
4674         * m4/dup2-obsolete.m4: Remove file.
4675         * modules/dup2-obsolete: Remove file.
4676         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
4677         Don't define HAVE_DUP2.
4678         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
4679         * lib/dup2.c: Likewise.
4680         * modules/dup2 (Depends-on, configure.ac): Likewise.
4681         (Depends-on): Remove dup2-obsolete.
4682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
4683         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
4684         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
4686 2020-07-07  Bruno Haible  <bruno@clisp.org>
4688         canonicalize: Trim module dependencies.
4689         * lib/hash-triple.h: Group declarations.
4690         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
4691         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
4692         (STREQ): Remove macro.
4693         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
4694         * modules/hash-triple-simple: New file, based on modules/hash-triple.
4695         * modules/hash-triple (Files): Remove lib/hash-triple.h.
4696         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
4697         * modules/canonicalize (Depends-on): Remove hash-triple. Add
4698         hash-triple-simple.
4699         * modules/file-set (Depends-on): Likewise.
4701 2020-07-07  Bruno Haible  <bruno@clisp.org>
4703         Clarify dependencies to double-slash-root.
4704         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
4705         (Depends-on): Add double-slash-root.
4706         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
4707         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
4709 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4711         libgmp: new module
4712         The idea is to let programs simply include <gmp.h>, and
4713         so long as they live within the mini-gmp subset they need
4714         not worry about whether the GMP libraries are installed.
4715         * MODULES.html.sh: Mention it.
4716         * config/srclist.txt: Mention files copied from GMP source.
4717         * config/srclistvars.sh (GMP): New var.
4718         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
4719         * modules/libgmp-tests, tests/test-libgmp.c: New files.
4720         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
4722 2020-07-05  Bruno Haible  <bruno@clisp.org>
4724         mkancesdirs: Trim module dependencies.
4725         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
4726         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
4728 2020-07-05  Bruno Haible  <bruno@clisp.org>
4730         getprogname: Trim module dependencies.
4731         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
4732         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
4733         basename-lgpl.
4735 2020-07-05  Bruno Haible  <bruno@clisp.org>
4737         filenamecat-lgpl: Trim module dependencies.
4738         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
4739         dirname.h.
4740         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
4741         basename-lgpl, filename.
4743 2020-07-05  Bruno Haible  <bruno@clisp.org>
4745         backupfile, backup-rename: Trim module dependencies.
4746         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
4747         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
4748         basename-lgpl.
4749         * modules/backup-rename (Depends-on): Likewise.
4751 2020-07-05  Bruno Haible  <bruno@clisp.org>
4753         argp: Trim module dependencies.
4754         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
4755         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
4757 2020-07-05  Bruno Haible  <bruno@clisp.org>
4759         basename-lgpl: New module.
4760         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
4761         lib/basename-lgpl.c.
4762         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
4763         <stdbool.h>, filename.h.
4764         (last_component): Rename a local variable.
4765         * lib/dirname.h: Include basename-lgpl.h.
4766         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
4767         (last_component, base_len): Remove declarations.
4768         * modules/basename-lgpl: New file.
4769         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
4770         (Depends-on): Add basename-lgpl. Remove double-slash-root.
4771         (Makefile.am): Don't compile basename-lgpl.c.
4772         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
4773         not 'dirname'.
4775 2020-07-05  Bruno Haible  <bruno@clisp.org>
4777         dirname, dirname-lgpl: Simplify.
4778         * m4/dirname.m4: Remove file.
4779         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
4780         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
4781         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
4783 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
4785         tests: avoid shadowing warning
4786         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
4788 2020-07-05  Bruno Haible  <bruno@clisp.org>
4790         supersede: Add tests.
4791         * tests/test-supersede.c: New file.
4792         * tests/test-supersede-open.h: New file.
4793         * tests/test-supersede-fopen.h: New file.
4794         * modules/supersede-tests: New file.
4796         supersede: New module.
4797         * lib/supersede.h: New file.
4798         * lib/supersede.c: New file.
4799         * m4/supersede.m4: New file.
4800         * modules/supersede: New file.
4802 2020-07-05  Bruno Haible  <bruno@clisp.org>
4804         Add some copyright headers.
4805         * lib/dev-ino.h: Add copyright header.
4806         * lib/di-set.h: Likewise.
4807         * lib/fchown-stub.c: Likewise.
4808         * lib/file-set.h: Likewise.
4809         * lib/hash-triple.h: Likewise.
4810         * lib/idcache.h: Likewise.
4811         * lib/ino-map.h: Likewise.
4812         * lib/mkancesdirs.h: Likewise.
4813         * lib/scratch_buffer.h: Likewise.
4814         * lib/se-context.in.h: Likewise.
4815         * lib/stdopen.h: Likewise.
4816         * lib/userspec.h: Likewise.
4818 2020-07-04  Bruno Haible  <bruno@clisp.org>
4820         getrandom: Relicense under LGPLv2+.
4821         Paul Eggert's approval is in
4822         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
4823         * modules/getrandom (License): Change to LGPLv2+.
4825 2020-07-04  Bruno Haible  <bruno@clisp.org>
4827         getumask: Add tests.
4828         * tests/test-getumask.c: New file.
4829         * modules/getumask-tests: New file.
4831         getumask: New module.
4832         * lib/sys_stat.in.h (getumask): New declaration.
4833         * lib/getumask.c: New file.
4834         * m4/getumask.m4: New file.
4835         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
4836         declared.
4837         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
4838         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
4839         HAVE_GETUMASK.
4840         * modules/getumask: New file.
4841         * tests/test-sys_stat-c++.cc (getumask): Check signature.
4842         * doc/glibc-functions/getumask.texi: New file.
4843         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
4845 2020-07-04  Bruno Haible  <bruno@clisp.org>
4847         clean-temp: Add support for temporary files with given mode.
4848         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
4849         * lib/clean-temp.c (struct try_create_file_params): New type.
4850         (try_create_file): New function.
4851         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
4852         gen_tempname.
4854 2020-07-04  Bruno Haible  <bruno@clisp.org>
4856         clean-temp: Document limitations.
4857         * lib/clean-temp.h: Document limitations.
4859 2020-07-04  Bruno Haible  <bruno@clisp.org>
4861         clean-temp: Add support for temporary files with unpredictable names.
4862         * lib/clean-temp.h (gen_register_open_temp): New declaration.
4863         * lib/clean-temp.c: Include tempname.h.
4864         (gen_register_open_temp): New function.
4865         * modules/tempname (configure.ac): Define a module indicator.
4867 2020-07-04  Bruno Haible  <bruno@clisp.org>
4869         clean-temp: Add support for temporary files anywhere in the file system.
4870         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
4871         cleanup_temporary_file): New declarations.
4872         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
4873         variables.
4874         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
4875         (dir_cleanup_list): Renamed from cleanup_list.
4876         (cleanup_action): Process the file_cleanup_list as well.
4877         (do_init_clean_temp): New function.
4878         (clean_temp_once): New variable.
4879         (init_clean_temp): New function.
4880         (create_temp_dir): Invoke it.
4881         (register_temporary_file, unregister_temporary_file,
4882         cleanup_temporary_file): New functions.
4883         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
4884         argument.
4886 2020-07-04  Bruno Haible  <bruno@clisp.org>
4888         clean-temp: Improve comments.
4889         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
4890         fwriteerror_temp, close_stream_temp): Clarify intended use.
4891         * lib/clean-temp.c: Likewise.
4893 2020-07-04  Bruno Haible  <bruno@clisp.org>
4895         clean-temp: Make multithread-safe, part 2.
4896         * lib/fatal-signal.h: Include <signal.h>.
4897         (get_fatal_signal_set): New declaration.
4898         * lib/fatal-signal.c (get_fatal_signal_set): New function.
4899         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
4900         (struct closeable_fd): New type.
4901         (fatal_signal_set): New variable.
4902         (init_fatal_signal_set): New function.
4903         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
4904         (cleanup_action): Invoke asyncsafe_close instead of close.
4905         (create_temp_dir): Invoke init_fatal_signal_set.
4906         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
4907         element.
4908         (unregister_fd): Remove function.
4909         (close_temp): Cleanup descriptors list on the fly. Invoke
4910         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
4911         (fclose_variant_temp): New function.
4912         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
4913         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
4915 2020-07-04  Bruno Haible  <bruno@clisp.org>
4917         clean-temp: Make multithread-safe, part 1.
4918         * lib/clean-temp.c: Include glthread/lock.h.
4919         (cleanup_list_lock): New variable.
4920         (register_temp_file, unregister_temp_file, register_temp_subdir,
4921         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
4922         (create_temp_dir): Likewise. Don't free the old array.
4923         (descriptors_lock): New variable.
4924         (register_fd, unregister_fd): Use it.
4925         * modules/clean-temp (Depends-on): Add lock.
4927 2020-07-04  Bruno Haible  <bruno@clisp.org>
4929         fatal-signal: Make multithread-safe.
4930         * lib/fatal-signal.c (init_fatal_signals): Add comment.
4931         (do_init_fatal_signal_set): New function, extracted from
4932         init_fatal_signal_set.
4933         (fatal_signal_set_once): New variable.
4934         (init_fatal_signal_set): Use gl_once.
4936 2020-07-03  Bruno Haible  <bruno@clisp.org>
4938         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
4939         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
4940         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
4941         <bcrypt.h>.
4943 2020-07-03  Bruno Haible  <bruno@clisp.org>
4945         dfa tests: Follow common file naming conventions.
4946         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
4947         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
4948         * tests/test-dfa-invalid-char-class.sh: Renamed from
4949         tests/dfa-invalid-char-class.sh. Update.
4950         * modules/dfa-tests (Files, Makefile.am): Update.
4952 2020-07-03  Bruno Haible  <bruno@clisp.org>
4954         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
4955         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
4956         the GCC extended asm syntax also for the Sun Studio 12 compilers.
4958 2020-07-03  Bruno Haible  <bruno@clisp.org>
4960         asyncsafe-spin: Reduce code duplication.
4961         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
4962         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
4963         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
4965 2020-07-03  Bruno Haible  <bruno@clisp.org>
4967         lchmod: Simplify after 2020-02-22 change.
4968         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
4970 2020-07-03  Bruno Haible  <bruno@clisp.org>
4972         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
4973         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
4975 2020-07-03  Bruno Haible  <bruno@clisp.org>
4977         dfa: Make sure the compiler does not barf on 'inline'.
4978         * modules/dfa (configure.ac): Require AC_C_INLINE.
4980 2020-07-03  Bruno Haible  <bruno@clisp.org>
4982         bitset: Make sure the compiler does not barf on 'inline'.
4983         * modules/bitset (configure.ac): New section.
4985 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
4987         manywarnings: improve port to GCC 10.1
4988         * build-aux/gcc-warning.spec: Also list warnings that are default
4989         or are enabled by already-given flags.  This lets us speed up
4990         checking for attributes, and makes the generated compilation
4991         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
4992         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
4993         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
4994         to shell variables that may have long values.
4995         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
4996         consequences of other flags, to speed up checking and
4997         shorten commands.
4999         tests: pacify gcc -fanalyzer on zerosize_ptr
5000         * tests/test-memcasecmp.c (main):
5001         * tests/test-memchr.c (main):
5002         * tests/test-memchr2.c (main):
5003         * tests/test-memcmp.c (main):
5004         * tests/test-memmem.c (main):
5005         * tests/test-memrchr.c (main):
5006         * tests/unistr/test-chr.h (main):
5007         * tests/unistr/test-cmp.h (test_cmp):
5008         Check whether zerosize_ptr returns NULL before using it.
5009         This pacifies GCC 10.1’s new fanalyzer option, and matches
5010         other uses of zerosize_ptr.
5012 2020-07-01  Bruno Haible  <bruno@clisp.org>
5014         asyncsafe-spin: Add tests.
5015         * tests/test-asyncsafe-spin1.c: New file.
5016         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
5017         tests/test-pthread-spin.c.
5018         * modules/asyncsafe-spin-tests: New file.
5020 2020-07-01  Bruno Haible  <bruno@clisp.org>
5022         asyncsafe-spin: New module.
5023         * lib/asyncsafe-spin.h: New file.
5024         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
5025         * modules/asyncsafe-spin: New file.
5027 2020-07-01  Bruno Haible  <bruno@clisp.org>
5029         windows-spin: Fix race condition on multiprocessor systems.
5030         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
5032 2020-07-01  Bruno Haible  <bruno@clisp.org>
5034         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
5035         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
5036         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
5037         an implementation based on other GCC built-ins.
5039 2020-07-01  Bruno Haible  <bruno@clisp.org>
5041         pthread-spin: Optimize fallback for GCC versions >= 4.7.
5042         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
5043         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
5044         lock byte.
5046 2020-07-01  Bruno Haible  <bruno@clisp.org>
5048         pthread-spin: Add error checking.
5049         * lib/pthread-spin.c: Include <stdbool.h>.
5050         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
5051         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
5052         the unlocks.
5053         * modules/pthread-spin (Depends-on): Add stdbool.
5055 2020-07-01  Bruno Haible  <bruno@clisp.org>
5057         pthread-spin: Add tests.
5058         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
5059         * modules/pthread-spin-tests: New file.
5061 2020-07-01  Bruno Haible  <bruno@clisp.org>
5063         tests: Reduce code duplication.
5064         * tests/atomic-int-posix.h: New file, extracted from
5065         tests/test-pthread-mutex.c.
5066         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
5067         * tests/test-pthread-rwlock.c: Likewise.
5068         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
5069         * modules/pthread-rwlock-tests (Files): Likewise.
5071 2020-07-01  Bruno Haible  <bruno@clisp.org>
5073         tests: Refactor.
5074         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
5075         * tests/test-mtx.c: Include it. Remove the corresponding code.
5076         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
5078 2020-07-01  Bruno Haible  <bruno@clisp.org>
5080         tests: Refactor.
5081         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
5082         * tests/test-lock.c: Include it. Remove the corresponding code.
5083         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
5085 2020-06-29  Bruno Haible  <bruno@clisp.org>
5087         sys_socket: Don't define socklen_t if it is already defined on mingw.
5088         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
5089         <https://savannah.gnu.org/bugs/?57725>,
5090         by Rahul Das <bokul_4u@yahoo.com> in
5091         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
5092         and by Eli Zaretskii <eliz@gnu.org> in
5093         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
5094         * lib/sys_socket.in.h (socklen_t): Remove definition.
5096 2020-06-29  Bruno Haible  <bruno@clisp.org>
5098         alloca-opt: Fix warning on mingw.
5099         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
5100         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
5101         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
5102         whether alloca is defined.
5104 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
5106         getrandom: do not depend on ‘open’ on mingw
5107         Similarly for at-internal, getloadavg.  These modules do not call
5108         the ‘open’ function when they are compiled on mingw.  On mingw,
5109         this avoids having to compile open.c when building Emacs, which
5110         does its own thing with ‘open’.
5111         * modules/at-internal, modules/getloadavg, modules/getrandom:
5112         (Depends-on): Don’t depend on ‘open’ on mingw.
5113         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
5114         * modules/getloadavg (Depends-on):
5115         Depend on intprops, open, stdbool, stdlib only if compiling
5116         getloadavg.c.
5118 2020-06-28  Bruno Haible  <bruno@clisp.org>
5120         doc: Add a note about sigprocmask vs. pthread_sigmask.
5121         * doc/posix-functions/sigprocmask.texi: Add note.
5123 2020-06-28  Bruno Haible  <bruno@clisp.org>
5125         getrandom: Fix compilation errors on older versions of mingw.
5126         Reported by Eli Zaretskii <eliz@gnu.org> in
5127         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
5128         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
5129         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
5130         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
5131         BCryptGenRandom ourselves.
5133 2020-06-28  Bruno Haible  <bruno@clisp.org>
5135         clean-temp: Fix wrong errno in error message.
5136         * lib/clean-temp.c (create_temp_dir): Save errno around
5137         unblock_fatal_signals call.
5139 2020-06-27  Bruno Haible  <bruno@clisp.org>
5141         fatal-signal: Make multithread-safe.
5142         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
5144 2020-06-27  Bruno Haible  <bruno@clisp.org>
5146         clean-temp: Don't force deletion of temporary files on native Windows.
5147         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
5148         argument.
5149         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
5150         * NEWS: Mention the change.
5151         * lib/javacomp.c (write_temp_file): Update.
5153 2020-06-27  Bruno Haible  <bruno@clisp.org>
5155         fatal-signal: Make multithread-safe.
5156         * lib/fatal-signal.c: Include glthread/lock.h.
5157         (at_fatal_signal_lock): New variable.
5158         (at_fatal_signal): Use it.
5159         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
5160         (block_fatal_signals, unblock_fatal_signals): Use them.
5161         * modules/fatal-signal (Depends-on): Add lock.
5163 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
5165         getloadavg: don’t depend on fopen-gnu
5166         This is for Emacs, which does not need fopen-gnu for anything else,
5167         and which would need it only on a NetBSD platform where getloadavg
5168         does not work (does that even happen?).
5169         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
5170         * modules/getloadavg (Depends-on): Remove fopen-gnu.
5172         * tests/test-getloadavg.c (main): Fix typo.
5174 2020-06-27  Bruno Haible  <bruno@clisp.org>
5176         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
5177         * modules/tempname (Link): New section.
5178         * modules/mkdtemp (Link): Likewise.
5179         * modules/clean-temp (Link): Likewise.
5180         * modules/mkstemp (Link): Likewise.
5181         * modules/stdlib-safer (Link): Likewise.
5182         * modules/mkstemps (Link): Likewise.
5183         * modules/mkostemp (Link): Likewise.
5184         * modules/mkostemps (Link): Likewise.
5185         * modules/tmpfile (Link): Likewise.
5186         * modules/tmpfile-safer (Link): Likewise.
5187         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
5188         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
5189         $(LIB_GETRANDOM).
5190         * NEWS: Mention the changes.
5192 2020-06-27  Bruno Haible  <bruno@clisp.org>
5194         fopen-gnu: Simplify code.
5195         * lib/fopen.c: Include <stdbool.h>.
5196         (rpl_fopen): Use a single variable open_flags instead of
5197         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
5198         * modules/fopen (Depends-on): Add stdbool.
5200 2020-06-26  Bruno Haible  <bruno@clisp.org>
5202         canonicalize: Improve documentation.
5203         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
5204         return convention.
5206 2020-06-26  Bruno Haible  <bruno@clisp.org>
5208         xgetcwd: Improve documentation.
5209         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
5211 2020-06-26  Bruno Haible  <bruno@clisp.org>
5213         getcwd: Improve documentation.
5214         * lib/getcwd.c (__getcwd): Document the failure return convention.
5216 2020-06-26  Bruno Haible  <bruno@clisp.org>
5218         fchdir: Improve documentation.
5219         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
5220         convention.
5222 2020-06-26  Bruno Haible  <bruno@clisp.org>
5224         filenamecat-lgpl: Set errno upon failure.
5225         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
5226         return convention.
5227         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
5229 2020-06-26  Bruno Haible  <bruno@clisp.org>
5231         areadlink-with-size: Set errno upon failure.
5232         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
5233         fails.
5234         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
5236 2020-06-26  Bruno Haible  <bruno@clisp.org>
5238         copy-file: Shrink dependencies.
5239         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
5240         qcopy-acl.
5242 2020-06-26  Bruno Haible  <bruno@clisp.org>
5244         doc: Mention declaration fixes implemented by some modules.
5245         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
5246         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
5247         declaration appear in <unistd.h>.
5248         * doc/posix-functions/dup.texi: Likewise.
5249         * doc/posix-functions/dup2.texi: Likewise.
5250         * doc/posix-functions/gethostname.texi: Likewise.
5251         * doc/posix-functions/isatty.texi: Likewise.
5252         * doc/posix-functions/lseek.texi: Likewise.
5253         * doc/posix-functions/unlink.texi: Likewise.
5254         * doc/posix-functions/read.texi: Mention the module 'read'.
5255         * doc/posix-functions/write.texi: Mention the effects of the module
5256         'write'.
5258 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
5260         c-dtoastr, c-ldtoastr: new modules
5261         These modules provide the same functionality as the modules
5262         dtoastr and ldtoastr except for the formatting taking place in the
5263         C locale.
5264         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
5265         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
5266         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
5267         defined.  Use c_snprintf and c_strtod/c_strtold instead of
5268         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
5269         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
5270         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
5271         modules/c-ldtoastr-tests: New files.
5272         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
5273         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
5275 2020-06-21  Bruno Haible  <bruno@clisp.org>
5277         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
5278         * lib/tzset.c: Include <stdlib.h>, <string.h>.
5280 2020-06-16  Bruno Haible  <bruno@clisp.org>
5282         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
5283         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
5285 2020-06-16  Bruno Haible  <bruno@clisp.org>
5287         thread, thrd: Avoid a compiler warning.
5288         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
5290 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
5292         windows-thread: Avoid a compiler warning.
5293         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
5294         void.
5295         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
5297 2020-06-15  Bruno Haible  <bruno@clisp.org>
5299         unictype/joininggroup-name: Fix warning on 64-bit mingw.
5300         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
5301         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
5302         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
5303         first.
5305 2020-06-06  Bruno Haible  <bruno@clisp.org>
5307         calloc-gnu tests: Avoid a test failure with clang.
5308         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
5309         'volatile', to defeat compiler optimizations.
5311 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
5313         getloadavg: fix double-increment bug
5314         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
5315         Linux without glibc, Android, Cygwin.  This fixes a bug I
5316         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
5317         Problem and fix reported by Semen Verchenko in:
5318         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
5320         tempname: use getrandom, not getentropy
5321         This removes a dependency, as getentropy depends on getrandom.
5322         * lib/tempname.c: Include sys/random.h instead of unistd.h.
5323         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
5324         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
5326 2020-06-01  Bruno Haible  <bruno@clisp.org>
5328         doc: New chapter 'Multithreading'.
5329         * doc/multithread.texi: New file.
5330         * doc/gnulib.texi: Include it.
5332 2020-06-01  Bruno Haible  <bruno@clisp.org>
5334         doc: Move 'Running self-tests under valgrind' section.
5335         * doc/gnulib.texi (Build Infrastructure Modules): Include
5336         valgrind-tests.texi here...
5337         (Miscellaneous Notes): ... not here.
5339 2020-06-01  Bruno Haible  <bruno@clisp.org>
5341         doc: Move 'Visual Studio Compatibility' section.
5342         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
5343         here...
5344         (Build Infrastructure Modules): ... not here.
5346 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
5348         doc: improve randomness discussion
5349         Inspired by comments from Jeffrey Walton in:
5350         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
5351         * doc/glibc-functions/getentropy.texi (getentropy):
5352         * doc/glibc-functions/getrandom.texi (getrandom):
5353         Improve discussion of problems with "random" data,
5354         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
5356 2020-06-01  Bruno Haible  <bruno@clisp.org>
5358         doc: Fix Texinfo syntax error.
5359         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
5361 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
5363         doc: Change '.' to '@.' where appropriate.
5364         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
5365         * doc/glibc-functions/fstatfs.texi: Likewise.
5366         * doc/glibc-functions/fts_children.texi: Likewise.
5367         * doc/glibc-functions/fts_read.texi: Likewise.
5368         * doc/glibc-functions/getdirentries.texi: Likewise.
5369         * doc/glibc-functions/mkostemp.texi: Likewise.
5370         * doc/glibc-functions/mkostemps.texi: Likewise.
5371         * doc/glibc-functions/mkstemps.texi: Likewise.
5372         * doc/glibc-functions/preadv.texi: Likewise.
5373         * doc/glibc-functions/pwritev.texi: Likewise.
5374         * doc/glibc-functions/sendfile.texi: Likewise.
5375         * doc/glibc-functions/statfs.texi: Likewise.
5376         * doc/gnulib-intro.texi: Likewise.
5377         * doc/gnulib-tool.texi: Likewise.
5378         * doc/intprops.texi: Likewise.
5379         * doc/lib-symbol-visibility.texi: Likewise.
5380         * doc/licenses-texi.texi: Likewise.
5381         * doc/pastposix-functions/bcmp.texi: Likewise.
5382         * doc/pastposix-functions/bcopy.texi: Likewise.
5383         * doc/pastposix-functions/bzero.texi: Likewise.
5384         * doc/pastposix-functions/ecvt.texi: Likewise.
5385         * doc/pastposix-functions/fcvt.texi: Likewise.
5386         * doc/pastposix-functions/ftime.texi: Likewise.
5387         * doc/pastposix-functions/gcvt.texi: Likewise.
5388         * doc/pastposix-functions/getwd.texi: Likewise.
5389         * doc/pastposix-functions/index.texi: Likewise.
5390         * doc/pastposix-functions/mktemp.texi: Likewise.
5391         * doc/pastposix-functions/rindex.texi: Likewise.
5392         * doc/pastposix-functions/wcswcs.texi: Likewise.
5393         * doc/posix-functions/aio_cancel.texi: Likewise.
5394         * doc/posix-functions/aio_error.texi: Likewise.
5395         * doc/posix-functions/aio_fsync.texi: Likewise.
5396         * doc/posix-functions/aio_read.texi: Likewise.
5397         * doc/posix-functions/aio_return.texi: Likewise.
5398         * doc/posix-functions/aio_suspend.texi: Likewise.
5399         * doc/posix-functions/aio_write.texi: Likewise.
5400         * doc/posix-functions/creat.texi: Likewise.
5401         * doc/posix-functions/ctime.texi: Likewise.
5402         * doc/posix-functions/daylight.texi: Likewise.
5403         * doc/posix-functions/fgetpos.texi: Likewise.
5404         * doc/posix-functions/fopen.texi: Likewise.
5405         * doc/posix-functions/freopen.texi: Likewise.
5406         * doc/posix-functions/fseeko.texi: Likewise.
5407         * doc/posix-functions/fsetpos.texi: Likewise.
5408         * doc/posix-functions/fstatat.texi: Likewise.
5409         * doc/posix-functions/fstatvfs.texi: Likewise.
5410         * doc/posix-functions/ftello.texi: Likewise.
5411         * doc/posix-functions/ftruncate.texi: Likewise.
5412         * doc/posix-functions/getrlimit.texi: Likewise.
5413         * doc/posix-functions/lio_listio.texi: Likewise.
5414         * doc/posix-functions/localtime.texi: Likewise.
5415         * doc/posix-functions/lseek.texi: Likewise.
5416         * doc/posix-functions/mkstemp.texi: Likewise.
5417         * doc/posix-functions/mktime.texi: Likewise.
5418         * doc/posix-functions/open.texi: Likewise.
5419         * doc/posix-functions/openat.texi: Likewise.
5420         * doc/posix-functions/opendir.texi: Likewise.
5421         * doc/posix-functions/pread.texi: Likewise.
5422         * doc/posix-functions/pwrite.texi: Likewise.
5423         * doc/posix-functions/readdir.texi: Likewise.
5424         * doc/posix-functions/readdir_r.texi: Likewise.
5425         * doc/posix-functions/scandir.texi: Likewise.
5426         * doc/posix-functions/seekdir.texi: Likewise.
5427         * doc/posix-functions/setrlimit.texi: Likewise.
5428         * doc/posix-functions/statvfs.texi: Likewise.
5429         * doc/posix-functions/strftime.texi: Likewise.
5430         * doc/posix-functions/telldir.texi: Likewise.
5431         * doc/posix-functions/timezone.texi: Likewise.
5432         * doc/posix-functions/tmpfile.texi: Likewise.
5433         * doc/posix-functions/truncate.texi: Likewise.
5434         * doc/posix-functions/tzname.texi: Likewise.
5435         * doc/posix-functions/wcsftime.texi: Likewise.
5436         * doc/windows-sockets.texi: Likewise.
5438 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
5440         getrandom-tests: do not assume GRND_RANDOM yields short read
5441         * tests/test-getrandom.c (main): Omit assertion that
5442         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
5443         when b’s size is 100000.  This assertion fails with Linux kernel
5444         5.6.13, as that kernel ignores the GRND_RANDOM flag.
5445         The separate blocking pool is going away in the Linux kernel, and
5446         they’ve added a flag GRND_INSECURE instead; see:
5447         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
5448         The assertion was iffy anyway; what’s to prevent a kernel from
5449         lazily filling a large buffer with random bytes?
5451         read-file-test: pacify --enable-gcc-warnings
5452         * tests/test-read-file.c (test_read_file): Now static.
5454         tempname: merge from glibc and coreutils
5455         Also, merge in Gnulib’s more-recent methods of making it easier
5456         to share between Gnulib and glibc, and fix a few randomness
5457         glitches.
5458         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
5459         (__set_errno): Remove; libc-config.h does that for us.
5460         Do not include <sys/time.h>.
5461         (__secure_getenv) [_LIBC]: New macro.
5462         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
5463         (RANDOM_BITS): Rewrite.
5464         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
5465         (random_value): New typedef.
5466         (try_file, try_dir, try_nocreate): Move up.
5467         (gen_tempname_len, try_tempname_len): New functions.
5468         (gen_tempname_len): Use a constant array rather than a switch.
5469         (try_tempname_len): Don’t assume string length fits in int.
5470         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
5471         has enough entropy (it’s a bit short).
5472         (__gen_tempname): Rewrite in terms of gen_tempname_len.
5473         (__try_tempname): Rewrite in terms of try_tempname_len.
5474         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
5475         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
5476         Add getentropy, libc-config.
5478 2020-05-31  Bruno Haible  <bruno@clisp.org>
5480         getrandom, getentropy: Mention the crypto/gc-random module.
5481         Suggested by Simon Josefsson in
5482         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
5483         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
5484         crypto/gc-random module.
5485         * doc/glibc-functions/getentropy.texi: Likewise.
5487 2020-05-31  Bruno Haible  <bruno@clisp.org>
5489         getentropy: Enhance tests.
5490         * tests/test-getentropy.c (main): Add one more test.
5491         * tests/test-unistd-c++.cc: Check the signature of getentropy.
5493 2020-05-31  Bruno Haible  <bruno@clisp.org>
5495         getentropy: Work around a macOS and Solaris problem.
5496         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
5497         'getentropy' module.
5498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5499         UNISTD_H_HAVE_SYS_RANDOM_H.
5500         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
5501         UNISTD_H_HAVE_SYS_RANDOM_H.
5502         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
5503         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
5504         problem. List more platforms.
5506 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
5508         fnmatch: merge from glibc
5509         Also, merge in Gnulib’s more-recent methods of making it easier
5510         to share between Gnulib and glibc.
5511         * lib/fnmatch.c: Reorder includes to match glibc better.
5512         Include libc-config.h instead of config.h.
5513         Include alloca.h only if _LIBC || HAVE_ALLOCA.
5514         Do not include "../locale/elem-hash.h" if _LIBC.
5515         Define macros for btowc, etc. if _LIBC.  All uses simplified.
5516         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
5517         Include intprops.h, since glibc has it now.
5518         (SIZE_MAX): Remove; use (size_t) -1 instead.
5519         Omit the "Comment out all this code" ifdef, since Gnulib
5520         has never really needed it.
5521         (STREQ): Remove; no longer used.
5522         (__libc_use_alloca, alloca, alloca_account): Define as
5523         needed if !_LIBC.
5524         (ISWCTYPE): Remove; all uses replaced by iswctype.
5525         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
5526         (internal_function): Remove.  All uses removed.
5527         (STRUCT): New macro.
5528         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
5529         (WMEMCMP): New macro.
5530         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
5531         and <locale/weightwc.h>.
5532         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
5533         __builtin_expect.  Check for integer overflow more
5534         systematically.  Account for alloca storage better when
5535         recursive.  Use strnlen instead of strlen for efficiency.
5536         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
5537         (struct STRUCT): New type.
5538         (FCT, EXT): New ENDS and ALLOCA_USED args.
5539         All callers changed.
5540         (FCT): Prefer __glibc_unlikely to __builtin_expect.
5541         Simplify by assuming WIDE_CHAR_SUPPORT.
5542         Copy _LIBC code from glibc without worrying Gnulib compatibility.
5543         Cast cold to UCHAR to avoid signedness warning.
5544         (END): Check for invalid pattern.
5545         (EXT): Improve alloca/malloc checking (taken from glibc),
5546         and improve it some more by using intprops.h and checking
5547         for integer overflow and using bool for booleans.
5548         * lib/libc-config.h (compat_symbol): New macro.
5549         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
5550         acceptable to non-GCC when a trailing semicolon is added.
5551         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
5552         libc-config, strnlen.  Remove alloca.
5554 2020-05-31  Bruno Haible  <bruno@clisp.org>
5556         getrandom: Doc and test tweaks.
5557         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
5558         it sets errno when failing.
5559         * tests/test-getrandom.c (main): Disable the high-quality check on those
5560         platforms on which it fails.
5561         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
5562         Cygwin to the list of platforms that don't have the function. Add a note
5563         about the quality of the result.
5564         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
5565         declaration; this is fixed by module 'getrandom'.
5567 2020-05-31  Bruno Haible  <bruno@clisp.org>
5569         getrandom: Add support for native Windows.
5570         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
5571         <wincrypt.h>.
5572         (CRYPT_VERIFY_CONTEXT): New macro.
5573         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
5574         'A'.
5575         (GetProcAddress): New macro.
5576         (BCryptGenRandomFuncType): New type.
5577         (BCryptGenRandomFunc, initialized): New variables.
5578         (initialize): New function.
5579         (getrandom): On native Windows, use <bcrypt.h> API when available, and
5580         <wincrypt.h> API as fallback.
5581         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
5582         * modules/getrandom (Link): New section.
5583         * modules/getentropy (Link): Likewise.
5584         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
5585         $(LIB_GETRANDOM).
5586         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
5587         $(LIB_GETRANDOM).
5588         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
5589         against $(LIB_GETRANDOM).
5590         * doc/glibc-functions/getrandom.texi: Mention the native Windows
5591         support.
5593 2020-05-31  Bruno Haible  <bruno@clisp.org>
5595         getrandom: Simplify the determination of the random number devices.
5596         Suggested by Paul Eggert in
5597         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
5598         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
5599         macros.
5600         * modules/getrandom (Depends-on): Remove crypto/gc-random.
5602 2020-05-31  Bruno Haible  <bruno@clisp.org>
5604         crypto/gc-random: Fix list of crypto devices for Solaris.
5605         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
5607 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
5609         list: fix GCC warnings
5610         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
5611         (gl_tree_next_node, gl_tree_node_nx_set_value)
5612         (gl_tree_previous_node, gl_tree_next_node):
5613         Mark unused arguments.
5614         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
5615         * lib/gl_anylinked_list2.h (gl_linked_node_value)
5616         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
5618         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
5619         the same variable name in nested scopes.
5621 2020-05-31  Bruno Haible  <bruno@clisp.org>
5623         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
5624         Reported by Akim Demaille in
5625         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
5626         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
5627         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
5628         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
5629         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
5630         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
5632 2020-05-30  Bruno Haible  <bruno@clisp.org>
5634         wmemchr: Relicense under LGPLv2+.
5635         * modules/wmemchr (License): Set to LGPLv2+.
5637 2020-05-30  Bruno Haible  <bruno@clisp.org>
5639         wmempcpy: New module.
5640         Reported by Paul Eggert in
5641         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
5642         * lib/wchar.in.h (wmempcpy): New declaration.
5643         * lib/wmempcpy.c: New file.
5644         * m4/wmempcpy.m4: New file.
5645         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
5646         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
5647         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
5648         HAVE_WMEMPCPY.
5649         * modules/wmempcpy: New file.
5650         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
5651         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
5652         * modules/mempcpy (Description): Fix typo.
5654 2020-05-30  Bruno Haible  <bruno@clisp.org>
5656         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
5657         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
5659 2020-05-30  Bruno Haible  <bruno@clisp.org>
5661         sys_random: Work around macOS bug.
5662         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
5663         <stdlib.h> before <sys/random.h>.
5664         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
5665         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
5666         first.
5667         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
5669 2020-05-30  Bruno Haible  <bruno@clisp.org>
5671         getrandom: Override incompatible system function on Solaris 11.
5672         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
5673         * lib/getrandom.c (getrandom): When the system has getrandom, just
5674         invoke it.
5675         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
5676         system's getrandom function's prototype is not the expected one.
5677         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
5678         REPLACE_GETRANDOM.
5679         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
5680         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
5681         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
5682         EAGAIN.
5683         * doc/glibc-functions/getrandom.texi: Mention the new module and the
5684         Solaris problem.
5686 2020-05-30  Bruno Haible  <bruno@clisp.org>
5688         sys_random: Add C++ tests.
5689         * tests/test-sys_random-c++.cc: New file.
5690         * modules/sys_random-c++-tests: New file.
5691         * modules/sys_random-tests (Depends-on): Depend on it.
5693         sys_random: Add tests.
5694         * tests/test-sys_random.c: New file.
5695         * modules/sys_random-tests: New file.
5697         sys_random: New module.
5698         * lib/sys_random.in.h: Use the common idioms for overridable header
5699         files.
5700         * m4/sys_random_h.m4: New file.
5701         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
5702         * modules/sys_random: New file.
5703         * modules/getrandom (Files): Remove lib/sys_random.in.h.
5704         (Depends-on): Add sys_random.
5705         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
5706         gl_UNISTD_MODULE_INDICATOR.
5707         (Makefile.am): Don't generate sys/random.h here.
5708         * doc/glibc-headers/sys_random.texi: New file.
5709         * doc/gnulib.texi: Include it.
5711 2020-05-30  Bruno Haible  <bruno@clisp.org>
5713         unistd: Remove conflicting declaration of getrandom().
5714         * lib/unistd.in.h (getrandom): Remove declaration.
5715         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
5716         declared.
5717         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
5718         HAVE_GETRANDOM.
5719         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
5720         HAVE_GETRANDOM.
5722 2020-05-30  Bruno Haible  <bruno@clisp.org>
5724         getrandom: Add tests.
5725         * tests/test-getrandom.c: New file.
5726         * modules/getrandom-tests: New file.
5728 2020-05-30  Bruno Haible  <bruno@clisp.org>
5730         crypto/gc-random: Fix link error on MSVC.
5731         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
5732         * modules/crypto/gc-random (Link): New section.
5733         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
5734         $(LIB_GC_RANDOM).
5736 2020-05-30  Bruno Haible  <bruno@clisp.org>
5738         Don't assume that UNICODE is not defined.
5739         Many Windows API functions are defined differently (redirecting to a
5740         function with suffix 'W') if the application defines the macro UNICODE
5741         than by default (redirecting to a function with suffix 'A').
5742         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
5743         variant with suffix 'A'.
5744         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
5745         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
5746         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
5747         * lib/getlogin.c (GetUserName): Likewise.
5748         * lib/getlogin_r.c (GetUserName): Likewise.
5749         * lib/gettimeofday.c (LoadLibrary): Likewise.
5750         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
5751         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
5752         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
5753         * lib/mountlist.c (GetDriveType): Likewise.
5754         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
5755         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
5756         Likewise.
5757         * lib/physmem.c (GetModuleHandle): Likewise.
5758         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
5759         PeekMessage, DispatchMessage): Likewise.
5760         * lib/progreloc.c (GetModuleFileName): Likewise.
5761         * lib/putenv.c (SetEnvironmentVariable): Likewise.
5762         * lib/read.c (GetNamedPipeHandleState): Likewise.
5763         * lib/readdir.c (FindNextFile): Likewise.
5764         * lib/relocatable.c (GetModuleFileName): Likewise.
5765         * lib/rename.c (MoveFileEx): Likewise.
5766         * lib/rewinddir.c (FindFirstFile): Likewise.
5767         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
5768         PeekMessage, DispatchMessage): Likewise.
5769         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
5770         * lib/socket.c (WSASocket): Likewise.
5771         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
5772         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
5773         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
5774         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
5775         * lib/tmpdir.c (GetTempPath): Likewise.
5776         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
5777         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
5778         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
5779         * lib/windows-cond.c (CreateEvent): Likewise.
5780         * lib/windows-rwlock.c (CreateEvent): Likewise.
5781         * lib/windows-timedmutex.c (CreateEvent): Likewise.
5782         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
5783         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
5784         * lib/write.c (GetNamedPipeHandleState): Likewise.
5786 2020-05-30  Bruno Haible  <bruno@clisp.org>
5788         physmem: Fix compilation errors on MSVC.
5789         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
5790         * modules/physmem (Depends-on): Add unistd.
5792 2020-05-29  Bruno Haible  <bruno@clisp.org>
5794         gnulib-tool: Fix link errors with a particular set of modules on mingw.
5795         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
5796         LDADD a second time, after the second occurrence of libtests.a.
5797         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
5799 2020-05-29  Bruno Haible  <bruno@clisp.org>
5801         fnmatch: Rely on more gnulib modules.
5802         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
5803         wmempcpy, mempcpy.
5804         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
5805         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
5806         HAVE_MEMPCPY are all 1.
5807         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
5808         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
5810 2020-05-29  Bruno Haible  <bruno@clisp.org>
5812         Avoid dynamic lookup of Windows API functions when possible.
5813         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
5814         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
5815         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
5816         (use_win32_p): Define differently.
5817         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
5818         CreateHardLinkFunc, initialized, initialize): Don't define in a build
5819         for Windows XP or higher.
5821 2020-05-29  Daiki Ueno  <ueno@gnu.org>
5823         read-file: disable buffering if RF_SENSITIVE is set
5824         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
5825         Suggested by Glenn Strauss.
5826         (fread_file): Suggest calling setvbuf before calling this
5827         function.  Suggested by Bruno Haible.
5829 2020-05-29  Bruno Haible  <bruno@clisp.org>
5831         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
5832         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
5833         program.
5834         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
5835         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
5836         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
5837         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
5839 2020-05-29  Bruno Haible  <bruno@clisp.org>
5841         Fix compilation error on native Windows (regression from 2020-05-28).
5842         Reported by Daiki Ueno.
5843         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
5844         macro when not using dynamic loading.
5845         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
5846         QueryFullProcessImageNameFunc): Likewise.
5847         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
5848         GetFinalPathNameByHandleFunc): Likewise.
5850 2020-05-29  Daiki Ueno  <ueno@gnu.org>
5852         fopen-gnu-tests: fix "\x" escape usage
5853         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
5855 2020-05-28  Bruno Haible  <bruno@clisp.org>
5857         Avoid dynamic loading of Windows API functions when possible.
5858         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
5859         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
5860         * lib/gettimeofday.c (GetProcAddress,
5861         GetSystemTimePreciseAsFileTimeFuncType,
5862         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
5863         define in a build for Windows 8 or higher.
5864         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
5865         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
5866         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
5867         in a build for Windows Vista or higher.
5868         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
5869         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
5870         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
5872 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
5874         explicit_bzero-tests: improve -Wmissing-declarations pacification
5875         * tests/test-explicit_bzero.c: Now noinline.
5876         Suggested by Bruno Haible in:
5877         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
5879 2020-05-28  Bruno Haible  <bruno@clisp.org>
5881         Fix build errors due to read-file changes (regression from 2020-05-27).
5882         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
5883         invocation.
5884         * tests/test-sameacls.c (main): Likewise.
5885         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
5886         read_binary_file.
5887         * tests/test-pipe-filter-ii1.c (main): Likewise.
5889 2020-05-28  Bruno Haible  <bruno@clisp.org>
5891         fts: Make more robust in multithreaded applications.
5892         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
5893         * modules/fts (Depends-on): Add 'open'.
5895 2020-05-28  Bruno Haible  <bruno@clisp.org>
5897         relocatable-prog: Make more robust in multithreaded applications.
5898         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
5899         relocatable-prog-wrapper.
5900         (find_executable): Pass an O_CLOEXEC flag to open().
5901         * modules/relocatable-prog (Depends-on): Add 'open'.
5903 2020-05-28  Bruno Haible  <bruno@clisp.org>
5905         getloadavg: Make more robust in multithreaded applications.
5906         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
5907         Simplify use of O_CLOEXEC.
5908         * modules/getloadavg (Depends-on): Add 'open'.
5910 2020-05-28  Bruno Haible  <bruno@clisp.org>
5912         vma-iter: Make more robust in multithreaded applications.
5913         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
5914         open().
5915         * modules/vma-iter (Depends-on): Add 'open'.
5917 2020-05-28  Bruno Haible  <bruno@clisp.org>
5919         truncate: Make more robust in multithreaded applications.
5920         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
5922 2020-05-28  Bruno Haible  <bruno@clisp.org>
5924         pagealign_alloc: Make more robust in multithreaded applications.
5925         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
5926         open().
5927         * modules/pagealign_alloc (Depends-on): Add 'open'.
5929 2020-05-28  Bruno Haible  <bruno@clisp.org>
5931         openat: Make more robust in multithreaded applications.
5932         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
5934 2020-05-28  Bruno Haible  <bruno@clisp.org>
5936         at-internal: Make more robust in multithreaded applications.
5937         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
5938         open().
5940 2020-05-28  Bruno Haible  <bruno@clisp.org>
5942         mountlist: Make more robust in multithreaded applications.
5943         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
5944         open().
5945         * modules/mountlist (Depends-on): Add 'open'.
5947 2020-05-28  Bruno Haible  <bruno@clisp.org>
5949         login_tty: Make more robust in multithreaded applications.
5950         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
5951         * modules/login_tty (Depends-on): Add 'open'.
5953 2020-05-28  Bruno Haible  <bruno@clisp.org>
5955         javacomp: Make more robust in multithreaded applications.
5956         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
5957         open().
5958         * modules/javacomp (Depends-on): Add 'open'.
5960 2020-05-28  Bruno Haible  <bruno@clisp.org>
5962         getprogname: Make more robust in multithreaded applications.
5963         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
5964         * modules/getprogname (Depends-on): Add 'open'.
5966 2020-05-28  Bruno Haible  <bruno@clisp.org>
5968         get_progname_of: Make more robust in multithreaded applications.
5969         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
5970         open().
5971         * modules/get_progname_of (Depends-on): Add 'open'.
5973 2020-05-28  Bruno Haible  <bruno@clisp.org>
5975         get_ppid_of: Make more robust in multithreaded applications.
5976         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
5977         * modules/get_ppid_of (Depends-on): Add 'open'.
5979 2020-05-28  Bruno Haible  <bruno@clisp.org>
5981         get-rusage-as: Make more robust in multithreaded applications.
5982         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
5983         flag to open().
5984         * modules/get-rusage-as (Depends-on): Add 'open'.
5986 2020-05-28  Bruno Haible  <bruno@clisp.org>
5988         crypto/gc: Make more robust in multithreaded applications.
5989         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
5990         * modules/crypto/gc (Depends-on): Add 'open'.
5992 2020-05-28  Bruno Haible  <bruno@clisp.org>
5994         copy-file: Make more robust in multithreaded applications.
5995         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
5996         open().
5998 2020-05-28  Bruno Haible  <bruno@clisp.org>
6000         chown: Make more robust in multithreaded applications.
6001         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
6003 2020-05-28  Bruno Haible  <bruno@clisp.org>
6005         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
6006         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
6008 2020-05-28  Daiki Ueno  <ueno@gnu.org>
6010         fopen-gnu: make 'b' flag can be used with 'e' on Windows
6011         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
6012         specified on Windows.
6013         * tests/test-fopen-gnu.c (DATA): New define.
6014         (main): Add test for reading binary files with an 'e' flag.
6016 2020-05-27  Bruno Haible  <bruno@clisp.org>
6018         Don't assume that UNICODE is not defined.
6019         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
6020         differently if the application defines the macro UNICODE.
6021         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
6022         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
6023         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
6024         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
6025         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
6027 2020-05-27  Bruno Haible  <bruno@clisp.org>
6029         Improve pattern for defining _WIN32_WINNT.
6030         Newer versions of the Windows API may not only add, but also remove API
6031         functions. Therefore, when the user is e.g. building for Windows 10, we
6032         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
6033         use of APIs that were present in Windows 8 but removed in Windows 10.
6034         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
6035         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
6036         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
6037         * lib/sethostname.c (_WIN32_WINNT): Likewise.
6038         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
6040 2020-05-27  Bruno Haible  <bruno@clisp.org>
6042         javacomp: Make more robust in multithreaded applications.
6043         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
6044         * modules/javacomp (Depends-on): Add fopen-gnu.
6046 2020-05-27  Bruno Haible  <bruno@clisp.org>
6048         mountlist: Make more robust in multithreaded applications.
6049         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
6050         to fopen.
6051         * modules/mountlist (Depends-on): Add fopen-gnu.
6053 2020-05-27  Bruno Haible  <bruno@clisp.org>
6055         sethostname: Make more robust in multithreaded applications.
6056         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
6057         * modules/sethostname (Depends-on): Add fopen-gnu.
6059 2020-05-27  Bruno Haible  <bruno@clisp.org>
6061         readutmp: Make more robust in multithreaded applications.
6062         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
6063         * modules/readutmp (Depends-on): Add fopen-gnu.
6065 2020-05-27  Bruno Haible  <bruno@clisp.org>
6067         getpass: Make more robust in multithreaded applications.
6068         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
6069         * modules/getpass (Depends-on): Add fopen-gnu.
6071 2020-05-27  Bruno Haible  <bruno@clisp.org>
6073         getloadavg: Make more robust in multithreaded applications.
6074         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
6075         * modules/getloadavg (Depends-on): Add fopen-gnu.
6077 2020-05-27  Bruno Haible  <bruno@clisp.org>
6079         exclude: Make more robust in multithreaded applications.
6080         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
6081         * modules/exclude (Depends-on): Add fopen-gnu.
6083 2020-05-27  Bruno Haible  <bruno@clisp.org>
6085         bitset: Make more robust in multithreaded applications.
6086         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
6087         'e' flag to fopen.
6088         * modules/bitset (Depends-on): Add fopen-gnu.
6090 2020-05-27  Daiki Ueno  <ueno@gnu.org>
6092         read-file: add RF_SENSITIVE flag
6093         * lib/read-file.h (RF_SENSITIVE): New define.
6094         * lib/read-file.c (fread_file, read_file): Take into account of
6095         RF_SENSITIVE flag.
6096         * modules/read-file (Depends-on): Add explicit_bzero.
6097         This adds an alternative behavior of those functions to explicitly
6098         clear the internal memory block when it becomes unused.  This is
6099         useful for reading sensitive information from a file.
6101 2020-05-27  Daiki Ueno  <ueno@gnu.org>
6103         read-file: add flags to modify reading behavior
6104         * lib/read-file.h (RF_BINARY): New define.
6105         (fread_file, read_file): Take FLAGS argument.
6106         (read_binary_file): Remove.
6107         * lib/read-file.c (internal_read_file): Merge into ...
6108         (read_file): ... here.
6109         * modules/read-file-tests (Files): Add "tests/macros.h".
6110         * tests/test-read-file.c (main): Refactor using ASSERT macro.
6111         * NEWS: Mention this change.
6113 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
6115         doc/gnulib-intro.texi: add missing "to" in sentence
6116         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
6117         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
6118         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
6120 2020-05-26  Bruno Haible  <bruno@clisp.org>
6122         count-one-bits: Fix MSVC specific code.
6123         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
6124         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
6125         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
6126         using GCC.
6127         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
6128         (__popcnt64): In 32-bit mode, define as an inline function.
6129         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
6131 2020-05-26  Bruno Haible  <bruno@clisp.org>
6133         argz: Avoid name clashes through argz.h.
6134         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
6135         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
6136         * lib/argz.h: Don't use __ prefixed identifiers.
6137         (const): Remove definition.
6138         (argz_next): Remove inline definitions.
6140 2020-05-26  Daiki Ueno  <ueno@gnu.org>
6142         read-file: make use of fopen-gnu
6143         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
6144         (read_binary_file): Likewise.
6145         * modules/read-file (Depends-on): Add fopen-gnu.
6147 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
6149         getentropy, getrandom: new modules
6150         * MODULES.html.sh (func_all_modules):
6151         * lib/unistd.in.h (getentropy, getrandom):
6152         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
6153         * modules/unistd (unistd.h):
6154         Add support for getentropy, getrandom.
6155         * doc/glibc-functions/getentropy.texi (getentropy):
6156         * doc/glibc-functions/getrandom.texi (getrandom):
6157         These are now fixed on some platforms.
6158         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
6159         * m4/getentropy.m4, m4/getrandom.m4:
6160         * modules/getentropy, modules/getentropy-tests:
6161         * modules/getrandom, modules/getrandom-tests:
6162         * tests/test-getentropy.c, tests/test-getrandom.c:
6163         New files.
6165 2020-05-25  Bruno Haible  <bruno@clisp.org>
6167         Add missing C99 dependencies.
6168         Reported by Paul Smith <psmith@gnu.org> in
6169         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
6170         * modules/assert (Depends-on): Add c99.
6171         * modules/filenamecat-lgpl (Depends-on): Likewise.
6172         * modules/libc-config (Depends-on): Likewise.
6173         * modules/mktime (Depends-on): Likewise.
6174         * modules/random_r (Depends-on): Likewise.
6175         * modules/regex (Depends-on): Likewise.
6176         * modules/scratch_buffer (Depends-on): Likewise.
6177         * modules/timespec-add (Depends-on): Likewise.
6178         * modules/timespec-sub (Depends-on): Likewise.
6179         * modules/verify (Depends-on): Likewise.
6181 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
6183         explicit_bzero-tests: pacify -Wmissing-declarations
6184         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
6185         Now static.
6187 2020-05-24  Bruno Haible  <bruno@clisp.org>
6189         fopen-gnu: Add tests.
6190         * tests/test-fopen-gnu.c: New file.
6191         * modules/fopen-gnu-tests: New file.
6193         fopen-gnu: New module.
6194         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
6195         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
6196         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
6197         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
6198         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
6199         * modules/fopen-gnu: New file.
6200         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
6202 2020-05-24  Bruno Haible  <bruno@clisp.org>
6204         open, openat: Really support O_CLOEXEC.
6205         * lib/open.c (open): When have_cloexec is still undecided, do pass a
6206         O_CLOEXEC flag to orig_open.
6207         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
6208         pass a O_CLOEXEC flag to orig_openat.
6209         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
6210         * modules/open-tests (Depends-on): Add fcntl.
6211         * modules/openat-tests (Depends-on): Likewise.
6212         * modules/fcntl-safer-tests (Depends-on): Likewise.
6214 2020-05-24  Bruno Haible  <bruno@clisp.org>
6216         fopen: Fix the trailing slash workaround.
6217         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
6218         write access. Pass the right flags to open().
6219         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
6221 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6223         assure: new macro ‘affirm’
6224         * lib/assure.h: Include verify.h.
6225         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
6226         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
6227         and commentary by Bruno Haible in:
6228         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
6229         * modules/assure (Depends-on:): Add verify.
6231 2020-05-23  Bruno Haible  <bruno@clisp.org>
6233         calloc-gnu: Make test work in non-flat address spaces.
6234         Uses code by Paul Eggert.
6235         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
6236         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
6238 2020-05-23  Bruno Haible  <bruno@clisp.org>
6240         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
6241         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
6242         AC_RUN_IFELSE invocations.
6244 2020-05-23  Bruno Haible  <bruno@clisp.org>
6246         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
6247         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
6248         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
6249         don't have it.
6250         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
6251         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
6252         don't have it.
6253         * lib/isnanf-nolibm.h (__has_builtin): New macro.
6254         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
6255         it.
6256         * lib/isnanl-nolibm.h (__has_builtin): New macro.
6257         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
6258         it.
6259         * lib/math.in.h (__has_builtin): New macro.
6260         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
6261         it.
6262         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
6263         it.
6264         (isnan): Don't use the builtins on clang versions that don't have
6265         __builtin_isnanf and __builtin_isnanl.
6267 2020-05-23  Bruno Haible  <bruno@clisp.org>
6269         calloc-gnu: Avoid wrong configure results with clang.
6270         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
6271         'volatile', to defeat compiler optimizations.
6273 2020-05-23  Bruno Haible  <bruno@clisp.org>
6275         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
6276         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
6277         'long double' values by reference, with values taken from a statically
6278         allocated array.
6280 2020-05-23  Bruno Haible  <bruno@clisp.org>
6282         findprog-in: Ignore directories.
6283         Reported by Frederick Eaton via Dmitry Goncharov in
6284         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
6285         * lib/findprog-in.c (find_in_given_path): When the file found is a
6286         directory, set errno to EACCES and, during a PATH search, continue
6287         searching.
6288         * modules/findprog-in (Depends-on): Add sys_stat, stat.
6290 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6292         verify: document ‘assume’ better
6293         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
6295 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
6297         gendocs: Clarify licenses for templates.
6298         * doc/gendocs_template: Add a GNU All-Permissive license notice
6299         and bump Parent-Version.
6300         * doc/gendocs_template_min: Add a GNU All-Permissive license
6301         notice and copy the explanatory comment about the license notice
6302         at the bottom from gendocs_template.
6304 2020-05-21  Bruno Haible  <bruno@clisp.org>
6306         group-member: Relicense under LGPLv2+.
6307         Jim Meyering's approval is in
6308         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
6309         Paul Eggert's approval is in
6310         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
6311         Eric Blake's approval is in
6312         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
6313         * modules/group-member (License): Change to LGPLv2+.
6315 2020-05-21  Bruno Haible  <bruno@clisp.org>
6317         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
6318         Reported by Tim Rühsen in
6319         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6320         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
6322 2020-05-21  Bruno Haible  <bruno@clisp.org>
6324         regex: Avoid wrong configure results with "clang -fsanitize=leak".
6325         Reported by Tim Rühsen in
6326         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6327         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
6328         before returning with status 0.
6330 2020-05-21  Bruno Haible  <bruno@clisp.org>
6332         glob: Avoid wrong configure results with "clang -fsanitize=leak".
6333         Reported by Tim Rühsen in
6334         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6335         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
6337 2020-05-21  Bruno Haible  <bruno@clisp.org>
6339         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
6340         Reported by Tim Rühsen in
6341         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6342         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
6343         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
6344         respectively.
6346 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
6348         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
6349         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
6351 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6353         ftoastr: fix ifndef typo
6354         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
6356 2020-05-19  Bruno Haible  <bruno@clisp.org>
6358         havelib: Tweak documentation.
6359         * doc/havelib.texi (Searching for Libraries): Fix typo.
6361 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
6363         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
6364         This was needed earlier because modules had to import the main script,
6365         but that is no longer true.  Rename the script so that it is
6366         consistent with all other scripts in gnulib and uses hyphens.
6367         * build-aux/vcs_to_changelog.py: Rename to...
6368         * build-aux/vcs-to-changelog.py: ... this.
6369         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
6370         * modules/vcs-to-changelog: Likewise.
6372 2020-05-17  Bruno Haible  <bruno@clisp.org>
6374         Clarify intended usage of the license file modules.
6375         Reported by Asher Gordon <AsDaGo@posteo.net> in
6376         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
6377         * doc/licenses-texi.texi (License Texinfo sources): Mention the
6378         GNU AGPL. Explain the intended usage of the modules.
6379         * modules/fdl (Notice): Discourage use as a module.
6380         * modules/fdl-1.3 (Notice): Likewise.
6382 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
6384         hash: add hash_xinsert
6385         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
6387 2020-05-16  Bruno Haible  <bruno@clisp.org>
6389         findprog-lgpl: Fix link error (existing since 2008-09-02).
6390         * modules/findprog-lgpl (Makefile.am): Arrange to compile
6391         findprog-lgpl.c, not findprog.c.
6392         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
6393         XNMALLOC.
6395 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
6397         c-stack: pacify -Wunused-result when DEBUG
6398         Problem reported by Marc Nieper-Wißkirchen in:
6399         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
6400         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
6401         Explicitly ignore write failures.
6403 2020-05-13  Jim Meyering  <meyering@fb.com>
6405         announce-gen: improve a comment
6406         * build-aux/announce-gen: Improve comment.
6408 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
6410         xalloc: pacify -Wanalyzer-possible-null-argument
6411         Problem reported for GCC 10.1.0 by Bruno Haible in:
6412         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
6413         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
6414         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
6415         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
6417 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
6419         careadlinkat: fix GCC 10 workaround
6420         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
6421         Massage the code so that it’s closer to what it was before
6422         the GCC 10.1.0 workaround was introduced.  This fixes
6423         a loop when !buffer and the bug workaround is in effect.
6424         Remove unnecessary casts.  Defend in a different way
6425         against (buffer && !buffer_size), by adding at least 1
6426         to buf_size each time through the loop.
6428 2020-05-10  Bruno Haible  <bruno@clisp.org>
6430         doc: Mark HP-UX as unsupported.
6431         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
6433 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6435         careadlinkat: limit GCC workaround
6436         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
6437         10.1.0 and later, since the workaround is pretty bad and the GCC
6438         bug should get fixed.
6440 2020-05-10  Bruno Haible  <bruno@clisp.org>
6442         havelib: Enhance documentation.
6443         * doc/havelib.texi (Searching for Libraries): Mention the bad
6444         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
6446 2020-05-10  Bruno Haible  <bruno@clisp.org>
6448         attribute: Clarify list of attributes.
6449         * lib/attribute.h: Reorder the list of attributes, and group them by
6450         purpose.
6452 2020-05-10  Bruno Haible  <bruno@clisp.org>
6454         string: Fix compilation error in C++ mode.
6455         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
6456         _GL_WARN_ON_USE.
6457         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
6458         instead of _GL_WARN_ON_USE.
6460 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
6462         announce-gen: add support for dist-lzip
6463         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
6465 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
6467         manywarnings: port to GCC 10.1
6468         * build-aux/gcc-warning.spec:
6469         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
6470         Add GCC 10.1.0 warnings.
6472         careadlinkat: pacify -Wreturn-local-addr
6473         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
6474         Pacify gcc 10’s -Wreturn-local-addr option.
6475         Simplify some of the later code.
6477 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
6479         attribute: remove ATTRIBUTE_DEPRECATED
6480         * lib/attribute.h: Improve recently-added comments, mostly
6481         by shortening them (use active voice, etc.).
6482         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
6483         Problem reported by Bruno Haible in:
6484         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
6486 2020-05-09  Bruno Haible  <bruno@clisp.org>
6488         attribute: Add comments.
6489         * lib/attribute.h: Document each macro.
6491 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
6493         bitset: use the attribute module
6494         * modules/bitset: Depend on 'attribute'.
6495         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
6496         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
6497         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
6498         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
6500 2020-05-09  Bruno Haible  <bruno@clisp.org>
6502         c-stack: Fix warning when DEBUG is enabled.
6503         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
6504         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
6505         * lib/c-stack.c: Include <stdio.h>.
6507 2020-05-09  Bruno Haible  <bruno@clisp.org>
6509         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
6510         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
6511         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6512         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6513         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6514         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6515         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6516         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6517         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6518         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
6519         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6520         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6521         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6523 2020-05-09  Bruno Haible  <bruno@clisp.org>
6525         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
6526         Reported by Akim Demaille in
6527         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
6528         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
6529         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
6530         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
6532 2020-05-09  Bruno Haible  <bruno@clisp.org>
6534         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
6535         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
6536         that usually comes from m4/gnulib-common.m4.
6537         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6539 2020-05-09  Bruno Haible  <bruno@clisp.org>
6541         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
6542         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
6543         that usually comes from m4/gnulib-common.m4.
6544         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
6545         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
6546         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
6548 2020-05-09  Bruno Haible  <bruno@clisp.org>
6550         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
6551         * lib/uchar.in.h (char16_t): Define as macro if
6552         GNULIB_OVERRIDES_CHAR16_T.
6553         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
6554         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
6555         (gl_UCHAR_H): Invoke them.
6556         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
6557         GNULIB_OVERRIDES_CHAR32_T.
6558         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
6559         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
6560         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
6561         GNULIB_OVERRIDES_CHAR32_T.
6563 2020-05-09  Bruno Haible  <bruno@clisp.org>
6565         Macro tweaks.
6566         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
6567         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
6569 2020-05-08  Bruno Haible  <bruno@clisp.org>
6571         c32rtomb: Avoid compilation failure on Haiku.
6572         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
6573         inline definitions.
6574         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
6576 2020-05-08  Bruno Haible  <bruno@clisp.org>
6578         mbrtoc32: Avoid compilation failure on Haiku.
6579         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
6580         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
6581         AC_CHECK_FUNCS_ONCE.
6582         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
6584 2020-05-08  Bruno Haible  <bruno@clisp.org>
6586         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
6587         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
6589 2020-05-08  Bruno Haible  <bruno@clisp.org>
6591         list: Update documentation.
6592         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
6593         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
6594         * doc/containers.texi (Container data types): Document the new list
6595         operations and their complexity.
6597 2020-05-08  Bruno Haible  <bruno@clisp.org>
6599         ignore-value tests: Use module 'attribute'.
6600         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
6601         * tests/test-ignore-value.c: Include attribute.h.
6602         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
6603         * modules/ignore-value-tests (Depends-on): Add attribute.
6605 2020-05-08  Bruno Haible  <bruno@clisp.org>
6607         uniname/uniname: Use module 'attribute'.
6608         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
6609         * lib/uniname/uninames.h: Regenerated.
6610         * lib/uniname/uniname.c: Include attribute.h.
6611         * modules/uniname/uniname (Depends-on): Add attribute.
6613 2020-05-08  Bruno Haible  <bruno@clisp.org>
6615         c32rtomb: Use module 'attribute'.
6616         * lib/c32rtomb.c: Include attribute.h.
6617         (FALLTHROUGH): Remove macro.
6618         * modules/c32rtomb (Depends-on): Add attribute.
6620 2020-05-08  Bruno Haible  <bruno@clisp.org>
6622         xsize: Use module 'attribute'.
6623         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
6624         * modules/xsize (Depends-on): Add attribute.
6626 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
6628         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
6630         * lib/attribute.h: Minor style fixes.
6632         Fix version-etc glitch on OpenIndiana
6633         Problem reported by Mats Erik Andersson in:
6634         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
6635         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
6636         that now clashes with gnulib-common.h.  All uses changed.
6638 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
6640         attribute: new module
6641         This simplifies use of GCC and C2X attributes like ‘deprecated’.
6642         * MODULES.html.sh: Add attribute.
6643         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
6644         * doc/gnulib.texi (Particular Modules): Add Attributes.
6645         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
6646         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
6647         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
6648         * lib/vasnprintf.c:
6649         Include attribute.h, and let it define FALLTHROUGH.
6650         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
6651         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
6652         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
6653         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
6654         This is a copy since Gawk doesn’t use Gnulib.
6655         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
6656         is incompatible with gl_COMMON_BODY’s.  All uses changed.
6657         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
6658         Keep the existing FALLTHROUGH definition since Glibc might use it,
6659         and it does no harm to Gnulib’s FALLTHROUGH.
6660         * lib/fts_.h, lib/inttostr.h:
6661         (__GNUC_PREREQ): Remove; no longer needed.
6662         (__attribute_warn_unused_result__): Remove.  All uses
6663         replaced by _GL_ATTRIBUTE_NODISCARD.
6664         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
6665         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
6666         __attribute__ ((__warn_unused_result__)), for forward
6667         compatibility to C2X.
6668         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
6669         _GL_ATTRIBUTE_NODISCARD.
6670         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
6671         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
6672         replaced by gl_COMMON_BODY’s implementation, which has a
6673         slightly different signature.
6674         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
6675         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
6676         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
6677         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
6678         No doubt all uses should be replaced, at some point.
6679         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
6680         (_Noreturn): Use it.
6681         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
6682         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
6683         (_GL_ATTRIBUTE_COLD)
6684         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
6685         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
6686         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
6687         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
6688         (_GL_ATTRIBUTE_MAYBE_UNUSED)
6689         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
6690         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
6691         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
6692         (_GL_ATTRIBUTE_RETURNS_NONNULL)
6693         (_GL_ATTRIBUTE_SENTINEL): New macros.
6694         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
6695         * modules/fnmatch, modules/freopen-safer, modules/fts:
6696         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
6697         * modules/quotearg, modules/savewd:
6698         * modules/unistdio/u16-u16-vasnprintf:
6699         * modules/unistdio/u16-vasnprintf:
6700         * modules/unistdio/u32-u32-vasnprintf:
6701         * modules/unistdio/u32-vasnprintf:
6702         * modules/unistdio/u8-u8-vasnprintf:
6703         * modules/unistdio/u8-vasnprintf:
6704         * modules/unistdio/ulc-vasnprintf:
6705         * modules/unistr/u8-uctomb, modules/vasnprintf:
6706         (Depends-on:): Add attribute module.
6708 2020-05-03  Bruno Haible  <bruno@clisp.org>
6710         bison: Fix today's commit.
6711         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
6713 2020-05-03  Bruno Haible  <bruno@clisp.org>
6715         list-c++: Add get_first, get_last, set_first, set_last operations.
6716         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
6717         set_first, set_last.
6718         * lib/gl_list.h: Tweak comments.
6720 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
6722         bison: rely on bison's %require to check a version requirement
6723         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
6724         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
6725         enough of not.
6726         So far it is the only know Yacc tool that supports '%require'.
6727         Other yaccs will actually even choke on seeing the -o option after the
6728         input file name.
6729         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
6731 2020-05-02  Bruno Haible  <bruno@clisp.org>
6733         list: Add get_first, get_last, set_first, set_last operations.
6734         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
6735         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
6736         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
6738 2020-05-02  Bruno Haible  <bruno@clisp.org>
6740         list: Remove redundant code for remove_first and remove_last operations.
6741         * lib/gl_list.h (struct gl_list_implementation): Remove fields
6742         remove_first, remove_last.
6743         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
6744         * lib/gl_array_list.c: Revert last change.
6745         * lib/gl_carray_list.c: Likewise.
6746         * lib/gl_anylinked_list2.h: Likewise.
6747         * lib/gl_linked_list.c: Likewise.
6748         * lib/gl_linkedhash_list.c: Likewise.
6749         * lib/gl_anytree_list2.h: Likewise.
6750         * lib/gl_avltree_list.c: Likewise.
6751         * lib/gl_avltreehash_list.c: Likewise.
6752         * lib/gl_rbtree_list.c: Likewise.
6753         * lib/gl_rbtreehash_list.c: Likewise.
6754         * lib/gl_sublist.c: Likewise.
6756 2020-05-02  Bruno Haible  <bruno@clisp.org>
6758         bison-i18n: Add support for cross-compilation.
6759         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
6760         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
6761         via Akim Demaille <akim@lrde.epita.fr>.
6762         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
6763         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
6764         Don't use bison's --print-localedir option when cross-compiling.
6765         Also, fix an error message and a comment.
6767 2020-05-01  Bruno Haible  <bruno@clisp.org>
6769         list: Add remove_first and remove_last operations.
6770         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
6771         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
6772         * lib/gl_list.h (struct gl_list_implementation): Add fields
6773         remove_first, remove_last.
6774         (gl_list_remove_first, gl_list_remove_last): New functions.
6775         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
6776         functions, based on gl_array_remove_at.
6777         (gl_array_list_implementation): Implement the new operations.
6778         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
6779         New functions, based on gl_carray_remove_at.
6780         (gl_carray_list_implementation): Implement the new operations.
6781         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
6782         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
6783         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
6784         new operations.
6785         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
6786         Likewise.
6787         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
6788         New functions, based on gl_tree_remove_at.
6789         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
6790         new operations.
6791         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
6792         Likewise.
6793         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
6794         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
6795         Likewise.
6796         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
6797         New functions, based on gl_sublist_remove_at.
6798         (gl_sublist_list_implementation): Implement the new operations.
6799         * lib/gl_list.hh (class gl_List): Add methods remove_first,
6800         remove_last.
6801         * tests/test-array_list.c (main): Test also gl_list_remove_first and
6802         gl_list_remove_last.
6803         * tests/test-avltree_list.c (main): Likewise.
6804         * tests/test-avltreehash_list.c (main): Likewise.
6805         * tests/test-carray_list.c (main): Likewise.
6806         * tests/test-linked_list.c (main): Likewise.
6807         * tests/test-linkedhash_list.c (main): Likewise.
6808         * tests/test-rbtree_list.c (main): Likewise.
6809         * tests/test-rbtreehash_list.c (main): Likewise.
6811 2020-05-01  Bruno Haible  <bruno@clisp.org>
6813         parse-datetime: Fix a build failure with an older bison version.
6814         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
6815         parse-datetime.tab.c if a suitable version of bison was not found.
6817 2020-05-01  Bruno Haible  <bruno@clisp.org>
6819         bison: New module.
6820         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
6821         m4/parse-datetime.m4.
6822         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
6823         * modules/bison: New file.
6824         * modules/parse-datetime (Files): Remove m4/bison.m4.
6825         (Depends-on): Add bison.
6827 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
6829         Update users.txt.
6830         * users.txt: Add poke.
6832 2020-04-28  Bruno Haible  <bruno@clisp.org>
6834         posix_spawn_file_actions_addfchdir tests: Enhance test.
6835         * tests/test-posix_spawn5.c: Include findprog.h.
6836         (test): New function, extracted from main.
6837         (main): Invoke it. Also, invoke it with a program name such as
6838         "bin/pwd".
6839         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
6840         findprog.
6842 2020-04-28  Bruno Haible  <bruno@clisp.org>
6844         posix_spawn_file_actions_addchdir tests: Enhance test.
6845         * tests/test-posix_spawn4.c: Include findprog.h.
6846         (test): New function, extracted from main.
6847         (main): Invoke it. Also, invoke it with a program name such as
6848         "bin/pwd".
6849         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
6850         findprog.
6852 2020-04-28  Bruno Haible  <bruno@clisp.org>
6854         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
6855         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
6856         access elements of the wrong union member.
6858 2020-04-27  Bruno Haible  <bruno@clisp.org>
6860         getdate: Remove deprecated module.
6861         * modules/getdate: Remove file.
6862         * doc/getdate.texi: Remove file.
6863         * lib/getdate.h: Remove file.
6864         * NEWS: Mention the removal.
6866 2020-04-27  Bruno Haible  <bruno@clisp.org>
6868         realloc: Remove deprecated module.
6869         * modules/realloc: Remove file.
6870         * NEWS: Mention the removal.
6872 2020-04-27  Bruno Haible  <bruno@clisp.org>
6874         calloc: Remove deprecated module.
6875         * modules/calloc: Remove file.
6876         * NEWS: Mention the removal.
6878 2020-04-27  Bruno Haible  <bruno@clisp.org>
6880         malloc: Remove deprecated module.
6881         * modules/malloc: Remove file.
6882         * NEWS: Mention the removal.
6884 2020-04-27  Bruno Haible  <bruno@clisp.org>
6886         fnmatch-posix: Remove deprecated module.
6887         * modules/fnmatch-posix: Remove file.
6888         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
6889         * NEWS: Mention the removal.
6891 2020-04-27  Bruno Haible  <bruno@clisp.org>
6893         pipe: Remove deprecated module.
6894         * modules/pipe: Remove file.
6895         * lib/pipe.h: Remove file.
6896         * NEWS: Mention the removal.
6898 2020-04-27  Bruno Haible  <bruno@clisp.org>
6900         getopt: Remove deprecated module.
6901         * modules/getopt: Remove file.
6902         * NEWS: Mention the removal.
6904 2020-04-27  Bruno Haible  <bruno@clisp.org>
6906         remove-dest-slash: Remove deprecated module.
6907         * modules/rename-dest-slash: Remove file.
6908         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
6909         Update.
6910         * NEWS: Mention the removal.
6912 2020-04-27  Bruno Haible  <bruno@clisp.org>
6914         unictype/bidicategory-*: Remove deprecated modules.
6915         * modules/unictype/bidicategory-all: Remove file.
6916         * modules/unictype/bidicategory-byname: Remove file.
6917         * modules/unictype/bidicategory-name: Remove file.
6918         * modules/unictype/bidicategory-of: Remove file.
6919         * modules/unictype/bidicategory-test: Remove file.
6920         * MODULES.html.sh (Unicode string functions): Update.
6921         * NEWS: Mention the removals.
6923 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6925         Tune fts for FTS_LOGICAL+FTS_NOSTAT
6926         From a suggestion by Askar Safin in:
6927         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
6928         * lib/fts.c (fts_build): If file types are known, optimize
6929         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
6930         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
6931         non-directories.
6933 2020-04-19  Bruno Haible  <bruno@clisp.org>
6935         vasnprintf: Add support for printing wide characters using escapes.
6936         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
6937         (wctomb_fallback): New function.
6938         (local_wctomb): New function.
6939         (local_wcrtomb): New function or macro.
6940         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
6941         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
6942         %lc.
6944 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
6946         fts: remove NOSTAT_LEAF_OPTIMIZATION
6947         It caused ‘find’ and ‘du’ to dump core, and it was useful
6948         only for obsolescent Linux filesystems anyway.  Problem reported in:
6949         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
6950         Quite possibly there is still a serious underlying fts bug with
6951         tight-loop-check and mutating file systems, but if so this patch
6952         should cause the bug to be triggered less often.
6953         * lib/fts.c (enum leaf_optimization): Remove
6954         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
6955         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
6956         (leaf_optimization): Remove special cases for ReiserFS and XFS.
6957         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
6958         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
6959         Remove.  All uses removed.
6961 2020-04-13  Bastien Roucariès  <rouca@debian.org>
6963         explicit_bzero: Improve code style.
6964         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
6966 2020-04-13  Bastien Roucariès  <rouca@debian.org>
6968         explicit_bzero: On native Windows, use SecureZeroMemory().
6969         * lib/explicit_bzero.c: Include <windows.h>.
6970         (explicit_bzero): On native Windows, use SecureZeroMemory.
6972 2020-04-13  Bastien Roucariès  <rouca@debian.org>
6974         explicit_bzero: Use memset_s() when available.
6975         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
6976         (explicit_bzero): Use memset_s when available.
6977         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
6979 2020-04-13  Bastien Roucariès  <rouca@debian.org>
6981         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
6982         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
6983         free() that overwrite the memory with canaries.
6985 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
6987         bootstrap: recommend git submodule update --init
6988         Reported by Bruno Haible.
6989         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
6990         * build-aux/bootstrap: recommand "git submodule update --init"
6991         rather than "git submodule init".
6993 2020-04-12  Bruno Haible  <bruno@clisp.org>
6995         explicit_bzero: Add tests.
6996         * tests/test-explicit_bzero.c: New file.
6997         * modules/explicit_bzero-tests: New file.
6999 2020-04-11  Bruno Haible  <bruno@clisp.org>
7001         explicit_bzero: Relicense under LGPLv2+.
7002         Approved by Paul Eggert.
7003         * modules/explicit_bzero (License): Change to LGPLv2+.
7005 2020-04-10  Bruno Haible  <bruno@clisp.org>
7007         findprog, relocatable-prog: Ignore directories during PATH search.
7008         Reported by Frederick Eaton via Dmitry Goncharov in
7009         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
7011         * lib/findprog.c (find_in_path): When the file found in a PATH element
7012         is a directory, continue searching.
7013         * modules/findprog (Depends-on): Add sys_stat, stat.
7014         * modules/findprog-lgpl (Depends-on): Likewise.
7016         * lib/progreloc.c (maybe_executable): When the file found in a PATH
7017         element is a directory, continue searching.
7018         * lib/relocwrapper.c: Update comments.
7019         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
7020         (configure.ac-early): New section.
7022 2020-04-10  Bruno Haible  <bruno@clisp.org>
7024         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
7025         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
7026         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
7027         * MODULES.html.sh: In a git-less tarball, use the date of the first
7028         ChangeLog entry.
7030 2020-04-04  Bruno Haible  <bruno@clisp.org>
7032         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
7033         * m4/gettext.m4: Fix comments regarding the gettext library.
7034         * m4/intl-thread-locale.m4: Likewise.
7035         * m4/intlmacosx.m4: Likewise.
7036         * m4/lcmessage.m4: Likewise.
7037         * m4/nls.m4: Likewise.
7038         * m4/po.m4: Likewise.
7039         * m4/progtest.m4: Likewise.
7041 2020-04-04  Jim Meyering  <meyering@fb.com>
7043         maint: remove a stray inter-word space in a 6x-repeated comment
7044         Induce the changes by running this:
7045           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
7046         * build-aux/announce-gen: Change "by  perl" to "by perl".
7047         * build-aux/gitlog-to-changelog: Likewise.
7048         * build-aux/prefix-gnulib-mk: Likewise.
7049         * build-aux/update-copyright: Likewise.
7050         * build-aux/useless-if-before-free: Likewise.
7051         * tests/test-update-copyright.sh: Likewise.
7053 2020-03-28  Bruno Haible  <bruno@clisp.org>
7055         Use module 'filename' instead of module 'dosname'.
7057         * lib/at-func.c: Include filename.h instead of dosname.h.
7058         * lib/unlinkat.c: Likewise.
7059         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
7060         * modules/areadlinkat-with-size (Depends-on): Likewise.
7061         * modules/faccessat (Depends-on): Likewise.
7062         * modules/fchmodat (Depends-on): Likewise.
7063         * modules/fchownat (Depends-on): Likewise.
7064         * modules/fstatat (Depends-on): Likewise.
7065         * modules/mkdirat (Depends-on): Likewise.
7066         * modules/mkfifoat (Depends-on): Likewise.
7067         * modules/readlinkat (Depends-on): Likewise.
7068         * modules/selinux-at (Depends-on): Likewise.
7069         * modules/symlinkat (Depends-on): Likewise.
7070         * modules/unlinkat (Depends-on): Likewise.
7071         * modules/utimensat (Depends-on): Likewise.
7073         * lib/at-func2.c: Include filename.h instead of dosname.h.
7074         * modules/linkat (Depends-on): Add filename. Remove dosname.
7075         * modules/renameatu (Depends-on): Likewise.
7077         * lib/canonicalize.c: Include filename.h instead of dosname.h.
7078         * lib/canonicalize-lgpl.c: Likewise.
7079         * modules/canonicalize (Depends-on): Add filename.
7080         * modules/canonicalize-lgpl (Depends-on): Likewise.
7082         * lib/dirname.h: Include filename.h instead of dosname.h.
7083         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
7085         * lib/fchdir.c: Include filename.h instead of dosname.h.
7086         * modules/fchdir (Depends-on): Add filename. Remove dosname.
7088         * lib/openat.c: Include filename.h instead of dosname.h.
7089         * modules/openat (Depends-on): Add filename. Remove dosname.
7091         * lib/rmdir.c: Include filename.h instead of dosname.h.
7092         * modules/rmdir (Depends-on): Add filename. Remove dosname.
7094         * lib/savewd.c: Include filename.h instead of dosname.h.
7095         * modules/savewd (Depends-on): Add filename. Remove dosname.
7097         * lib/unlink.c: Include filename.h instead of dosname.h.
7098         * modules/unlink (Depends-on): Add filename. Remove dosname.
7100         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
7101         * lib/relocwrapper.c: Update comments.
7103         * modules/lstat (Depends-on): Remove dosname.
7105 2020-03-28  Bruno Haible  <bruno@clisp.org>
7107         dosname: Redirect to 'filename'.
7108         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
7109         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
7110         * lib/dosname.h: Remove all definitions. Just include filename.h.
7111         * modules/dosname (Status, Notice): Mark as deprecated.
7112         (Depends-on): Add 'filename'.
7114 2020-03-28  Bruno Haible  <bruno@clisp.org>
7116         dosname: Change IS_RELATIVE_FILE_NAME.
7117         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
7118         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
7119         * NEWS: Mention the change.
7121 2020-03-28  Bruno Haible  <bruno@clisp.org>
7123         filename: Copy some definitions from module 'dosname'.
7124         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
7125         (HAS_DEVICE): Document macro.
7126         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
7127         (IS_ABSOLUTE_FILE_NAME): Consider
7128         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
7129         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
7130         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
7131         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
7132         IS_PATH_WITH_DIR.
7133         (DllMain): Update.
7134         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
7135         IS_PATH_WITH_DIR.
7136         (find_executable): Update.
7137         * NEWS: Document the deprecations.
7139 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
7141         getopt-posix: port __GETOPT_PREFIX to macOS
7142         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
7143         Define to work around a problem with asm on macOS (Bug#40205).
7145 2020-03-22  Bruno Haible  <bruno@clisp.org>
7147         MODULES.html.sh: Add support for reproducible builds.
7148         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
7149         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
7150         * MODULES.html.sh: Print the date of the last gnulib commit, not the
7151         current date.
7153 2020-03-22  Bruno Haible  <bruno@clisp.org>
7155         Several modules: Depend on stat.
7156         * modules/acl-permissions (Depends-on): Add stat.
7157         * modules/canonicalize (Depends-on): Likewise.
7158         * modules/file-has-acl (Depends-on): Likewise.
7159         * modules/fstat (Depends-on): Likewise.
7160         * modules/fstatat (Depends-on): Likewise.
7161         * modules/glob (Depends-on): Likewise.
7162         * modules/javacomp (Depends-on): Likewise.
7163         * modules/linkat (Depends-on): Likewise.
7164         * modules/mkdir (Depends-on): Likewise.
7165         * modules/pt_chown (Depends-on): Likewise.
7166         * modules/ptsname_r (Depends-on): Likewise.
7167         * modules/readlinkat (Depends-on): Likewise.
7168         * modules/rename (Depends-on): Likewise.
7169         * modules/renameatu (Depends-on): Likewise.
7170         * modules/tmpdir (Depends-on): Likewise.
7171         * modules/utimens (Depends-on): Likewise.
7172         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
7173         * modules/same (Depends-on): Remove stat.
7175 2020-03-22  Bruno Haible  <bruno@clisp.org>
7177         acl-permissions: Improve autoconf macro.
7178         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
7179         more reliably.
7181 2020-03-22  Bruno Haible  <bruno@clisp.org>
7183         file-has-acl: Fix module description.
7184         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
7185         (Depends-on): Depend on acl-permissions unconditionally.
7187 2020-03-21  Bruno Haible  <bruno@clisp.org>
7189         unlink: Ensure errno also on native Windows.
7190         * modules/unlink (Depends-on): Add malloc-posix.
7192 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
7194         unlink: fix malloc errno typo
7195         Problem reported by Tim Rühsen in:
7196         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
7197         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
7199 2020-03-16  Bruno Haible  <bruno@clisp.org>
7201         *printf-posix: Fix m4 error (regression from 2020-03-08).
7202         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
7203         brackets in AC_COMPILE_IFELSE invocation.
7205 2020-03-08  Bruno Haible  <bruno@clisp.org>
7207         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
7208         * modules/crypto/af_alg (Depends-on): Add fstat.
7209         * modules/renameatu (Depends-on): Likewise.
7210         * modules/same (Depends-on): Likewise.
7211         * modules/term-style-control (Depends-on): Likewise.
7213 2020-03-08  Bruno Haible  <bruno@clisp.org>
7215         *printf-posix: Document why it's overridden on some glibc systems.
7216         Reported by Adrian Bunk <bunk@stusta.de> in
7217         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
7218         * doc/posix-functions/*printf.texi: Document the problem with the %n
7219         directive on some glibc systems.
7220         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
7221         the cross-compilation guesses accordingly.
7223 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
7225         open, openat: port to (O_RDWR | O_RDONLY) != 0
7226         Potential portability problem reported by Dan Gohman in:
7227         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
7228         * lib/open.c (open):
7229         * lib/openat.c (rpl_openat):
7230         Don’t assume O_RDONLY is disjoint from O_RDWR.
7232 2020-03-07  Bruno Haible  <bruno@clisp.org>
7234         openat: Fix theoretically possible issue on GNU/Hurd.
7235         Reported by Dan Gohman <sunfish@mozilla.com> in
7236         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
7237         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
7238         ignore the bits that are also set in O_RDONLY.
7240 2020-02-24  Bruno Haible  <bruno@clisp.org>
7242         getloadavg: Don't use /usr/local when cross-compiling on AIX.
7243         Reported by Jens Rehsack <sno@netbsd.org> in
7244         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
7245         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
7246         cross-compiling.
7248 2020-02-24  Bruno Haible  <bruno@clisp.org>
7250         fcntl: Add witness of gnulib override.
7251         Reported by Jens Rehsack <sno@netbsd.org> in
7252         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
7253         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
7254         macros.
7256 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
7258         Update users.txt.
7259         * users.txt: Add datamash, time.
7261 2020-02-23  Bruno Haible  <bruno@clisp.org>
7263         uni*/base: Use 'restrict'.
7264         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
7265         from lib/regex.h.
7266         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
7267         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
7268         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
7269         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
7270         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
7271         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
7272         '_UC_RESTRICT'.
7273         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
7274         u32_conv_to_encoding): Use '_UC_RESTRICT'.
7275         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
7276         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
7277         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
7278         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
7279         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
7280         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
7281         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
7282         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
7283         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
7284         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
7285         '_UC_RESTRICT'.
7286         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
7287         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
7288         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
7289         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
7290         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
7291         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
7292         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
7293         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
7295 2020-02-23  Bruno Haible  <bruno@clisp.org>
7297         glob, spawn: Use improved '_Restrict_' definition.
7298         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
7299         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
7301 2020-02-23  Bruno Haible  <bruno@clisp.org>
7303         crypto/gc: Use 'restrict'.
7304         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
7305         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
7307         crypto/hmac-*: Use 'restrict'.
7308         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
7309         'restrict'.
7310         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
7311         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
7312         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
7313         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
7315         crypto/sm3: Use 'restrict'.
7316         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
7317         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
7319         crypto/*-buffer: Use 'restrict'.
7320         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
7321         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
7323         crypto/sha512-buffer: Use 'restrict'.
7324         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
7325         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
7326         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
7328         crypto/sha256-buffer: Use 'restrict'.
7329         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
7330         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
7331         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
7333         crypto/sha1-buffer: Use 'restrict'.
7334         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
7335         'restrict'.
7336         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
7338         crypto/md5-buffer: Use 'restrict'.
7339         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
7340         'restrict'.
7341         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
7343         crypto/md4: Use 'restrict'.
7344         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
7345         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
7347         crypto/md2: Use 'restrict'.
7348         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
7349         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
7351         crypto/rijndael: Use 'restrict'.
7352         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
7353         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
7354         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
7356         crypto/arctwo: Use 'restrict'.
7357         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
7358         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
7360         crypto/arcfour: Use 'restrict'.
7361         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
7362         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
7364         careadlinkat: Use 'restrict'.
7365         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
7366         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
7367         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
7369         regex-quote: Use 'restrict'.
7370         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
7371         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
7373         system-quote: Use 'restrict'.
7374         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
7375         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
7377         sh-quote: Use 'restrict'.
7378         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
7379         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
7381         quotearg: Use 'restrict'.
7382         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
7383         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
7385         parse-datetime: Use 'restrict'.
7386         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
7387         'restrict'.
7388         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
7390         nstrftime: Use 'restrict'.
7391         * lib/strftime.h (nstrftime): Use 'restrict'.
7392         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
7394         mbstok_r: Use 'restrict'.
7395         * lib/string.in.h (mbstok_r): Use 'restrict'.
7397         xmemcoll: Use 'restrict'.
7398         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
7399         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
7401         memcoll: Use 'restrict'.
7402         * lib/memcoll.h (memcoll): Use 'restrict'.
7403         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
7405         vasnprintf: Use 'restrict'.
7406         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
7407         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
7409         c-vasnprintf: Use 'restrict'.
7410         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
7411         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
7413         c-vsnprintf: Use 'restrict'.
7414         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
7415         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
7417         c-snprintf: Use 'restrict'.
7418         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
7419         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
7421         astrxfrm: Use 'restrict'.
7422         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
7423         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
7425         amemxfrm: Use 'restrict'.
7426         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
7427         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
7429 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
7431         fchmodat, lchmod: simplify
7432         It appears that we may have overengineered lchmod and fchmodat,
7433         in that the code was prepared for some hypothetical platforms but
7434         was so complicated that it was hard to understand.  I attempted to
7435         improve the situation by simplifying the code when this
7436         simplification should not hurt on real platforms; we can re-add
7437         complexity later to port to platforms I didn’t know about.
7438         * lib/fchmodat.c (fchmodat):
7439         * lib/lchmod.c (lchmod):
7440         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
7441         around the /proc code that needs it.
7442         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
7443         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
7444         Do not include <config.h> twice.
7445         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
7446         lchmod on any known hosts.
7447         (lchmod): Do not defer to fchmodat, so that the lchmod module
7448         need not depend on the fchmodat module (which is a circular
7449         dependency).  Do not use openat, since ‘open’ suffices.
7450         Coalesce calls to lchmod/chmod.
7451         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
7452         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
7453         * modules/lchmod (Depends-on, configure.ac):
7454         * modules/sys_stat (Depends-on):
7455         Do not worry about replacing lchmod, since that shouldn’t happen.
7456         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
7457         Do not worry about whether lchmod works on non-symlinks,
7458         since every known lchmod works on non-symlinks.
7459         * modules/lchmod (Depends-on):
7460         Remove circular dependency on fchmodat.
7462 2020-02-22  Bruno Haible  <bruno@clisp.org>
7464         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
7465         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
7466         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
7468 2020-02-22  Bruno Haible  <bruno@clisp.org>
7470         Use 'restrict' in all POSIX function declarations.
7471         * lib/iconv.in.h (iconv): Use 'restrict'.
7472         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
7473         * lib/monetary.in.h (strfmon_l): Likewise.
7474         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
7475         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
7476         pthread_mutex_timedlock, pthread_rwlock_init,
7477         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
7478         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
7479         * lib/search.in.h (tdelete): Likewise.
7480         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
7481         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
7482         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
7483         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
7484         Likewise.
7485         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
7486         strtoull): Likewise.
7487         * lib/string.in.h (strncat): Likewise.
7488         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
7489         recvfrom): Likewise.
7490         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
7491         * lib/time.in.h (strftime): Likewise.
7492         * lib/unistd.in.h (readlink, readlinkat): Likewise.
7493         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
7494         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
7495         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
7496         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
7497         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
7498         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
7499         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7500         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
7501         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
7502         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
7503         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
7504         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
7505         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7506         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
7507         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
7508         other *_h.m4 files.
7509         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
7511 2020-02-22  Bruno Haible  <bruno@clisp.org>
7513         Update NEWS.
7514         * NEWS: Mention the last change.
7516 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
7518         chmodat, chownat: new modules
7519         These are split from fchmodat, fchownat.  GNU Emacs needs the
7520         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
7521         lchmodat.  Split the latter two into a new module chmodat.
7522         Similarly for fchownat.  This the same basic idea for why statat
7523         was split from fstatat on 2013-01-23.
7524         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
7525         Rename from FCHMODAT_INLINE.  All uses changed.
7526         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
7527         Rename from FCHOWNAT_INLINE.  All uses changed.
7528         * lib/openat.h:
7529         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
7530         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
7531         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
7532         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
7533         (configure.ac): Remove fchmodat module indicator.
7534         (Makefile.am): Omit chmodat.c.
7535         (Maintainer): Add self.
7536         * modules/fchownat: Similarly, but for chown.
7537         * tests/test-fchownat.c (BASE): Don't define if already defined.
7538         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
7540 2020-02-22  Bruno Haible  <bruno@clisp.org>
7542         users.txt: Add groff.
7543         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
7544         * users.txt: Add groff.
7546 2020-02-22  Bruno Haible  <bruno@clisp.org>
7548         gnulib-tool: Ensure copied files are writable.
7549         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
7550         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
7551         * gnulib-tool (func_ensure_writable): New function.
7552         (func_ln_s, func_hardlink, func_lookup_file, func_import,
7553         func_create_testdir, copy-file): Invoke it after copying a file.
7555 2020-02-22  Bruno Haible  <bruno@clisp.org>
7557         users.txt: Update.
7558         * users.txt: Update URLs to projects that have moved or switched to git.
7559         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
7560         over the summary view. Add gawk.
7562 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
7564         largefile: remove _DARWIN_USE_64_BIT_INODE
7565         It’s not needed in currently-supported macOS versions, and was
7566         problematic anyway in MacOS X 10.5 which was the only version that
7567         could use it.  Problem reported by Peter Eisentraut in:
7568         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
7569         * m4/largefile.m4 (AC_SYS_LARGEFILE):
7570         Don’t define _DARWIN_USE_64_BIT_INODE.
7571         This syncs with Autoconf master.
7573         Add ‘extern "C"’ to count-one-bits.h etc.
7574         This ports these .h files to C++.
7575         Problem reported by Simon Marchi in:
7576         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
7577         * lib/count-leading-zeros.h, lib/count-one-bits.h:
7578         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
7580 2020-02-19  Bruno Haible  <bruno@clisp.org>
7582         uninorm/decompose-internal: Avoid "no previous prototype" warning.
7583         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
7584         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
7585         * lib/array-mergesort.h: Accept an optional macro definition
7586         STATIC_FROMTO.
7587         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
7589 2020-02-16  Bruno Haible  <bruno@clisp.org>
7591         fchmodat: Make more future-proof.
7592         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
7593         NEED_FCHMODAT_NONSYMLINK_FIX.
7594         (gl_PREREQ_FCHMODAT): New macro.
7595         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
7596         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
7597         without lchmod function.
7598         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
7600 2020-02-16  Bruno Haible  <bruno@clisp.org>
7602         lchmod: Make more future-proof.
7603         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
7604         (gl_PREREQ_LCHMOD): New macro.
7605         * lib/lchmod.c (orig_lchmod): New function.
7606         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
7607         Return EOPNOTSUPP only on Linux and on platforms without lchmod
7608         function.
7609         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
7611         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
7612         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
7614 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
7616         xnanosleep: prefer pause, and get remaining time
7617         Problem reported by Vladimir Panteleev in:
7618         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
7619         * lib/xnanosleep.c: Include intprops.h, unistd.h.
7620         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
7621         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
7622         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
7623         * modules/xnanosleep (Depends-on): Add intprops, unistd.
7625 2020-02-16  Bruno Haible  <bruno@clisp.org>
7627         lchmod: Improve cross-compilation guess.
7628         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
7629         cross-compiling, guess depending on the platform.
7631 2020-02-16  Bruno Haible  <bruno@clisp.org>
7633         fstrcmp: Add API to clean up resources.
7634         Reported by Akim Demaille <akim@lrde.epita.fr> in
7635         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
7636         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
7637         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
7639 2020-02-14  Bruno Haible  <bruno@clisp.org>
7641         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
7642         Reported by Christian Biesinger in
7643         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
7644         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
7645         corresponding module is not enabled.
7646         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
7647         prototype if the corresponding module is not enabled.
7649 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
7651         fchmodat, lchmod: port to buggy Linux filesystems
7652         Problem reported by Florian Weimer in:
7653         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
7654         * lib/fchmodat.c (fchmodat):
7655         * lib/lchmod.c (lchmod):
7656         Don’t assume that chmod on the O_PATH-opened fd will do
7657         the right thing on a symbolic link.
7658         * lib/fchmodat.c (fchmodat):
7659         Don’t attempt to special-case
7660         any flag value other than AT_SYMLINK_NOFOLLOW.
7662 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
7664         lchmod: pacify Coverity CID 1491216
7665         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
7666         not complain about unreachable code at the ‘struct stat st;’
7667         declaration.
7669 2020-02-10  Bruno Haible  <bruno@clisp.org>
7671         copysignf: Fix link error on HP-UX with cc.
7672         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
7673         HP-UX, set COPYSIGNF_LIBM to -lm.
7675 2020-02-10  Bruno Haible  <bruno@clisp.org>
7677         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
7678         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
7679         with $(LIB_SEMAPHORE).
7680         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
7681         with $(LIB_SEMAPHORE).
7683 2020-02-10  Bruno Haible  <bruno@clisp.org>
7685         ptsname_r-tests: Avoid unused function warning.
7686         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
7688 2020-02-08  Bruno Haible  <bruno@clisp.org>
7690         lchmod: Add tests.
7691         * tests/test-lchmod.c: New file.
7692         * modules/lchmod-tests: New file.
7694 2020-02-08  Bruno Haible  <bruno@clisp.org>
7696         lchmod: Ensure declaration on HP-UX.
7697         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
7698         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
7700 2020-02-08  Bruno Haible  <bruno@clisp.org>
7702         fchmodat: Strengthen tests.
7703         * tests/test-fchmodat.c (BASE): New macro.
7704         (main): Use it, to avoid conflicts with other unit tests. Verify that
7705         fchmodat changed the file permission bits.
7707 2020-02-08  Bruno Haible  <bruno@clisp.org>
7709         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
7710         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
7711         '#undef __need_system_sys_stat_h'.
7713 2020-02-08  Bruno Haible  <bruno@clisp.org>
7715         fchmodat: Improve cross-compilation guesses.
7716         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
7717         cross-compiling, guess depending on the platform.
7718         * doc/posix-functions/fchmodat.texi: Clarify.
7720 2020-02-08  Bruno Haible  <bruno@clisp.org>
7722         Fix compilation errors in a testdir created with --with-c++-tests.
7723         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
7724         since it does not work any more with g++ >= 4.4.
7726 2020-02-08  Bruno Haible  <bruno@clisp.org>
7728         doc: Update for glibc 2.31.
7729         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
7730         * doc/gnulib.texi: Include it.
7731         * doc/pastposix-functions/h_errno.texi: Update.
7732         * doc/posix-functions/*.texi: Likewise.
7734 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
7736         mountlist: consider smb3 file systems as remote
7737         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
7738         "smb3" as remote.
7740 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7742         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
7743         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
7744         they act like chmod on non-symlinks.
7745         * NEWS:
7746         * doc/glibc-functions/lchmod.texi (lchmod):
7747         * doc/posix-functions/fchmodat.texi (fchmodat):
7748         Mention this.
7749         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
7750         config.h, and undef it after including sys/stat.h the first time.
7751         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
7752         sys/stat.h a second time after defining orig_fchmodat.
7753         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
7754         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
7755         * lib/lchmod.c: New file.
7756         * lib/sys_stat.in.h (fchmodat, lchmod):
7757         Support replacing these functions.
7758         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
7759         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
7760         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
7761         Test that lchmod works on non-symlinks.
7762         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
7763         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
7764         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
7765         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
7766         * modules/lchmod (Files): Add lib/lchmod.c.
7767         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
7768         (configure.ac): Compile lchmod.c if needed.
7769         (lib_SOURCES): Add lchmod.c.
7770         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
7771         and REPLACE_LCHMOD.
7772         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
7773         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
7775 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
7777         mountlist: Consider AFS filesystems as remote
7778         df --local relies on the ME_REMOTE macro to determine if a given
7779         mount entry should be considered "local".  There is special logic
7780         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
7781         kernel's kafs module or AuriStorFS is treated as a local mount.
7782         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
7783         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
7785 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
7787         Port _Noreturn to older Clang
7788         Problem reported by Jeffery Walton in:
7789         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
7790         * lib/_Noreturn.h (_Noreturn):
7791         * m4/gnulib-common.m4 (gl_COMMON_BODY):
7792         Assume _Noreturn works in Clang 3.5 and later.
7793         It is documented to work in Clang 3.5:
7794         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
7795         and is not documented in Clang 3.4:
7796         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
7797         Apple sets __clang_version__ to a different value, so use
7798         __apple_build_version__ there.  See:
7799         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
7801 2020-02-04  Pádraig Brady  <P@draigBrady.com>
7803         test-canonicalize: avoid unused function warning
7804         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
7805         with the same guard as that used to protect usage of the null_ptr
7806         function, so that one doesn't get a -Wunused warning.
7807         * tests/test-canonicalize-lgpl.c: Likewise.
7809 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
7811         libc-config: port to Apple’s Clang variant
7812         * lib/libc-config.h (__glibc_clang_prereq):
7813         Port to Apple’s Clang variant, which uses a different
7814         numbering scheme for __clang_major__.
7816 2020-02-02  Bruno Haible  <bruno@clisp.org>
7818         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
7819         * doc/containers.texi: Document these new modules.
7821 2020-02-02  Bruno Haible  <bruno@clisp.org>
7823         omap-c++: Add tests.
7824         * tests/test-omap-c++.cc: New file.
7825         * modules/omap-c++-tests: New file.
7827         omap-c++: New module.
7828         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
7829         * modules/omap-c++: New file.
7831 2020-02-02  Bruno Haible  <bruno@clisp.org>
7833         map-c++: Add tests.
7834         * tests/test-map-c++.cc: New file.
7835         * modules/map-c++-tests: New file.
7837         map-c++: New module.
7838         * lib/gl_map.hh: New file, based on lib/gl_map.h.
7839         * modules/map-c++: New file.
7841 2020-02-02  Bruno Haible  <bruno@clisp.org>
7843         oset-c++: Add tests.
7844         * tests/test-oset-c++.cc: New file.
7845         * modules/oset-c++-tests: New file.
7847         oset-c++: New module.
7848         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
7849         * modules/oset-c++: New file.
7851 2020-02-02  Bruno Haible  <bruno@clisp.org>
7853         set-c++: Add tests.
7854         * tests/test-set-c++.cc: New file.
7855         * modules/set-c++-tests: New file.
7857         set-c++: New module.
7858         * lib/gl_set.hh: New file, based on lib/gl_set.h.
7859         * modules/set-c++: New file.
7861 2020-02-02  Bruno Haible  <bruno@clisp.org>
7863         list-c++: Add tests.
7864         * tests/test-list-c++.cc: New file.
7865         * modules/list-c++-tests: New file.
7867         list-c++: New module.
7868         * lib/gl_list.hh: New file, based on lib/gl_list.h.
7869         * modules/list-c++: New file.
7871 2020-02-02  Bruno Haible  <bruno@clisp.org>
7873         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
7874         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
7875         '_Noreturn'.
7876         * lib/sigpipe-die.h (sigpipe_die): Likewise.
7878 2020-02-02  Pádraig Brady  <P@draigBrady.com>
7880         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
7881         On x86_64 with glibc-2.30, gcc 9.2 is giving:
7882           error: argument 2 value '18446744073709551615'
7883           exceeds maximum object size 9223372036854775807
7884           [-Werror=alloc-size-larger-than=]
7885         The details of this restriction are discussed at:
7886         https://stackoverflow.com/q/42574890/4421
7887         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
7889 2020-02-02  Pádraig Brady  <P@draigBrady.com>
7891         sysctl.h: avoid including on glibc
7892         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
7893         * lib/physmem.c: Likewise.
7895 2020-02-02  Bruno Haible  <bruno@clisp.org>
7897         list, set, oset, map, omap: Avoid imperative voice in documentation.
7898         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
7899         in the specification of functions.
7900         * lib/gl_set.h: Likewise.
7901         * lib/gl_oset.h: Likewise.
7902         * lib/gl_map.h: Likewise.
7903         * lib/gl_omap.h: Likewise.
7904         * lib/gl_*.h: Likewise.
7906 2020-02-01  Bruno Haible  <bruno@clisp.org>
7908         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
7909         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
7910         does.
7912 2020-01-29  Bruno Haible  <bruno@clisp.org>
7914         array-map, hash-map, linkedhash-map: Fix module description.
7915         * modules/array-map (Description): Fix description.
7916         * modules/hash-map (Description): Likewise.
7917         * modules/linkedhash-map (Description): Likewise.
7919 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
7921         dfa: do not depend on isblank
7922         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
7923         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
7924         * modules/dfa (Depends-on): Remove isblank.
7925         * modules/isblank: Add a module indicator, for lib/dfa.c.
7927         dfa: do not assume 64-bit int
7928         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
7929         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
7930         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
7931         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
7932         Fall back to 32-bit words.
7933         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
7934         of 4 64-bit args.  All uses changed.
7936 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7938         regex: remove limits-h dependency
7939         * modules/regex (Depends-on): Remove limits-h, since the
7940         code no longer depends on ULONG_WIDTH already being defined.
7942         regex: port to non-GCC pre-IEC-60559
7943         Problem reported by Arnold Robbins in:
7944         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
7945         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
7947 2020-01-25  Bruno Haible  <bruno@clisp.org>
7949         c32isxdigit: Add tests.
7950         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
7951         * tests/test-c32isxdigit.sh: New file.
7952         * modules/c32isxdigit-tests: New file.
7954         c32isxdigit: New module.
7955         * lib/c32isxdigit.c: New file.
7956         * modules/c32isxdigit: New file.
7957         * doc/posix-functions/iswxdigit.texi: Mention the new module.
7959 2020-01-25  Bruno Haible  <bruno@clisp.org>
7961         c32isupper: Add tests.
7962         * tests/test-c32isupper.c: New file.
7963         * tests/test-c32isupper.sh: New file.
7964         * modules/c32isupper-tests: New file.
7966         c32isupper: New module.
7967         * lib/c32isupper.c: New file.
7968         * modules/c32isupper: New file.
7969         * doc/posix-functions/iswupper.texi: Mention the new module.
7971 2020-01-25  Bruno Haible  <bruno@clisp.org>
7973         c32isspace: Add tests.
7974         * tests/test-c32isspace.c: New file.
7975         * tests/test-c32isspace.sh: New file.
7976         * modules/c32isspace-tests: New file.
7978         c32isspace: New module.
7979         * lib/c32isspace.c: New file.
7980         * modules/c32isspace: New file.
7981         * doc/posix-functions/iswspace.texi: Mention the new module.
7983 2020-01-25  Bruno Haible  <bruno@clisp.org>
7985         c32ispunct: Add tests.
7986         * tests/test-c32ispunct.c: New file.
7987         * tests/test-c32ispunct.sh: New file.
7988         * modules/c32ispunct-tests: New file.
7990         c32ispunct: New module.
7991         * lib/c32ispunct.c: New file.
7992         * modules/c32ispunct: New file.
7993         * doc/posix-functions/iswpunct.texi: Mention the new module.
7995 2020-01-25  Bruno Haible  <bruno@clisp.org>
7997         c32isprint: Add tests.
7998         * tests/test-c32isprint.c: New file.
7999         * tests/test-c32isprint.sh: New file.
8000         * modules/c32isprint-tests: New file.
8002         c32isprint: New module.
8003         * lib/c32isprint.c: New file.
8004         * modules/c32isprint: New file.
8005         * doc/posix-functions/iswprint.texi: Mention the new module.
8007 2020-01-25  Bruno Haible  <bruno@clisp.org>
8009         c32islower: Add tests.
8010         * tests/test-c32islower.c: New file.
8011         * tests/test-c32islower.sh: New file.
8012         * modules/c32islower-tests: New file.
8014         c32islower: New module.
8015         * lib/c32islower.c: New file.
8016         * modules/c32islower: New file.
8017         * doc/posix-functions/iswlower.texi: Mention the new module.
8019 2020-01-25  Bruno Haible  <bruno@clisp.org>
8021         c32isgraph: Add tests.
8022         * tests/test-c32isgraph.c: New file.
8023         * tests/test-c32isgraph.sh: New file.
8024         * modules/c32isgraph-tests: New file.
8026         c32isgraph: New module.
8027         * lib/c32isgraph.c: New file.
8028         * modules/c32isgraph: New file.
8029         * doc/posix-functions/iswgraph.texi: Mention the new module.
8031 2020-01-25  Bruno Haible  <bruno@clisp.org>
8033         c32isdigit: Add tests.
8034         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
8035         * tests/test-c32isdigit.sh: New file.
8036         * modules/c32isdigit-tests: New file.
8038         c32isdigit: New module.
8039         * lib/c32isdigit.c: New file.
8040         * modules/c32isdigit: New file.
8041         * doc/posix-functions/iswdigit.texi: Mention the new module.
8043 2020-01-25  Bruno Haible  <bruno@clisp.org>
8045         c32iscntrl: Add tests.
8046         * tests/test-c32iscntrl.c: New file.
8047         * tests/test-c32iscntrl.sh: New file.
8048         * modules/c32iscntrl-tests: New file.
8050         c32iscntrl: New module.
8051         * lib/c32iscntrl.c: New file.
8052         * modules/c32iscntrl: New file.
8053         * doc/posix-functions/iswcntrl.texi: Mention the new module.
8055 2020-01-25  Bruno Haible  <bruno@clisp.org>
8057         c32isblank: Add tests.
8058         * tests/test-c32isblank.c: New file.
8059         * tests/test-c32isblank.sh: New file.
8060         * modules/c32isblank-tests: New file.
8062         c32isblank: New module.
8063         * lib/c32isblank.c: New file.
8064         * modules/c32isblank: New file.
8065         * doc/posix-functions/iswblank.texi: Mention the new module.
8067 2020-01-25  Bruno Haible  <bruno@clisp.org>
8069         c32isalpha: Add tests.
8070         * tests/test-c32isalpha.c: New file.
8071         * tests/test-c32isalpha.sh: New file.
8072         * modules/c32isalpha-tests: New file.
8074         c32isalpha: New module.
8075         * lib/c32isalpha.c: New file.
8076         * modules/c32isalpha: New file.
8077         * doc/posix-functions/iswalpha.texi: Mention the new module.
8079 2020-01-25  Bruno Haible  <bruno@clisp.org>
8081         c32isalnum: Add tests.
8082         * tests/test-c32isalnum.c: New file.
8083         * tests/test-c32isalnum.sh: New file.
8084         * modules/c32isalnum-tests: New file.
8086         c32isalnum: New module.
8087         * lib/c32isalnum.c: New file.
8088         * lib/c32is-impl.h: New file.
8089         * modules/c32isalnum: New file.
8090         * doc/posix-functions/iswalnum.texi: Mention the new module.
8092 2020-01-25  Bruno Haible  <bruno@clisp.org>
8094         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
8095         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
8096         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
8097         c32isupper, c32isxdigit): New declarations.
8098         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
8099         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
8100         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
8101         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
8102         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
8103         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
8104         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
8105         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
8106         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
8107         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
8108         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
8109         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
8110         c32ispunct, c32isspace, c32isupper, c32isxdigit.
8112 2020-01-25  Bruno Haible  <bruno@clisp.org>
8114         mbchar, wctype: Use the corrected iswxdigit function.
8115         * modules/mbchar (Depends-on): Add iswxdigit.
8116         * modules/wctype (Depends-on): Likewise.
8118         iswxdigit: Add tests.
8119         * tests/test-iswxdigit.c: New file.
8120         * tests/test-iswxdigit.sh: New file.
8121         * modules/iswxdigit-tests: New file.
8123         iswxdigit: New module.
8124         * m4/iswxdigit.m4: New file.
8125         * lib/wctype.in.h (iswxdigit): Potentially override.
8126         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
8127         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
8128         * lib/iswxdigit.c: New file.
8129         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
8130         REPLACE_ISWXDIGIT.
8131         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
8132         REPLACE_ISWXDIGIT.
8133         * modules/iswxdigit: New file.
8134         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
8136 2020-01-25  Bruno Haible  <bruno@clisp.org>
8138         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
8139         Reported by John Donoghue <john.david.donoghue@gmail.com> in
8140         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
8141         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
8142         off_t on mingw, invoke _lseeki64 instead of lseek.
8144 2020-01-25  Bruno Haible  <bruno@clisp.org>
8146         iswdigit tests: Avoid test failure on Cygwin.
8147         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
8148         byte sequence, return 0.
8150         iswdigit: Fix test failure on native Windows.
8151         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
8153         mbchar, wctype: Use the corrected iswdigit function.
8154         * modules/mbchar (Depends-on): Add iswdigit.
8155         * modules/wctype (Depends-on): Likewise.
8157         iswdigit: Add tests.
8158         * tests/test-iswdigit.c: New file.
8159         * tests/test-iswdigit.sh: New file.
8160         * modules/iswdigit-tests: New file.
8162         iswdigit: New module.
8163         * m4/iswdigit.m4: New file.
8164         * lib/wctype.in.h (iswdigit): Potentially override.
8165         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
8166         * lib/iswdigit.c: New file.
8167         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
8168         REPLACE_ISWDIGIT.
8169         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
8170         REPLACE_ISWDIGIT.
8171         * modules/iswdigit: New file.
8172         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
8174 2020-01-25  Bruno Haible  <bruno@clisp.org>
8176         hard-locale tests: Make it easy to reuse the musl test.
8177         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
8178         * modules/hard-locale-tests (Files): Add it.
8179         (configure.ac): Invoke gl_MUSL_LIBC.
8181 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
8183         regex: port to Gawk on nonstandard platforms
8184         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
8185         This is useful for Gawk, which does not use the Gnulib stdlib-h
8186         module.  Problem reported by Arnold Robbins in:
8187         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
8189 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
8191         regex: fix bug with >=16 subexpressions
8192         * lib/regex_internal.h (struct re_backref_cache_entry):
8193         Use bitset_word_t as the type of eps_reachable_subexps_map,
8194         instead of unsigned short int.  This fixes a bug I introduced
8195         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
8196         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
8197         Remove unused member 'unused'.
8199         regex: simplify definition of BITSET_WORD_BITS
8200         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
8201         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
8202         * lib/regex_internal.h (BITSET_WORD_BITS):
8203         * modules/regex (Depends-on): Add limits-h.
8204         Simplify now that we can use ULONG_WIDTH.
8206 2020-01-20  Bruno Haible  <bruno@clisp.org>
8208         mbrtoc32: Add note about FreeBSD 12.
8209         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
8210         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
8211         affected.
8213 2020-01-20  Bruno Haible  <bruno@clisp.org>
8215         unistr/u8-uctomb: Fix warning.
8216         Reported by Andreas Schwab <schwab@suse.de> in
8217         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
8218         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
8219         (u8_uctomb): Add FALLTHROUGH markers.
8221 2020-01-20  Bruno Haible  <bruno@clisp.org>
8223         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
8224         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
8225         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
8226         (glthread_once): Use it.
8228 2020-01-19  Bruno Haible  <bruno@clisp.org>
8230         threadlib: Disable use of weak symbols on FreeBSD 11.
8231         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8232         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
8233         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
8234         against a bug in FreeBSD 11.
8236 2020-01-19  Bruno Haible  <bruno@clisp.org>
8238         iconv_open: Improve z/OS support.
8239         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
8240         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
8241         Remove mapping for EUC-TW.
8243 2020-01-18  Bruno Haible  <bruno@clisp.org>
8245         Rename ~~gnulib.m4 to zzgnulib.m4.
8246         Suggested by Paul Eggert.
8247         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
8248         * gnulib-tool (func_get_filelist): Update.
8249         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
8251 2020-01-18  Bruno Haible  <bruno@clisp.org>
8253         doc: Update license notices.
8254         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
8255         reference to a section or to a "file as part of this distribution".
8257 2020-01-18  Bruno Haible  <bruno@clisp.org>
8259         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
8260         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
8261         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
8262         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
8263         AC_EGREP_CPP.
8265 2020-01-18  Bruno Haible  <bruno@clisp.org>
8267         Ensure Automake does not drop ~~gnulib.m4.
8268         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
8269         * m4/gnulib-common.m4 (gl_COMMON): Require it.
8271 2020-01-18  Bruno Haible  <bruno@clisp.org>
8273         Fix major regression from 2020-01-10.
8274         Reported by Paul Eggert in
8275         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
8276         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
8277         Don't AC_REQUIRE anything.
8278         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
8279         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
8280         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
8281         use ac_compile instead.
8282         (AC_CHECK_DECL): Remove override.
8283         * m4/~~gnulib.m4: New file.
8284         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
8285         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
8287 2020-01-17  Bruno Haible  <bruno@clisp.org>
8288             Paul Eggert  <eggert@cs.ucla.edu>
8290         glob: Fix use-after-free bug.
8291         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8292         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
8293         * lib/glob.c (__glob): Delay freeing dirname until after the use of
8294         end_name.
8296 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8298         vcs-to-changelog: Fix parsing of fndecl without args.
8299         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
8300         for empty arguments.
8302 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8304         vcs-to-changelog: Add documentation.
8305         * doc/vcs-to-changelog.texi: New file.
8306         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
8307         section.
8309 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8311         vcs-to-changelog: Allow loading of custom quirks file.
8312         * build-aux/vcs_to_changelog.py: New commandline option -q.
8314 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8316         vcs-to-changelog: Fix formatting of ChangeLog output.
8317         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
8318         output.
8320 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8322         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
8323         Reported in
8324         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
8325         * build-aux/vcstocl/frontend_c.py: Remove shebang.
8327 2020-01-15  Simon Josefsson  <simon@josefsson.org>
8329         crypto/gc-pbkdf2: New module.
8330         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
8331         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
8332         * lib/gc-pbkdf2.c: New file.
8333         * lib/gc-pbkdf2-sha1.c: Use new interface.
8334         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
8335         * modules/crypto/gc-pbkdf2: New file.
8336         * modules/crypto/gc-pbkdf2-tests: New file.
8337         * tests/test-gc-pbkdf2.c: New file.
8339 2020-01-12  Bruno Haible  <bruno@clisp.org>
8341         c32stombs: Add tests.
8342         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
8343         * tests/test-c32stombs-1.sh: New file, based on
8344         tests/test-c32srtombs-1.sh.
8345         * tests/test-c32stombs-2.sh: New file, based on
8346         tests/test-c32srtombs-2.sh.
8347         * tests/test-c32stombs-3.sh: New file, based on
8348         tests/test-c32srtombs-3.sh.
8349         * tests/test-c32stombs-4.sh: New file, based on
8350         tests/test-c32srtombs-4.sh.
8351         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
8353         c32stombs: New module.
8354         * lib/uchar.in.h (c32stombs): New declaration.
8355         * lib/c32stombs.c: New file.
8356         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
8357         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
8358         * modules/c32stombs: New file.
8359         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
8360         * doc/posix-functions/wcstombs.texi: Mention the new module.
8362 2020-01-11  Jim Meyering  <meyering@fb.com>
8364         perl: require the "warnings" module
8365         * m4/perl.m4: Also "use warnings", so we reject the perl found
8366         on at least one IRIX 6.5 system. Reported by Bruno Haible in
8367         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
8369 2020-01-10  Bruno Haible  <bruno@clisp.org>
8371         Fix major regression from 2020-01-04.
8372         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
8373         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
8374         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
8375         AC_DEFUN_ONCE.
8376         (AC_CHECK_DECL): Invoke, not require, it.
8378 2020-01-10  Bruno Haible  <bruno@clisp.org>
8380         c32snrtombs: Add tests.
8381         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
8382         * tests/test-c32snrtombs-1.sh: New file, based on
8383         tests/test-wcsnrtombs1.sh.
8384         * tests/test-c32snrtombs-2.sh: New file, based on
8385         tests/test-wcsnrtombs2.sh.
8386         * tests/test-c32snrtombs-3.sh: New file, based on
8387         tests/test-wcsnrtombs3.sh.
8388         * tests/test-c32snrtombs-4.sh: New file, based on
8389         tests/test-wcsnrtombs4.sh.
8390         * modules/c32snrtombs-tests: New file, based on
8391         modules/wcsnrtombs-tests.
8393         c32snrtombs: New module.
8394         * lib/uchar.in.h (c32snrtombs): New declaration.
8395         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
8396         INTERNAL_STATE, WCRTOMB.
8397         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
8398         * lib/c32snrtombs.c: New file.
8399         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
8400         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
8401         * modules/c32snrtombs: New file.
8402         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
8403         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
8405 2020-01-09  Bruno Haible  <bruno@clisp.org>
8407         c32srtombs: Add tests.
8408         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
8409         * tests/test-c32srtombs-1.sh: New file, based on
8410         tests/test-wcsrtombs1.sh.
8411         * tests/test-c32srtombs-2.sh: New file, based on
8412         tests/test-wcsrtombs2.sh.
8413         * tests/test-c32srtombs-3.sh: New file, based on
8414         tests/test-wcsrtombs3.sh.
8415         * tests/test-c32srtombs-4.sh: New file, based on
8416         tests/test-wcsrtombs4.sh.
8417         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
8419         c32srtombs: New module.
8420         * lib/uchar.in.h (c32srtombs): New declaration.
8421         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
8422         INTERNAL_STATE, WCRTOMB.
8423         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
8424         * lib/c32srtombs.c: New file.
8425         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
8426         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
8427         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
8428         * modules/c32srtombs: New file.
8429         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
8430         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
8432 2020-01-08  Bruno Haible  <bruno@clisp.org>
8434         c32tob: Make consistent with mbrtoc32.
8435         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
8436         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
8437         use c32rtomb, not wctob.
8438         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
8439         (Depends-on): Add c32rtomb.
8440         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
8442 2020-01-08  Bruno Haible  <bruno@clisp.org>
8444         c32rtomb: Add tests.
8445         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
8446         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
8447         * tests/test-c32rtomb-w32.c: New file, based on
8448         tests/test-wcrtomb-w32.c.
8449         * tests/test-c32rtomb-w32-1.sh: New file, based on
8450         tests/test-wcrtomb-w32-1.sh.
8451         * tests/test-c32rtomb-w32-2.sh: New file, based on
8452         tests/test-wcrtomb-w32-2.sh.
8453         * tests/test-c32rtomb-w32-3.sh: New file, based on
8454         tests/test-wcrtomb-w32-3.sh.
8455         * tests/test-c32rtomb-w32-4.sh: New file, based on
8456         tests/test-wcrtomb-w32-4.sh.
8457         * tests/test-c32rtomb-w32-5.sh: New file, based on
8458         tests/test-wcrtomb-w32-5.sh.
8459         * tests/test-c32rtomb-w32-6.sh: New file, based on
8460         tests/test-wcrtomb-w32-6.sh.
8461         * tests/test-c32rtomb-w32-7.sh: New file, based on
8462         tests/test-wcrtomb-w32-7.sh.
8463         * modules/c32rtomb-tests: New file.
8465         c32rtomb: New module.
8466         * lib/uchar.in.h (c32rtomb): New declaration.
8467         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
8468         * m4/c32rtomb.m4: New file.
8469         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
8470         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
8471         REPLACE_C32RTOMB.
8472         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
8473         HAVE_C32RTOMB, REPLACE_C32RTOMB.
8474         * modules/c32rtomb: New file.
8475         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
8476         * doc/posix-functions/c32rtomb.texi: Document the new module.
8477         * doc/posix-functions/wcrtomb.texi: Mention the new module.
8479 2020-01-08  Bruno Haible  <bruno@clisp.org>
8481         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
8482         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
8483         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
8484         but is not working.
8485         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
8486         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
8487         differ, use the system's mbrtoc32, adding workarounds.
8488         * modules/mbrtoc32 (Depends-on): Add hard-locale.
8489         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
8490         Windows problem.
8491         * lib/btoc32.c: Include <stdio.h>, <string.h>.
8492         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
8493         use mbrtoc32, not btowc.
8494         * modules/btoc32 (Depends-on): Add mbrtoc32.
8495         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
8496         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
8497         * modules/mbsrtoc32s (Depends-on): Update conditions.
8498         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
8499         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
8500         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
8501         * modules/mbsnrtoc32s (Depends-on): Update conditions.
8502         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
8504 2020-01-07  Bruno Haible  <bruno@clisp.org>
8506         wcrtomb: Make multithread-safe, except possibly on IRIX.
8507         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
8508         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
8509         WCRTOMB_RETVAL_BUG.
8510         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
8511         wctomb only on IRIX.
8513 2020-01-05  Jim Meyering  <meyering@fb.com>
8515         tests: skip thread-using tests when threading is disabled
8516         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
8517         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
8518         of those, so they are skipped in this case.
8519         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
8520         * tests/test-setlocale_null-mt-all.c (main): Likewise.
8521         * tests/test-setlocale_null-mt-one.c (main): Likewise.
8523 2020-01-05  Bruno Haible  <bruno@clisp.org>
8525         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
8526         Reported by Jim Meyering in
8527         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
8528         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
8529         (GNULIB_defined_ptsname_r): New macro.
8530         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
8531         (main): Disable the NULL argument test if canonicalize_file_name does
8532         not come from gnulib.
8533         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
8534         (main): Disable the NULL argument test if canonicalize_file_name does
8535         not come from gnulib.
8536         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
8537         (test_errors): Disable the NULL argument test if ptsname_r does not come
8538         from gnulib.
8540 2020-01-04  Jim Meyering  <meyering@fb.com>
8542         update-copyright: reenable its always-skipped test
8543         * tests/test-update-copyright.sh: Restore the "-pi" options removed
8544         on 2019-06-15. Without those, an internal preliminary test would
8545         fail, causing this test always to be skipped.
8546         Verify that the test is now run and passes via this:
8547           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
8549 2020-01-05  Bruno Haible  <bruno@clisp.org>
8551         mbstoc32s: Add tests.
8552         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
8553         * tests/test-mbstoc32s-1.sh: New file, based on
8554         tests/test-mbsrtoc32s-1.sh.
8555         * tests/test-mbstoc32s-2.sh: New file, based on
8556         tests/test-mbsrtoc32s-2.sh.
8557         * tests/test-mbstoc32s-3.sh: New file, based on
8558         tests/test-mbsrtoc32s-3.sh.
8559         * tests/test-mbstoc32s-4.sh: New file, based on
8560         tests/test-mbsrtoc32s-4.sh.
8561         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
8563         mbstoc32s: New module.
8564         * lib/uchar.in.h (mbstoc32s): New declaration.
8565         * lib/mbstoc32s.c: New file.
8566         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
8567         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
8568         * modules/mbstoc32s: New file.
8569         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
8570         * doc/posix-functions/mbstowcs.texi: Mention the new module.
8572 2020-01-05  Bruno Haible  <bruno@clisp.org>
8574         Tweak recently added tests.
8575         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
8576         * tests/test-mbsrtoc32s.c: Likewise.
8577         * tests/test-mbsnrtoc32s.c: Likewise.
8579 2020-01-04  Bruno Haible  <bruno@clisp.org>
8581         mbsnrtoc32s: Add tests.
8582         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
8583         * tests/test-mbsnrtoc32s-1.sh: New file, based on
8584         tests/test-mbsnrtowcs1.sh.
8585         * tests/test-mbsnrtoc32s-2.sh: New file, based on
8586         tests/test-mbsnrtowcs2.sh.
8587         * tests/test-mbsnrtoc32s-3.sh: New file, based on
8588         tests/test-mbsnrtowcs3.sh.
8589         * tests/test-mbsnrtoc32s-4.sh: New file, based on
8590         tests/test-mbsnrtowcs4.sh.
8591         * modules/mbsnrtoc32s-tests: New file, based on
8592         modules/mbsnrtowcs-tests.
8594         mbsnrtoc32s: New module.
8595         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
8596         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
8597         INTERNAL_STATE, MBRTOWC.
8598         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
8599         * lib/mbsnrtoc32s.c: New file.
8600         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
8601         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
8602         * modules/mbsnrtoc32s: New file.
8603         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
8604         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
8606 2020-01-04  Bruno Haible  <bruno@clisp.org>
8608         mbsrtoc32s tests: Enhance test.
8609         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
8610         test strings for UTF-8 and GB18030.
8612 2020-01-04  Bruno Haible  <bruno@clisp.org>
8614         mbsrtoc32s: Fix bug.
8615         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
8616         that SMALL_WCHAR_T is defined.
8618 2020-01-04  Bruno Haible  <bruno@clisp.org>
8620         mbsrtoc32s: Add tests.
8621         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
8622         * tests/test-mbsrtoc32s-1.sh: New file, based on
8623         tests/test-mbsrtowcs1.sh.
8624         * tests/test-mbsrtoc32s-2.sh: New file, based on
8625         tests/test-mbsrtowcs2.sh.
8626         * tests/test-mbsrtoc32s-3.sh: New file, based on
8627         tests/test-mbsrtowcs3.sh.
8628         * tests/test-mbsrtoc32s-4.sh: New file, based on
8629         tests/test-mbsrtowcs4.sh.
8630         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
8632         mbsrtoc32s: New module.
8633         * lib/uchar.in.h (mbsrtoc32s): New declaration.
8634         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
8635         INTERNAL_STATE, MBRTOWC.
8636         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
8637         * lib/mbsrtoc32s.c: New file.
8638         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
8639         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
8640         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
8641         * modules/mbsrtoc32s: New file.
8642         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
8643         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
8645 2020-01-04  Bruno Haible  <bruno@clisp.org>
8647         mbrtowc, mbrtoc32: Tighten dependendies.
8648         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
8649         REPLACE_MBSTATE_T is 1.
8650         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
8651         REPLACE_MBSTATE_T is 0.
8652         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
8653         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
8654         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
8655         REPLACE_MBSTATE_T is 0.
8657 2020-01-04  Bruno Haible  <bruno@clisp.org>
8659         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
8660         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
8661         * modules/uchar (Files): Add stdint.m4.
8662         (Makefile.am): Substitute SMALL_WCHAR_T.
8663         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
8665 2020-01-04  Bruno Haible  <bruno@clisp.org>
8667         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
8668         Reported by Martin Storsjö <martin@martin.st> in
8669         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
8670         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
8671         New macros.
8672         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
8674 2020-01-04  Bruno Haible  <bruno@clisp.org>
8676         btoc32: Add tests.
8677         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
8678         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
8679         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
8680         * modules/btoc32-tests: New file, based on modules/btowc-tests.
8682         btoc32: New module.
8683         * lib/uchar.in.h (btoc32): New declaration.
8684         * lib/btoc32.c: New file.
8685         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
8686         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
8687         * modules/btoc32: New file.
8688         * tests/test-uchar-c++.cc: Test the signature of btoc32.
8689         * doc/posix-functions/btowc.texi: Mention the new module.
8691 2020-01-03  Bruno Haible  <bruno@clisp.org>
8693         uchar tests: Avoid compilation error with HP cc.
8694         * tests/test-uchar.c: Disable a test when HP cc is in use.
8696 2020-01-03  Bruno Haible  <bruno@clisp.org>
8698         mbrtoc32: Add tests.
8699         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
8700         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
8701         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
8702         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
8703         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
8704         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
8705         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
8706         * tests/test-mbrtoc32-w32-1.sh: New file, based on
8707         tests/test-mbrtowc-w32-1.sh.
8708         * tests/test-mbrtoc32-w32-2.sh: New file, based on
8709         tests/test-mbrtowc-w32-2.sh.
8710         * tests/test-mbrtoc32-w32-3.sh: New file, based on
8711         tests/test-mbrtowc-w32-3.sh.
8712         * tests/test-mbrtoc32-w32-4.sh: New file, based on
8713         tests/test-mbrtowc-w32-4.sh.
8714         * tests/test-mbrtoc32-w32-5.sh: New file, based on
8715         tests/test-mbrtowc-w32-5.sh.
8716         * tests/test-mbrtoc32-w32-6.sh: New file, based on
8717         tests/test-mbrtowc-w32-6.sh.
8718         * tests/test-mbrtoc32-w32-7.sh: New file, based on
8719         tests/test-mbrtowc-w32-7.sh.
8720         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
8722         mbrtoc32: New module.
8723         * lib/uchar.in.h (mbrtoc32): New declaration.
8724         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
8725         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
8726         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
8727         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
8728         REPLACE_MBRTOC32.
8729         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
8730         HAVE_MBRTOC32, REPLACE_MBRTOC32.
8731         * modules/mbrtoc32: New file, based on modules/mbrtowc.
8732         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
8733         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
8734         $(LIB_MBRTOWC).
8735         * doc/posix-functions/mbrtoc32.texi: Document the new module.
8736         * doc/posix-functions/mbrtowc.texi: Mention the new module.
8738 2020-01-03  Bruno Haible  <bruno@clisp.org>
8740         mbrtowc: Refactor to share code with mbrtoc32.
8741         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
8742         * lib/mbrtowc-impl-utf8.h: Likewise.
8743         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
8744         mbrtowc-impl.h.
8745         * modules/mbrtowc (Files): Add the new files.
8747 2020-01-03  Jim Meyering  <meyering@fb.com>
8749         doc: fix time.texi wording
8750         * doc/posix-headers/time.texi (time.h): Typo.
8752 2020-01-03  Bruno Haible  <bruno@clisp.org>
8754         mbrtowc: Refactor locale charset dispatching.
8755         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
8756         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
8757         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
8758         localcharset.h, streq.h.
8759         (enc_t): Remove type.
8760         (locale_enc): Remove function.
8761         (cached_locale_enc): Remove variable.
8762         (locale_enc_cached): Remove function.
8763         (mbrtowc): Invoke locale_encoding_classification.
8764         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
8765         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
8766         lc-charset-dispatch.c.
8767         (configure.ac): Arrange to compile lc-charset-dispatch.c.
8769 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
8771         doc: mention 32-bit time_t issue
8772         * doc/posix-headers/sys_stat.texi (sys/stat.h):
8773         * doc/posix-headers/time.texi (time.h): Mention 2038.
8775 2020-01-03  Bruno Haible  <bruno@clisp.org>
8777         mbrtowc: Ensure the mbtowc_lock is unique.
8778         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
8779         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
8780         lib/setlocale_null.c.
8781         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
8782         glthread/lock.h. Include mbtowc-lock.h.
8783         (mbtowc_lock): Remove declaration.
8784         (mbrtowc): Use mbtowc_with_lock.
8785         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
8786         threads.h. Set LIB_MBRTOWC.
8787         (gl_PREREQ_MBTOWC_LOCK): New macro.
8788         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
8789         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
8790         (Depends-on): Remove lock.
8791         (configure.ac): Arrange to compile mbtowc-lock.c.
8792         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
8793         * modules/acl (Link): Likewise.
8794         * modules/argmatch (Link): Likewise.
8795         * modules/backup-rename (Link): Likewise.
8796         * modules/backupfile (Link): Likewise.
8797         * modules/closein (Link): Likewise.
8798         * modules/closeout (Link): Likewise.
8799         * modules/copy-file (Link): Likewise.
8800         * modules/csharpcomp (Link): Likewise.
8801         * modules/csharpexec (Link): Likewise.
8802         * modules/dfa (Link): Likewise.
8803         * modules/exclude (Link): Likewise.
8804         * modules/fnmatch (Link): Likewise.
8805         * modules/fnmatch-gnu (Link): Likewise.
8806         * modules/fnmatch-posix (Link): Likewise.
8807         * modules/glob (Link): Likewise.
8808         * modules/human (Link): Likewise.
8809         * modules/javacomp (Link): Likewise.
8810         * modules/javaexec (Link): Likewise.
8811         * modules/javaversion (Link): Likewise.
8812         * modules/mbfile (Link): Likewise.
8813         * modules/mbiter (Link): Likewise.
8814         * modules/mbmemcasecmp (Link): Likewise.
8815         * modules/mbmemcasecoll (Link): Likewise.
8816         * modules/mbrlen (Link): Likewise.
8817         * modules/mbscasecmp (Link): Likewise.
8818         * modules/mbscasestr (Link): Likewise.
8819         * modules/mbschr (Link): Likewise.
8820         * modules/mbscspn (Link): Likewise.
8821         * modules/mbsinit (Link): Likewise.
8822         * modules/mbslen (Link): Likewise.
8823         * modules/mbsncasecmp (Link): Likewise.
8824         * modules/mbsnlen (Link): Likewise.
8825         * modules/mbsnrtowcs (Link): Likewise.
8826         * modules/mbspbrk (Link): Likewise.
8827         * modules/mbspcasecmp (Link): Likewise.
8828         * modules/mbsrchr (Link): Likewise.
8829         * modules/mbsrtowcs (Link): Likewise.
8830         * modules/mbssep (Link): Likewise.
8831         * modules/mbsspn (Link): Likewise.
8832         * modules/mbsstr (Link): Likewise.
8833         * modules/mbstok_r (Link): Likewise.
8834         * modules/mbswidth (Link): Likewise.
8835         * modules/mbuiter (Link): Likewise.
8836         * modules/mkdir-p (Link): Likewise.
8837         * modules/propername (Link): Likewise.
8838         * modules/quote (Link): Likewise.
8839         * modules/quotearg (Link): Likewise.
8840         * modules/quotearg-simple (Link): Likewise.
8841         * modules/regex-quote (Link): Likewise.
8842         * modules/rpmatch (Link): Likewise.
8843         * modules/sh-quote (Link): Likewise.
8844         * modules/system-quote (Link): Likewise.
8845         * modules/trim (Link): Likewise.
8846         * modules/unistdio/ulc-asnprintf (Link): Likewise.
8847         * modules/unistdio/ulc-fprintf (Link): Likewise.
8848         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
8849         * modules/unistdio/ulc-vasprintf (Link): Likewise.
8850         * modules/unistdio/ulc-vfprintf (Link): Likewise.
8851         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
8852         * modules/unistdio/ulc-vsprintf (Link): Likewise.
8853         * modules/xfreopen (Link): Likewise.
8854         * modules/xmemcoll (Link): Likewise.
8855         * modules/yesno (Link): Likewise.
8856         * modules/regex (Link): Add $(LIB_MBRTOWC).
8857         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
8858         instead of $(LIBTHREAD).
8859         * modules/argmatch-tests (Makefile.am): Likewise.
8860         * modules/closein-tests (Makefile.am): Likewise.
8861         * modules/copy-file-tests (Makefile.am): Likewise.
8862         * modules/dfa-tests (Makefile.am): Likewise.
8863         * modules/fnmatch-tests (Makefile.am): Likewise.
8864         * modules/glob-tests (Makefile.am): Likewise.
8865         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
8866         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
8867         * modules/mbrtowc-tests (Makefile.am): Likewise.
8868         * modules/mbscasecmp-tests (Makefile.am): Likewise.
8869         * modules/mbscasestr-tests (Makefile.am): Likewise.
8870         * modules/mbschr-tests (Makefile.am): Likewise.
8871         * modules/mbscspn-tests (Makefile.am): Likewise.
8872         * modules/mbsinit-tests (Makefile.am): Likewise.
8873         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
8874         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
8875         * modules/mbspbrk-tests (Makefile.am): Likewise.
8876         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
8877         * modules/mbsrchr-tests (Makefile.am): Likewise.
8878         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
8879         * modules/mbsspn-tests (Makefile.am): Likewise.
8880         * modules/mbsstr-tests (Makefile.am): Likewise.
8881         * modules/quotearg-simple-tests (Makefile.am): Likewise.
8882         * modules/quotearg-tests (Makefile.am): Likewise.
8883         * modules/readtokens-tests (Makefile.am): Likewise.
8884         * modules/sh-quote-tests (Makefile.am): Likewise.
8885         * modules/system-quote-tests (Makefile.am): Likewise.
8886         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
8887         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
8888         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
8889         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
8890         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
8891         * modules/yesno-tests (Makefile.am): Likewise.
8892         * modules/exclude-tests (Makefile.am): Link the programs with
8893         $(LIB_MBRTOWC).
8894         * modules/regex-tests (Makefile.am): Likewise.
8895         * modules/regex-quote-tests (Makefile.am): Likewise.
8897 2020-01-03  Bruno Haible  <bruno@clisp.org>
8899         getopt-posix: Fix compilation failure in testdirs.
8900         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
8901         when the gnulib module 'getopt-posix' is enabled.
8902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
8903         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
8904         module indicator.
8905         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
8907 2020-01-03  Bruno Haible  <bruno@clisp.org>
8909         doc: Mention the 64-bit inode number problem.
8910         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
8911         64-bit inode number problem.
8912         * doc/posix-functions/stat.texi: Mention that this module fixes the
8913         64-bit inode number problem.
8914         * doc/posix-functions/lstat.texi: Likewise.
8915         * doc/posix-functions/fstat.texi: Likewise.
8916         * doc/posix-functions/readdir.texi: Add more details.
8917         * doc/posix-functions/readdir_r.texi: Likewise.
8919 2020-01-02  Bruno Haible  <bruno@clisp.org>
8921         wcrtomb: Add more tests.
8922         * tests/test-wcrtomb-w32.c: Include localcharset.h.
8923         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
8924         locale_charset() returns the expected value; otherwise, skip the test.
8925         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
8926         * tests/test-wcrtomb-w32-7.sh: Likewise.
8927         * modules/wcrtomb-tests (Files): Add these files.
8928         (Depends-on): Add localcharset.
8929         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
8931 2020-01-02  Bruno Haible  <bruno@clisp.org>
8933         mbrtowc: Add more tests.
8934         * tests/test-mbrtowc-w32.c: Include localcharset.h.
8935         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
8936         locale_charset() returns the expected value; otherwise, skip the test.
8937         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
8938         * tests/test-mbrtowc-w32-7.sh: Likewise.
8939         * modules/mbrtowc-tests (Files): Add these files.
8940         (Depends-on): Add localcharset.
8941         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
8943 2020-01-02  Bruno Haible  <bruno@clisp.org>
8945         mbrtowc: Fix test failures on MSVC (regression by previous commit).
8946         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
8947         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
8948         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
8949         MBRTOWC_STORES_INCOMPLETE_BUG.
8950         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
8952 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
8954         doc: mention glibc bug 24269
8955         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
8956         Reformat slightly so that it looks nicer in the Grep manual.
8958 2020-01-02  Bruno Haible  <bruno@clisp.org>
8960         mbrtowc: Don't replace mbstate_t on MSVC.
8961         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
8962         a missing mbsinit function on native Windows.
8963         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
8964         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
8965         MSVC bug.
8966         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
8968 2020-01-02  Bruno Haible  <bruno@clisp.org>
8970         setlocale-null: Avoid crashing the MSVC linker.
8971         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
8972         MSVC.
8974 2020-01-02  Bruno Haible  <bruno@clisp.org>
8976         wchar: Make the HP-UX workaround work on HP-UX 11.31.
8977         * modules/wchar (Depends-on): Add inttypes-incomplete.
8978         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
8979         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
8980         of strtoimax.
8982 2020-01-02  Bruno Haible  <bruno@clisp.org>
8984         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
8985         * lib/mbrtowc.c: Include <stdint.h>.
8986         * modules/mbrtowc (Depends-on): Add stdint.
8988 2020-01-01  Pádraig Brady  <P@draigBrady.com>
8990         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
8991         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
8992         which will auto enable use of openssl, only for >= version 3,
8993         which is newly licensed under the Apache Software License.
8995 2020-01-01  Bruno Haible  <bruno@clisp.org>
8997         mbrtowc: Include function name in macro names.
8998         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
8999         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
9000         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
9001         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
9002         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
9003         C_LOCALE_MAYBE_EILSEQ.
9005 2020-01-01  Bruno Haible  <bruno@clisp.org>
9007         c32tob: New module.
9008         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
9009         (c32tob): New declaration.
9010         * lib/c32tob.c: New file.
9011         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
9012         macros.
9013         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
9014         * modules/uchar (Depends-on): Add snippet/c++defs.
9015         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
9016         uchar.h.
9017         * modules/c32tob: New file.
9018         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
9019         defined.
9020         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
9021         c32tob.
9022         * modules/uchar-c++-tests (Files): Add tests/signature.h.
9023         * doc/posix-functions/wctob.texi: Mention the new module.
9025 2020-01-01  Bruno Haible  <bruno@clisp.org>
9027         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
9028         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
9029         $(LIB_SETLOCALE).
9031 2020-01-01  Bruno Haible  <bruno@clisp.org>
9033         hard-locale tests: Fix a conflict with the C++ tests.
9034         * modules/hard-locale-tests (Makefile.am): Build a program named
9035         'current-locale', not 'locale'.
9037 2020-01-01  Bruno Haible  <bruno@clisp.org>
9039         doc: Update documentation about wchar_t.
9040         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
9041         wchar_t type.
9043 2020-01-01  Bruno Haible  <bruno@clisp.org>
9045         mbrtowc tests: Fix typos.
9046         * tests/test-mbrtowc.c (main): Fix typo.
9047         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
9049 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
9051         maint: update copyright notices
9052         Before doing the following changes done by hand, I also ran ‘make
9053         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
9054         to do most of the copyright years automatically.  A few upstream
9055         sources are still in 2019 but these should eventually be changed
9056         automatically too.
9057         * build-aux/declared.sh (func_version):
9058         * build-aux/libtool-next-version (func_version):
9059         * build-aux/run-test (func_version):
9060         Update these notices by hand.  Put just the last year
9061         in output of programs, as per GNU coding standards.
9063 2019-12-31  Bruno Haible  <bruno@clisp.org>
9065         uchar: Add C++ tests.
9066         * tests/test-uchar-c++.cc: New file.
9067         * tests/test-uchar-c++2.cc: New file.
9068         * modules/uchar-c++-tests: New file.
9070         uchar: Add tests.
9071         * tests/test-uchar.c: New file.
9072         * modules/uchar-tests: New file.
9074         uchar: New module.
9075         * lib/uchar.in.h: New file.
9076         * m4/uchar.m4: New file.
9077         * modules/uchar: New file.
9078         * doc/posix-headers/uchar.texi: Mention the new module.
9080 2019-12-30  Jim Meyering  <meyering@fb.com>
9082         localeinfo: ->simple would be wrong for LC_ALL=C
9083         That would lead to using unnecessary and expensive code paths in dfa.c.
9084         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
9085         error that would have made grep many times slower in the C locale.
9086         With this change, and a file created like this:
9087           yes 00 | head -10000000 > in
9088         Running grep as follows becomes more than 40 times faster:
9089           LC_ALL=C grep -Fw 0 in
9091 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
9093         doc: document trouble with back-references
9094         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
9096 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9098         doc: use “back-reference” for \1 etc.
9099         * doc/regex.texi: Consistently spell “back-reference” with
9100         a hyphen, since that’s how POSIX does it.
9102 2019-12-26  Jim Meyering  <meyering@fb.com>
9104         test-framework-sh: tighten an internal grep regexp
9105         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
9106         that helps test for a working printf.
9108 2019-12-26  Bruno Haible  <bruno@clisp.org>
9110         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
9111         Reported by Paul Eggert in
9112         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
9113         Simplification by Jim Meyering.
9114         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
9115         octal escape sequence in a UTF-8 locale.
9117 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
9119         mbrtowc: port better to narrow-wchar_t platforms
9120         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
9121         wchar_t is too narrow to represent all the Unicode characters,
9122         consider a byte sequence for an out-of-wchar_t-range character to
9123         be an encoding error.  This fixes grep’s surrogate-pair test
9124         failure on AIX 7.2.
9126 2019-12-24  Bruno Haible  <bruno@clisp.org>
9128         localcharset: Avoid referencing rpl_setlocale on native Windows.
9129         * lib/localcharset.c (setlocale): Undefine.
9131 2019-12-24  Bruno Haible  <bruno@clisp.org>
9133         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
9134         * m4/semaphore.m4: New file.
9135         * modules/lock-tests (Files): Add it.
9136         (configure.ac): Require gl_SEMAPHORE.
9137         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
9139 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
9141         strptime: fix typo in previous patch
9142         Problem and fix reported by Bruno Haible in:
9143         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
9144         * lib/strptime.c (day_of_the_week): Fix paren bug.
9146 2019-12-24  Bruno Haible  <bruno@clisp.org>
9148         setlocale-null: Make it easy to rely on the lock in another library.
9149         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
9150         defined.
9152 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
9154         gethrxtime, mktime, nstrftime, strptime: tweak division performance
9155         Performanced analyzed by Bruno Haible in:
9156         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
9157         * config/srclist.txt: Do not sync mktime.c for now.
9158         * lib/mktime.c (shr, ydhms_diff):
9159         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
9160         * lib/strptime.c (day_of_the_week):
9161         * lib/xtime.h (xtime_sec):
9162         Redo with neither ‘%’ nor conditional branches.
9164 2019-12-23  Bruno Haible  <bruno@clisp.org>
9166         setlocale-null: Export the lock function also on non-Windows platforms.
9167         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
9168         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
9169         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
9170         * modules/setlocale-null (configure.ac): Invoke it.
9171         (Files): Add m4/visibility.m4.
9173 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9175         gethrxtime: fix rounding bug with negative args
9176         Problem reported by Bruno Haible in:
9177         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
9178         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
9179         with negative rounding.  Common platforms can compute / and % with
9180         a single instruction, so the simplified code should be shorter and
9181         faster on these platforms anyway.
9183 2019-12-22  Bruno Haible  <bruno@clisp.org>
9185         gethrxtime: remove incorrect overflow detection
9186         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
9187         integer overflow, as it didn’t suffice.  This reverts the xtime.h
9188         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
9189         cannot now see the need for anyway (even in cases where it works),
9190         as the patch is helpful only when the signs of S and NS disagree,
9191         and all callers pass nonnegative values for S and NS.
9193 2019-12-22  Bruno Haible  <bruno@clisp.org>
9195         setlocale-null: Add standalone include file.
9196         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
9197         * lib/locale.in.h: Include setlocale_null.h.
9198         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
9199         setlocale_null): Remove declarations.
9200         * lib/setlocale_null.c: Include setlocale_null.h.
9201         * lib/localename.c: Likewise.
9202         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
9203         (Depends-on): Add snippet/arg-nonnull.
9204         (Include): Allow either "setlocale_null.h" or <locale.h>.
9206 2019-12-22  Bruno Haible  <bruno@clisp.org>
9208         strfmon_l: Fix test failures on FreeBSD and Cygwin.
9209         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
9210         AC_RUN_IFELSE test.
9211         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
9212         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
9213         problem.
9215 2019-12-22  Bruno Haible  <bruno@clisp.org>
9217         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
9218         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
9219         unconditional AC_LIBOBJ.
9220         * modules/selinux-at: Likewise.
9221         * modules/xmemdup0: Likewise.
9222         * modules/xstrtoll: Likewise.
9224 2019-12-22  Bruno Haible  <bruno@clisp.org>
9226         longlong: Mark module obsolete.
9227         * modules/longlong (Status, Notice): New sections.
9229         stdint: Assume that the compiler supports 'long long'.
9230         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
9231         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
9232         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
9233         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
9234         AC_TYPE_UNSIGNED_LONG_LONG_INT.
9235         * modules/stdint (Files): Remove longlong.m4.
9236         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
9237         HAVE_UNSIGNED_LONG_LONG_INT.
9239         inttypes-incomplete: Assume that the compiler supports 'long long'.
9240         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
9241         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
9242         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
9243         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
9244         HAVE_LONG_LONG_INT to be 1.
9245         * modules/inttypes-incomplete (Makefile.am): Don't substitute
9246         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
9248         malloca: Assume that the compiler supports 'long long'.
9249         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
9250         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
9251         * modules/malloca (Files): Remove longlong.m4.
9252         * modules/relocatable-prog-wrapper (Files): Likewise.
9254         atoll: Assume that the compiler supports 'long long'.
9255         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
9256         * modules/atoll (Files): Remove longlong.m4.
9258         strtoll: Assume that the compiler supports 'long long'.
9259         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
9260         * modules/strtoll (Files): Remove longlong.m4.
9262         strtoull: Assume that the compiler supports 'long long'.
9263         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
9264         AC_TYPE_UNSIGNED_LONG_LONG_INT.
9265         * modules/strtoull (Files): Remove longlong.m4.
9267         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
9268         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
9269         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
9270         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
9271         AC_TYPE_LONG_LONG_INT.
9272         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
9273         AC_TYPE_UNSIGNED_LONG_LONG_INT.
9274         * modules/strtoimax (Files): Remove longlong.m4.
9275         * modules/strtoumax (Files): Likewise.
9277         xstrtoll: Assume that the compiler supports 'long long'.
9278         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
9279         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
9281         vasnprintf: Assume that the compiler supports 'long long'.
9282         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
9283         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
9284         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
9285         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
9286         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
9287         require AC_TYPE_LONG_LONG_INT.
9288         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
9289         gl_PREREQ_VASNPRINTF): Likewise.
9290         * modules/vasnprintf (Files): Remove longlong.m4.
9291         * modules/c-vasnprintf (Files): Likewise.
9292         * modules/unistdio/u8-vasnprintf (Files): Likewise.
9293         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
9294         * modules/unistdio/u16-vasnprintf (Files): Likewise.
9295         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
9296         * modules/unistdio/u32-vasnprintf (Files): Likewise.
9297         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
9298         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
9300         gethrxtime: Assume that the compiler supports 'long long'.
9301         * lib/xtime.h (xtime_t): Define to 'long long int' always.
9302         (XTIME_PRECISION): Define to 1000000000 always.
9303         (xtime_make, xtime_sec): Optimize accordingly.
9304         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
9305         * modules/gethrxtime (Files): Remove longlong.m4.
9307         integer_length*: Assume that the compiler supports 'long long'.
9308         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
9309         * modules/integer_length (Files): Remove longlong.m4.
9310         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
9311         * modules/integer_length_l (Files): Remove longlong.m4.
9312         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
9313         * modules/integer_length_ll (Files): Remove longlong.m4.
9314         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
9316         count-one-bits: Assume that the compiler supports 'long long'.
9317         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
9318         * m4/count-one-bits.m4: Remove file.
9319         * modules/count-one-bits (Files): Remove it.
9320         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
9321         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
9322         unconditionally.
9324         count-trailing-zeros: Assume that the compiler supports 'long long'.
9325         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
9326         unconditionally.
9327         * m4/count-trailing-zeros.m4: Remove file.
9328         * modules/count-trailing-zeros (Files): Remove it.
9329         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
9330         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
9331         unconditionally.
9333         count-leading-zeros: Assume that the compiler supports 'long long'.
9334         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
9335         unconditionally.
9336         * m4/count-leading-zeros.m4: Remove file.
9337         * modules/count-leading-zeros (Files): Remove it.
9338         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
9339         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
9340         unconditionally.
9342 2019-12-22  Bruno Haible  <bruno@clisp.org>
9344         localcharset: Update support for OpenBSD.
9345         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
9347 2019-12-21  Bruno Haible  <bruno@clisp.org>
9349         pthread_sigmask: Avoid test failure on NetBSD 8.0.
9350         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
9351         NetBSD.
9352         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
9354 2019-12-21  Bruno Haible  <bruno@clisp.org>
9356         threadlib: Improve code structure.
9357         * m4/threadlib.m4: Reorder macros. Add comments.
9359 2019-12-21  Bruno Haible  <bruno@clisp.org>
9361         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
9362         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
9363         here from m4/threads.m4).
9364         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
9365         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
9366         (gl_STDTHREADLIB): New macro.
9367         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
9368         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
9370 2019-12-21  Bruno Haible  <bruno@clisp.org>
9372         sched_yield: Don't depend on threadlib and yield.
9373         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
9374         LIB_SCHED_YIELD.
9375         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
9376         m4/yield.m4).
9377         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
9378         gl_THREADLIB and gl_YIELD.
9379         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
9380         based on $(LIB_SCHED_YIELD).
9381         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
9382         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
9383         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
9384         (Depends-on): Remove threadlib.
9385         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
9386         * modules/threads-h (Files): Remove m4/yield.m4.
9387         * modules/pthread-cond-tests (Makefile.am): Link the programs against
9388         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
9389         * modules/pthread-mutex-tests (Makefile.am): Likewise.
9390         * modules/pthread-once-tests (Makefile.am): Likewise.
9391         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
9392         * modules/pthread-tss-tests (Makefile.am): Likewise.
9394 2019-12-21  Bruno Haible  <bruno@clisp.org>
9396         threads-h: Don't depend on threadlib.
9397         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
9398         not gl_THREADLIB_EARLY.
9400 2019-12-21  Bruno Haible  <bruno@clisp.org>
9402         nl_langinfo tests: Fix link error (regression from 2019-12-18).
9403         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
9404         with $(LIB_SETLOCALE).
9406 2019-12-21  Bruno Haible  <bruno@clisp.org>
9408         threadlib: Remove unused dependency (left over from 2019-07-06).
9409         * modules/threadlib (Depends-on): Remove havelib.
9411 2019-12-21  Bruno Haible  <bruno@clisp.org>
9413         New convention for multithread-safety tests.
9414         * tests/test-setlocale_null-mt-one.c: Renamed from
9415         tests/test-setlocale_null-one.c.
9416         * tests/test-setlocale_null-mt-all.c: Renamed from
9417         tests/test-setlocale_null-all.c.
9418         * modules/setlocale-null-tests (Files, Makefile.am): Update.
9420 2019-12-21  Bruno Haible  <bruno@clisp.org>
9422         quotearg tests: Fix conflict with hard-locale tests.
9423         * tests/testlocale: Renamed from tests/locale.
9424         * modules/quotearg-tests (Files): Update.
9425         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
9427 2019-12-21  Bruno Haible  <bruno@clisp.org>
9429         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
9430         Reported by Daniel Richard G. in
9431         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
9432         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
9433         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
9434         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
9435         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
9436         alternative to PTHREAD_RWLOCK_INITIALIZER.
9437         * lib/glthread/lock.c: Likewise.
9439 2019-12-21  Bruno Haible  <bruno@clisp.org>
9441         memcmp tests: Work around the clang bug.
9442         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
9443         the clang optimization.
9445 2019-12-20  Bruno Haible  <bruno@clisp.org>
9447         localcharset: Add support for z/OS encoding names.
9448         * lib/localcharset.h: Mention which encodings are used as locale
9449         encodings on z/OS.
9451 2019-12-20  Bruno Haible  <bruno@clisp.org>
9453         iconv_open: Add support for z/OS encoding names.
9454         Reported by Daniel Richard G. in
9455         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
9456         * lib/iconv_open-zos.gperf: New file.
9457         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
9458         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
9459         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
9460         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
9461         * doc/posix-functions/iconv_open.texi: Mention z/OS.
9463 2019-12-20  Bruno Haible  <bruno@clisp.org>
9465         doc: Document the problem of the per-thread locale functions on z/OS.
9466         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
9467         * doc/posix-functions/newlocale.texi: Likewise.
9468         * doc/posix-functions/duplocale.texi: Likewise.
9469         * doc/posix-functions/freelocale.texi: Likewise.
9471 2019-12-20  Bruno Haible  <bruno@clisp.org>
9473         localename, gettext: Fix host_os value for z/OS.
9474         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
9475         cross-configuration code.
9477 2019-12-19  Jim Meyering  <meyering@fb.com>
9479         nstrftime: avoid a shadowing warning
9480         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
9481         to avoid shadowing an "i" declared hundreds of lines above.
9483 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9485         dfa: struct dfamust now uses flexible array
9486         * lib/dfa.c: Include flexmember.h.
9487         (dfamust, dfamustfree): Adjust to struct dfamust change.
9488         This saves a call to malloc+free.
9489         * lib/dfa.h (struct dfamust): Make the final member a
9490         flexible array member.
9491         * modules/dfa (Depends-on): Add flexmember.
9493         dfa: fast->small for array elements
9494         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
9495         since this type is used in arrays.  This change is more for
9496         documentation than for any practical effect, since the two types
9497         are the same on all known platforms.
9499 2019-12-19  Bruno Haible  <bruno@clisp.org>
9501         iconv tests: Test canonicalized, not system-dependent, encoding names.
9502         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
9503         * modules/iconv-tests (Depends-on): Add iconv_open.
9505 2019-12-18  Bruno Haible  <bruno@clisp.org>
9507         localename: Fix test failure on AIX 7.2.
9508         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
9509         locales on AIX.
9510         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
9511         locales on AIX.
9513 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9515         Improve port of AC_C_RESTRICT to Oracle C++
9516         Problem reported by Christian Biesinger in:
9517         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
9518         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
9519         Oracle Developer Studio C++ 12.5 or later.
9521 2019-12-18  Bruno Haible  <bruno@clisp.org>
9523         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
9524         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
9526 2019-12-18  Bruno Haible  <bruno@clisp.org>
9528         localename: Ensure multithread-safety in future changes.
9529         * lib/localename.c (setlocale): Reference the system's setlocale().
9530         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
9531         (gl_locale_name_posix): Likewise.
9532         * modules/localename (Depends-on): Add setlocale-null.
9534 2019-12-18  Bruno Haible  <bruno@clisp.org>
9536         setlocale-null: Make API more useful.
9537         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
9538         callers changed.
9539         (setlocale_null): New declaration.
9540         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
9541         extracted from setlocale_null_unlocked.
9542         (setlocale_null_unlocked): Invoke it.
9543         (setlocale_null_r): Renamed from setlocale_null.
9544         (setlocale_null): New function, extracted from setlocale_mtsafe in
9545         setlocale.c.
9546         * lib/setlocale.c: Don't include <errno.h>.
9547         (setlocale_mtsafe): Invoke setlocale_null.
9548         * lib/setlocale-lock.c: Update comments.
9549         * doc/posix-functions/setlocale.texi: Mention both functions.
9551 2019-12-18  Bruno Haible  <bruno@clisp.org>
9553         localename: Optimize code for native Windows.
9554         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
9555         category (not allowed here).
9557 2019-12-18  Bruno Haible  <bruno@clisp.org>
9559         setlocale: Make calls with NULL argument multithread-safe.
9560         * lib/setlocale.c: Include <errno.h>.
9561         (setlocale_mtsafe): New function.
9562         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
9563         (setlocale_improved): Renamed from rpl_setlocale.
9564         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
9565         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
9566         LIB_SETLOCALE.
9567         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
9568         (Link): New section.
9569         * tests/locale.c: Undefine setlocale.
9570         * tests/test-setlocale_null-one.c: Likewise.
9571         * tests/test-setlocale_null-all.c: Likewise.
9572         * modules/setlocale-tests (Makefile.am): Link the test programs with
9573         $(LIB_SETLOCALE).
9574         * modules/astrxfrm-tests (Makefile.am): Likewise.
9575         * modules/btowc-tests (Makefile.am): Likewise.
9576         * modules/c-ctype-tests (Makefile.am): Likewise.
9577         * modules/c-snprintf-tests (Makefile.am): Likewise.
9578         * modules/c-strcase-tests (Makefile.am): Likewise.
9579         * modules/c-vasprintf-tests (Makefile.am): Likewise.
9580         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
9581         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
9582         * modules/dfa-tests (Makefile.am): Likewise.
9583         * modules/duplocale-tests (Makefile.am): Likewise.
9584         * modules/hard-locale-tests (Makefile.am): Likewise.
9585         * modules/localcharset-tests (Makefile.am): Likewise.
9586         * modules/localename-tests (Makefile.am): Likewise.
9587         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9588         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9589         * modules/mbrtowc-tests (Makefile.am): Likewise.
9590         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9591         * modules/mbscasestr-tests (Makefile.am): Likewise.
9592         * modules/mbschr-tests (Makefile.am): Likewise.
9593         * modules/mbscspn-tests (Makefile.am): Likewise.
9594         * modules/mbsinit-tests (Makefile.am): Likewise.
9595         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9596         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9597         * modules/mbspbrk-tests (Makefile.am): Likewise.
9598         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9599         * modules/mbsrchr-tests (Makefile.am): Likewise.
9600         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
9601         * modules/mbsspn-tests (Makefile.am): Likewise.
9602         * modules/mbsstr-tests (Makefile.am): Likewise.
9603         * modules/nl_langinfo-tests (Makefile.am): Likewise.
9604         * modules/quotearg-tests (Makefile.am): Likewise.
9605         * modules/regex-tests (Makefile.am): Likewise.
9606         * modules/strfmon_l-tests (Makefile.am): Likewise.
9607         * modules/strtod-tests (Makefile.am): Likewise.
9608         * modules/strtold-tests (Makefile.am): Likewise.
9609         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
9610         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
9611         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
9612         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
9613         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
9614         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
9615         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
9616         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9617         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
9618         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
9619         * modules/wcrtomb-tests (Makefile.am): Likewise.
9620         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
9621         * modules/wcsrtombs-tests (Makefile.am): Likewise.
9622         * modules/wcwidth-tests (Makefile.am): Likewise.
9623         * doc/posix-functions/setlocale.texi: Mention that the multithread-
9624         safety fix is also available in module 'setlocale'.
9626 2019-12-18  Bruno Haible  <bruno@clisp.org>
9628         hard-locale: Make multithread-safe.
9629         * lib/hard-locale.h (hard_locale): Move documentation to here.
9630         * lib/hard-locale.c: Don't include <stdlib.h>.
9631         (GLIBC_VERSION): Remove macro.
9632         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
9633         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
9634         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
9635         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
9636         (Link): New section.
9637         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
9638         $(LIB_HARD_LOCALE).
9640 2019-12-18  Bruno Haible  <bruno@clisp.org>
9642         hard-locale: Avoid test failure on Haiku.
9643         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
9645 2019-12-18  Bruno Haible  <bruno@clisp.org>
9647         setlocale-null: Handle NULL result from setlocale.
9648         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
9649         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
9650         from setlocale or _wsetlocale.
9652 2019-12-18  Bruno Haible  <bruno@clisp.org>
9654         hard-locale: Add test.
9655         * tests/test-hard-locale.c: New file.
9656         * tests/locale.c: New file.
9657         * modules/hard-locale-tests: New file.
9659 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9661         dfa: do not match invalid UTF-8
9662         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
9663         from 5 to 9 tokens; this is needed due to the changes to
9664         add_utf8_anychar.
9665         (charclass_index): 2nd arg is now pointer-to-const.
9666         (add_utf8_anychar): Match only valid UTF-8 byte sequences
9667         instead of allowing overlong encodings or surrogate halves.
9669         dfa: simplify charclass by assuming C99
9670         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
9671         (charclass_word): Now always uint_fast64_t.
9672         (CHARCLASS_PAIR): Remove.
9673         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
9675         fts: tune via calloc
9676         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
9678         dfa: tune via xzalloc
9679         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
9681 2019-12-17  Bruno Haible  <bruno@clisp.org>
9683         localcharset: Fix multithread-safety bug on Windows and OS/2.
9684         * lib/localcharset.h (locale_charset): Clarify when the result becomes
9685         invalid.
9686         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
9687         assemble the result.
9689 2019-12-17  Bruno Haible  <bruno@clisp.org>
9691         localcharset: Optimize code for native Windows.
9692         * lib/localcharset.c (locale_charset): Don't bother calling
9693         setlocale (LC_ALL, NULL) since we're not interested in its result.
9695 2019-12-17  Bruno Haible  <bruno@clisp.org>
9697         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
9698         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
9699         setlocale.
9700         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
9701         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
9702         * modules/nl_langinfo (Depends-on): Add setlocale-null.
9704 2019-12-17  Bruno Haible  <bruno@clisp.org>
9706         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
9707         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
9708         stack-allocated buffer to assemble each result and different static
9709         buffers to return it.
9710         * tests/test-nl_langinfo-mt.c: New file.
9711         * modules/nl_langinfo-tests (Files): Add it.
9712         (Depends-on): Add thread, nanosleep.
9713         (Makefile.am): Build test-nl_langinfo-mt test.
9715 2019-12-17  Bruno Haible  <bruno@clisp.org>
9717         langinfo: Document more details.
9718         * doc/posix-headers/langinfo.texi: List platform details.
9719         * doc/posix-functions/nl_langinfo.texi: Likewise.
9721 2019-12-17  Bruno Haible  <bruno@clisp.org>
9723         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
9724         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
9725         and Martin Storsjö <martin@martin.st>
9726         in <https://savannah.gnu.org/bugs/?57406>.
9727         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
9728         mingw.
9730 2019-12-17  Bruno Haible  <bruno@clisp.org>
9732         glob: Avoid warning on mingw.
9733         Reported by Christian Biesinger <cbiesinger@google.com> in
9734         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
9735         * lib/glob.c (__stat64): Undefine first.
9737 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9739         xalloc: tune xzalloc for fresh allocations
9740         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
9741         because when the memory is freshly allocated from the OS via sbrk
9742         or mmap, calloc can avoid doing the memset.
9744         dfa: new function dfacopysyntax
9745         * lib/dfa.c (struct dfa): Move syntax member later so
9746         that dfacopysyntax can easily clear earlier members.
9747         (dfacopysyntax): New function, used by Gawk.
9749 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
9751         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
9752         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
9753         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
9754         if not already defined.
9756         dfa: remove one dependency on MB_CUR_MAX
9757         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
9759         dfa: remove struct lexer_state.cur_mb_len
9760         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
9761         as it’s not needed and the code is simpler without it.
9762         All uses removed.
9764 2019-12-16  Bruno Haible  <bruno@clisp.org>
9766         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
9767         Reported by Arnold Robbins <arnold@skeeve.com>.
9768         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
9769         copied from lib/glthread/lock.h.
9770         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
9771         (setlocale_null_with_lock): If pthread_in_use() is false, use
9772         setlocale_null_unlocked directly.
9773         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
9774         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
9775         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
9776         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
9777         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
9778         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
9780 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
9782         dfa: make dfasyntax thread-safe
9783         Problem reported by Bruno Haible in:
9784         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
9785         * lib/dfa.c: Do not include locale.h.
9786         (struct dfa): Remove simple_locale member.
9787         All uses replaced by localeinfo.simple.
9788         (using_simple_locale): Remove; now present (with some
9789         changes) in localeinfo.c.
9790         (dfasyntax): No need to initialize removed member.
9792         localeinfo: record whether locale is simple
9793         * lib/localeinfo.c (using_simple_locale): New function,
9794         copied here from lib/dfa.c but with a change: it uses
9795         strcoll for its heuristic, instead of using setlocale.
9796         This lets it be thread-safe.
9797         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
9799 2019-12-15  Bruno Haible  <bruno@clisp.org>
9801         duplocale: Fix multithread-safety bug on AIX.
9802         * lib/duplocale.c: Don't include <stdlib.h>.
9803         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
9804         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
9805         Set LIB_DUPLOCALE.
9806         * modules/duplocale (Depends-on): Add setlocale-null.
9807         (Link): New section.
9808         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
9809         $(LIB_DUPLOCALE).
9811 2019-12-15  Bruno Haible  <bruno@clisp.org>
9813         setlocale-null: Add tests.
9814         * tests/test-setlocale_null.c: New file.
9815         * tests/test-setlocale_null-one.c: New file.
9816         * tests/test-setlocale_null-all.c: New file.
9817         * modules/setlocale-null-tests: New file.
9819         setlocale-null: New module.
9820         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
9821         setlocale_null): New declarations.
9822         * lib/setlocale_null.c: New file.
9823         * lib/setlocale-lock.c: New file.
9824         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
9825         * m4/setlocale_null.m4: New file.
9826         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
9827         GNULIB_SETLOCALE_NULL.
9828         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
9829         * modules/setlocale-null: New file.
9830         * doc/posix-functions/setlocale.texi: Mention the new module.
9832 2019-12-15  Bruno Haible  <bruno@clisp.org>
9834         lock tests: Skip test when no multithreading is enabled.
9835         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
9837 2019-12-14  Bruno Haible  <bruno@clisp.org>
9839         locale, duplocale, localename: Fix last patch.
9840         Reported by Daniel Richard G. in
9841         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
9842         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
9843         Don't define if locale_t does not exist.
9845 2019-12-13  Bruno Haible  <bruno@clisp.org>
9847         locale, duplocale, localename: Fix errors if locale_t does not exist.
9848         Reported by Daniel Richard G. in
9849         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
9850         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
9851         macros.
9852         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
9853         HAVE_NEWLOCALE.
9854         * tests/test-localename.c: Likewise.
9855         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
9856         HAVE_DUPLOCALE.
9857         * tests/test-locale-c++.cc: Likewise.
9859 2019-12-13  Bruno Haible  <bruno@clisp.org>
9861         wcstok: Fix test failure on HP-UX.
9862         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
9863         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
9865 2019-12-12  Bruno Haible  <bruno@clisp.org>
9867         strtod, strtold tests: Avoid test failure on AIX 7.2.
9868         * tests/test-strtod1.c (main): Allow implementations in which ',' and
9869         '.' both are radix characters.
9870         * tests/test-strtold1.c (main): Likewise.
9872 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9874         dfa: prefer ptrdiff_t for API, too
9875         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
9876         but do this only for internal use for now.
9877         * NEWS: Mention the API change.
9878         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
9879         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
9880         values known to be nonnegative.
9881         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
9882         Prefer idx_t or ptrdiff_t to size_t for API.
9883         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
9884         Prefer ptrdiff_t to size_t for API.
9886         stdalign: port to xlclang 16.01
9887         Problem reportd by Bruno Haible in:
9888         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
9889         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
9890         ((__aligned__ (...))) with xlclang, as a top-level
9891         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
9892         xlclang version 16.01.0000.0001; the alignment directive is ignored.
9894 2019-12-12  Bruno Haible  <bruno@clisp.org>
9896         duplocale: Fix test failure on AIX 7.2 with xlclang.
9897         * lib/duplocale.c: Include <stdlib.h>.
9898         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
9899         value.
9901 2019-12-12  Bruno Haible  <bruno@clisp.org>
9903         stddef: Document the AIX xlc issue.
9904         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
9906 2019-12-12  Bruno Haible  <bruno@clisp.org>
9908         duplocale: Don't attempt to override if locale_t does not exist.
9909         Reported by Daniel Richard G. in
9910         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
9911         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
9912         HAVE_DUPLOCALE to 0.
9914 2019-12-12  Bruno Haible  <bruno@clisp.org>
9916         wcwidth: Avoid test failure on AIX 7.2.
9917         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
9918         negative.
9919         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
9921 2019-12-12  Bruno Haible  <bruno@clisp.org>
9923         ilogbl: Work around Cygwin bug.
9924         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
9925         correct.
9926         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
9928 2019-12-12  Bruno Haible  <bruno@clisp.org>
9930         strtold: Work around Cygwin bug.
9931         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
9932         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
9933         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
9934         STRTOLD_HAS_UNDERFLOW_BUG is defined.
9935         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
9937 2019-12-12  Bruno Haible  <bruno@clisp.org>
9939         strtold: Fix autoconf test.
9940         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
9942 2019-12-11  Bruno Haible  <bruno@clisp.org>
9944         fsync tests: Skip test that is known to fail.
9945         * doc/posix-functions/fsync.texi: Update list of platforms.
9946         * tests/test-fsync.c (main): Skip test with read-only file descriptors
9947         that is known to fail on AIX and Cygwin.
9949 2019-12-11  Bruno Haible  <bruno@clisp.org>
9951         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
9952         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
9953         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
9954         HAVE_GETADDRINFO as a C macro.
9955         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
9956         declare as replacement functions.
9957         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
9958         define as no-op overrides.
9959         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
9960         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
9961         * modules/getaddrinfo (Depends-on, configure.ac): Test
9962         REPLACE_GETADDRINFO.
9963         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
9964         problem.
9965         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
9966         convention problems.
9968 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
9970         dfa: prefer signed integers for internals
9971         Signed integers can be checked more easily for integer overflow.
9972         * lib/dfa.c (position, struct lexer_state, struct parser_state)
9973         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
9974         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
9975         (nsubtoks, copytoks, closure, alloc_position_set, delete)
9976         (replace, state_index, epsclosure, charclass_context)
9977         (state_separate_contexts, merge_nfa_state, dfaoptimize)
9978         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
9979         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
9980         (comsubs, inboth, allocmust):
9981         Prefer a signed to an unsigned integer when calculating indexes,
9982         unless the integer is part of the external API (a bigger deal,
9983         and to be done later).
9985         dfa: fix index overflow
9986         * lib/dfa.c (compare): Avoid integer overflow when analyzing
9987         very large regular expressions.
9989         dfa: update commentary for previous change
9990         * NEWS: Mention the change.
9991         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
9993 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
9995         dfa: separate parse and compile phase
9996         ‘dfamust’ must be called after parsing and before tokens are
9997         reordered, but both are executed in the compilation phase.
9998         Token reordering was introduced in Gnulib commit
9999         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
10000         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
10001         * lib/dfa.c (dfaparse): Change it to global function.
10002         (dfacomp): If first argument is NULL, skip parse.
10003         * lib/dfa.h: (dfaparse): Add a prototype.
10005 2019-12-11  Bruno Haible  <bruno@clisp.org>
10007         unistd tests: Fix link error on MSVC.
10008         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
10009         $(LIB_GETLOGIN).
10011 2019-12-11  Bruno Haible  <bruno@clisp.org>
10013         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
10014         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
10015         and POSIX substitutes are supported in C++ mode.
10016         * NEWS: Likewise.
10018 2019-12-11  Bruno Haible  <bruno@clisp.org>
10020         stddef: Fix compilation error in C++ mode on MSVC.
10021         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
10022         instead, include <cstddef>.
10024 2019-12-11  Bruno Haible  <bruno@clisp.org>
10026         unistd: Fix compilation error in C++ mode on MSVC.
10027         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
10028         does not have <unistd.h>.
10030 2019-12-11  Bruno Haible  <bruno@clisp.org>
10032         locale: Fix compilation error in C++ mode on MSVC.
10033         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
10034         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
10035         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
10036         int_n_sep_by_space): Define as macros on MSVC.
10038 2019-12-11  Bruno Haible  <bruno@clisp.org>
10040         wchar: Fix compilation error in C++ mode on MSVC.
10041         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
10043 2019-12-11  Bruno Haible  <bruno@clisp.org>
10045         pthread-thread: Fix compilation error in C++ mode on MSVC.
10046         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
10047         _GL_CXXALIAS_RPL invocation.
10049 2019-12-08  Bruno Haible  <bruno@clisp.org>
10051         Fix compilation errors in C++ mode on Haiku.
10052         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
10053         non-glibc systems.
10054         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
10055         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
10056         posix_spawnattr_setschedparam): Likewise.
10057         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
10058         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
10059         * lib/unistd.in.h (usleep): Likewise.
10061 2019-12-08  Bruno Haible  <bruno@clisp.org>
10063         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
10064         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
10065         * modules/fseeko (configure.ac-early): Require it instead of
10066         AC_FUNC_FSEEKO.
10067         * modules/ftello (configure.ac-early): Likewise.
10068         * modules/fflush (configure.ac-early): Likewise.
10070 2019-12-08  Bruno Haible  <bruno@clisp.org>
10072         Fix compilation error in C++ mode on HP-UX 11.
10073         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
10074         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
10076 2019-12-08  Bruno Haible  <bruno@clisp.org>
10078         Fix compilation errors on HP-UX 11/ia64.
10079         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
10080         _GL_FUNCDECL_SYS.
10082 2019-12-08  Bruno Haible  <bruno@clisp.org>
10084         Fix compilation error in C++ mode on OpenBSD.
10085         * lib/signal.in.h (signal): Declare on OpenBSD.
10087 2019-12-08  Bruno Haible  <bruno@clisp.org>
10089         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
10090         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
10091         instead of #error.
10093 2019-12-08  Bruno Haible  <bruno@clisp.org>
10095         Fix compilation errors in C++ mode on FreeBSD.
10096         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
10097         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
10098         * lib/threads.in.h (thrd_exit): Likewise.
10099         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
10101 2019-12-08  Bruno Haible  <bruno@clisp.org>
10103         Fix compilation errors in C++ mode on macOS and FreeBSD.
10104         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
10105         or FreeBSD with clang, use the approach without C preprocessor macro.
10107 2019-12-07  Bruno Haible  <bruno@clisp.org>
10109         Fix compilation errors in C++ mode on AIX with xlclang++.
10110         Reported by Christian Biesinger <cbiesinger@google.com> in
10111         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
10112         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
10114 2019-12-07  Bruno Haible  <bruno@clisp.org>
10116         Document compilation error in C++ mode on NetBSD 8.0.
10117         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
10119 2019-12-07  Bruno Haible  <bruno@clisp.org>
10121         Fix compilation errors in C++ mode on Solaris 10.
10122         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
10123         to non-empty on Solaris with a non-GCC compiler.
10124         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
10126 2019-12-07  Bruno Haible  <bruno@clisp.org>
10128         Reword NEWS entry.
10129         * NEWS: Reword the latest NEWS entry.
10131 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
10133         Move xstrtol_fatal to a new xstrtol-error module.
10134         * lib/xstrtol.h: Stop including <getopt.h>.
10135         (xstrtol_fatal): Move ...
10136         * lib/xstrtol-error.h: ... here.  New file.
10137         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
10138         * tests/test-xstrtol.c: Likewise.
10139         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
10140         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
10141         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
10142         * modules/xstrtol-error: New file.
10143         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
10144         * MODULES.html.sh: Add xstrtol-error.
10145         * NEWS: Document the change.
10147 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
10149         nstrftime: better width support for %N, %z
10150         * lib/nstrftime.c (width_add, width_add1, width_cpy):
10151         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
10152         a new WIDTH parameter.
10153         (add, add1, cpy): Use these macros.
10154         (width_add): Do not treat digits == 0 as a special case,
10155         do not pad if padding is ‘-’, and do not use a negative width.
10156         (__strftime_internal): Redo formatting of nanoseconds and numeric
10157         timezones to avoid buffer misuse in unusual cases, and so that
10158         widths make more sense.  Add support for widths greater than 9 to
10159         the %N format; they are zero filled on the right.
10160         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
10162 2019-12-05  Bruno Haible  <bruno@clisp.org>
10164         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
10165         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
10166         set REPLACE_ISFINITE to 1.
10167         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
10168         REPLACE_ISINF to 1.
10169         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
10170         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
10171         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
10172         * lib/threads.in.h (call_once): Likewise.
10173         * lib/iconv.in.h (iconv): Likewise.
10175 2019-12-05  Bruno Haible  <bruno@clisp.org>
10177         wchar: Add more C++ tests.
10178         Reported by Christian Biesinger <cbiesinger@google.com> in
10179         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
10180         * tests/test-wchar-c++3.cc: New file.
10181         * modules/wchar-c++-tests (Files): Add it.
10182         (Makefile.am): Compile it.
10184 2019-12-05  Bruno Haible  <bruno@clisp.org>
10186         Add more C++ tests.
10188         assert-h: Add C++ tests.
10189         * tests/test-assert-h-c++.cc: New file.
10190         * tests/test-assert-h-c++2.cc: New file.
10191         * modules/assert-h-c++-tests: New file.
10192         * modules/assert-h-tests: New file.
10194         ctype: Add C++ tests.
10195         * tests/test-ctype-c++.cc: New file.
10196         * tests/test-ctype-c++2.cc: New file.
10197         * modules/ctype-c++-tests: New file.
10198         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
10200         errno: Add C++ tests.
10201         * tests/test-errno-c++.cc: New file.
10202         * tests/test-errno-c++2.cc: New file.
10203         * modules/errno-c++-tests: New file.
10204         * modules/errno-tests (Depends-on): Add errno-c++-tests.
10206         float: Add C++ tests.
10207         * tests/test-float-c++.cc: New file.
10208         * tests/test-float-c++2.cc: New file.
10209         * modules/float-c++-tests: New file.
10210         * modules/float-tests (Depends-on): Add float-c++-tests.
10212         inttypes: Add more C++ tests.
10213         * tests/test-inttypes-c++2.cc: New file.
10214         * modules/inttypes-c++-tests (Files): Add it.
10215         (Makefile.am): Compile it.
10217         limits-h: Add C++ tests.
10218         * tests/test-limits-h-c++.cc: New file.
10219         * tests/test-limits-h-c++2.cc: New file.
10220         * modules/limits-h-c++-tests: New file.
10221         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
10223         stdarg: Add C++ tests.
10224         * tests/test-stdarg-c++.cc: New file.
10225         * tests/test-stdarg-c++2.cc: New file.
10226         * modules/stdarg-c++-tests: New file.
10227         * modules/stdarg-tests: New file.
10229         stdbool: Add C++ tests.
10230         * tests/test-stdbool-c++.cc: New file.
10231         * tests/test-stdbool-c++2.cc: New file.
10232         * modules/stdbool-c++-tests: New file.
10233         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
10235         stddef: Add C++ tests.
10236         * tests/test-stddef-c++.cc: New file.
10237         * tests/test-stddef-c++2.cc: New file.
10238         * modules/stddef-c++-tests: New file.
10239         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
10241         stdint: Add C++ tests.
10242         * tests/test-stdint-c++.cc: New file.
10243         * tests/test-stdint-c++2.cc: New file.
10244         * modules/stdint-c++-tests: New file.
10245         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
10247         wchar: Add more C++ tests.
10248         * tests/test-wchar-c++2.cc: New file.
10249         * modules/wchar-c++-tests (Files): Add it.
10250         (Makefile.am): Compile it.
10252         wctype-h: Add more C++ tests.
10253         * tests/test-wctype-h-c++2.cc: New file.
10254         * modules/wctype-h-c++-tests (Files): Add it.
10255         (Makefile.am): Compile it.
10257 2019-12-04  Bruno Haible  <bruno@clisp.org>
10259         Fix compilation errors in C++ mode with xlclang++ on AIX.
10260         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
10261         C++ mode on AIX.
10262         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
10263         without C preprocessor macro.
10264         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
10265         _GL_CXXALIAS_SYS.
10266         * lib/threads.in.h (thrd_exit): Likewise.
10268 2019-12-04  Bruno Haible  <bruno@clisp.org>
10270         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
10271         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
10272         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
10274 2019-12-04  Bruno Haible  <bruno@clisp.org>
10276         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
10277         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
10278         _GL_CXXALIASWARN invocation on non-glibc systems.
10279         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
10280         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
10281         iswctype, towlower, towupper): Likewise.
10283 2019-12-03  Bruno Haible  <bruno@clisp.org>
10285         Avoid hassles caused by [[noreturn]] in C++.
10286         Reported by Christian Biesinger <cbiesinger@google.com> in
10287         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
10288         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
10289         * lib/_Noreturn.h: Likewise.
10291 2019-12-02  Bruno Haible  <bruno@clisp.org>
10293         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
10294         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
10295         LIBMULTITHREAD.
10296         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
10297         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
10298         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
10299         gl_THREADLIB.
10300         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
10302 2019-12-02  Bruno Haible  <bruno@clisp.org>
10304         Fix some more link errors with --enable-threads=isoc.
10305         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
10306         * modules/pthread-rwlock (Depends-on): Likewise.
10308 2019-12-02  Bruno Haible  <bruno@clisp.org>
10310         Fix link errors with --enable-threads=posix on AIX.
10311         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
10312         program with $(LIBTHREAD).
10313         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
10314         program with $(LIBTHREAD).
10316 2019-12-02  Bruno Haible  <bruno@clisp.org>
10318         Fix link errors with --enable-threads=posix on AIX.
10319         * modules/mbrtowc (Link): New section.
10320         * modules/acl (Link): Likewise.
10321         * modules/argmatch (Link): Likewise.
10322         * modules/backup-rename (Link): Likewise.
10323         * modules/backupfile (Link): Likewise.
10324         * modules/closein (Link): Likewise.
10325         * modules/closeout (Link): Likewise.
10326         * modules/copy-file (Link): Likewise.
10327         * modules/csharpcomp (Link): Likewise.
10328         * modules/csharpexec (Link): Likewise.
10329         * modules/dfa (Link): Likewise.
10330         * modules/exclude (Link): Likewise.
10331         * modules/fnmatch (Link): Likewise.
10332         * modules/fnmatch-gnu (Link): Likewise.
10333         * modules/fnmatch-posix (Link): Likewise.
10334         * modules/glob (Link): Likewise.
10335         * modules/human (Link): Likewise.
10336         * modules/javacomp (Link): Likewise.
10337         * modules/javaexec (Link): Likewise.
10338         * modules/javaversion (Link): Likewise.
10339         * modules/mbfile (Link): Likewise.
10340         * modules/mbiter (Link): Likewise.
10341         * modules/mbmemcasecmp (Link): Likewise.
10342         * modules/mbmemcasecoll (Link): Likewise.
10343         * modules/mbrlen (Link): Likewise.
10344         * modules/mbscasecmp (Link): Likewise.
10345         * modules/mbscasestr (Link): Likewise.
10346         * modules/mbschr (Link): Likewise.
10347         * modules/mbscspn (Link): Likewise.
10348         * modules/mbsinit (Link): Likewise.
10349         * modules/mbslen (Link): Likewise.
10350         * modules/mbsncasecmp (Link): Likewise.
10351         * modules/mbsnlen (Link): Likewise.
10352         * modules/mbsnrtowcs (Link): Likewise.
10353         * modules/mbspbrk (Link): Likewise.
10354         * modules/mbspcasecmp (Link): Likewise.
10355         * modules/mbsrchr (Link): Likewise.
10356         * modules/mbsrtowcs (Link): Likewise.
10357         * modules/mbssep (Link): Likewise.
10358         * modules/mbsspn (Link): Likewise.
10359         * modules/mbsstr (Link): Likewise.
10360         * modules/mbstok_r (Link): Likewise.
10361         * modules/mbswidth (Link): Likewise.
10362         * modules/mbuiter (Link): Likewise.
10363         * modules/mkdir-p (Link): Likewise.
10364         * modules/propername (Link): Likewise.
10365         * modules/quote (Link): Likewise.
10366         * modules/quotearg (Link): Likewise.
10367         * modules/quotearg-simple (Link): Likewise.
10368         * modules/regex-quote (Link): Likewise.
10369         * modules/rpmatch (Link): Likewise.
10370         * modules/sh-quote (Link): Likewise.
10371         * modules/system-quote (Link): Likewise.
10372         * modules/trim (Link): Likewise.
10373         * modules/unistdio/ulc-asnprintf (Link): Likewise.
10374         * modules/unistdio/ulc-fprintf (Link): Likewise.
10375         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
10376         * modules/unistdio/ulc-vasprintf (Link): Likewise.
10377         * modules/unistdio/ulc-vfprintf (Link): Likewise.
10378         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
10379         * modules/unistdio/ulc-vsprintf (Link): Likewise.
10380         * modules/xfreopen (Link): Likewise.
10381         * modules/xmemcoll (Link): Likewise.
10382         * modules/yesno (Link): Likewise.
10383         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
10384         * modules/argmatch-tests (Makefile.am): Likewise.
10385         * modules/closein-tests (Makefile.am): Likewise.
10386         * modules/copy-file-tests (Makefile.am): Likewise.
10387         * modules/dfa-tests (Makefile.am): Likewise.
10388         * modules/fnmatch-tests (Makefile.am): Likewise.
10389         * modules/glob-tests (Makefile.am): Likewise.
10390         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
10391         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
10392         * modules/mbrtowc-tests (Makefile.am): Likewise.
10393         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10394         * modules/mbscasestr-tests (Makefile.am): Likewise.
10395         * modules/mbschr-tests (Makefile.am): Likewise.
10396         * modules/mbscspn-tests (Makefile.am): Likewise.
10397         * modules/mbsinit-tests (Makefile.am): Likewise.
10398         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10399         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
10400         * modules/mbspbrk-tests (Makefile.am): Likewise.
10401         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10402         * modules/mbsrchr-tests (Makefile.am): Likewise.
10403         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
10404         * modules/mbsspn-tests (Makefile.am): Likewise.
10405         * modules/mbsstr-tests (Makefile.am): Likewise.
10406         * modules/quotearg-tests (Makefile.am): Likewise.
10407         * modules/quotearg-simple-tests (Makefile.am): Likewise.
10408         * modules/readtokens-tests (Makefile.am): Likewise.
10409         * modules/regex-quote-tests (Makefile.am): Likewise.
10410         * modules/sh-quote-tests (Makefile.am): Likewise.
10411         * modules/system-quote-tests (Makefile.am): Likewise.
10412         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
10413         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10414         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
10415         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
10416         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
10417         * modules/yesno-tests (Makefile.am): Likewise.
10419 2019-12-02  Bruno Haible  <bruno@clisp.org>
10421         Simplify link sections.
10422         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
10423         * modules/lock (Link): Likewise.
10424         * modules/cond (Link): Likewise.
10425         * modules/tls (Link): Likewise.
10426         * modules/yield (Link): Likewise.
10427         * modules/regex (Link): Likewise.
10428         * modules/localename (Link): Likewise.
10429         * modules/unicase/locale-language (Link): Likewise.
10430         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
10432 2019-12-02  Bruno Haible  <bruno@clisp.org>
10434         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
10435         * tests/test-thread_self.c (main): Disable test on AIX.
10437 2019-12-01  Bruno Haible  <bruno@clisp.org>
10439         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
10440         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
10441         gl_THREADLIB_EARLY_BODY.
10442         (gl_THREADLIB_EARLY_BODY): Invoke it.
10443         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
10444         (gl_THREADLIB_BODY): Invoke it.
10445         (gl_PTHREADLIB): New macro.
10446         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
10447         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
10448         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
10449         * modules/pthread-h (Files): Add threadlib.m4.
10450         (Depends-on): Remove threadlib.
10451         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
10452         and _THREAD_SAFE here.
10453         (Link): Use LIBPTHREAD, not LIBTHREAD.
10454         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
10455         LIBMULTITHREAD.
10456         * modules/pthread-once (Link): Likewise.
10457         * modules/pthread-mutex (Link): Likewise.
10458         * modules/pthread-rwlock (Link): Likewise.
10459         * modules/pthread-cond (Link): Likewise.
10460         * modules/pthread-tss (Link): Likewise.
10461         * modules/pthread-spin (Link): Likewise.
10462         * modules/pthread (Link): Likewise.
10463         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
10464         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
10465         * modules/pthread-once-tests (test_pthread_once1_LDADD,
10466         test_pthread_once2_LDADD): Likewise.
10467         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
10468         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
10469         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
10470         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
10472 2019-12-01  Bruno Haible  <bruno@clisp.org>
10474         cond: State linking requirements.
10475         * modules/cond (Link): New section.
10477 2019-12-01  Bruno Haible  <bruno@clisp.org>
10479         threadlib: Remove unnecessary file (left over from 2019-07-06).
10480         * modules/threadlib (Files): Remove config.rpath.
10482 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
10484         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
10485         Reported by Dagobert Michelsen <dam@opencsw.org> in
10486         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
10487         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
10488         list of strings instead of one string.
10489         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
10490         * pygnulib/GLImport.py (execute): Likewise.
10492 2019-11-27  Bruno Haible  <bruno@clisp.org>
10494         openpty, forkpty: Fix build error on Solaris 11.4.
10495         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
10496         also in <termios.h>.
10497         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
10498         of the function also in <termios.h>.
10499         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
10500         * doc/glibc-functions/forkpty.texi: Likewise.
10502 2019-11-27  Bruno Haible  <bruno@clisp.org>
10504         New options --enable-threads=isoc and --enable-threads=isoc+posix.
10505         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
10506         --enable-threads=isoc and --enable-threads=isoc+posix.
10507         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
10508         When both the ISO C and the POSIX threads API are available, choose
10509         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
10510         --enable-threads=isoc+posix was specified. When only the ISO C threads
10511         API is available and --enable-threads=iso was specified, choose
10512         USE_ISOC_THREADS.
10513         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
10514         USE_ISOC_AND_POSIX_THREADS.
10515         * lib/glthread/lock.c: Likewise.
10516         * lib/glthread/cond.h: Likewise.
10517         * lib/glthread/cond.c: Likewise.
10518         * lib/glthread/tls.h: Likewise.
10519         * lib/glthread/tls.c: Likewise.
10520         * lib/glthread/yield.h: Likewise.
10521         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
10522         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
10523         * lib/glthread/thread.c: Likewise.
10524         * lib/glthread/threadlib.c: Likewise.
10525         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
10526         USE_ISOC_AND_POSIX_THREADS.
10527         * tests/test-cond.c: Consider USE_ISOC_THREADS and
10528         USE_ISOC_AND_POSIX_THREADS.
10529         * tests/test-tls.c: Likewise.
10530         * tests/test-thread_create.c (main): Likewise.
10531         * tests/test-pthread-cond.c: Likewise.
10532         * tests/test-pthread-mutex.c: Likewise.
10533         * tests/test-pthread-once2.c: Likewise.
10534         * tests/test-pthread-rwlock.c: Likewise.
10535         * tests/test-pthread-tss.c: Likewise.
10536         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
10537         USE_POSIX_THREADS.
10539 2019-11-24  Bruno Haible  <bruno@clisp.org>
10541         mbrtowc: Modernize autoconf test.
10542         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
10543         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
10544         try a UTF-8 locale.
10545         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
10547 2019-11-24  Bruno Haible  <bruno@clisp.org>
10549         Fix errors in C++ mode on mingw.
10550         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
10551         instead of _GL_CXXALIAS_SYS.
10552         * lib/signal.in.h (pthread_sigmask): Likewise.
10553         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
10554         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
10555         Likewise.
10556         * lib/wchar.in.h (btowc): Likewise.
10558 2019-11-24  Bruno Haible  <bruno@clisp.org>
10560         sys_time: Fix errors in C++ mode on mingw.
10561         * lib/sys_time.in.h (timeval): Restore the redirection
10562         '#define timeval rpl_timeval', for when the symbol timeval is being used
10563         outside the 'gnulib' namespace.
10564         * lib/sys_select.in.h (select): In C++, write 'timeval', not
10565         'struct timeval'.
10567 2019-11-24  Bruno Haible  <bruno@clisp.org>
10569         iswctype: Fix errors in C++ mode on mingw.
10570         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
10571         is 1.
10572         * lib/iswctype.c (iswctype): Add another implementation, for the
10573         GNULIB_defined_wint_t case.
10574         * modules/iswctype (configure.ac): Compile iswctype.c also if
10575         GNULIB_OVERRIDES_WINT_T is 1.
10577 2019-11-24  Bruno Haible  <bruno@clisp.org>
10579         windows-timedmutex: Fix errors in C++ mode on mingw.
10580         * lib/windows-timedmutex.h: Add closing brace.
10582 2019-11-24  Bruno Haible  <bruno@clisp.org>
10584         Fix errors in C++ mode on Cygwin.
10585         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
10586         _GL_CXXALIAS_SYS.
10588 2019-11-24  Bruno Haible  <bruno@clisp.org>
10590         time_r: Fix for mingw (regression from 2019-11-16).
10591         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
10592         AC_LINK_IFELSE test only if the function does not appear to exist.
10594 2019-11-24  Bruno Haible  <bruno@clisp.org>
10596         wcstok: Add tests.
10597         * tests/test-wcstok.c: New file.
10598         * modules/wcstok-tests: New file.
10600 2019-11-24  Bruno Haible  <bruno@clisp.org>
10602         wcstok: Work around wrong signature on native Windows.
10603         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
10604         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
10605         REPLACE_WCSTOK.
10606         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
10607         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
10608         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
10609         * doc/posix-functions/wcstok.texi: Mention the problem.
10611 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
10613         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
10614         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
10615         remove workaround for GCC bug 91450 as the bug should be fixed
10616         there too.
10618 2019-11-21  Bruno Haible  <bruno@clisp.org>
10620         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
10621         Reported by Christian Biesinger <cbiesinger@google.com> in
10622         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
10623         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
10624         non-glibc systems.
10625         * lib/locale.in.h (localeconv, setlocale): Likewise.
10626         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
10627         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
10628         rint, round, trunc): Likewise.
10629         * lib/monetary.in.h (strfmon_l): Likewise.
10630         * lib/pthread.in.h (pthread_mutexattr_getrobust,
10631         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
10632         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
10633         pthread_spin_destroy): Likewise.
10634         * lib/signal.in.h (raise, signal): Likewise.
10635         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
10636         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
10637         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
10638         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
10639         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
10640         Likewise.
10641         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
10642         Likewise.
10643         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
10644         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
10645         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
10646         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
10647         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
10648         wcsftime): Likewise.
10649         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
10651 2019-11-21  Bruno Haible  <bruno@clisp.org>
10653         Fix various errors in _GL_CXXALIAS_SYS invocations.
10654         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
10655         _GL_CXXALIAS_SYS.
10656         * lib/pthread.in.h (pthread_mutexattr_gettype,
10657         pthread_mutexattr_getrobust): Likewise.
10658         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
10659         * lib/sys_socket.in.h (recv, send): Likewise.
10660         * lib/unistd.in.h (getdtablesize): Likewise.
10661         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
10662         'struct timeval'.
10664 2019-11-21  Bruno Haible  <bruno@clisp.org>
10666         math tests: Update after 2019-08-28 change.
10667         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
10668         return type of 'bool', not 'int'.
10670 2019-11-21  Bruno Haible  <bruno@clisp.org>
10672         pthread-spin: Fix errors in C++ mode.
10673         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
10674         functions as nonexistent when <pthread.h> exists but does not define
10675         the pthread_spinlock_t type.
10677 2019-11-21  Bruno Haible  <bruno@clisp.org>
10679         pthread-mutex: Fix errors in C++ mode.
10680         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
10681         pthread_mutexattr_getrobust exists. If not, define
10682         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
10683         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
10684         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
10685         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
10686         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
10687         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
10688         definition.
10690 2019-11-19  Bruno Haible  <bruno@clisp.org>
10692         threads-h tests: Fix typo.
10693         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
10695 2019-11-19  Bruno Haible  <bruno@clisp.org>
10697         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
10698         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
10699         to 'const pthread_attr_t *'.
10700         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
10701         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
10703 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
10705         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
10706         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
10707         work around GCC bug 91450 as the bug should be fixed there.
10709 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10711         glob: get closer to glibc glob.c
10712         Omit differences from glibc when the differences don’t matter.
10713         * lib/glob.c [_LIBC]: Include shlib-compat.h.
10714         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
10715         (glob_lstat): New function.
10716         (glob_in_dir): Use it.
10717         (GLOB_ATTRIBUTE): Define to empty if not already defined.
10718         Use changed.
10720 2019-11-18  Bruno Haible  <bruno@clisp.org>
10722         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
10723         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
10724         UINTPTR_MAX): Consider _WIN64.
10725         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
10726         a pointer.
10728 2019-11-18  Bruno Haible  <bruno@clisp.org>
10730         stdint: Fix value of WINT_MAX when we override wint_t.
10731         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
10732         when GNULIB_OVERRIDES_WINT_T is 1.
10734 2019-11-18  Bruno Haible  <bruno@clisp.org>
10736         vcs-to-changelog: New module.
10737         * modules/vcs-to-changelog: New file.
10738         * MODULES.html.sh (func_all_modules): Add it.
10740 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
10742         vcs-to-changelog: New script to generate ChangeLog-like output.
10743         Discussion:
10744         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
10745         * build-aux/vcs_to_changelog.py: New file.
10746         * build-aux/vcstocl/frontend_c.py: New file.
10747         * build-aux/vcstocl/misc_util.py: New file.
10748         * build-aux/vcstocl/vcs_git.py: New file.
10750 2019-11-18  Bruno Haible  <bruno@clisp.org>
10752         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
10753         Reported by Keith Marshall <keith@users.osdn.me> in
10754         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
10755         and <https://osdn.net/projects/mingw/ticket/39677>.
10756         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
10757         already been defined by mingw's <crtdefs.h>.
10759 2019-11-18  Bruno Haible  <bruno@clisp.org>
10761         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
10762         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
10763         conditionally enabled.
10765 2019-11-18  Bruno Haible  <bruno@clisp.org>
10767         gc: Mirror libgcrypt.m4 from libgcrypt.
10768         * config/srclistvars.sh (LIBGCRYPT): New variable.
10769         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
10771 2019-11-17  Bruno Haible  <bruno@clisp.org>
10773         locale, localename: Improve z/OS support.
10774         Reported by Daniel Richard G. in
10775         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
10776         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
10777         gl_LOCALE_H.
10778         (gl_LOCALE_H): Require it.
10779         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
10780         defined, don't even check for newlocale, duplocale, freelocale.
10781         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
10782         locale_t is not defined.
10784 2019-11-17  Bruno Haible  <bruno@clisp.org>
10786         havelib: Make libdirstems processing more flexible.
10787         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
10788         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
10789         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
10790         patch from 2017-02-19).
10791         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
10792         libdirs, even when the first one exists as a directory.
10794 2019-11-17  Bruno Haible  <bruno@clisp.org>
10796         havelib: Match the bitness when searching for libraries.
10797         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
10798         acl_is_expected_elfclass.
10799         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
10800         file exists, in ELF, also test whether it has the ELF class that
10801         corresponds to the host's bitness.
10803 2019-11-17  Bruno Haible  <bruno@clisp.org>
10805         host-cpu-c-abi: Add support for unknown CPUs.
10806         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
10807         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
10808         32-bit or 64-bit.
10810 2019-11-17  Bruno Haible  <bruno@clisp.org>
10812         havelib: Remove redundant code.
10813         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
10814         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
10816 2019-11-17  Bruno Haible  <bruno@clisp.org>
10818         havelib: Fix a bug in dependency processing.
10819         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
10820         of .la files, don't overwrite the value of additional_libdir for the
10821         next rounds.
10823 2019-11-16  Bruno Haible  <bruno@clisp.org>
10825         wctype-h: When overriding wint_t, override also the related functions.
10826         Reported by Christian Biesinger <cbiesinger@google.com> in
10827         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
10828         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
10829         REPLACE_ISWCNTRL to 1.
10830         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
10831         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
10832         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
10833         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
10834         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
10835         on mingw.
10836         * doc/posix-headers/wctype.texi: Likewise.
10838 2019-11-16  Bruno Haible  <bruno@clisp.org>
10840         time_r: Fix for mingw.
10841         Reported by Christian Biesinger <cbiesinger@google.com> in
10842         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
10843         * lib/time.in.h: On mingw, include <unistd.h>.
10844         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
10845         <time.h>. Test for localtime_r in a way that works when it is defined
10846         as an inline function.
10848 2019-11-13  Bruno Haible  <bruno@clisp.org>
10850         havelib: Revert last change.
10851         * build-aux/config.rpath: Revert last change. We can add msys2 support
10852         when it has been added to libtool.m4 upstream.
10854 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
10856         config: add msys support
10857         Requested by Arnold Robbins in:
10858         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
10859         He also requested a change to config.guess, which I’ll forward
10860         upstream.
10861         * build-aux/ar-lib (func_file_conv):
10862         * build-aux/compile (func_file_conv):
10863         * build-aux/config.rpath (wl, with_gnu_ld)
10864         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
10865         Treat msys like cygwin.
10867 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10869         regex: now back in sync with glibc
10870         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
10871         regexec.c got merged into glibc and are now copies again.
10873 2019-10-27  Bruno Haible  <bruno@clisp.org>
10875         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
10876         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
10877         statement.
10878         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
10879         32-bit CPUs.
10881 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
10883         timespec-add, timespec-sub: simplify
10884         * lib/timespec-add.c (timespec_add):
10885         * lib/timespec-sub.c (timespec_sub):
10886         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
10887         work on unsigned integers.
10889 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
10891         nstrftime: speed up integer overflow checking
10892         * lib/nstrftime.c: Include intprops.h.
10893         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
10894         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
10895         instead of doing it by hand.
10896         * modules/nstrftime (Depends-on): Add intprops.
10898         Port better to GCC under macOS
10899         Work around macOS header that has ‘#define __has_builtin(x) 0’
10900         when compiled by GCC.  Apple really, really doesn’t want you to
10901         use GCC, apparently.  Rroblem reported by Akim Demaille in:
10902         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
10903         The fix is to not trust __has_builtin when being compiled by
10904         recent-enough GCC.
10905         * lib/intprops.h (__has_builtin)
10906         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
10907         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
10908         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
10909         Remove.  All uses removed.
10910         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
10911         directly, if defined and if not newer GCC.
10912         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
10913         New macro, that use __has_builtin directly, if defined and if
10914         not newer GCC.
10915         (assume): Use them.
10917 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
10919         maintainer-makefile: update rule for argmatch.
10920         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
10922 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
10924         bitset: let freeing functions accept NULL.
10925         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
10926         given NULL.
10927         * lib/bitset.h: Document that.
10928         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
10930 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
10932         inttypes: use more-robust test for int range
10933         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
10934         Problem reported by Dagobert Michelsen in:
10935         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
10936         * lib/inttypes.in.h: Rely only on limits.h when checking
10937         int range.
10939 2019-10-15  Bruno Haible  <bruno@clisp.org>
10941         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
10942         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
10943         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
10944         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
10945         term_ostream_set_hyperlink): New functions.
10946         (term_styled_ostream_get_hyperlink_ref,
10947         term_styled_ostream_get_hyperlink_id,
10948         term_styled_ostream_set_hyperlink): New function aliases.
10950 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
10952         update-copyright: use en dashes in .texi ranges
10953         * build-aux/update-copyright: Match year ranges like "1998--2019",
10954         which are used in the Autoconf manual.  Also, update ranges in
10955         .tex, .texi, and .texinfo files to use en dashes instead of
10956         hyphens.
10958 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10960         * config/srclist.txt: Remove posix/regex_internal.c for now.
10962 2019-10-13  Bruno Haible  <bruno@clisp.org>
10964         git-version-gen: Allow 'snapshot' as .tarball-version contents.
10965         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
10966         contents to the empty string.
10968 2019-10-12  Bruno Haible  <bruno@clisp.org>
10970         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
10971         * tests/test-intprops.c (main): Disable two more tests when using
10972         HP-UX cc.
10974 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10976         Simplify and regularize regex use of ‘assert’
10977         Also, tell GCC about the asserts even when compiling without
10978         debugging, to give it further optimization opportunities.
10979         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
10980         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
10981         (parse_expression, parse_bracket_exp):
10982         * lib/regex_internal.c (build_wcs_buffer)
10983         (build_wcs_upper_buffer, re_string_reconstruct)
10984         (re_string_context_at):
10985         * lib/regexec.c (re_search_stub, re_copy_regs)
10986         (re_search_internal, prune_impossible_nodes, check_matching)
10987         (check_halt_state_context, set_regs, sift_states_backward)
10988         (build_sifted_states, transit_state_mb, transit_state_bkref)
10989         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
10990         (match_ctx_add_subtop):
10991         Use it instead of plain ‘assert’.
10993 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
10995         regex: omit debug assignment when not debugging
10996         * lib/regexec.c (re_search_internal) [!DEBUG]:
10997         Remove unnecessary assignment.
10999         regex: tell compiler there’s at most 256 arcs out
11000         Partly this is to help the reader (and maybe help GCC);
11001         partly this is to pacify Coverity.
11002         * lib/regex_internal.h: Include verify.h.
11003         * lib/regexec.c (group_nodes_into_DFAstates):
11004         Tell the compiler that ndests cannot exceed SBC_MAX.
11005         * modules/regex (Depends-on): Add ‘verify’.
11007         regex: simplify by assuming C99
11008         * config/srclist.txt: Comment out regex_internal.h and regexec.c
11009         temporarily.
11010         * lib/regex_internal.h (lock_define, re_match_context_t):
11011         Simplify by assuming C99 macros and const.
11012         * lib/regexec.c (re_search_internal): Simplify by assuming C99
11013         initializers.  Remove unnecessary assignment, as mctx is now
11014         safely initialized earlier.
11016         regex: avoid copying of uninitialized storage
11017         * config/srclist.txt: Comment out regcomp.c temporarily.
11018         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
11019         Initialize even when not checking for lint, as the behavior is
11020         arguably undefined otherwise and Coverity warns about it.
11022 2019-10-06  Bruno Haible  <bruno@clisp.org>
11024         access tests: Fix test failure when run as root.
11025         * tests/test-access.c: Include root-uid.h.
11026         (geteuid): Define fallback.
11027         (main): Don't expect that writing to a read-only file would fail when
11028         running as root. Also, remove the created files at the end.
11029         * modules/access-tests (Depends-on): Add root-uid.
11030         (configure.ac): Test whether geteuid exists.
11032 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
11034         users.txt: add GNU nano
11035         Nano has been making use of gnulib since March 2017, version 2.8.0.
11037 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11039         bootstrap: simplify debugging of wget failures
11040         Problem reported by Tim Rühsen in:
11041         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
11042         * build-aux/bootstrap (po_download_command_format):
11043         Invoke wget with -nv instead of -q, to make debugging easier.
11045 2019-09-29  Bruno Haible  <bruno@clisp.org>
11047         avltree-list: Fix compilation warning (introduced on 2014-09-16).
11048         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
11049         'const' attribute.
11051 2019-09-29  Bruno Haible  <bruno@clisp.org>
11053         fbufmode: Fix compilation error on glibc >= 2.28 systems.
11054         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
11056 2019-09-28  Bruno Haible  <bruno@clisp.org>
11058         Update comments that refer to POSIX.
11059         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
11060         sentence about trailing slashes.
11061         * lib/fflush.c: Clarify the reasoning.
11062         * tests/test-fflush2.c: Cite the relevant sentence.
11064 2019-09-28  Bruno Haible  <bruno@clisp.org>
11066         access: Document limitations on Windows.
11067         Suggested by Zaretskii <eliz@gnu.org>.
11068         * doc/posix-functions/access.texi: Mention two limitations on Windows.
11070 2019-09-28  Bruno Haible  <bruno@clisp.org>
11072         findprog-in: Fix comment.
11073         Reported by Eli Zaretskii <eliz@gnu.org>.
11074         * lib/findprog.h (find_in_given_path): Extend description of EACCES
11075         condition.
11076         * lib/stat.c (rpl_stat): Fix typo in comment.
11077         * lib/utime.c (_gl_utimens_windows): Likewise.
11079 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11081         Update URLs and associated text
11082         (Thanks to Bruno Haible for proofreading this patch.)
11083         Prefer https: to http: in URLs where either will do, for the usual
11084         security reasons.  I also updated broken and/or moved URLs
11085         discovered during the process. In a few places I had to resort to
11086         archive.org, since I didn't find the originals elsewhere.
11088 2019-09-15  Paul Smith  <psmith@gnu.org>
11089             Bruno Haible  <bruno@clisp.org>
11091         findprog-in: Set errno when the search fails.
11092         * lib/findprog-in.c: Include <errno.h>.
11093         (find_in_given_path): Set errno before returning NULL.
11094         * lib/findprog.h (find_in_given_path): Update comment accordingly.
11095         Define the term "slash".
11097 2019-09-15  Bruno Haible  <bruno@clisp.org>
11099         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
11100         * modules/findprog (Depends-on): Add access.
11101         * modules/findprog-lgpl (Depends-on): Likewise.
11102         * modules/findprog-in (Depends-on): Likewise.
11104 2019-09-15  Bruno Haible  <bruno@clisp.org>
11106         access: Add tests.
11107         * tests/test-access.c: New file.
11108         * modules/access-tests: New file.
11110         access: New module.
11111         * lib/unistd.in.h (access): New declaration.
11112         * lib/access.c: New file.
11113         * m4/access.m4: New file.
11114         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
11115         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
11116         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
11117         REPLACE_ACCESS.
11118         * modules/access: New file.
11119         * tests/test-unistd-c++.cc (access): Check signature.
11120         * doc/posix-functions/access.texi: Mention the new module.
11122 2019-09-15  Bruno Haible  <bruno@clisp.org>
11124         fcntl-h: Fix compilation error of creat.c on MSVC.
11125         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
11126         defined.
11128 2019-09-15  Bruno Haible  <bruno@clisp.org>
11130         creat: Add tests.
11131         * tests/test-creat.c: New file, based on tests/test-open.h.
11132         * modules/creat-tests: New file.
11134         creat: New module.
11135         * lib/fcntl.in.h (creat): New declaration.
11136         * lib/creat.c: New file, based on lib/open.c.
11137         * m4/creat.m4: New file.
11138         * m4/open-slash.m4: New file, extracted from m4/open.m4.
11139         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
11140         Invoke gl_OPEN_TRAILING_SLASH_BUG.
11141         * modules/open (Files): Add m4/open-slash.m4.
11142         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
11143         REPLACE_CREAT.
11144         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
11145         * modules/creat: New file.
11146         * tests/test-fcntl-h-c++.cc (creat): Check signature.
11147         * doc/posix-functions/creat.texi: Mention the new module.
11149 2019-09-15  Bruno Haible  <bruno@clisp.org>
11151         open tests: Enhance test.
11152         * tests/test-open.h (test_open): Test the creation of an executable
11153         regular file. Also improve initial cleanup.
11155 2019-09-15  Bruno Haible  <bruno@clisp.org>
11157         intprops tests: Avoid build failure with HP-UX cc.
11158         * tests/test-intprops.c: Disable a check that makes HP cc choke with
11159         "error 4018: Macro param too large after substitution - use -H option.".
11161 2019-09-14  Bruno Haible  <bruno@clisp.org>
11163         Make autoconf tests work with -Werror=implicit-function-declaration.
11164         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
11165         towupper() declaration.
11166         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
11167         declaration.
11169 2019-09-14  Bruno Haible  <bruno@clisp.org>
11171         findprog-in: Better mimic the system on native Windows.
11172         Reported by Paul Smith <psmith@gnu.org>.
11173         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
11174         non-empty suffixes when the file name already contains a '.'.
11176 2019-09-10  Bruno Haible  <bruno@clisp.org>
11178         wctob: Fix autoconf test.
11179         Based on patch by Florian Weimer <fweimer@redhat.com>.
11180         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
11182 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
11184         xhash: provide hash_xinitialize.
11185         Suggested by Egor Pugin <egor.pugin@gmail.com>
11186         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
11187         * modules/xhash, lib/xhash.c: New.
11188         * lib/hash.h (hash_xinitialize): New.
11190 2019-09-09  Bruno Haible  <bruno@clisp.org>
11192         findprog-in: Make exec optimization optional.
11193         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
11194         (find_in_given_path): Add optimize_for_exec parameter.
11195         * lib/findprog-in.c (find_in_given_path): Likewise.
11197 2019-09-08  Bruno Haible  <bruno@clisp.org>
11199         Add option to assume the best, not the worst, when cross-compiling.
11200         Suggested by Jonas Termansen <sortie@maxsi.org>.
11201         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
11202         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
11203         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
11204         lt_cv_sys_argz_works.
11205         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
11206         ac_cv_func_calloc_0_nonnull.
11207         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
11208         --enable-cross-guesses for gl_cv_func_realpath_works.
11209         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
11210         gl_cv_func_cbrtl_ieee.
11211         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
11212         gl_cv_func_ceil_ieee.
11213         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
11214         gl_cv_func_ceilf_ieee.
11215         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
11216         gl_cv_func_ceill_ieee.
11217         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
11218         ac_cv_func_chown_works.
11219         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
11220         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
11221         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
11222         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
11223         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
11224         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
11225         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
11226         gl_cv_func_expl_works.
11227         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
11228         gl_cv_func_expm1_ieee.
11229         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
11230         gl_cv_func_expm1l_works.
11231         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
11232         gl_cv_func_open_directory_works.
11233         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
11234         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
11235         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
11236         gl_cv_func_fchownat_empty_filename_works.
11237         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
11238         gl_cv_func_fdopendir_works.
11239         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
11240         gl_cv_func_floor_ieee.
11241         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
11242         gl_cv_func_floorf_ieee.
11243         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
11244         gl_cv_func_fma_works.
11245         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
11246         gl_cv_func_fmaf_works.
11247         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
11248         gl_cv_func_fmal_works.
11249         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
11250         gl_cv_func_fmod_ieee.
11251         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
11252         gl_cv_func_fmodf_ieee.
11253         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
11254         gl_cv_func_fmodl_ieee.
11255         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
11256         gl_cv_func_fpurge_works.
11257         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
11258         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
11259         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
11260         gl_cv_func_getcwd_null.
11261         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
11262         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
11263         gl_cv_func_working_getdelim.
11264         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
11265         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
11266         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
11267         gl_cv_func_getgroups_works.
11268         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
11269         am_cv_func_working_getline.
11270         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
11271         for gl_cv_func_getopt_gnu.
11272         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
11273         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
11274         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
11275         gl_cv_func_hypot_ieee.
11276         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
11277         gl_cv_func_hypotf_ieee.
11278         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
11279         gl_cv_func_hypotl_ieee.
11280         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
11281         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
11282         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
11283         gl_cv_func_link_works.
11284         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
11285         gl_cv_func_linkat_slash.
11286         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
11287         gl_cv_func_log_ieee.
11288         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
11289         gl_cv_func_logf_ieee.
11290         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
11291         gl_cv_func_logl_works.
11292         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
11293         gl_cv_func_log10_ieee.
11294         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
11295         gl_cv_func_log10f_ieee.
11296         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
11297         gl_cv_func_log10l_works.
11298         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
11299         gl_cv_func_log1p_ieee.
11300         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
11301         gl_cv_func_log1pf_ieee.
11302         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
11303         gl_cv_func_log1pl_ieee.
11304         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
11305         gl_cv_func_log2_ieee.
11306         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
11307         gl_cv_func_log2f_ieee.
11308         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
11309         --enable-cross-guesses for
11310         gl_cv_func_lstat_dereferences_slashed_symlink.
11311         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
11312         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
11313         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
11314         gl_cv_C_locale_sans_EILSEQ.
11315         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
11316         gl_cv_func_memchr_works.
11317         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
11318         gl_cv_func_memmem_works_always.
11319         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
11320         gl_cv_func_memmem_works_fast.
11321         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
11322         gl_cv_func_mkdir_trailing_slash_works,
11323         gl_cv_func_mkdir_trailing_dot_works.
11324         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
11325         gl_cv_func_mkfifo_works.
11326         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
11327         gl_cv_func_mknod_works.
11328         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
11329         gl_cv_func_working_mkstemp.
11330         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
11331         gl_cv_func_working_mktime.
11332         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
11333         gl_cv_func_modf_ieee.
11334         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
11335         gl_cv_func_modff_ieee.
11336         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
11337         gl_cv_func_modfl_ieee.
11338         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
11339         gl_cv_func_nanosleep.
11340         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
11341         gl_cv_func_perror_works.
11342         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
11343         gl_cv_func_printf_sizes_c99.
11344         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
11345         gl_cv_func_printf_infinite.
11346         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
11347         gl_cv_func_printf_infinite_long_double.
11348         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
11349         gl_cv_func_printf_directive_a.
11350         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
11351         gl_cv_func_printf_directive_f.
11352         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
11353         gl_cv_func_printf_flag_zero.
11354         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
11355         gl_cv_func_printf_enomem.
11356         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
11357         gl_cv_func_snprintf_truncation_c99.
11358         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
11359         gl_cv_func_snprintf_retval_c99.
11360         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
11361         gl_cv_func_snprintf_directive_n.
11362         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
11363         gl_cv_func_vsnprintf_zerosize_c99.
11364         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
11365         gl_cv_func_pselect_detects_ebadf.
11366         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
11367         Obey --enable-cross-guesses for
11368         gl_cv_pthread_rwlock_rdlock_prefer_writer.
11369         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
11370         gl_cv_func_ptsname_sets_errno.
11371         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
11372         gl_cv_func_svid_putenv.
11373         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
11374         gl_cv_func_readlink_works.
11375         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
11376         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
11377         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
11378         gl_cv_func_re_compile_pattern_working.
11379         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
11380         gl_cv_func_remainder_ieee.
11381         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
11382         gl_cv_func_remainderf_ieee.
11383         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
11384         gl_cv_func_remainderl_ieee.
11385         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
11386         gl_cv_func_rintl_works.
11387         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
11388         gl_cv_func_rmdir_works.
11389         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
11390         gl_cv_func_round_ieee.
11391         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
11392         gl_cv_func_roundf_ieee.
11393         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
11394         gl_cv_func_roundl_ieee.
11395         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
11396         gl_cv_func_select_detects_ebadf.
11397         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
11398         gl_cv_func_setenv_works.
11399         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
11400         gl_cv_func_unsetenv_works.
11401         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
11402         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
11403         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
11404         gl_cv_func_sleep_works.
11405         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
11406         gl_cv_func_stat_file_slash.
11407         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
11408         gl_cv_func_stpncpy.
11409         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
11410         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
11411         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
11412         gl_cv_func_strcasestr_linear.
11413         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
11414         gl_cv_func_working_strerror.
11415         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
11416         gl_cv_func_strerror_0_works.
11417         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
11418         --enable-cross-guesses for gl_cv_func_strerror_r_works.
11419         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
11420         gl_cv_func_strstr_works_always.
11421         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
11422         gl_cv_func_strstr_linear.
11423         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
11424         gl_cv_func_strtod_works.
11425         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
11426         gl_cv_func_strtold_works.
11427         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
11428         gl_cv_func_symlink_works.
11429         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
11430         gl_cv_func_symlinkat_works.
11431         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
11432         gl_cv_func_trunc_ieee.
11433         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
11434         gl_cv_func_truncf_ieee.
11435         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
11436         gl_cv_func_truncl_ieee.
11437         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
11438         gl_cv_func_tzset_clobber.
11439         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
11440         gl_cv_func_ungetc_works.
11441         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
11442         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
11443         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
11444         gl_cv_func_usleep_works.
11445         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
11446         gl_cv_func_futimesat_works.
11447         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
11448         gl_cv_func_working_utimes.
11449         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
11450         gl_cv_func_wcwidth_works.
11451         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
11452         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
11453         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
11454         links for testing. Obey --enable-cross-guesses for
11455         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
11456         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
11458 2019-09-08  Bruno Haible  <bruno@clisp.org>
11460         Clarify that cross-compilation guesses are guesses.
11461         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
11462         cross-compiling.
11464 2019-09-08  Bruno Haible  <bruno@clisp.org>
11466         chown: Fix configure output (regression from 2019-03-23).
11467         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
11468         gl_cv_func_chown_follows_symlink variable.
11470 2019-09-08  Bruno Haible  <bruno@clisp.org>
11472         findprog-in: New module.
11473         Suggested by Paul Smith <psmith@gnu.org>.
11474         * lib/findprog.h (find_in_given_path): New declaration.
11475         * lib/findprog-in.c: New file, based on lib/findprog.c.
11476         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
11477         * modules/findprog-in: New file.
11479 2019-09-08  Bruno Haible  <bruno@clisp.org>
11481         findprog: Remove unused dependency.
11482         * modules/findprog (Depends-on): Remove strdup.
11484 2019-09-08  Bruno Haible  <bruno@clisp.org>
11486         findprog: Remove test that is obsolete since 2006-04-24.
11487         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
11489 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
11491         bitset: style changes
11492         * lib/bitset/vector.c (vbitset_resize): Factor computation.
11493         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
11494         xzalloc to xcalloc.
11495         Suggested by Paul Eggert.
11497 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
11499         bitset: check memory allocation
11500         Reported by 江 祖铭 (Zu-Ming Jiang).
11501         With help from Paul Eggert.
11502         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
11503         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
11504         instead of realloc.
11505         When shrinking, accept failures.
11506         * lib/bitset/vector.c (vbitset_resize): Likewise.
11508 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
11510         scratch_buffer: sync from glibc
11511         * config/srclist.txt: Add the scratch_buffer source
11512         code from glibc, since these should be in sync.
11513         Autoupdate.
11515 2019-09-07  Bruno Haible  <bruno@clisp.org>
11517         doc: Update for glibc 2.30.
11518         * doc/glibc-functions/gettid.texi: New file.
11519         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
11520         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
11521         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
11522         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
11523         * doc/glibc-functions/sem_clockwait.texi: New file.
11524         * doc/glibc-functions/tgkill.texi: New file.
11525         * doc/glibc-functions/twalk_r.texi: New file.
11526         * doc/gnulib.texi: Include them.
11527         (Glibc semaphore.h): New section.
11528         * doc/pastposix-functions/h_errno.texi: Update.
11529         * doc/posix-functions/*.texi: Likewise.
11531 2019-09-06  Bruno Haible  <bruno@clisp.org>
11533         symlink tests: Avoid test failure on Linux with Lustre file system.
11534         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
11535         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
11536         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
11538 2019-09-01  Bruno Haible  <bruno@clisp.org>
11540         gitsub.sh: Add support for shallow-cloning of subdirectories.
11541         * top/gitsub.sh (func_usage): Document allowed git options with
11542         'git pull'.
11543         (func_pull): Accept GIT_OPTIONS argument.
11544         (pull): Parse git options before complaining about too many arguments.
11545         Pass the git options to func_pull.
11547 2019-08-29  Bruno Haible  <bruno@clisp.org>
11549         lock: Fix cross-compilation guesses.
11550         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
11551         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
11552         platforms.
11554 2019-08-28  Bruno Haible  <bruno@clisp.org>
11556         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
11557         Reported by Martin Storsjö <martin@martin.st> in
11558         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
11559         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
11560         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
11561         files from GCC 6 or newer, use an override through '#define', because
11562         the inline definitions in the platform's <cmath> cannot be overridden
11563         in another way.
11565 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
11567         Revert macOS INT_MULTIPLY_WRAPV patch
11568         Problem reported by Bruno Haible in:
11569         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
11570         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
11571         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
11572         Go back to working around the Clang bug on macOS.
11574 2019-08-27  Bruno Haible  <bruno@clisp.org>
11576         libtool-next-version: Fix error output.
11577         * build-aux/libtool-next-version (func_fatal_error): Fix the program
11578         name.
11580 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
11582         Speed up INT_MULTIPLY_WRAPV on macOS
11583         Assume that __builtin_mul_overflow works OK with Clang on macOS.
11584         Mattias Engdegård says it’s safe to assume the relevant library
11585         is always available there.
11586         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
11587         New temporary internal macro.
11588         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
11589         No need to work around the Clang bug on macOS.
11591 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11593         intprops.h, verify.h: port better to clang
11594         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
11595         with Clang.  Problem reported privately by Mattias Engdegård.
11596         Also, insulate intprops.h and verify.h better against each other’s
11597         definitions of __has_builtin on non-Clang hosts.
11598         * lib/intprops.h (__has_builtin): Define a temporary substitute
11599         if __has_builtin is not already defined.
11600         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
11601         New temporary internal macros.
11602         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
11603         Now two separate macros, replacing the old
11604         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
11605         __builtin_mul_overflow is like the rest.  All uses changed.
11606         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
11607         Adjust to above changes.
11608         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
11609         longer relevant.  All uses changed.
11610         * lib/verify.h (__has_builtin): Treat like intprops.h,
11611         so that the two .h files do not collide with each other.
11612         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
11613         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
11615 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11617         intprops: say why not Clang __builtin_add_overflow
11618         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
11619         Mention Clang in comment, responding to a query from
11620         Mattias Engdegård.
11622 2019-08-24  Bruno Haible  <bruno@clisp.org>
11624         doc: Document most of the files outside of modules.
11625         * doc/gnulib.texi (Build Infrastructure Files,
11626         Release Management Files): New chapters.
11628 2019-08-24  Bruno Haible  <bruno@clisp.org>
11630         bootstrap: Keep in sync with the 'gettext' module.
11631         Reported by Assaf Gordon in
11632         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
11633         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
11634         * build-aux/po/remove-potcdate.sin: Likewise.
11636 2019-08-24  Bruno Haible  <bruno@clisp.org>
11638         crypto/gc-sha512: Add tests.
11639         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
11640         * modules/crypto/gc-sha512-tests: New file.
11642         crypto/gc-sha256: Add tests.
11643         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
11644         * modules/crypto/gc-sha256-tests: New file.
11646         crypto/gc-sha256, crypto/gc-sha512: New modules.
11647         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
11648         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
11649         (MAX_DIGEST_SIZE): Set to 64.
11650         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
11651         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
11652         (gc_sha256, gc_sha512): New functions.
11653         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
11654         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
11655         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
11657 2019-08-24  Bruno Haible  <bruno@clisp.org>
11659         crypto/gc-sha1 tests: Improve output when the test fails.
11660         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
11661         output.
11663 2019-08-24  Bruno Haible  <bruno@clisp.org>
11665         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
11666         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
11667         LIBGCRYPT_HAS_MD_SM3.
11668         * lib/gc-libgcrypt.c: Include sm3.h.
11669         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
11670         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
11671         implementation if libgcrypt does not support SM3.
11673 2019-08-24  Bruno Haible  <bruno@clisp.org>
11675         crypto/gc-md2: Optimize and clarify code.
11676         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
11677         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
11678         is not needed.
11680 2019-08-24  Bruno Haible  <bruno@clisp.org>
11682         crypto/gc-md2: Add comment.
11683         * lib/gc-libgcrypt.c: Add comment.
11685 2019-08-24  Bruno Haible  <bruno@clisp.org>
11687         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
11688         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
11689         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
11690         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
11691         variable.
11693 2019-08-24  Bruno Haible  <bruno@clisp.org>
11695         crypto/gc: Fix link error with --with-libgcrypt.
11696         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
11697         AC_LIB_HAVE_LINKFLAGS invocation.
11699 2019-08-24  Bruno Haible  <bruno@clisp.org>
11701         crypto/gc: Access the module indicators correctly.
11702         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
11703         * lib/gc-libgcrypt.c: Likewise.
11705 2019-08-24  Bruno Haible  <bruno@clisp.org>
11707         crypto/gc: Fix configuration with --with-libgcrypt.
11708         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
11709         * modules/crypto/gc (Files): Add it.
11710         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
11712 2019-08-24  Bruno Haible  <bruno@clisp.org>
11714         Remove unused file.
11715         * m4/stat-macros.m4: Remove file.
11717 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
11719         New strip-trailing-space option for srclist-update
11720         * config/srclist-update (fixfile): Support new option.
11721         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
11722         Use it.
11724 2019-08-20  Eric Blake  <eblake@redhat.com>
11726         accept4: Support SOCK_NONBLOCK, if defined
11727         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
11729         accept4: Fix compilation when native accept4() exists.
11730         Reported by Richard W.M. Jones <rjones@redhat.com> in
11731         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
11732         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
11734 2019-08-18  Bruno Haible  <bruno@clisp.org>
11736         Defeat -flto GCC optimization in math autoconf tests.
11737         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
11738         at <https://savannah.gnu.org/bugs/?56109>.
11739         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
11740         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
11741         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11742         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11743         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11744         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
11745         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11746         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
11747         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
11748         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11749         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11750         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11752 2019-08-17  Bruno Haible  <bruno@clisp.org>
11754         windows-spin: Implement declared functions.
11755         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
11756         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
11757         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
11758         name.
11760 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11762         intprops: port to Oracle Developer Studio 12.6
11763         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
11764         typos that were in a section not compiled by GCC.
11766 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11768         intprops: support uchar, ushort _WRAPV dests
11769         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
11770         when __builtin_add_overflow etc. and _Generic are not used.
11771         (_GL_INT_OP_WRAPV): Use it to support destinations that
11772         are unsigned char or unsigned short, even in compilers
11773         that lack __typeof__ and are not C11-compatible.
11775         intprops: pacify picky GCC
11776         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
11777         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
11778         possibly-incorrect result.
11779         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
11780         about (A) used as a boolean, when A is an expression like 3 * 4.
11782         intprops: support unsigned *_WRAPV results
11783         Add support for unsigned, unsigned long, and unsigned long long
11784         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
11785         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
11786         bug with unsigned inputs reported by Eli Zaretskii in:
11787         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
11788         * config/srclist.txt: Break the glibc connection for intprops.h
11789         temporarily, while more testing is done in Gnulib-using apps.
11790         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
11791         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
11792         Support unsigned results no narrower than unsigned int.  Report
11793         overflow correctly if some arguments are unsigned.
11794         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
11795         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
11796         the right thing with narrow args.
11797         (_GL_INT_OP_CALC1): Remove.  All callers removed.
11798         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
11799         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
11800         * tests/test-intprops.c: Check for bugs and test new behavior.
11802 2019-08-14  Bruno Haible  <bruno@clisp.org>
11804         get_progname_of: New module.
11805         * lib/get_progname_of.h: New file.
11806         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
11807         * lib/getprogname.c (getprogname): Tweak coding style.
11808         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
11809         * modules/get_progname_of: New file.
11811 2019-08-14  Bruno Haible  <bruno@clisp.org>
11813         get_ppid_of: New module.
11814         * lib/get_ppid_of.h: New file.
11815         * lib/get_ppid_of.c: New file.
11816         * modules/get_ppid_of: New file.
11818 2019-08-13  Bruno Haible  <bruno@clisp.org>
11820         libtextstyle-optional tests: Support the NO_COLOR environment variable.
11821         * tests/test-libtextstyle.c (main): Do not emit styling when the
11822         environment variable NO_COLOR is set.
11824 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
11826         verify: improve diagnostic quality in recent GCC
11827         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
11828         useful line number containing the top-level caller of the macro.
11829         So, bring back the older way of issuing a diagnostic containing
11830         the top-level call’s arg, so that it is easier to diagnose
11831         ‘verify’ failures with recent GCC.
11832         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
11833         Bring back DIAGNOSTIC arg.  All callers changed.
11834         (verify): Just use _GL_VERIFY.
11836 2019-08-11  Bruno Haible  <bruno@clisp.org>
11838         localcharset: Add more aliases for OS/2.
11839         Based on patch by KO Myung-Hun <komh78@gmail.com> in
11840         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
11841         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
11843 2019-08-10  Eric Blake  <eblake@redhat.com>
11845         configmake: Update advice on usage.
11846         * modules/configmake (Include): No longer necessary to include
11847         last, since configmake.h itself worries about collision avoidance.
11849 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
11851         parse-datetime: fix 'T' military timezone handling
11852         * lib/parse-datetime.y (zone):
11853         follow-up to the previous commit: the 'T' case is handled outside the
11854         conversion table (used as either military timezone UTC-7 or ISO8601
11855         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
11856         timezone letters.
11858 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
11860         parse-datetime: fix military timezone letters
11861         Problem and trivial fix reported by Neil Hoggarth in:
11862         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
11863         * lib/parse-datetime.y (military_table):
11864         Do it the right way, not the RFC 822 way.
11866 2019-08-08  Eric Blake  <eblake@redhat.com>
11868         configmake: Avoid namespace pollution issue on mingw.
11869         * modules/configmake (Makefile.am): If the project uses
11870         <winsock2.h>, include that header before defining DATADIR.
11872 2019-07-28  Bruno Haible  <bruno@clisp.org>
11874         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
11875         * tests/test-mbrtowc.c (main): Fix expected value of wc.
11877 2019-07-24  Bruno Haible  <bruno@clisp.org>
11879         pthread-h: Fix definitions of types and macros on mingw.
11880         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
11881         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
11882         not in use.
11883         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
11884         'pthread-once' is not in use.
11885         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
11886         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
11887         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
11888         in use.
11889         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
11890         Define also when module 'pthread-rwlock' is not in use.
11891         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
11892         also when module 'pthread-cond' is not in use.
11893         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
11894         'pthread-tss' is not in use.
11895         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
11896         use.
11898 2019-07-24  Simon Josefsson  <simon@josefsson.org>
11900         crypto/gc: Cope with libgcrypt without SM3.
11901         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
11903 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
11905         backupfile: fix resource leak on memory failure
11906         Problem found by Coverity (CID 1484214).
11907         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
11909 2019-07-22  Bruno Haible  <bruno@clisp.org>
11911         Avoid missing-declarations warning in various tests.
11912         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
11913         test6, test_optional, test7, test8, test9, test10, test11, test12,
11914         test13, test14, test15, test_fun): Declare static.
11915         * tests/test-cnd.c (test_cnd_wait): Likewise.
11916         * tests/test-cond.c (test_cond): Likewise.
11918 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
11920         pthread tests: Avoid missing-declarations warning.
11921         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
11923 2019-07-19  Bruno Haible  <bruno@clisp.org>
11925         parse-datetime: Avoid warnings from bison versions >= 3.3.
11926         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
11927         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
11929 2019-07-19  Bruno Haible  <bruno@clisp.org>
11931         parse-datetime: Require Bison 2.4 or newer.
11932         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
11933         Code taken from gettext's intl.m4.
11934         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
11935         of YACC.
11937 2019-07-19  Bruno Haible  <bruno@clisp.org>
11939         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
11940         * lib/areadlink-with-size.c: Include <string.h>.
11941         * lib/areadlinkat-with-size.c: Likewise.
11942         * lib/xgethostname.c: Likewise.
11943         * lib/xgetdomainname.c: Likewise.
11945 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
11947         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
11948         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
11949         "%pure-parser".  The former is available since Bison 2.3b (2008),
11950         while the latter is marked as obsolete since version 3.4 (May 2019).
11952 2019-07-16  Bruno Haible  <bruno@clisp.org>
11954         update-copyright: Make it work again (regression from 2019-06-15).
11955         Reported by Brian C. Lane <bcl@redhat.com>.
11956         * build-aux/update-copyright: Add back the -0777, -p, -i options.
11958 2019-07-14  Bruno Haible  <bruno@clisp.org>
11960         doc: Update info about <pthread.h>.
11961         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
11962         of 'pthread'.
11964 2019-07-14  Bruno Haible  <bruno@clisp.org>
11966         pthread_sigmask tests: Use new multithread modules.
11967         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
11968         glthread/thread.h.
11969         (main_thread, killer_thread): Change type to pthread_t.
11970         (main): Update accordingly.
11971         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
11972         thread.
11974 2019-07-14  Bruno Haible  <bruno@clisp.org>
11976         pthread-tss: Add tests.
11977         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
11978         tests/test-tss.c.
11979         * modules/pthread-tss-tests: New file.
11981 2019-07-14  Bruno Haible  <bruno@clisp.org>
11983         pthread-cond: Add tests.
11984         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
11985         tests/test-cnd.c.
11986         * modules/pthread-cond-tests: New file.
11988 2019-07-14  Bruno Haible  <bruno@clisp.org>
11990         pthread-rwlock: Add tests.
11991         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
11992         * modules/pthread-rwlock-tests: New file.
11994 2019-07-14  Bruno Haible  <bruno@clisp.org>
11996         pthread-mutex: Add tests.
11997         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
11998         tests/test-mtx.c.
11999         * modules/pthread-mutex-tests: New file.
12001 2019-07-14  Bruno Haible  <bruno@clisp.org>
12003         pthread-once: Add tests.
12004         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
12005         tests/test-call_once.c.
12006         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
12007         tests/test-mtx.c.
12008         * modules/pthread-once-tests: New file.
12010 2019-07-14  Bruno Haible  <bruno@clisp.org>
12012         pthread-thread: Add tests.
12013         * tests/test-pthread-thread.c: New file, based on
12014         tests/test-thread_create.c and tests/test-thrd_create.c.
12015         * modules/pthread-thread-tests: New file.
12017 2019-07-14  Bruno Haible  <bruno@clisp.org>
12019         pthread: Turn into a convenience module.
12020         * lib/pthread.in.h: Remove declarations for extern inline functions.
12021         * lib/pthread.c: Remove file.
12022         * modules/pthread (Files): Remove it.
12023         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
12024         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
12025         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
12026         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
12027         GNULIB_PTHREAD.
12028         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
12030 2019-07-14  Bruno Haible  <bruno@clisp.org>
12032         pthread-spin: New module.
12033         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
12034         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
12035         inline definitions.
12036         * lib/pthread-spin.c: New file.
12037         * m4/pthread-spin.m4: New file.
12038         * modules/pthread-spin: New file.
12039         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
12040         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
12041         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
12042         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
12043         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
12045 2019-07-14  Bruno Haible  <bruno@clisp.org>
12047         pthread-tss: New module.
12048         * lib/pthread-tss.c: New file.
12049         * m4/pthread-tss.m4: New file.
12050         * modules/pthread-tss: New file.
12051         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
12052         * doc/posix-functions/pthread_setspecific.texi: Likewise.
12053         * doc/posix-functions/pthread_getspecific.texi: Likewise.
12054         * doc/posix-functions/pthread_key_delete.texi: Likewise.
12056 2019-07-14  Bruno Haible  <bruno@clisp.org>
12058         pthread-cond: New module.
12059         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
12060         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
12061         * lib/pthread-cond.c: New file.
12062         * m4/pthread-cond.m4: New file.
12063         * modules/pthread-cond: New file.
12064         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
12065         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
12066         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
12067         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
12068         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
12069         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
12070         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
12071         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
12073 2019-07-14  Bruno Haible  <bruno@clisp.org>
12075         pthread-rwlock: New module.
12076         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
12077         * m4/pthread-rwlock.m4: New file.
12078         * modules/pthread-rwlock: New file.
12079         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
12080         and the Android problem.
12081         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
12082         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
12083         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
12084         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
12085         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
12086         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
12087         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
12088         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
12089         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
12090         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
12092 2019-07-14  Bruno Haible  <bruno@clisp.org>
12094         pthread-mutex: New module.
12095         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
12096         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
12097         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
12098         pthread_mutex_unlock): Remove inline definitions.
12099         * lib/pthread-mutex.c: New file.
12100         * m4/pthread-mutex.m4: New file.
12101         * modules/pthread-mutex: New file.
12102         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
12103         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
12104         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
12105         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
12106         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
12107         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
12108         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
12109         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
12110         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
12111         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
12112         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
12113         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
12115 2019-07-14  Bruno Haible  <bruno@clisp.org>
12117         pthread-once: New module.
12118         * lib/pthread-once.c: New file.
12119         * m4/pthread-once.m4: New file.
12120         * modules/pthread-once: New file.
12121         * doc/posix-functions/pthread_once.texi: Mention the new module.
12123 2019-07-14  Bruno Haible  <bruno@clisp.org>
12125         pthread-thread: New module.
12126         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
12127         inline definitions.
12128         * lib/pthread-thread.c: New file.
12129         * m4/pthread-thread.m4: New file.
12130         * modules/pthread-thread: New file.
12131         * doc/posix-functions/pthread_create.texi: Mention the new module.
12132         * doc/posix-functions/pthread_attr_init.texi: Likewise.
12133         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
12134         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
12135         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
12136         * doc/posix-functions/pthread_self.texi: Likewise.
12137         * doc/posix-functions/pthread_equal.texi: Likewise.
12138         * doc/posix-functions/pthread_detach.texi: Likewise.
12139         * doc/posix-functions/pthread_join.texi: Likewise.
12140         * doc/posix-functions/pthread_exit.texi: Likewise.
12142 2019-07-14  Bruno Haible  <bruno@clisp.org>
12144         pthread-h: Prepare for adding new modules.
12145         * lib/pthread.in.h: Define the types and macros for each of the
12146         facilities separately.
12147         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
12148         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
12149         HAVE_PTHREAD_PROCESS_SHARED.
12150         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
12151         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
12152         HAVE_PTHREAD_PROCESS_SHARED.
12153         * modules/pthread-h (Makefile.am): Substitute
12154         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
12155         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
12157 2019-07-14  Bruno Haible  <bruno@clisp.org>
12159         pthread-h: Add declarations of essential pthread functions.
12160         * lib/pthread.in.h: Include snippets.
12161         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
12162         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
12163         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
12164         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
12165         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
12166         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
12167         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
12168         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
12169         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
12170         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
12171         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
12172         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
12173         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
12174         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
12175         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
12176         pthread_key_create, pthread_setspecific, pthread_getspecific,
12177         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
12178         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
12179         declarations.
12180         (pthread_mutex_timedlock): Move declaration.
12181         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
12182         declared.
12183         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
12184         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
12185         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
12186         HAVE_* and REPLACE_* variables for the new functions.
12187         * modules/pthread-h (Depends-on): Add snippet/c++defs,
12188         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
12189         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
12190         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
12191         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
12192         variables for the new functions. Split the sed script, to avoid the
12193         limit of 99 commands of HP-UX sed.
12194         * tests/test-pthread-c++.cc: Check the signature of the new functions.
12196 2019-07-14  Bruno Haible  <bruno@clisp.org>
12198         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
12199         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
12200         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
12201         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
12202         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
12203         * modules/pthread-h (Depends-on): Add threadlib.
12204         (Link): Change to $(LIBTHREAD).
12205         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
12206         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
12208 2019-07-14  Bruno Haible  <bruno@clisp.org>
12210         pthread-h: Add C++ tests.
12211         * tests/test-pthread-c++.cc: New file.
12212         * modules/pthread-h-c++-tests: New file.
12214 2019-07-14  Bruno Haible  <bruno@clisp.org>
12216         pthread-h: Add tests.
12217         * tests/test-pthread.c: New file.
12218         * modules/pthread-h-tests: New file.
12220 2019-07-14  Bruno Haible  <bruno@clisp.org>
12222         pthread-h: New module.
12223         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
12224         is 1.
12225         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
12226         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
12227         <pthread.h> pollutes the namespace; instead, prepare for generating a
12228         pthread.h always. Substitute HAVE_PTHREAD_H here.
12229         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
12230         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
12231         * modules/pthread-h: New file, based on modules/pthread.
12232         * modules/pthread: Rely on 'pthread-h'.
12233         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
12234         Update.
12235         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
12236         pthread.
12238 2019-07-14  Bruno Haible  <bruno@clisp.org>
12240         sched_yield: New module.
12241         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
12242         (sched_yield): New declaration.
12243         * lib/sched_yield.c: New file.
12244         * m4/sched_yield.m4: New file.
12245         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
12246         provide a replacement sched.h always. Test whether sched_yield is
12247         declared.
12248         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
12249         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
12250         (Makefile.am): Provide a replacement sched.h always. Substitute
12251         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
12252         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
12253         * modules/sched_yield: New file.
12254         * doc/posix-functions/sched_yield.texi: Mention the new module.
12256 2019-07-14  Bruno Haible  <bruno@clisp.org>
12258         windows-spin: New module.
12259         * lib/windows-spin.h: New file.
12260         * lib/windows-spin.c: New file.
12261         * modules/windows-spin: New file.
12263 2019-07-14  Bruno Haible  <bruno@clisp.org>
12265         windows-timedrwlock: New module.
12266         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
12267         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
12268         windows-cond.c.
12269         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
12270         redefinition conflict with windows-timedrwlock.h.
12271         * modules/windows-timedrwlock: New file.
12273 2019-07-14  Bruno Haible  <bruno@clisp.org>
12275         windows-rwlock: New module.
12276         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
12277         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
12278         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
12279         windows-initguard.h.
12280         (gl_rwlock_t): Define using glwthread_rwlock_t.
12281         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
12282         (glthread_rwlock_init): Define using glwthread_rwlock_init.
12283         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
12284         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
12285         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
12286         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
12287         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
12288         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
12289         glthread_rwlock_destroy_func): Remove declarations.
12290         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
12291         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
12292         gl_waitqueue_notify_all, glthread_rwlock_init_func,
12293         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
12294         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
12295         functions.
12296         * modules/windows-rwlock: New file.
12297         * modules/lock (Depends-on): Add windows-rwlock.
12299 2019-07-14  Bruno Haible  <bruno@clisp.org>
12301         windows-thread: Add support for creating a thread in detached state.
12302         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
12303         (glwthread_thread_create): Add attr argument.
12304         * lib/windows-thread.c (glwthread_thread_create): Likewise.
12305         * lib/glthread/thread.h (glthread_create): Update.
12306         * lib/thrd.c (thrd_create): Update.
12308 2019-07-14  Bruno Haible  <bruno@clisp.org>
12310         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
12311         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
12312         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
12313         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
12314         * lib/windows-mutex.h: Update.
12315         * lib/windows-recmutex.h: Likewise.
12316         * lib/windows-timedmutex.h: Likewise.
12317         * lib/windows-timedrecmutex.h: Likewise.
12318         * lib/windows-cond.h: Likewise.
12319         * lib/glthread/lock.h: Likewise.
12320         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
12321         lib/windows-spinlock.h.
12322         * modules/windows-recmutex (Files): Likewise.
12323         * modules/windows-timedmutex (Files): Likewise.
12324         * modules/windows-timedrecmutex (Files): Likewise.
12325         * modules/windows-cond (Files): Likewise.
12326         * modules/threads-h (Files): Likewise.
12328 2019-07-14  Bruno Haible  <bruno@clisp.org>
12330         doc: Fix info about pthread API in HP-UX.
12331         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
12333 2019-07-14  Bruno Haible  <bruno@clisp.org>
12335         threads-h: Fix generation of threads.h.
12336         * modules/threads-h (Makefile.am): Insert the required header file
12337         snippets.
12339 2019-07-09  Bruno Haible  <bruno@clisp.org>
12341         striconveh test: Fix a compilation failure when iconv is not available.
12342         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12343         * tests/test-striconveh.c (main): Move iconv_close invocations inside
12344         HAVE_ICONV.
12346 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
12348         argmatch: adjust columns for help2man.
12349         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
12350         requires column 20 or more, return 20.
12352 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12354         areadlink-with-size: avoid realloc when size==0
12355         * lib/areadlink-with-size.c (areadlink_with_size):
12356         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
12357         Reallocate at the end to the actual size, to avoid memory waste,
12358         as suggested by Bruno Haible.  But when the guessed size is zero -
12359         useful when the size is unknown - do the initial small readlink
12360         into the stack, to avoid that realloc in the usual case.
12362 2019-07-06  Pádraig Brady  <P@draigBrady.com>
12364         areadlink-with-size: guess a buffer size with 0 size
12365         The size is usually taken from st_size, which can be zero,
12366         resulting in inefficient operation.
12367         Instead let zero select an initial memory allocation
12368         of 128 bytes, which most symlinks fit within.
12369         * lib/areadlink-with-size.c (areadlink_with_size):
12370         Start with a 128 byte buffer, for SIZE == 0.
12371         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
12373 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
12375         Replace manually crafted hex regexes with [:xdigit:]
12376         * build-aux/gitlog-to-changelog (parse_amend_file)
12377         (git_dir_option):
12378         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
12379         This patch is backported from Emacs (Bug#36167).
12381 2019-07-06  Bruno Haible  <bruno@clisp.org>
12383         error: Fix documentation.
12384         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
12385         module provides.
12386         * doc/glibc-functions/error_message_count.texi: Likewise.
12387         * doc/glibc-functions/error_one_per_line.texi: Likewise.
12388         * doc/glibc-functions/error_print_progname.texi: Likewise.
12390 2019-07-06  Bruno Haible  <bruno@clisp.org>
12392         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
12393         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
12394         and older is unsupported.
12395         * doc/**/*.texi: Update.
12397 2019-07-06  Bruno Haible  <bruno@clisp.org>
12399         doc: Remove documentation of Linux libc5 as a supported platform.
12400         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
12401         to Linux libc5.
12402         * doc/posix-functions/iswalpha.texi: Likewise.
12403         * doc/posix-functions/iswblank.texi: Likewise.
12404         * doc/posix-functions/iswcntrl.texi: Likewise.
12405         * doc/posix-functions/iswdigit.texi: Likewise.
12406         * doc/posix-functions/iswgraph.texi: Likewise.
12407         * doc/posix-functions/iswlower.texi: Likewise.
12408         * doc/posix-functions/iswprint.texi: Likewise.
12409         * doc/posix-functions/iswpunct.texi: Likewise.
12410         * doc/posix-functions/iswspace.texi: Likewise.
12411         * doc/posix-functions/iswupper.texi: Likewise.
12412         * doc/posix-functions/iswxdigit.texi: Likewise.
12413         * doc/posix-functions/snprintf.texi: Likewise.
12414         * doc/posix-functions/vsnprintf.texi: Likewise.
12416 2019-07-06  Bruno Haible  <bruno@clisp.org>
12418         doc: Remove documentation of Tandem/NSK as a supported platform.
12419         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
12420         Tandem/NSK.
12421         * doc/**/*.texi: Update.
12423 2019-07-06  Bruno Haible  <bruno@clisp.org>
12425         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
12426         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
12427         and older is unsupported.
12428         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
12429         Mac OS X 10.4 and older.
12430         * doc/posix-functions/asinl.texi: Likewise.
12431         * doc/posix-functions/atanl.texi: Likewise.
12432         * doc/posix-functions/cosl.texi: Likewise.
12433         * doc/posix-functions/expl.texi: Likewise.
12434         * doc/posix-functions/frexpl.texi: Likewise.
12435         * doc/posix-functions/gettimeofday.texi: Likewise.
12436         * doc/posix-functions/logl.texi: Likewise.
12437         * doc/posix-functions/mkstemp.texi: Likewise.
12438         * doc/posix-functions/sinl.texi: Likewise.
12439         * doc/posix-functions/sqrtl.texi: Likewise.
12440         * doc/posix-functions/tanl.texi: Likewise.
12441         * doc/posix-functions/wcswidth.texi: Likewise.
12442         * doc/**/*.texi: Update.
12444 2019-07-06  Bruno Haible  <bruno@clisp.org>
12446         doc: Remove documentation of AIX 4 as a supported platform.
12447         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
12448         unsupported.
12449         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
12450         workarounds.
12451         * doc/posix-functions/strnlen.texi: Likewise.
12452         * doc/posix-headers/inttypes.texi: Likewise.
12453         * doc/**/*.texi: Update.
12455 2019-07-06  Bruno Haible  <bruno@clisp.org>
12457         doc: Remove documentation of HP-UX 10 as a supported platform.
12458         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
12459         unsupported.
12460         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
12461         workarounds.
12462         * doc/posix-functions/gmtime_r.texi: Likewise.
12463         * doc/posix-functions/localtime_r.texi: Likewise.
12464         * doc/posix-functions/mkstemp.texi: Likewise.
12465         * doc/**/*.texi: Update.
12467 2019-07-06  Bruno Haible  <bruno@clisp.org>
12469         doc: Remove documentation of Interix 3.5 as a supported platform.
12470         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
12471         unsupported.
12472         * doc/posix-functions/select.texi: Don't mention Interix specific
12473         workarounds.
12474         * doc/posix-headers/signal.texi: Likewise.
12475         * doc/**/*.texi: Update.
12477 2019-07-06  Bruno Haible  <bruno@clisp.org>
12479         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
12480         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
12481         unsupported.
12482         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
12483         workarounds.
12484         * doc/posix-functions/nl_langinfo.texi: Likewise.
12485         * doc/posix-functions/remainder.texi: Likewise.
12486         * doc/posix-functions/towlower.texi: Likewise.
12487         * doc/posix-functions/towupper.texi: Likewise.
12488         * doc/posix-functions/vsnprintf.texi: Likewise.
12489         * doc/posix-functions/wcscat.texi: Likewise.
12490         * doc/posix-functions/wcschr.texi: Likewise.
12491         * doc/posix-functions/wcscmp.texi: Likewise.
12492         * doc/posix-functions/wcscpy.texi: Likewise.
12493         * doc/posix-functions/wcscspn.texi: Likewise.
12494         * doc/posix-functions/wcslen.texi: Likewise.
12495         * doc/posix-functions/wcsncat.texi: Likewise.
12496         * doc/posix-functions/wcsncmp.texi: Likewise.
12497         * doc/posix-functions/wcsncpy.texi: Likewise.
12498         * doc/posix-functions/wcspbrk.texi: Likewise.
12499         * doc/posix-functions/wcsrchr.texi: Likewise.
12500         * doc/posix-functions/wcsspn.texi: Likewise.
12501         * doc/posix-headers/langinfo.texi: Likewise.
12502         * doc/posix-headers/signal.texi: Likewise.
12503         * doc/posix-headers/wchar.texi: Likewise.
12504         * doc/posix-headers/wctype.texi: Likewise.
12505         * doc/**/*.texi: Update.
12507 2019-07-05  Bruno Haible  <bruno@clisp.org>
12509         doc: Remove documentation of OSF/1 as supported platform.
12510         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
12511         unsupported.
12512         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
12513         workarounds.
12514         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
12515         * doc/glibc-functions/ptsname_r.texi: Likewise.
12516         * doc/posix-functions/ceil.texi: Likewise.
12517         * doc/posix-functions/ceilf.texi: Likewise.
12518         * doc/posix-functions/ceill.texi: Likewise.
12519         * doc/posix-functions/fchdir.texi: Likewise.
12520         * doc/posix-functions/floor.texi: Likewise.
12521         * doc/posix-functions/floorf.texi: Likewise.
12522         * doc/posix-functions/fmod.texi: Likewise.
12523         * doc/posix-functions/fmodf.texi: Likewise.
12524         * doc/posix-functions/fmodl.texi: Likewise.
12525         * doc/posix-functions/log.texi: Likewise.
12526         * doc/posix-functions/logf.texi: Likewise.
12527         * doc/posix-functions/logl.texi: Likewise.
12528         * doc/posix-functions/log10.texi: Likewise.
12529         * doc/posix-functions/log10f.texi: Likewise.
12530         * doc/posix-functions/log10l.texi: Likewise.
12531         * doc/posix-functions/log2.texi: Likewise.
12532         * doc/posix-functions/log2f.texi: Likewise.
12533         * doc/posix-functions/log2l.texi: Likewise.
12534         * doc/posix-functions/mbrtowc.texi: Likewise.
12535         * doc/posix-functions/recv.texi: Likewise.
12536         * doc/posix-functions/recvfrom.texi: Likewise.
12537         * doc/posix-functions/remainder.texi: Likewise.
12538         * doc/posix-functions/remainderf.texi: Likewise.
12539         * doc/posix-functions/remainderl.texi: Likewise.
12540         * doc/posix-functions/round.texi: Likewise.
12541         * doc/posix-functions/roundf.texi: Likewise.
12542         * doc/posix-functions/roundl.texi: Likewise.
12543         * doc/posix-functions/send.texi: Likewise.
12544         * doc/posix-functions/sendto.texi: Likewise.
12545         * doc/posix-functions/setenv.texi: Likewise.
12546         * doc/posix-functions/snprintf.texi: Likewise.
12547         * doc/posix-functions/tcgetsid.texi: Likewise.
12548         * doc/posix-functions/trunc.texi: Likewise.
12549         * doc/posix-functions/truncf.texi: Likewise.
12550         * doc/posix-functions/truncl.texi: Likewise.
12551         * doc/posix-functions/ttyname_r.texi: Likewise.
12552         * doc/posix-functions/unsetenv.texi: Likewise.
12553         * doc/posix-functions/wcsrtombs.texi: Likewise.
12554         * doc/posix-headers/sys_select.texi: Likewise.
12555         * doc/posix-headers/wchar.texi: Likewise.
12556         * doc/posix-headers/wctype.texi: Likewise.
12557         * doc/**/*.texi: Update.
12559 2019-07-05  Bruno Haible  <bruno@clisp.org>
12561         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
12562         * doc/**/*.texi: Update.
12564 2019-07-05  Bruno Haible  <bruno@clisp.org>
12566         doc: Remove documentation of Solaris 8 and older as supported platforms.
12567         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
12568         unsupported.
12569         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
12570         workarounds.
12571         * doc/posix-functions/memcmp.texi: Likewise.
12572         * doc/posix-functions/rename.texi: Likewise.
12573         * doc/posix-functions/tzset.texi: Likewise.
12574         * doc/posix-headers/wctype.texi: Likewise.
12575         * doc/**/*.texi: Update.
12577 2019-07-05  Bruno Haible  <bruno@clisp.org>
12579         doc: Remove documentation of Interix 3.5 as a supported platform.
12580         * doc/**/*.texi: Update.
12582 2019-07-05  Bruno Haible  <bruno@clisp.org>
12584         doc: Remove documentation of BeOS as a supported platform.
12585         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
12586         unsupported.
12587         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
12588         * doc/posix-functions/getdelim.texi: Likewise.
12589         * doc/**/*.texi: Update.
12591 2019-07-05  Bruno Haible  <bruno@clisp.org>
12593         thread, lock, cond, tls: Remove support for Pth threads.
12594         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
12595         --enable-threads=pth any more.
12596         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
12597         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
12598         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
12599         threads and ISO C11 threads.
12600         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
12601         * lib/glthread/lock.h: Likewise.
12602         * lib/glthread/lock.c: Likewise.
12603         * lib/glthread/cond.h: Likewise.
12604         * lib/glthread/cond.c: Likewise.
12605         * lib/glthread/tls.h: Likewise.
12606         * lib/glthread/tls.c: Likewise.
12607         * lib/glthread/yield.h: Likewise.
12608         * lib/regex_internal.h: Likewise.
12609         * tests/test-thread_create.c: Likewise.
12610         * tests/test-lock.c: Likewise.
12611         * tests/test-cond.c: Likewise.
12612         * tests/test-tls.c: Likewise.
12613         * tests/test-rwlock1.c: Don't include glthread/yield.h.
12614         (main): Sleep without calling gl_thread_yield.
12616 2019-07-05  Bruno Haible  <bruno@clisp.org>
12618         thread, lock, cond, tls: Remove support for old Solaris threads.
12619         Solaris >= 2.5.1 has POSIX threads.
12620         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
12621         --enable-threads=solaris any more.
12622         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
12623         * lib/glthread/thread.c: Update comment.
12624         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
12625         * lib/glthread/lock.h: Likewise.
12626         * lib/glthread/lock.c: Likewise.
12627         * lib/glthread/cond.h: Likewise.
12628         * lib/glthread/cond.c: Likewise.
12629         * lib/glthread/tls.h: Likewise.
12630         * lib/glthread/tls.c: Likewise.
12631         * lib/glthread/yield.h: Likewise.
12632         * lib/regex_internal.h: Likewise.
12633         * tests/test-thread_create.c: Likewise.
12634         * tests/test-lock.c: Likewise.
12635         * tests/test-cond.c: Likewise.
12636         * tests/test-tls.c: Likewise.
12638 2019-07-05  Bruno Haible  <bruno@clisp.org>
12640         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
12641         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
12642         needed size is equal to the allocated size.
12643         * lib/getcwd.c (__getcwd): Likewise.
12645 2019-07-05  Bruno Haible  <bruno@clisp.org>
12647         xgetdomainname: Don't return an excessive memory allocation.
12648         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
12649         before returning it.
12651 2019-07-05  Bruno Haible  <bruno@clisp.org>
12653         xgethostname: Don't return an excessive memory allocation.
12654         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
12655         returning it.
12657 2019-07-05  Bruno Haible  <bruno@clisp.org>
12659         areadlinkat-with-size: Don't return an excessive memory allocation.
12660         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
12661         before returning it.
12663 2019-07-05  Bruno Haible  <bruno@clisp.org>
12665         areadlink-with-size: Don't return an excessive memory allocation.
12666         Reported by Andreas Dilger <adilger@whamcloud.com>.
12667         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
12668         before returning it.
12670 2019-07-03  Bruno Haible  <bruno@clisp.org>
12672         renameatu: Fix test failure on MSVC.
12673         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
12674         empty string.
12676 2019-07-03  Bruno Haible  <bruno@clisp.org>
12678         mbrtowc: Fix invalid use of mbtowc() on MSVC.
12679         * lib/mbrtowc.c: Include glthread/lock.h.
12680         (mbtowc_lock): New variable.
12681         (mbrtowc): Treat UTF-8 encoding without locking. For the other
12682         encodings, explicitly reset the internal state of mbtowc, and protect
12683         this through a lock.
12684         * modules/mbrtowc (Depends-on): Add lock.
12686 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
12688         argmatch: don't define _ in the header.
12689         Reported by Jim Meyering.
12690         * lib/argmatch.h (N_, _): Don't define.
12691         Use gettext instead.
12692         * lib/argmatch.h (_): Define.
12693         * tests/test-argmatch.c (N_): Define.
12695 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
12697         verify: document ‘assume’ better
12698         * lib/verify.h: Reword doc (Bug#36370).
12700 2019-07-02  Bruno Haible  <bruno@clisp.org>
12702         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
12703         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
12704         "CPutf8".
12705         * lib/nl_langinfo.c (ctype_codeset): Likewise.
12707 2019-07-02  Bruno Haible  <bruno@clisp.org>
12709         getcwd: Fix crash when invoked with size = 0 on MSVC.
12710         * lib/getcwd.c: Include msvc-inval.h.
12711         (getcwd_nothrow): New function/macro.
12712         (getcwd_system): New macro.
12713         (__getcwd): Use it instead of getcwd.
12714         * modules/getcwd (Depends-on): Add msvc-inval.
12715         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
12717 2019-07-02  Bruno Haible  <bruno@clisp.org>
12719         nonblocking-pipe tests: Fix test failure on MSVC.
12720         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
12721         native Windows.
12723 2019-07-02  Bruno Haible  <bruno@clisp.org>
12725         usleep: Implement with millisecond resolution on native Windows.
12726         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
12727         * doc/pastposix-functions/usleep.texi: Update accordingly.
12729 2019-07-02  Bruno Haible  <bruno@clisp.org>
12731         lstat tests: Fix test failure on MSVC.
12732         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
12733         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
12735 2019-07-02  Bruno Haible  <bruno@clisp.org>
12737         stat tests: Fix test failure on MSVC.
12738         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
12739         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
12741 2019-07-02  Bruno Haible  <bruno@clisp.org>
12743         getaddrinfo tests: Fix test failure on MSVC.
12744         * tests/test-getaddrinfo.c: Include sockets.h.
12745         (main): Invoke gl_sockets_startup.
12746         * modules/getaddrinfo-tests (Depends-on): Add sockets.
12748 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
12750         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
12751         * lib/poll.c: Call Windows native select() with Windows native timeval.
12753 2019-06-30  Bruno Haible  <bruno@clisp.org>
12755         argmatch: Fix compilation errors.
12756         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
12757         * tests/test-argmatch.c (main): Update after last-minute function names
12758         change.
12760 2019-06-30  Bruno Haible  <bruno@clisp.org>
12762         Include <stdlib.h> when needed.
12763         * lib/cnd.c: Include <stdlib.h>, needed for abort().
12764         * lib/fcntl.c: Likewise.
12765         * lib/mbscasestr.c: Likewise.
12766         * lib/mbssep.c: Likewise.
12767         * lib/mbsstr.c: Likewise.
12768         * lib/openat.c: Include <stdlib.h>, needed for free().
12769         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
12770         abort().
12772 2019-06-30  Bruno Haible  <bruno@clisp.org>
12774         Include <stdlib.h> when needed.
12775         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
12776         * lib/faccessat.c: Likewise.
12777         * lib/fchmodat.c: Likewise.
12778         * lib/fchownat.c: Likewise.
12779         * lib/fstatat.c: Likewise.
12780         * lib/mkfifoat.c: Likewise.
12781         * lib/mknodat.c: Likewise.
12782         * lib/readlinkat.c: Likewise.
12783         * lib/symlinkat.c: Likewise.
12784         * lib/utimensat.c: Likewise.
12785         * lib/mkdirat.c: Likewise. Include also the specification header.
12787 2019-06-30  Bruno Haible  <bruno@clisp.org>
12789         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
12790         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
12791         from gl_PREREQ_SYS_H_SOCKET.
12792         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
12793         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
12794         gl_PREREQ_SYS_H_WS2TCPIP.
12795         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
12796         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
12797         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
12799 2019-06-30  Bruno Haible  <bruno@clisp.org>
12801         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
12802         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
12803         REPLACE_INET_NTOP to 1 always.
12804         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
12805         REPLACE_INET_PTON to 1 always.
12807 2019-06-30  Bruno Haible  <bruno@clisp.org>
12809         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
12810         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
12811         not REPLACE_INET_NTOP.
12813 2019-06-30  Bruno Haible  <bruno@clisp.org>
12815         poll: Add comment.
12816         * lib/poll.c: Add comment about WSAPoll.
12818 2019-06-30  Bruno Haible  <bruno@clisp.org>
12820         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
12821         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
12822         * lib/poll.in.h: Include <winsock2.h>.
12823         (POLL*, pollfd): Override on native Windows.
12824         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12825         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
12826         (Makefile.am): Substitute HAVE_WINSOCK2_H.
12828 2019-06-28  Bruno Haible  <bruno@clisp.org>
12830         accept4: Fix compilation error on OpenIndiana.
12831         Reported by Michal Nowak <mnowak@startmail.com>
12832         via Mark H Weaver <mhw@netris.org>.
12833         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
12834         whether it exists as a function.
12836 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
12838         strverscmp: sync from glibc
12839         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
12840         comments, include libc-config.h, define __strverscmp to be
12841         strverscmp, and don’t assume types line uint8_t and int8_t that
12842         that C99 doesn’t guarantee.
12843         [!_LIBC]: Include libc-config.h; define __strverscmp.
12844         Include stdint.h.
12845         (__strverscmp): Assume C99.  Use uint_least8_t
12846         and int_least8_t instead of unsigned char and signed char.
12847         * modules/strverscmp (Depends-on): Add libc-config, stdint.
12849 2019-06-25  Bruno Haible  <bruno@clisp.org>
12851         tss tests: Add tests for destructors and races.
12852         * tests/test-tss.c (worker_thread): Fix typo in debug message.
12853         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
12854         functions.
12855         (main): Invoke them.
12856         * modules/tls-tests (Depends-on): Add mtx.
12858 2019-06-25  Bruno Haible  <bruno@clisp.org>
12860         tls tests: Add tests for destructors and races.
12861         * tests/test-tls.c: Include glthread/lock.h.
12862         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
12863         functions.
12864         (main): Invoke them.
12865         * modules/tls-tests (Depends-on): Add lock.
12867 2019-06-25  Bruno Haible  <bruno@clisp.org>
12869         windows-tls: Implement TLS key destructors for native Windows.
12870         * lib/windows-tls.h (glwthread_tls_process_destructors): New
12871         declaration.
12872         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
12873         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
12874         (dtor_table_init_once, dtor_table_lock: New variables.
12875         (struct dtor): New type.
12876         (dtor_table, dtors_count, dtors_used, dtors_allocated,
12877         dtor_processing_threads): New variables.
12878         (dtor_table_initialize, dtor_table_ensure_initialized,
12879         dtor_table_shrink_used, glwthread_tls_process_destructors): New
12880         functions.
12881         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
12882         handle non-NULL destructors.
12883         * modules/windows-tls (Depends-on): Add windows-once.
12884         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
12885         Use the functions declared in windows-tls.h.
12886         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
12887         GLWTHREAD_DESTRUCTOR_ITERATIONS.
12888         * lib/windows-thread.c: Include windows-tls.h.
12889         (wrapper_func, glwthread_thread_exit): Invoke
12890         glwthread_tls_process_destructors.
12891         * modules/windows-thread (Depends-on): Add windows-tls.
12893 2019-06-25  Bruno Haible  <bruno@clisp.org>
12895         threadlib: Avoid autoconf warning "was expanded before it was required".
12896         * modules/threadlib (configure.ac): Require gl_THREADLIB.
12898 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
12900         argmatch: remove duplicate const qualifier
12901         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
12903 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
12905         unistd: stddef.h and sys/types.h namespace cleanup
12906         * lib/unistd.in.h [__GLIBC__]:
12907         Do not include stddef.h or sys/types.h.
12908         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
12909         supposed to declare off_t and ssize_t.  Problem found when looking
12910         at why @GNULIB_PWRITE@ was different from the newly-added
12911         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
12913 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
12915         maintainer-makefile: restore portability to non-GNU awks
12916         Reported by Tim Rühsen.
12917         * top/maint.mk (AWK): New variable.  Use it.
12918         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
12920 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12922         Document setvbuf _IOLBF problem
12923         * doc/posix-functions/setvbuf.texi (setvbuf):
12924         Document MS-Windows portability problem with _IOLBF.
12926         Document lseek SEEK_DATA/SEEK_HOLE
12927         * doc/posix-functions/lseek.texi (lseek):
12928         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
12930 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
12932         argmatch: put all the docs member last.
12933         Reported by Bruno Haible.
12934         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
12935         member before the docs done.
12936         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
12938 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
12940         argmatch: add support to generate the usage message.
12941         * lib/argmatch.c: Move some #includes and gettext support to...
12942         * lib/argmatch.h: here.
12943         (ARGMATCH_DEFINE_GROUP): New macro.
12944         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
12945         (argmatch_backup_group): New.
12946         (CHECK): New.
12947         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
12948         argmatch_backup_argument and argmatch_backup_usage.
12949         * modules/argmatch: We depend on c99.
12950         * doc/argmatch.texi (Recognizing Option Arguments): New.
12951         * doc/gnulib.texi: Use it.
12953 2019-06-21  Bruno Haible  <bruno@clisp.org>
12955         thrd: Add comment.
12956         * lib/thrd.c (pthread_main_func): Add comment.
12958 2019-06-21  Bruno Haible  <bruno@clisp.org>
12960         threads-h: Define 'thread_local' if and only if it actually works.
12961         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
12962         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
12963         Oracle Solaris Studio C. Compile a simple program, to see whether
12964         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
12965         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
12966         * lib/threads.in.h (thread_local): Undefine if it does not work.
12967         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
12968         (Link): Mention LIBTHREADLOCAL.
12969         * tests/test-threads.c: Don't check that thread_local is defined.
12970         * tests/test-thread_local.c: New file.
12971         * modules/threads-h-tests (Files): Add it and macros.h.
12972         (Depends-on): Add thrd and stdint.
12973         (configure.ac): Test whether 'alarm' is declared.
12974         (Makefile.am): Arrange to build and link test-thread_local.
12975         * doc/posix-headers/threads.texi: Mention the platforms that don't
12976         support 'thread_local'.
12978 2019-06-20  Bruno Haible  <bruno@clisp.org>
12980         threads-h: Simplify link dependencies.
12981         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
12982         Don't set LTLIBSTDTHREAD.
12983         * modules/thrd (Link): Simplify accordingly.
12984         * modules/mtx (Link): Likewise.
12985         * modules/cnd (Link): Likewise.
12986         * modules/tss (Link): Likewise.
12987         * modules/threads (Link): Likewise.
12989 2019-06-20  Bruno Haible  <bruno@clisp.org>
12991         threads-h: Fix link error on FreeBSD 11.
12992         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
12993         also with -lpthread.
12995 2019-06-20  Bruno Haible  <bruno@clisp.org>
12997         threadlib: Fix typo (regression from today).
12998         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
13000 2019-06-20  Bruno Haible  <bruno@clisp.org>
13002         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
13003         * lib/windows-thread.c: Include <errno.h>.
13004         * lib/windows-tls.c: Likewise.
13006 2019-06-20  Bruno Haible  <bruno@clisp.org>
13008         tss tests: Small improvement.
13009         * tests/test-tss.c (test_tss): Pass a different id to each thread.
13011 2019-06-20  Bruno Haible  <bruno@clisp.org>
13013         threads: New module.
13014         * modules/threads: New file.
13016 2019-06-20  Bruno Haible  <bruno@clisp.org>
13018         tss: Add tests.
13019         * tests/test-tss.c: New file, based on tests/test-tls.c.
13020         * modules/tss-tests: New file.
13022 2019-06-20  Bruno Haible  <bruno@clisp.org>
13024         cnd: Add tests.
13025         * tests/test-cnd.c: New file, based on tests/test-cond.c.
13026         * modules/cnd-tests: New file.
13028 2019-06-20  Bruno Haible  <bruno@clisp.org>
13030         mtx: Add tests.
13031         * tests/test-mtx.c: New file, based on tests/test-lock.c.
13032         * tests/test-call_once.c: New file, based on tests/test-once.c.
13033         * modules/mtx-tests: New file.
13035 2019-06-20  Bruno Haible  <bruno@clisp.org>
13037         thrd: Add tests.
13038         * tests/test-thrd_create.c: New file, based on
13039         tests/test-thread_create.c.
13040         * tests/test-thrd_current.c: New file, based on
13041         tests/test-thread_self.c.
13042         * modules/thrd-tests: New file.
13044 2019-06-20  Bruno Haible  <bruno@clisp.org>
13046         tss: New module.
13047         * lib/tss.c: New file.
13048         * modules/tss: New file.
13049         * doc/posix-functions/tss_create.texi: Mention the new module.
13050         * doc/posix-functions/tss_set.texi: Likewise.
13051         * doc/posix-functions/tss_get.texi: Likewise.
13052         * doc/posix-functions/tss_delete.texi: Likewise.
13054 2019-06-20  Bruno Haible  <bruno@clisp.org>
13056         cnd: New module.
13057         * lib/cnd.c: New file.
13058         * modules/cnd: New file.
13059         * doc/posix-functions/cnd_init.texi: Mention the new module.
13060         * doc/posix-functions/cnd_wait.texi: Likewise.
13061         * doc/posix-functions/cnd_timedwait.texi: Likewise.
13062         * doc/posix-functions/cnd_signal.texi: Likewise.
13063         * doc/posix-functions/cnd_broadcast.texi: Likewise.
13064         * doc/posix-functions/cnd_destroy.texi: Likewise.
13066 2019-06-20  Bruno Haible  <bruno@clisp.org>
13068         mtx: New module.
13069         * lib/mtx.c: New file.
13070         * modules/mtx: New file.
13071         * doc/posix-functions/call_once.texi: Mention the new module.
13072         * doc/posix-functions/mtx_init.texi: Likewise.
13073         * doc/posix-functions/mtx_lock.texi: Likewise.
13074         * doc/posix-functions/mtx_trylock.texi: Likewise.
13075         * doc/posix-functions/mtx_timedlock.texi: Likewise.
13076         * doc/posix-functions/mtx_unlock.texi: Likewise.
13077         * doc/posix-functions/mtx_destroy.texi: Likewise.
13079 2019-06-20  Bruno Haible  <bruno@clisp.org>
13081         thrd: New module.
13082         * lib/thrd.c: New file.
13083         * m4/thrd.m4: New file.
13084         * modules/thrd: New file.
13085         * doc/posix-functions/thrd_current.texi: Mention the new module.
13086         * doc/posix-functions/thrd_detach.texi: Likewise.
13087         * doc/posix-functions/thrd_equal.texi: Likewise.
13088         * doc/posix-functions/thrd_exit.texi: Likewise.
13089         * doc/posix-functions/thrd_sleep.texi: Likewise.
13090         * doc/posix-functions/thrd_yield.texi: Likewise.
13091         * doc/posix-functions/thrd_create.texi: Mention the new module and the
13092         AIX bug.
13093         * doc/posix-functions/thrd_join.texi: Mention the new module and the
13094         AIX and Solaris bugs.
13096 2019-06-20  Bruno Haible  <bruno@clisp.org>
13098         threads-h: Add tests.
13099         * tests/test-threads.c: New file.
13100         * modules/threads-h-tests: New file.
13101         * tests/test-threads-c++.cc: New file.
13102         * modules/threads-h-c++-tests: New file.
13104 2019-06-20  Bruno Haible  <bruno@clisp.org>
13106         threads-h: New module.
13107         * lib/threads.in.h: New file.
13108         * m4/threads.m4: New file.
13109         * m4/yield.m4 (gl_YIELD): Update comment.
13110         * modules/threads-h: New file.
13111         * modules/yields (configure.ac): Use AC_REQUIRE.
13112         * doc/posix-headers/threads.texi: Mention the new module and the AIX
13113         bugs.
13115 2019-06-20  Bruno Haible  <bruno@clisp.org>
13117         windows-thread: New module.
13118         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
13119         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
13120         * lib/glthread/thread.h: Include windows-thread.h.
13121         (gl_thread_t): Define using glwthread_thread_t.
13122         (glthread_create): Define using glwthread_thread_create.
13123         (glthread_join): Define using glwthread_thread_join.
13124         (gl_thread_self): Define using glwthread_thread_self.
13125         (gl_thread_exit): Define using glwthread_thread_exit.
13126         (glthread_create_func, glthread_join_func, gl_thread_self_func,
13127         gl_thread_exit_func): Remove declarations.
13128         * lib/glthread/thread.c (self_key): Remove variable.
13129         (do_init_self_key, init_self_key): Remove functions.
13130         (struct gl_thread_struct): Remove type.
13131         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
13132         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
13133         functions.
13134         * modules/windows-thread: New file.
13135         * modules/thread (Depends-on): Add windows-thread.
13137 2019-06-20  Bruno Haible  <bruno@clisp.org>
13139         windows-tls: New module.
13140         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
13141         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
13142         * lib/glthread/tls.h: Include windows-tls.h.
13143         (gl_tls_key_t): Define using glwthread_tls_key_t.
13144         * modules/windows-tls: New file.
13145         * modules/tls (Depends-on): Add windows-tls.
13147 2019-06-20  Bruno Haible  <bruno@clisp.org>
13149         windows-cond: New module.
13150         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
13151         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
13152         * lib/glthread/cond.h: Include windows-cond.h.
13153         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
13154         (gl_cond_t): Define using glwthread_cond_t.
13155         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
13156         (glthread_cond_init): Define using glwthread_cond_init.
13157         (glthread_cond_wait): Define using glwthread_cond_wait.
13158         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
13159         (glthread_cond_signal): Define using glwthread_cond_signal.
13160         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
13161         (glthread_cond_destroy): Define using glwthread_cond_destroy.
13162         (glthread_cond_init_func, glthread_cond_wait_func,
13163         glthread_cond_timedwait_func, glthread_cond_signal_func,
13164         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
13165         declarations.
13166         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
13167         types.
13168         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
13169         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
13170         glthread_cond_init_func, glthread_cond_wait_func,
13171         glthread_cond_timedwait_func, glthread_cond_signal_func,
13172         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
13173         functions.
13174         * modules/windows-cond: New file.
13175         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
13177 2019-06-20  Bruno Haible  <bruno@clisp.org>
13179         windows-timedrecmutex: New module.
13180         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
13181         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
13182         * modules/windows-timedrecmutex: New file.
13184 2019-06-20  Bruno Haible  <bruno@clisp.org>
13186         windows-timedmutex: New module.
13187         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
13188         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
13189         * modules/windows-timedmutex: New file.
13191 2019-06-20  Bruno Haible  <bruno@clisp.org>
13193         windows-recmutex: New module.
13194         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
13195         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
13196         * lib/glthread/lock.h: Include windows-recmutex.h.
13197         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
13198         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
13199         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
13200         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
13201         (glthread_recursive_lock_unlock): Define using
13202         glwthread_recmutex_unlock.
13203         (glthread_recursive_lock_destroy): Define using
13204         glwthread_recmutex_destroy.
13205         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
13206         glthread_recursive_lock_unlock_func,
13207         glthread_recursive_lock_destroy_func): Remove declarations.
13208         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
13209         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
13210         glthread_recursive_lock_destroy_func): Remove functions.
13211         * modules/windows-recmutex: New file.
13212         * modules/lock (Depends-on): Add windows-recmutex.
13214 2019-06-20  Bruno Haible  <bruno@clisp.org>
13216         windows-mutex: New module.
13217         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
13218         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
13219         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
13220         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
13221         (gl_spinlock_t): Remove type.
13222         (gl_lock_t): Define using glwthread_mutex_t.
13223         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
13224         (glthread_lock_init): Define using glwthread_mutex_init.
13225         (glthread_lock_lock): Define using glwthread_mutex_lock.
13226         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
13227         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
13228         (glthread_lock_init_func, glthread_lock_lock_func,
13229         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
13230         declarations.
13231         Use glwthread_spinlock_t instead of gl_spinlock_t.
13232         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
13233         GLWTHREAD_SPINLOCK_INIT.
13234         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
13235         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
13236         functions.
13237         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
13238         gl_spinlock_t.
13239         * modules/windows-mutex: New file.
13240         * modules/lock (Depends-on): Add windows-mutex.
13242 2019-06-20  Bruno Haible  <bruno@clisp.org>
13244         windows-once: New module.
13245         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
13246         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
13247         * lib/glthread/lock.h: Include windows-once.h.
13248         (gl_once_t): Define using glwthread_once_t.
13249         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
13250         (glthread_once): Define using glwthread_once.
13251         (glthread_once_func): Remove declaration.
13252         * lib/glthread/lock.c (glthread_once_func): Remove function.
13253         * modules/windows-once: New file.
13254         * modules/lock (Depends-on): Add windows-once.
13256 2019-06-20  Bruno Haible  <bruno@clisp.org>
13258         lock, cond: Avoid possible counter wraparound on Windows.
13259         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
13260         field of the guard unchanged if it was already positive.
13261         (glthread_rwlock_rdlock_func): Likewise.
13262         (glthread_rwlock_wrlock_func): Likewise.
13263         (glthread_recursive_lock_lock_func): Likewise.
13264         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
13265         (glthread_cond_timedwait_func): Likewise.
13267 2019-06-20  Bruno Haible  <bruno@clisp.org>
13269         cond: Make glthread_cond_timedwait more reliable on Windows.
13270         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
13271         condition variable before looking at the current time.
13273 2019-06-20  Bruno Haible  <bruno@clisp.org>
13275         pthread_mutex_timedlock: New module.
13276         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
13277         new declaration.
13278         * lib/pthread_mutex_timedlock.c: New file.
13279         * m4/pthread_mutex_timedlock.m4: New file.
13280         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
13281         whether pthread_mutex_timedlock is declared.
13282         (gl_PTHREAD_MODULE_INDICATOR): New macro.
13283         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
13284         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
13285         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
13286         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
13287         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
13288         * modules/pthread_mutex_timedlock: New file.
13289         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
13290         module.
13292 2019-06-20  Bruno Haible  <bruno@clisp.org>
13294         thread, lock, cond, tls: Recognize C11 multithreaded applications.
13295         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
13296         * lib/glthread/thread.h (c11_threads_in_use): New macro.
13297         (pthread_in_use, pth_in_use, thread_in_use): Use it.
13298         * lib/glthread/lock.h (c11_threads_in_use): New macro.
13299         (pthread_in_use, pth_in_use, thread_in_use): Use it.
13300         * lib/glthread/cond.h (c11_threads_in_use): New macro.
13301         (pthread_in_use, pth_in_use, thread_in_use): Use it.
13302         * lib/glthread/tls.h (c11_threads_in_use): New macro.
13303         (pthread_in_use, pth_in_use, thread_in_use): Use it.
13305 2019-06-20  Bruno Haible  <bruno@clisp.org>
13307         tls tests: Small improvements.
13308         * tests/test-tls.c: Include <stdint.h>.
13309         (worker_thread): Avoid gcc warning on 64-bit mingw.
13310         (test_tls): Pass a different id to each thread.
13311         * modules/tls-tests (Depends-on): Add stdint.
13313 2019-06-20  Bruno Haible  <bruno@clisp.org>
13315         cond tests: Simplify.
13316         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
13318 2019-06-20  Bruno Haible  <bruno@clisp.org>
13320         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
13321         * tests/test-lock.c (test_once): Don't reference fire_signal if
13322         !ENABLE_LOCKING.
13324 2019-06-19  Bruno Haible  <bruno@clisp.org>
13326         nanosleep: Relicense under LGPLv2+.
13327         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
13328         * modules/nanosleep (License): Change to LGPLv2+.
13330 2019-06-19  Bruno Haible  <bruno@clisp.org>
13332         Reorder pieces of header in perl scripts.
13333         The desired order is
13334         - Prologue part 1 (2 lines with #!)
13335         - Program short description
13336         - Copyright and license notice
13337         - Written-by notice
13338         - Program short description (optional)
13339         - Program long description (optional)
13340         - Prologue part 2
13341         - Time stamp
13342         - Code
13343         Reported by Paul Eggert.
13344         * build-aux/announce-gen: Reorder header.
13345         * build-aux/gitlog-to-changelog: Likewise.
13346         * build-aux/useless-if-before-free: Likewise.
13347         * build-aux/prefix-gnulib-mk: Add copyright notice and short
13348         description.
13349         * build-aux/update-copyright: Likewise. Add short description. Bump
13350         time-stamp-line-limit to 200.
13352 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
13354         verify-tests: work around xlc bug
13355         Problem reported by Bruno Haible in:
13356         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
13357         * tests/test-verify.c (item): Move the arithmetic inside the
13358         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
13360 2019-06-16  Bruno Haible  <bruno@clisp.org>
13362         Restore Emacs time-stamp hook applicability.
13363         Reported by Darshit Shah <darnir@gnu.org>.
13364         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
13365         * build-aux/announce-gen: Likewise.
13366         * build-aux/gitlog-to-changelog: Likewise.
13367         * build-aux/prefix-gnulib-mk: Likewise.
13368         * build-aux/update-copyright: Likewise.
13370 2019-06-15  Bruno Haible  <bruno@clisp.org>
13372         Fix scripts to have valid executable format on Alpine Linux.
13373         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
13374         Idea by Paul Eggert.
13375         * build-aux/useless-if-before-free: Use a prologue that starts with
13376         '#!/bin/sh'.
13377         * build-aux/announce-gen: Likewise.
13378         * build-aux/gitlog-to-changelog: Likewise.
13379         * build-aux/prefix-gnulib-mk: Likewise.
13380         * build-aux/update-copyright: Likewise.
13381         * tests/test-update-copyright.sh: Update test program accordingly.
13383 2019-06-10  Bruno Haible  <bruno@clisp.org>
13385         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
13386         Reported by Nikita Ermakov <arei@altlinux.org> in
13387         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
13388         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
13389         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
13391 2019-06-10  Bruno Haible  <bruno@clisp.org>
13393         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
13394         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
13395         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
13396         a copy of the path argument.
13397         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
13398         it.
13400 2019-06-10  Bruno Haible  <bruno@clisp.org>
13402         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
13403         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
13404         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
13405         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
13406         a copy of the path argument.
13407         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
13408         it.
13410 2019-06-10  Bruno Haible  <bruno@clisp.org>
13412         posix_spawn_file_actions_addfchdir: Add tests.
13413         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
13414         * tests/test-posix_spawn5.c: New file.
13415         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
13417 2019-06-10  Bruno Haible  <bruno@clisp.org>
13419         posix_spawn_file_actions_addfchdir: New module.
13420         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
13421         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
13422         union member 'fchdir_action'.
13423         * lib/spawn_faction_addfchdir.c: New file.
13424         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
13425         * m4/posix_spawn_faction_addfchdir.m4: New file.
13426         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
13427         'posix_spawn_file_actions_addfchdir' is present and whether
13428         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
13429         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
13430         posix_spawn_file_actions_addfchdir is declared.
13431         (gl_SPAWN_H_DEFAULTS): Initialize
13432         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13433         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13434         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
13435         * modules/spawn (Makefile.am): Substitute
13436         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13437         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13438         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
13439         * modules/posix_spawn_file_actions_addfchdir: New file.
13440         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
13441         signature.
13442         * doc/posix-functions/posix_spawn.texi: Mention the new module.
13443         * doc/posix-functions/posix_spawnp.texi: Likewise.
13444         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
13445         Likewise.
13447 2019-06-10  Bruno Haible  <bruno@clisp.org>
13449         doc: Document existence of posix_spawn_file_actions_addchdir module.
13450         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
13451         the posix_spawn_file_actions_addchdir module.
13453 2019-06-10  Bruno Haible  <bruno@clisp.org>
13455         posix_spawn-internal: Fix module description.
13456         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
13457         from here...
13458         * modules/posix_spawnp (configure.ac): ... and here...
13459         * modules/posix_spawn-internal (configure.ac): ... to here.
13461 2019-06-10  Bruno Haible  <bruno@clisp.org>
13463         doc: Update and improve documentation of glibc functions.
13464         This is a series of commits that
13465         - updates the documentation to the state of glibc 2.29,
13466         - adds references to Linux man pages and glibc documentation,
13467         - marks Linux specific functions as such.
13468         These are the commits:
13469         doc: Update after removal of crypt functions from glibc 2.28.
13470         doc: Remove mention of function vm86 (does not exist on x86_64).
13471         doc: Remove mention of functions that are gone from glibc.
13472         doc: Mention that glibc no longer provides h_errno.
13473         doc: Mention the availability of specific functions in glibc versions.
13474         doc: Mention eaccess.
13475         doc: Add references to Linux man pages.
13476         doc: Add references to glibc documentation.
13477         doc: Mention inotify_* functions.
13478         doc: Mention ppoll.
13479         doc: Mention sched_getcpu.
13480         doc: Mention sync_file_range.
13481         doc: Mention epoll_pwait.
13482         doc: Mention eventfd, eventfd_read, eventfd_write.
13483         doc: Mention signalfd.
13484         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
13485         doc: Mention epoll_create1.
13486         doc: Mention getauxval.
13487         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
13488         doc: Mention nextdown, nextup.
13489         doc: Mention more ISO TS 18661-1 <math.h> functions.
13490         doc: Mention ISO TS 18661-1 <fenv.h> functions.
13491         doc: Mention getrandom, getentropy.
13492         doc: Mention strfromf, strfromd, strfroml.
13493         doc: Mention preadv2, pwritev2.
13494         doc: Mention copy_file_range.
13495         doc: Mention memfd_create.
13496         doc: Mention mlock2.
13497         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
13498         doc: Mention more ISO TS 18661-1 <math.h> functions.
13499         doc: Mention renameat2.
13500         doc: Mention statx.
13501         doc: Mention the ISO C11 multithreading header and functions.
13502         doc: Mention getcpu.
13503         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
13504         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
13505         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
13506         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
13507         doc: Some glibc functions also exist on Solaris 11.
13508         doc: Some glibc functions also exist on Solaris 11.4.
13509         doc: Some glibc functions also exist on FreeBSD.
13510         doc: Some glibc functions also exist on BeOS.
13511         doc: Some glibc functions also exist on Haiku.
13512         doc: Mark functions which exist only on Linux.
13513         doc: Mark functions which exist only on Linux and illumos.
13515 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
13517         copy-file: fix typo
13518         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
13520         copy-file-range: simplify into a stub
13521         Based on a comment by Florian Weimer in:
13522         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
13523         It turns out that Emacs (which will use this module) won’t need an
13524         emulation and I suspect other programs won’t either, because these
13525         programs will need to fall back on read+write anyway.  Perhaps I
13526         am wrong and other programs will be able to use an emulation; if
13527         so, this patch can be reverted.
13528         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
13529         Just call it copy_file_range.
13530         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
13531         Check via AC_LINK_IFELSE.
13532         * modules/copy-file-range (Depends-on): Remove modules no longer used.
13534 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
13536         copy-file: prefer copy_file_range
13537         * lib/copy-file.c: Do not include xalloc.h.
13538         (qcopy_file_preserving): Allocate a buffer only if
13539         copy_file_range does not suffice.  If the allocation fails
13540         don't give up; just use a small stack-based buffer.
13541         Prefer copy_file_range if it works.
13542         * modules/copy-file (Depends-on): Add copy-file-range.
13543         Remove xalloc.
13545         copy-file-range: new module
13546         * MODULES.html.sh: Add copy-file-range.
13547         * lib/copy-file-range.c, m4/copy-file-range.m4:
13548         * modules/copy-file-range: New files.
13549         * lib/unistd.in.h (copy_file_range): Declare.
13550         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
13551         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
13552         * modules/unistd (unistd.h): Substitute them.
13554 2019-05-28  Bruno Haible  <bruno@clisp.org>
13556         binary-io: Attempted use of O_BINARY on consoles no longer fails.
13557         Reported by KO Myung-Hun <komh78@gmail.com> in
13558         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
13559         * lib/binary-io.h (__gl_setmode_check): Remove function.
13560         (set_binary_mode): Declare as notinline on DJGPP and EMX.
13561         * lib/binary-io.c (__gl_setmode_check): Remove function.
13562         (set_binary_mode): Define here on DJGPP and EMX. Inline
13563         __gl_setmode_check. In case of a tty, don't return an error code.
13565 2019-05-28  James Youngman  <jay@gnu.org>
13567         dirent-safer: Make opendir_safer usable from C++.
13568         * lib/dirent-safer.h: use extern "C".
13570 2019-05-28  James Youngman  <jay@gnu.org>
13572         canonicalize: Make canonicalize_filename_mode usable from C++.
13573         * lib/canonicalize.h: use extern "C".
13575 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
13577         prefix-gnulib-mk: Fix CPPFLAGS migration.
13578         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
13579         _a part of the library name.
13581 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
13583         flexmember: update comments again
13584         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
13586         flexmember: update comment
13587         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
13589 2019-05-20  Bruno Haible  <bruno@clisp.org>
13591         setlocale: Improve fallback on macOS.
13592         * lib/setlocale.c (search): Optimize away a redundant strcmp()
13593         invocation.
13594         (locales_with_principal_territory): New array.
13595         (langcmp, get_main_locale_with_same_language): New functions.
13596         (locales_with_principal_language): New array.
13597         (terrcmp, get_main_locale_with_same_territory): New functions.
13598         (rpl_setlocale): When setlocale_single failed, try again with a locale
13599         that is more likely to exist. Don't warn if the environment variable
13600         SETLOCALE_VERBOSE is not set.
13602 2019-05-19  Bruno Haible  <bruno@clisp.org>
13604         localename: Fix default on macOS.
13605         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
13606         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
13607         (gl_locale_name_environ, gl_locale_name_default): Remove code for
13608         HAVE_CFLOCALECOPYCURRENT.
13609         * lib/localename.h (gl_locale_name_default): Update.
13611 2019-05-19  Karl Berry  <karl@freefriends.org>
13613         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
13614         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
13615         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
13617 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
13619         maintainer-makefile: catch uses of $< in non-implicit rules
13620         * top/maint.mk (sc_prohibit_magic_number_exit): New.
13622 2019-05-18  Bruno Haible  <bruno@clisp.org>
13624         threadlib: Provide an easy way to avoid mingw's winpthreads library.
13625         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
13626         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
13627         gl_use_threads accordingly.
13629 2019-05-18  Bruno Haible  <bruno@clisp.org>
13631         pthread_sigmask: Fix compilation error with --enable-threads=windows.
13632         Reported by Tim Rühsen in
13633         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
13634         and Michele Locati in
13635         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
13636         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
13637         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
13638         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
13639         in use and regardless which threads API is chosen.
13641 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13643         close-stream, closein, closeout: simplify
13644         I noticed this opportunity for simplification while drafting a
13645         new, related module that I haven’t had time to finish yet.
13646         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
13647         * modules/close-stream (Files): Remove m4/close-stream.m4.
13648         (configure.ac): Omit gl_CLOSE_STREAM.
13649         * modules/closein (Files): Remove m4/closein.m4
13650         (configure.ac): Omit gl_CLOSEIN.
13651         * modules/closeout (Files): Remove m4/closeout.m4.
13652         (configure.ac): Omit gl_CLOSEOUT.
13654 2019-05-12  Bruno Haible  <bruno@clisp.org>
13656         libtool-next-version: New program.
13657         * build-aux/libtool-next-version: New file.
13659 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
13660             Bruno Haible  <bruno@clisp.org>
13662         version-etc: Ease translation.
13663         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
13664         URLs and formatting newlines out of translatable string.
13666 2019-05-11  Bruno Haible  <bruno@clisp.org>
13668         gnupload: Explain how to create symlinks.
13669         * build-aux/gnupload (usage): Add an example that creates symlinks.
13671 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
13673         fpucw: port to gcc -pedantic
13674         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
13675         Use __extension__ if using ({ ... }).
13677         crypto/af_alg: port to strict C compilers
13678         * lib/af_alg.c: Include af_alg.h regardless, so that the
13679         compilation unit is nonempty.
13681 2019-05-10  Bruno Haible  <bruno@clisp.org>
13683         base64: Avoid false positive warning from Coverity.
13684         Reported by Kamil Dudka <kdudka@redhat.com>.
13685         Idea by Paul Eggert.
13686         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
13687         '& 0x3f' to the array index expressions. This convinces Coverity that
13688         there is no out-of-bounds array reference, regardless of the input.
13690 2019-05-09  Bruno Haible  <bruno@clisp.org>
13692         gettext: Update to gettext 0.20.
13693         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
13694         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
13695         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
13696         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
13697         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
13698         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
13699         (configure.ac): Request infrastructure compatible with gettext 0.20.
13700         * m4/glibc2.m4: Remove file.
13701         * m4/intdiv0.m4: Remove file.
13702         * m4/intl.m4: Remove file.
13703         * m4/intldir.m4: Remove file.
13704         * m4/intmax.m4: Remove file.
13705         * m4/printf-posix.m4: Remove file.
13706         * m4/uintmax_t.m4: Remove file.
13707         * m4/gettext.m4: Update from gettext 0.20.
13708         * m4/po.m4: Likewise.
13710 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
13712         verify: remove verify_true
13713         * NEWS: Mention this.
13714         * lib/verify.h (verify_true): Remove.
13715         * tests/test-verify.c (item): Test verify_expr, not verify_true.
13717         Support C2X and C++17 static_assert
13718         C2X and C++17 finally added support for a simple, single-argument
13719         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
13720         doing back in 2005.  Implement static_assert on older platforms.
13721         The only remaining advantage of ‘verify’ is a shorter name.
13722         * doc/posix-headers/assert.texi (assert.h):
13723         * doc/verify.texi (Compile-time Assertions):
13724         Modernize for C2X and C++17.
13725         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
13726         New macros.
13727         (_GL_HAVE__STATIC_ASSERT): Remove.
13728         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
13729         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
13730         string.  All callers changed.
13731         (_GL_VERIFY): Require 3 or more args, of which only the first 2
13732         are used.  All callers changed.
13733         (_Static_assert): Allow either 1 or 2 args, and define if
13734         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
13735         !_GL_HAVE__STATIC_ASSERT.
13736         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
13737         of defining if !_GL_HAVE_STATIC_ASSERT.
13738         (verify_expr, verify): Don’t bother trying to copy the expression
13739         into the diagnostic, since 1-argument static_assert doesn’t.
13740         (verify): Prefer 1-argument _Static_assert if it works.
13741         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
13743 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
13745         Fix _GL_HAVE__STATIC_ASSERT typo
13746         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
13747         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
13749 2019-05-05  Bruno Haible  <bruno@clisp.org>
13751         wcwidth: Ensure width 1, not 2, for ambiguous characters.
13752         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
13753         via Akim Demaille <akim.demaille@gmail.com>.
13754         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
13755         en_US.UTF-8 locale, since that is more likely to be present than an
13756         fr_FR.UTF-8 locale.
13757         * tests/test-wcwidth.c (main): Check the width of U+2202.
13758         * doc/posix-functions/wcwidth.texi: Mention the issue.
13760 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
13762         Port manywarnings to GCC 9
13763         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
13764         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
13765         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
13766         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
13767         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
13768         --help=warnings output.
13769         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
13770         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
13771         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
13773 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
13775         Sync lib/mktime-internal.h from glibc
13776         * config/srclist.txt: Add entry for lib/mktime-internal.h.
13777         * lib/mktime-internal.h: Autoupdate.
13779 2019-04-28  Bruno Haible  <bruno@clisp.org>
13781         tls tests: Prevent that the test takes too long.
13782         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
13783         (main): Let the test fail if it takes more than 10 minutes.
13784         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
13786 2019-04-27  Bruno Haible  <bruno@clisp.org>
13788         lock tests: Prevent that the test takes too long.
13789         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
13790         (main): Let the test fail if it takes more than 10 minutes.
13791         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
13793 2019-04-27  Bruno Haible  <bruno@clisp.org>
13795         localename: Fix crash on mingw (regression from 2018-11-23).
13796         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
13797         locale name that is null.
13799 2019-04-27  Bruno Haible  <bruno@clisp.org>
13801         Fix gcc warnings on 64-bit mode mingw.
13802         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
13803         * lib/gl_array_list.c: Likewise.
13804         * lib/gl_array_map.c: Likewise.
13805         * lib/gl_array_set.c: Likewise.
13806         * lib/gl_carray_list.c: Likewise.
13807         * lib/gl_sublist.c: Likewise.
13808         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
13809         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
13810         * lib/gl_hash_map.c (uintptr_t): Likewise.
13811         * lib/gl_hash_set.c (uintptr_t): Likewise.
13812         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
13813         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
13814         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
13815         * lib/iconv.c (uintptr_t): Likewise.
13816         * lib/iconv_close.c (uintptr_t): Likewise.
13817         * tests/test-lock.c: Include <stdint.h>.
13818         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
13819         'long'.
13820         * modules/clean-temp (Depends-on): Add stdint.
13821         * modules/array-list (Depends-on): Likewise.
13822         * modules/array-map (Depends-on): Likewise.
13823         * modules/array-set (Depends-on): Likewise.
13824         * modules/carray-list (Depends-on): Likewise.
13825         * modules/sublist (Depends-on): Likewise.
13826         * modules/lock-tests (Depends-on): Likewise.
13828 2019-04-27  Bruno Haible  <bruno@clisp.org>
13830         error: Tweak indentation.
13831         * lib/error.c: Correct indentation.
13833 2019-04-27  Bruno Haible  <bruno@clisp.org>
13835         term-style-control: Fix gcc warning on mingw.
13836         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
13837         of i.
13839 2019-04-26  Bruno Haible  <bruno@clisp.org>
13841         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
13842         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
13844 2019-04-26  Bruno Haible  <bruno@clisp.org>
13846         relocatable-prog: Fix gcc warning on mingw.
13847         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
13848         on EMX.
13850 2019-04-02  Bruno Haible  <bruno@clisp.org>
13852         gitsub.sh: New file.
13853         * top/gitsub.sh: New file.
13855 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
13857         argmatch: use void* for raw memory pointers
13858         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
13859         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
13860         to "values", keep char* for strings.
13862 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
13864         prefix-gnulib-mk: fix the support for gnulib-po
13865         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
13866         Don't touch HAVE_* variables.
13867         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
13869 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
13871         di-set: allow free with 'ino_map' being NULL.
13872         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
13873         is NULL.  Bug introduced in commit 3703dbbe88dd.
13874         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
13875         as a test.
13877 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
13879         * lib/str-two-way.h: Fix comment typo.
13881 2019-04-13  Bruno Haible  <bruno@clisp.org>
13883         x-to-1: Restore ability to use original calling convention.
13884         * build-aux/x-to-1.in: Add comments. Accept the original form of
13885         HELP2MAN argument as well as the form expected since 2012-12-12.
13887 2019-04-13  Bruno Haible  <bruno@clisp.org>
13889         x-to-1: Avoid failure due to missing perl modules.
13890         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
13891         needs are installed.
13893 2019-04-13  Bruno Haible  <bruno@clisp.org>
13895         openmp-init: New module.
13896         * modules/openmp-init: New file.
13897         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
13898         the changes from 2019-04-09.
13900 2019-04-12  Bruno Haible  <bruno@clisp.org>
13902         signbit: Fix compilation error when gnulib's math.h exists twice.
13903         * lib/math.in.h (GNULIB_defined_signbit): New macro.
13905 2019-04-12  Bruno Haible  <bruno@clisp.org>
13907         openmp: Fix compilation error on platforms without OpenMP.
13908         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
13910 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
13912         mountlist: make parsing /proc/self/mountinfo more robust
13913         Cater for the following issues with mountinfo parsing (the first
13914         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
13915         in <https://bugs.gnu.org/35137>).
13916         1. The fields source, target, mntroot and fstype may contain characters
13917         like '\r'; sscanf(3) fails to read such values with the %s format
13918         specifier because it would stop at such characters.
13919         Example: "mount -t tmpfs tmpfs /foo^Mbar".
13920         The only true separator in that file is the ' ' character.
13921         2. The source field may be an empty string, which happens e.g. with
13922         "mount -t tmpfs '' /target".
13923         3. The fstype field may contain mangled characters as well which need
13924         unescaping.
13925         * lib/mountlist.c (terminate_at_blank): Add utility function.
13926         (read_file_system_list): In the block trying to read the mountinfo file,
13927         avoid using sscanf(3) with %s format; instead, parse the above fields
13928         separated by spaces one by one.
13929         This also handles the case when the source field is an empty string.
13930         Unescape the fstype field.
13932 2019-04-09  Bruno Haible  <bruno@clisp.org>
13934         openmp: Add workaround for 32-bit programs on AIX.
13935         * lib/omp.in.h: New file.
13936         * lib/omp-init.c: New file, based on lib/nproc.c.
13937         * m4/omp_h.m4: New file.
13938         * modules/openmp (Files): Add them.
13939         (Depends-on): Add include_next, c-ctype, setenv.
13940         (configure.ac): Invoke gl_OMP_H.
13941         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
13942         (Include): Mention <omp.h>.
13944 2019-04-09  Bruno Haible  <bruno@clisp.org>
13946         nproc: Fix return value for privileged processes.
13947         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
13948         getpid().
13950 2019-04-07  Bruno Haible  <bruno@clisp.org>
13952         Add copyright notices in several files.
13953         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
13954         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
13955         * lib/libunistring.valgrind: Likewise.
13956         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
13957         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
13958         * lib/memchr.valgrind: Likewise.
13959         * lib/memchr2.valgrind: Likewise.
13960         * lib/rawmemchr.valgrind: Likewise.
13961         * lib/relocatable.valgrind: Likewise.
13962         * lib/strchrnul.valgrind: Likewise.
13964 2019-03-25  Bruno Haible  <bruno@clisp.org>
13966         term-style-control tests: Fix link error.
13967         Reported by Tom G. Christensen in
13968         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
13969         * modules/term-style-control-tests (Makefile.am): Link
13970         test-term-style-control-hello and test-term-style-control-yes against
13971         LIBINTL.
13973 2019-03-24  Bruno Haible  <bruno@clisp.org>
13975         term-style-control: Add tests.
13976         * tests/test-term-style-control-hello.c: New file.
13977         * tests/test-term-style-control-yes.c: New file.
13978         * modules/term-style-control-tests: New file.
13980         term-style-control: New module.
13981         * lib/term-style-control.h: New file, based on libtextstyle's
13982         term-ostream.oo.h and term-ostream.oo.c.
13983         * lib/term-style-control.c: New file, based on libtextstyle's
13984         term-ostream.oo.c.
13985         * modules/term-style-control: New file.
13987 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
13989         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
13990         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
13991         C++98 appears to be supported by Clang, but not by GCC nor ICC.
13993 2019-03-23  Bruno Haible  <bruno@clisp.org>
13995         Support cross-compilation to musl libc.
13996         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
13997         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
13998         musl libc.
13999         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
14000         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
14001         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
14002         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14003         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14004         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
14005         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14006         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
14007         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14008         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
14009         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
14010         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
14011         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
14012         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14013         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
14014         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
14015         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
14016         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14017         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
14018         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14019         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14020         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14021         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
14022         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14023         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
14024         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
14025         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
14026         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
14027         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
14028         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
14029         * m4/log.m4 (gl_FUNC_LOG): Likewise.
14030         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
14031         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
14032         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
14033         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
14034         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
14035         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
14036         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
14037         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
14038         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
14039         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
14040         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
14041         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
14042         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
14043         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
14044         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
14045         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
14046         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
14047         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
14048         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
14049         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
14050         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
14051         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
14052         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
14053         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14054         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
14055         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
14056         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
14057         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
14058         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
14059         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14060         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14061         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14062         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
14063         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14064         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14065         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14066         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
14067         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14068         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
14069         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14070         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14071         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14072         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
14073         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
14074         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
14075         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14076         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14078 2019-03-23  Bruno Haible  <bruno@clisp.org>
14080         posix_spawn_file_actions_*: Document musl libc bugs.
14081         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
14082         the bug.
14083         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
14084         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
14085         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
14086         cross-compiling to a musl system, guess no.
14087         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
14088         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
14090 2019-03-23  Bruno Haible  <bruno@clisp.org>
14092         futimens: Document musl libc bug.
14093         * doc/posix-functions/futimens.texi: Mention the bug.
14094         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
14095         cross-compiling, guess no on glibc and musl systems.
14097 2019-03-23  Bruno Haible  <bruno@clisp.org>
14099         Clarify that cross-compilation guesses are guesses.
14100         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
14101         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
14102         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
14103         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
14104         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
14105         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
14106         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
14107         gl_cv_glob_lists_symlinks.
14108         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
14109         'guessing ' to ac_cv_func_malloc_0_nonnull.
14110         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
14111         'guessing ' to ac_cv_func_realloc_0_nonnull.
14112         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
14113         'guessing ' to gl_cv_func_poll.
14114         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
14115         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
14116         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
14118 2019-03-23  Bruno Haible  <bruno@clisp.org>
14120         strtold: Fix typo.
14121         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
14123 2019-03-23  Bruno Haible  <bruno@clisp.org>
14125         noreturn: In C++ mode with clang, use _Noreturn as fallback.
14126         Reported by Akim Demaille.
14127         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
14128         [[noreturn]] would not work, use _Noreturn instead.
14130 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
14132         libtextstyle-optional: Fix compiler warnings.
14133         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
14134         as unused.
14136 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
14138         bitset: fix memory leaks
14139         Reported by Bruno Haible.
14140         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
14141         * lib/bitset/vector.c (vbitset_free): New.
14142         (vbitset_vtable): Use it.
14144 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
14146         bitset: minor changes
14147         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
14148         * lib/bitset/table.c: Formatting changes.
14149         Remove useless braces.
14150         Prefer using else in cascades of if/else-if with returns.
14151         * lib/bitset/vector.c: Reduce scopes.
14153 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
14155         bitset: expose bitset_resize
14156         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
14157         * tests/test-bitset.c (check_attributes): Check bitset_resize.
14158         (main): Use a variable bitset as reference, since fixed does not support resize.
14160 2019-03-19  Bruno Haible  <bruno@clisp.org>
14162         doc: Document the 'stdnoreturn' and 'noreturn' modules.
14163         Reported by Akim Demaille.
14164         * doc/noreturn.texi: New file.
14165         * doc/gnulib.texi: Include it.
14167 2019-03-19  Bruno Haible  <bruno@clisp.org>
14169         doc: Document how to use 'static inline'.
14170         * doc/static-inline.texi: New file.
14171         * doc/gnulib.texi: Include it.
14173 2019-03-19  Bruno Haible  <bruno@clisp.org>
14175         libtextstyle-optional: Add tests.
14176         * tests/test-libtextstyle.c: New file, based on libtextstyle's
14177         adhoc-tests/hello.c.
14178         * tests/test-libtextstyle-default.css: New file, copied from
14179         libtextstyle's adhoc-tests/hello-default.css.
14180         * modules/libtextstyle-optional-tests: New file.
14182         libtextstyle-optional: New module.
14183         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
14184         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
14185         * modules/libtextstyle-optional: New file.
14187 2019-03-19  Bruno Haible  <bruno@clisp.org>
14189         c-stack: Make signal handlers more reliable.
14190         * lib/c-stack.c (progname): New variable.
14191         (die): Use it.
14192         (c_stack_action): Initialize it.
14193         (segv_handler): Save and restore errno.
14195 2019-03-19  Bruno Haible  <bruno@clisp.org>
14197         Help making signal handlers more reliable.
14198         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
14199         _GL_ASYNC_SAFE into config.h.
14200         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
14201         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
14202         argument.
14203         * lib/fatal-signal.c (action_t, uninstall_handlers,
14204         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
14205         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
14206         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
14207         _GL_ASYNC_SAFE.
14208         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
14209         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
14211 2019-03-18  Bruno Haible  <bruno@clisp.org>
14213         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
14214         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
14215         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
14217 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
14219         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
14220         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
14221         GCC 4.8.
14223 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
14225         fts: minor simplification
14226         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
14228 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
14230         bitset, timevar: Depend on c99.
14231         Reported by Bruno Haible.
14232         * modules/bitset, modules/timevar (Depends-on): Add c99.
14234 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
14236         bitset: a bit (...) more tests
14237         * tests/test-bitset.c (check_attributes): Check zero and ones.
14239 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
14241         bitset: fix overflows.
14242         Reported by Bruno Haible.
14243         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
14244         * lib/bitset/table.c (tbitset_test): last_bit is the position of
14245         the bit in the array of bitset_word, so be sure to take its modulo
14246         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
14247         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
14249 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
14251         bitset: style changes.
14252         * lib/bitset/table.c: Use NULL, not 0, for pointers.
14253         Formatting changes.
14254         (tbitset_list): Reduce scopes.
14256 2019-03-16  Bruno Haible  <bruno@clisp.org>
14258         fatal-signal: Pass the signal number to the action.
14259         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
14260         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
14261         (fatal_signal_handler): Pass the signal number to the action.
14262         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
14263         signal number as parameter.
14264         (create_temp_dir): Update.
14265         * lib/wait-process.c (cleanup_slaves_action): New function.
14266         (register_slave_subprocess): Update at_fatal_signal invocation.
14267         * NEWS: Mention the change.
14269 2019-03-16  Bruno Haible  <bruno@clisp.org>
14271         fatal-signal: Add function that lists the fatal signals.
14272         * lib/fatal-signal.h (get_fatal_signals): New declaration.
14273         * lib/fatal-signal.c (get_fatal_signals): New function.
14275 2019-03-14  Bruno Haible  <bruno@clisp.org>
14277         isatty: Make it return true in Cygwin consoles on native Windows.
14278         * lib/isatty.c: Include <string.h>.
14279         (GetProcAddress): New macro.
14280         (GetNamedPipeClientProcessIdFuncType): New type.
14281         (GetNamedPipeClientProcessIdFunc): New variable.
14282         (QueryFullProcessImageNameFuncType): New type.
14283         (QueryFullProcessImageNameFunc): New variable.
14284         (initialized): New variable.
14285         (initialize): New function.
14286         (IsCygwinConsoleHandle): New function.
14287         (isatty): Invoke it.
14288         * doc/posix-functions/isatty.texi: Mention the issue.
14290 2019-03-14  Bruno Haible  <bruno@clisp.org>
14292         all: Update URLs to msdn.microsoft.com.
14293         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
14294         was moved to docs.microsoft.com.
14296 2019-03-13  Bruno Haible  <bruno@clisp.org>
14298         gnulib-tool: Clarify the coding style.
14299         Suggested by Pavel Raiskup <praiskup@redhat.com>.
14300         * gnulib-tool: Add comment about coding style.
14302 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
14304         strtod: fix clash with strtold
14305         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
14306         * lib/strtod.c (compute_minus_zero, minus_zero):
14307         Simplify by remving the macro / external variable,
14308         and having just a function.  User changed.  This avoids
14309         the need for an external variable that might clash.
14311 2019-03-10  Bruno Haible  <bruno@clisp.org>
14313         alloca-opt: Fix conflict mingw's new <alloca.h> file.
14314         Reported by Eli Zaretskii <eliz@gnu.org>.
14315         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
14316         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
14317         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
14319 2019-03-10  Bruno Haible  <bruno@clisp.org>
14321         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
14322         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
14323         is in use.
14324         * tests/test-printf-posix2.c: Likewise.
14326 2019-03-10  Bruno Haible  <bruno@clisp.org>
14328         uninorm tests: Free allocated memory.
14329         * tests/uninorm/test-u32-normalize-big.h
14330         (struct normalization_test_file): Remove 'const' from allocated member.
14331         (free_normalization_test_file): New declaration.
14332         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
14333         memory.
14334         (free_normalization_test_file): New function.
14335         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
14336         'struct normalization_test_file' contents.
14337         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
14338         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
14339         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
14341 2019-03-10  Bruno Haible  <bruno@clisp.org>
14343         di-set: Fix memory leak.
14344         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
14345         not free().
14347 2019-03-10  Bruno Haible  <bruno@clisp.org>
14349         tests: Free allocated memory.
14350         Reported by <deltatau@protonmail.com> via Assaf Gordon.
14351         * tests/test-astrxfrm.c (main): Free allocated memory.
14352         * tests/test-bitset.c (compare, check_attributes): Free allocated
14353         bitsets.
14354         * tests/test-filenamecat.c (main): Free allocated memory.
14355         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
14356         * tests/test-freadptr.c (main): Likewise.
14357         * tests/test-freadptr2.c (main): Free allocated memory.
14358         * tests/test-freadseek.c (main): Likewise.
14359         * tests/test-gc-arcfour.c (main): Close allocated context.
14360         * tests/test-gc-arctwo.c (main): Likewise.
14361         * tests/test-gc-des.c (main): Close all allocated contexts.
14362         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
14363         * tests/test-pipe-filter-ii1.c (main): Likewise.
14364         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
14365         allocated file actions.
14366         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
14367         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
14368         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
14369         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
14370         * tests/test-strfmon_l.c (main): Free allocated locales.
14371         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
14372         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
14373         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
14374         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
14375         * tests/unistr/test-chr.h (main): Free input32.
14376         * tests/unistr/test-strchr.h (test_strchr): Likewise.
14378 2019-03-10  Bruno Haible  <bruno@clisp.org>
14380         tests: Prepare for using valgrind.
14381         * tests/*.sh: Invoke all test programs through ${CHECKER}.
14382         * tests/*/*.sh: Likewise.
14383         * tests/test-freadptr.c (main): Update accordingly.
14384         * tests/test-freadseek.c (main): Likewise.
14386 2019-03-09  Bruno Haible  <bruno@clisp.org>
14388         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
14389         * lib/get-rusage-as.c (get_rusage_as): When compiled by
14390         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
14391         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
14392         before exiting.
14394 2019-03-09  Jim Meyering  <meyering@fb.com>
14396         test-userspec.c: don't print NULL
14397         * tests/test-userspec.c (main): A test release of gcc,
14398         9.0.1 20190310, warned that this test would attempt to
14399         print a NULL pointer via a %s printf format.  Fix that
14400         and remove the unnecessary preceding "!diag" conjunct.
14401         Also add a comment.
14403 2019-03-03  Bruno Haible  <bruno@clisp.org>
14405         getloadavg: Write NULL for the null pointer.
14406         Reported by Michal Privoznik <mprivozn@redhat.com>.
14407         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
14409 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
14411         alloca, tsearch-tests: Write NULL for the null pointer.
14412         * lib/alloca.c (i00afunc): Write NULL instead of 0.
14413         * tests/test-tsearch.c (mangle_tree): Likewise.
14415 2019-03-09  Bruno Haible  <bruno@clisp.org>
14417         strfmon_l: Fix -fsanitize=address finding.
14418         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
14419         <string.h>.
14420         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
14421         (directive_t, directives_t): New types.
14422         (fmon_parse): New function.
14423         (rpl_strfmon_l): Don't call va_arg more often than needed for the
14424         format string. Consume 'long double' arguments in places where the
14425         format string indicates so.
14426         * modules/strfmon_l (Depends-on): Add 'stdbool'.
14428 2019-03-09  Bruno Haible  <bruno@clisp.org>
14430         crypto/des: Fix undefined behaviour.
14431         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
14432         shift operations on 'int'.
14434 2019-03-09  Bruno Haible  <bruno@clisp.org>
14436         Fix undefined behaviour.
14437         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
14438         'unsigned int', to avoid shift operations on 'int'.
14439         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
14440         * tests/test-count-leading-zeros.c (main): Use a random number that has
14441         as many bits as TYPE, not only 2*15 or 2*31 bits.
14442         * tests/test-count-trailing-zeros.c (main): Likewise.
14443         * tests/test-count-one-bits.c (main): Likewise.
14444         * tests/test-memmem.c: Don't include "null-ptr.h".
14445         (main): Use zerosize_ptr() instead of null_ptr().
14446         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
14448 2019-03-08  Bruno Haible  <bruno@clisp.org>
14450         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
14451         Reported by Jeffrey Walton <noloader@gmail.com>.
14452         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
14453         invoke memset with a zero size.
14454         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
14455         Likewise.
14456         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
14457         Adjust accordingly.
14459 2019-03-08  Bruno Haible  <bruno@clisp.org>
14461         unistr/*, uniconv/*: Fix undefined behaviour.
14462         Reported by Jeffrey Walton <noloader@gmail.com>.
14463         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
14464         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
14465         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
14466         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14468 2019-03-08  Bruno Haible  <bruno@clisp.org>
14470         unistr/u8-cmp: Fix undefined behaviour.
14471         Reported by Jeffrey Walton <noloader@gmail.com>.
14472         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
14474 2019-03-08  Bruno Haible  <bruno@clisp.org>
14476         unictype/numeric: Fix undefined behaviour.
14477         Reported by Jeffrey Walton <noloader@gmail.com>.
14478         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
14479         on shift overflow, caught by "gcc -fsanitize=undefined".
14480         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
14481         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
14482         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
14484 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
14486         git-version-gen: fix --version copyright year
14487         * build-aux/git-version-gen, build-aux/move-if-change (version):
14488         --version output copyright year is now taken from script year,
14489         so that it no longer needs to be updated by hand.
14491 2019-03-04  Bruno Haible  <bruno@clisp.org>
14493         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
14494         This approach supports relocatable installation of shared libraries
14495         which depend on other shared libraries from the same package.
14496         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
14497         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
14498         wrapper around the original LIBTOOL.
14499         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
14500         token '@loader_path' instead of '$ORIGIN'.
14501         * build-aux/libtool-reloc: New file.
14502         * modules/relocatable-prog (Files): Add it.
14503         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
14504         the recent changes. Document the need to set the *_LDFLAGS of libraries.
14505         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
14506         Makefile.am, not in configure.ac.
14508 2019-03-04  Bruno Haible  <bruno@clisp.org>
14510         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
14511         * build-aux/install-reloc: Revert change.
14512         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
14514 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14516         nstrftime: support the ‘+’ flag
14517         * lib/nstrftime.c (add, __strftime_internal):
14518         Add support for the ‘+’ flag introduced in POSIX.1-2017.
14519         (__strftime_internal): New arg ‘width’.  All uses changed.
14520         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
14522 2019-02-24  Bruno Haible  <bruno@clisp.org>
14524         relocatable-prog: Improve verbose output.
14525         * build-aux/install-reloc (func_verbose): Escape characters that would
14526         be interpreted by the shell.
14528 2019-02-24  Bruno Haible  <bruno@clisp.org>
14530         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
14531         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
14532         "sys/stat.h".
14533         * lib/lstat.c: Likewise.
14534         * lib/fstat.c: Likewise.
14535         * lib/fstatat.c: Likewise.
14537 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
14539         long-options: add parse_gnu_standard_options_only
14540         Discussed in https://bugs.gnu.org/33468 .
14542         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
14543         (parse_gnu_standard_options_only): Add function to process
14544         the GNU default options --help and --version and fail for
14545         any other unknown long or short option. See
14546         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
14547         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
14548         * modules/long-options (depends-on): Add stdbool, exitfail.
14549         * top/maint.mk (sc_prohibit_long_options_without_use): Update
14550         syntax-check rule, add new function name.
14552 2019-02-23  Bruno Haible  <bruno@clisp.org>
14554         relocatable-prog: Update documentation.
14555         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
14556         the recent changes.
14558 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
14560         nstrftime: tweak arg order
14561         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
14562         All callers changed.  Suggested by TAMUKI Shoichi in:
14563         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
14565 2019-02-23  Bruno Haible  <bruno@clisp.org>
14567         relocatable-prog: Use wrapper-free installation also on Mac OS X.
14568         Reported by Paul Smith <psmith@gnu.org>.
14569         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
14570         (func_relativize): New function, from gnulib-tool.
14571         Handle mode 'macosx' through invocations of 'otool' and
14572         'install_name_tool'.
14573         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
14574         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
14575         'install-reloc' invocation with mode 'macosx'.
14577 2019-02-23  Bruno Haible  <bruno@clisp.org>
14579         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
14580         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
14581         Hurd with glibc >= 2.27.
14583 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
14585         nstrftime: merge glibc strftime changes
14586         This incorporates:
14587         2019-02-11 Fix a few whitespace arrangement inconsistencies
14588         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
14589         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
14590         2019-01-11 strftime: use the "L_" macro with character literals
14591         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
14592         callers changed.  Default width of %Ey is now 2.  This is needed
14593         for proper handling of Japanese dates starting on 2019-05-01.
14595 2019-02-19  Bruno Haible  <bruno@clisp.org>
14597         relocatable-prog: Use $ORIGIN trick on more platforms.
14598         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
14599         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
14600         Solaris >= 10, Haiku. But don't use it on Android.
14601         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
14602         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
14604 2019-02-19  Bruno Haible  <bruno@clisp.org>
14606         progreloc: Speed up executable lookup on various platforms.
14607         * lib/progreloc.c: Include <errno.h>.
14608         (safe_read, full_read): New functions.
14609         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
14610         prefer the information from the /proc file system to a PATH search.
14612 2019-02-19  Bruno Haible  <bruno@clisp.org>
14614         progreloc: Simplify code for Android.
14615         * lib/progreloc.c (executable_fd): Don't define on Android.
14616         (maybe_executable, find_executable): Don't use executable_fd on Android.
14618 2019-02-15  Bruno Haible  <bruno@clisp.org>
14620         gnulib-tool: Support --import with just a few tests, not --with-tests.
14621         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
14622         'inctests' when generating files; use 'inctests' only for computing the
14623         transitive closure.
14625 2019-02-14  Bruno Haible  <bruno@clisp.org>
14627         gnulib-tool: Improve handling of multiple --local-dir options.
14628         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
14629         options work.
14630         * gnulib-tool (func_path_prepend): Remove function.
14631         (func_path_foreach): Make IFS handling more robust.
14632         (local_gnulib_path): Collect --local-dir values using func_path_append,
14633         not func_path_prepend.
14634         (func_determine_path_separator): Make IFS handling more robust.
14635         (func_lookup_file_cb): New function.
14636         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
14637         func_lookup_local_file. Apply the patches in the reverse order of their
14638         origin in $local_gnulib_path.
14639         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
14640         * NEWS: Mention that the first --local-dir option is the one with
14641         highest priority.
14643 2019-02-10  Bruno Haible  <bruno@clisp.org>
14645         libtextstyle: New module.
14646         * m4/libtextstyle.m4: New file.
14647         * modules/libtextstyle: New file.
14649 2019-02-05  Bruno Haible  <bruno@clisp.org>
14651         declared.sh: Fix bug with variables of pointer type.
14652         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
14653         before the symbol to be omitted if the preceding character is a '*'.
14655 2019-02-04  Bruno Haible  <bruno@clisp.org>
14657         Add script for running tests under valgrind.
14658         * build-aux/run-test: New file, from GNU libunistring.
14659         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
14660         as well.
14662 2019-02-04  Bruno Haible  <bruno@clisp.org>
14664         declared.sh: Fix --version output.
14665         * build-aux/declared.sh (func_version): Update package name.
14667 2019-02-03  Bruno Haible  <bruno@clisp.org>
14669         Add script for determining the set of symbols to export from a library.
14670         * build-aux/declared.sh: New file, from GNU libunistring.
14671         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
14672         Mention it.
14674 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
14676         vla: add commentary about VLA_ELEMS
14677         * lib/vla.h (VLA_ELEMS): Add commentary,
14678         some inspired by Bruno Haible’s proposal in:
14679         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
14681         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
14682         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
14683         assume the C99 signatures for strtod and strtold.  Programs that
14684         require stricter adherence to C99 should also use the strtod and
14685         strtold modules as needed, and we no longer need the
14686         HAVE_C99_STRTOLD macro.
14687         * NEWS: Mention this.
14688         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
14689         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
14690         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
14691         (Files): Remove m4/c-strtod.m4.
14692         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
14693         exists.
14695 2019-02-02  Bruno Haible  <bruno@clisp.org>
14697         fma: Improve code style.
14698         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
14700 2019-02-02  Colin Watson  <cjwatson@debian.org>
14702         *-map tests: Fix compilation error.
14703         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
14704         * tests/test-hash_map.c: Likewise.
14705         * tests/test-linkedhash_map.c: Likewise.
14707 2019-01-31  Bruno Haible  <bruno@clisp.org>
14709         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
14710         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
14711         GNULIB_defined_strtold_function): New macros.
14712         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
14713         (STRTOD): Ignore HAVE_C99_STRTOLD.
14714         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
14715         deemed buggy. But do use it on platforms where uselocale exists and is
14716         usable.
14717         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
14718         deemed buggy. On platforms where uselocale exists and is usable, use
14719         uselocale and strtod/strtold.
14720         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
14721         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
14722         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
14723         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
14724         (Depends-on): Add strtod.
14725         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
14726         (Depends-on): Add strtold.
14728 2019-01-31  Bruno Haible  <bruno@clisp.org>
14730         strtod, strtold: Use the locale's decimal point.
14731         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
14732         (decimal_point_char): New function, copied from lib/vasnprintf.c.
14733         (parse_number): Add a radixchar argument. Use it instead of '.'.
14734         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
14735         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
14736         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
14737         * tests/test-strtod1.c: New file.
14738         * tests/test-strtod1.sh: New file.
14739         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
14740         locale-fr.m4 and its dependencies.
14741         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
14742         (Makefile.am): Arrange to compile test-strtod1.c and run
14743         test-strtod1.sh.
14744         * tests/test-strtold1.c: New file.
14745         * tests/test-strtold1.sh: New file.
14746         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
14747         locale-fr.m4 and its dependencies.
14748         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
14749         (Makefile.am): Arrange to compile test-strtold1.c and run
14750         test-strtold1.sh.
14752 2019-01-31  Bruno Haible  <bruno@clisp.org>
14754         strtod, strtold tests: Simplify tests.
14755         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
14756         * tests/test-strtold.c (main): Likewise.
14758 2019-01-31  Bruno Haible  <bruno@clisp.org>
14760         strtod, strtold: Avoid unnecessary rounding errors.
14761         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
14762         decimal to DOUBLE conversion.
14764 2019-01-31  Bruno Haible  <bruno@clisp.org>
14766         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
14767         * lib/strtod.c (STRTOD): When there is an extra character after the
14768         exponent marker 'p', reparse the number.
14769         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
14770         * doc/posix-functions/strtold.texi: Likewise.
14772 2019-01-29  Bruno Haible  <bruno@clisp.org>
14774         strtold: Add tests.
14775         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
14776         * modules/strtold-tests: New file.
14778 2019-01-29  Bruno Haible  <bruno@clisp.org>
14780         strtold: New module.
14781         * lib/stdlib.in.h (strtold): New declaration.
14782         * lib/strtold.c: New file.
14783         * lib/strtod.c: Consider USE_LONG_DOUBLE.
14784         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
14785         USE_LDEXP): New macros.
14786         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
14787         USE_LONG_DOUBLE.
14788         (underlying_strtod): Remove function. Replace with some macros.
14789         Re-add the code for a missing underlying function that was removed on
14790         2013-02-19.
14791         * m4/strtold.m4: New file.
14792         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
14793         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
14794         REPLACE_STRTOLD.
14795         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
14796         REPLACE_STRTOLD.
14797         * modules/strtold: New file.
14798         * doc/posix-functions/strtold.texi: Document the new module.
14800 2019-01-29  Bruno Haible  <bruno@clisp.org>
14802         strtod: Fix compilation error on IRIX 6.5.
14803         * modules/strtod (Depends-on): Add 'math'.
14805 2019-01-28  Bruno Haible  <bruno@clisp.org>
14807         Fix build error when building a shared libunistring on Android.
14808         * tests/uninorm/test-nfc.c (n): Don't define on Android.
14809         (main): Add 'volatile', to defeat a GCC optimization that would
14810         eliminate the reference.
14811         * tests/uninorm/test-nfd.c (n): Don't define on Android.
14812         (main): Add 'volatile', to defeat a GCC optimization that would
14813         eliminate the reference.
14814         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
14815         (main): Add 'volatile', to defeat a GCC optimization that would
14816         eliminate the reference.
14817         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
14818         (main): Add 'volatile', to defeat a GCC optimization that would
14819         eliminate the reference.
14821 2019-01-27  Bruno Haible  <bruno@clisp.org>
14823         Avoid build errors due to wrong references between modules.
14824         * lib/uninorm/canonical-decomposition.c: Include
14825         "uninorm/decomposition-table.h", not "decomposition-table.h".
14826         * lib/uninorm/decomposition.c: Likewise.
14827         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
14828         not "decompose-internal.h".
14829         * lib/uninorm/u16-normalize.c: Likewise.
14830         * lib/uninorm/u32-normalize.c: Likewise.
14831         * lib/uninorm/uninorm-filter.c: Likewise.
14832         * lib/uninorm/nfkc.c: Likewise.
14833         * lib/uninorm/nfkd.c: Likewise.
14834         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
14835         "caseprop.h".
14836         * lib/unicase/u8-ct-totitle.c: Likewise.
14837         * lib/unicase/u8-prefix-context.c: Likewise.
14838         * lib/unicase/u8-suffix-context.c: Likewise.
14839         * lib/unicase/u16-casemap.c: Likewise.
14840         * lib/unicase/u16-ct-totitle.c: Likewise.
14841         * lib/unicase/u16-prefix-context.c: Likewise.
14842         * lib/unicase/u16-suffix-context.c: Likewise.
14843         * lib/unicase/u32-casemap.c: Likewise.
14844         * lib/unicase/u32-ct-totitle.c: Likewise.
14845         * lib/unicase/u32-prefix-context.c: Likewise.
14846         * lib/unicase/u32-suffix-context.c: Likewise.
14847         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
14848         "unicasemap.h".
14849         * lib/unicase/u8-toupper.c: Likewise.
14850         * lib/unicase/u8-ct-tolower.c: Likewise.
14851         * lib/unicase/u8-ct-toupper.c: Likewise.
14852         * lib/unicase/u16-tolower.c: Likewise.
14853         * lib/unicase/u16-toupper.c: Likewise.
14854         * lib/unicase/u16-ct-tolower.c: Likewise.
14855         * lib/unicase/u16-ct-toupper.c: Likewise.
14856         * lib/unicase/u32-tolower.c: Likewise.
14857         * lib/unicase/u32-toupper.c: Likewise.
14858         * lib/unicase/u32-ct-tolower.c: Likewise.
14859         * lib/unicase/u32-ct-toupper.c: Likewise.
14860         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
14861         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
14862         * lib/unicase/u16-ct-casefold.c: Likewise.
14863         * lib/unicase/u32-ct-casefold.c: Likewise.
14865 2019-01-27  Bruno Haible  <bruno@clisp.org>
14867         gperf: Fix error when this module is required by some test module.
14868         * modules/gperf (Applicability): Set to 'all'.
14870 2019-01-27  Bruno Haible  <bruno@clisp.org>
14872         tmpfile: Add support for Android.
14873         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
14874         works.
14875         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
14876         Android.
14877         * modules/tmpfile (Depends-on): Add 'stdbool'.
14878         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
14879         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
14881 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
14883         bitsetv: allow free on NULL.
14884         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
14886 2019-01-27  Bruno Haible  <bruno@clisp.org>
14888         test-framework-sh: Improve maintainability.
14889         * tests/init.sh: Clarify what belongs together. Reorder definitions.
14891 2019-01-27  Bruno Haible  <bruno@clisp.org>
14893         tests: Don't assume that /tmp exists.
14894         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
14895         * tests/test-copy-acl-1.sh: Likewise.
14896         * tests/test-file-has-acl-1.sh: Likewise.
14897         * tests/test-copy-file-1.sh: Likewise.
14899 2019-01-27  Bruno Haible  <bruno@clisp.org>
14901         tests: Accommodate a shell that is not in /bin/sh.
14902         * tests/init.sh (setup_): Set srcdir and builddir.
14903         (BOURNE_SHELL): New variable.
14904         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
14905         * modules/file-has-acl-tests (Depends-on): Likewise.
14906         * modules/copy-file-tests (Depends-on): Likewise.
14907         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
14908         scripts through $BOURNE_SHELL.
14909         * tests/test-set-mode-acl-2.sh: Likewise.
14910         * tests/test-copy-acl-1.sh: Likewise.
14911         * tests/test-copy-acl-2.sh: Likewise.
14912         * tests/test-file-has-acl-1.sh: Likewise.
14913         * tests/test-file-has-acl-2.sh: Likewise.
14914         * tests/test-copy-file-1.sh: Likewise.
14915         * tests/test-copy-file-2.sh: Likewise.
14916         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
14917         invoker.
14918         * tests/test-copy-acl.sh (builddir): Likewise.
14919         * tests/test-file-has-acl.sh (builddir): Likewise.
14920         * tests/test-copy-file.sh (builddir): Likewise.
14921         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
14922         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
14923         * tests/test-vc-list-files-git.sh: Likewise.
14925 2019-01-27  Bruno Haible  <bruno@clisp.org>
14927         tests: Fix some "unused variable" warnings.
14928         * tests/test-fts.c (fts_dealloc): Remove unused variable.
14929         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
14930         * tests/test-striconveh.c (main): Move some variable into the
14931         '#if HAVE_ICONV'.
14932         * tests/test-striconveha.c (main): Likewise.
14933         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
14934         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
14935         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
14936         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
14937         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
14938         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
14939         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
14940         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
14941         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
14942         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
14943         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
14944         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
14945         * tests/test-tsearch.c (main): Move some variable into the
14946         '#if HAVE_INITSTATE'.
14948 2019-01-27  Bruno Haible  <bruno@clisp.org>
14950         unigbrk/uc-grapheme-breaks: Fix build failure.
14951         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
14952         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
14954 2019-01-27  Bruno Haible  <bruno@clisp.org>
14956         mountlist: Merge two .m4 files.
14957         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
14958         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
14959         * m4/ls-mntd-fs.m4: Remove file.
14960         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
14962 2019-01-27  Bruno Haible  <bruno@clisp.org>
14964         tests: Enable Linux specific tests on Android.
14965         * tests/test-flock.c (main): Treat Android like Linux.
14966         * tests/test-openat-safer.c (main): Likewise.
14968 2019-01-27  Bruno Haible  <bruno@clisp.org>
14970         relocatable-prog: Use Linux code on Android.
14971         * lib/progreloc.c: Treat Android like Linux.
14973 2019-01-26  Bruno Haible  <bruno@clisp.org>
14975         getloadavg: Add support for Android.
14976         * lib/getloadavg.c: Treat Android like Linux.
14978 2019-01-26  Bruno Haible  <bruno@clisp.org>
14980         vma-iter: Add support for Android.
14981         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
14982         * lib/vma-iter.c: Treat Android like Linux.
14983         * lib/get-rusage-data.c (get_rusage_data): Likewise.
14985 2019-01-26  Bruno Haible  <bruno@clisp.org>
14987         fts: Optimize on Android.
14988         * lib/fts.c: Treat Android like Linux.
14990 2019-01-26  Bruno Haible  <bruno@clisp.org>
14992         fts: Add support for Android.
14993         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
14994         defined by this module and the ones in libc.
14995         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
14997 2019-01-26  Bruno Haible  <bruno@clisp.org>
14999         mountlist: Use Linux code on Android.
15000         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
15001         (unescape_tab, read_file_system_list): Enable Linux code on Android
15002         as well.
15003         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
15004         and endmntent.
15005         * modules/mountlist (Depends-on): Add 'getline'.
15007 2019-01-26  Bruno Haible  <bruno@clisp.org>
15009         localename tests: Fix test failure on Android.
15010         * modules/localename-tests (Depends-on): Add 'setlocale'.
15012 2019-01-26  Bruno Haible  <bruno@clisp.org>
15014         mountlist: Port better to Android.
15015         * lib/mountlist.c (MOUNTED): Redefine on Android.
15016         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
15017         Android.
15019 2019-01-26  Bruno Haible  <bruno@clisp.org>
15021         striconveh: Fix use of uninitialized iconv_t.
15022         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
15023         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
15024         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
15026 2019-01-26  Bruno Haible  <bruno@clisp.org>
15028         nonblocking-socket-tests: Fix test failure on Android 4.3.
15029         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
15030         also on Android.
15032 2019-01-26  Bruno Haible  <bruno@clisp.org>
15034         sh-filename: Add support for Android 4.3.
15035         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
15037 2019-01-26  Bruno Haible  <bruno@clisp.org>
15039         ptsname_r: Work around bug on Android 4.3.
15040         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
15041         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
15042         correct.
15043         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
15044         is defined, just fix the return value.
15045         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
15046         The behaviour of musl libc is nothing to be "fixed", since it is
15047         compliant with the next POSIX standard.
15049 2019-01-26  Bruno Haible  <bruno@clisp.org>
15051         ttyname_r: Work around bug on Android 4.3.
15052         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
15053         * lib/ttyname_r.c (ttyname_r): Implement for Android.
15054         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
15055         * doc/posix-functions/ttyname.texi: Likewise.
15057 2019-01-25  Bruno Haible  <bruno@clisp.org>
15059         getprogname: Port to Android 4.3.
15060         * lib/getprogname.c (getprogname): On Android, take only the last
15061         component of __progname.
15063 2019-01-25  Bruno Haible  <bruno@clisp.org>
15065         wcrtomb: Work around bug on Android 4.3.
15066         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
15067         the C locale.
15068         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
15069         which does not have the 'wctomb' function.
15070         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
15071         * tests/test-wcrtomb.c (main): Accept argument '5'.
15072         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
15074 2019-01-25  Bruno Haible  <bruno@clisp.org>
15076         setlocale: Work around bug on Android 4.3.
15077         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
15078         the "C" locale.
15079         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
15080         * doc/posix-functions/setlocale.texi: Mention the Android bug.
15082 2019-01-24  Bruno Haible  <bruno@clisp.org>
15084         memchr: Work around bug on Android <= 5.0.
15085         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
15086         * doc/posix-functions/memchr.texi: Mention the Android bug.
15088 2019-01-24  Bruno Haible  <bruno@clisp.org>
15090         random: Fix compilation error on Android 4.3.
15091         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
15092         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
15093         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
15094         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
15095         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
15096         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
15097         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
15098         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
15099         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
15100         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
15101         REPLACE_INITSTATE, REPLACE_SETSTATE.
15102         * doc/posix-functions/random.texi: Correct the description of the
15103         situation on Android.
15104         * doc/posix-functions/srandom.texi: Likewise.
15105         * doc/posix-functions/rand.texi: Likewise.
15106         * doc/posix-functions/srand.texi: Likewise.
15108 2019-01-24  Bruno Haible  <bruno@clisp.org>
15110         mbtowc: Fix compilation error on Android 4.3.
15111         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
15112         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
15113         HAVE_MBTOWC.
15114         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
15115         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
15116         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
15117         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
15118         * doc/posix-functions/mbtowc.texi: Mention the change.
15120 2019-01-24  Bruno Haible  <bruno@clisp.org>
15122         fdatasync: Fix compilation error on Android 4.3.
15123         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
15124         test whether fdatasync() exists.
15126 2019-01-24  Bruno Haible  <bruno@clisp.org>
15128         unlinkat: Fix compilation error on Android 4.3.
15129         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
15130         also on Android.
15131         * doc/posix-functions/unlinkat.texi: Mention the issue.
15133 2019-01-24  Bruno Haible  <bruno@clisp.org>
15135         renameat: Fix compilation error on Android 4.3.
15136         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
15137         * doc/posix-functions/renameat.texi: Mention the issue.
15139 2019-01-24  Bruno Haible  <bruno@clisp.org>
15141         fchownat: Fix compilation error on Android 4.3.
15142         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
15143         use.
15144         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
15145         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
15146         * doc/posix-functions/fchownat.texi: Mention the issue.
15148 2019-01-23  Bruno Haible  <bruno@clisp.org>
15150         gnulib-tool: Support running testdirs on Android.
15151         * build-aux/test-driver.diff: New file.
15152         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
15153         build-aux/test-driver after running automake.
15155 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
15157         relocatable-prog: avoid warnings from Automake
15158         * modules/relocatable-prog: Don't declare PHONY dependencies in
15159         Automake conditionals.
15161 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
15163         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
15164         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
15166 2019-01-23  Bruno Haible  <bruno@clisp.org>
15168         threadlib: Revert commit from 2018-06-25. We now have a better fix.
15169         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
15170         preceding -Wl,--as-needed option. Don't check whether the linker
15171         supports --as-needed/--no-as-needed and --push-state/--pop-state.
15173 2019-01-23  Bruno Haible  <bruno@clisp.org>
15175         thread: Force linking with -lpthread, even when --as-needed is in use.
15176         Reported by Richard W.M. Jones <rjones@redhat.com> in
15177         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
15178         * lib/glthread/thread.h (pthread_create): Don't declare weak.
15180 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
15181             Bruno Haible  <bruno@clisp.org>
15183         relocatable: avoid compiler warnings (-Wshadow)
15184         * lib/relocatable.c (compute_curr_prefix): Rename local variables
15185         to avoid name collisions with global variables.
15187 2019-01-22  Bruno Haible  <bruno@clisp.org>
15189         vasnprintf: Don't use %n on Android.
15190         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
15191         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
15192         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
15194 2019-01-22  Bruno Haible  <bruno@clisp.org>
15196         *printf: Support cross-compilation to Android.
15197         * m4/printf.m4: Add cross-compilation guesses for Android.
15199 2019-01-21  Bruno Haible  <bruno@clisp.org>
15201         diacrit: Mark deprecated.
15202         * modules/diacrit (Status, Notice): Mark as deprecated.
15203         * NEWS: Mention it.
15205 2019-01-20  Bruno Haible  <bruno@clisp.org>
15207         rintl: Override broken implementation on NetBSD.
15208         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
15209         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
15210         REPLACE_RINTL.
15211         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
15212         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
15213         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
15214         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
15216 2019-01-20  Bruno Haible  <bruno@clisp.org>
15218         log10l: Work around inaccurate implementation on NetBSD.
15219         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
15220         * lib/log10l.c: Comment out too simplistic override.
15221         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
15223 2019-01-20  Bruno Haible  <bruno@clisp.org>
15225         logl: Work around inaccurate implementation on NetBSD.
15226         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
15227         * lib/logl.c: Comment out unused code.
15228         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
15230 2019-01-20  Bruno Haible  <bruno@clisp.org>
15232         expm1l: Work around inaccurate implementation on NetBSD.
15233         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
15234         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
15235         REPLACE_EXPM1L.
15236         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
15237         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
15238         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
15239         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
15241 2019-01-20  Bruno Haible  <bruno@clisp.org>
15243         expl: Work around inaccurate implementation on NetBSD.
15244         * lib/math.in.h (expl): Test also REPLACE_EXPL.
15245         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
15246         REPLACE_EXPL.
15247         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
15248         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
15249         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
15250         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
15252 2019-01-20  Bruno Haible  <bruno@clisp.org>
15254         exp2l: Work around inaccurate implementation on NetBSD.
15255         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
15256         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
15258 2019-01-20  Bruno Haible  <bruno@clisp.org>
15260         floor, floorl: Avoid autoconf warnings.
15261         * modules/floor (configure.ac): Use AC_REQUIRE.
15262         * modules/floorl (configure.ac): Likewise.
15264 2019-01-20  Bruno Haible  <bruno@clisp.org>
15266         Defeat current GCC optimizations in math autoconf tests.
15267         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
15268         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
15269         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15270         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15271         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
15272         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
15273         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
15274         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15275         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
15276         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
15277         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
15278         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
15279         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
15280         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
15281         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
15282         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
15283         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
15284         * m4/log.m4 (gl_FUNC_LOG): Likewise.
15285         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
15286         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
15287         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
15288         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
15289         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
15290         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
15291         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
15292         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
15293         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
15294         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
15295         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
15296         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
15297         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
15298         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
15299         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15300         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15301         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15302         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15303         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15304         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15306 2019-01-19  Pádraig Brady  <P@draigBrady.com>
15308         gettext: support disabling use of VLAs
15309         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
15311 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
15313         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
15314         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
15316 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
15318         fcntl: Fix syntax error (regression from 2018-10-05).
15319         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
15321 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
15323         relocatable: improve documentation.
15324         * doc/relocatable-maint.texi (Supporting Relocation): For
15325         substitutions performed by config.status, we need more variables
15326         (for instance datarootdir defaults to '${prefix}/share' so we need
15327         prefix).
15329 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
15331         backup: update dependencies
15332         * modules/backup-rename (Depends-on): It now depends on opendirat
15333         instead of opendir.  It also uses stdint, and xalloc-oversized.
15334         But no longer dirfd.
15335         * modules/backupfile (Depends-on): Add xalloc-oversized.
15337 2019-01-13  Bruno Haible  <bruno@clisp.org>
15339         getcwd: Fix test failure when building on a Linux 9p file system.
15340         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
15341         EINVAL from mkdir like ENAMETOOLONG.
15342         * tests/test-getcwd.c (test_long_name): Likewise.
15344 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
15346         Fix typos found by codespell.
15347         * lib/*.[hc]: Fix typos in comments.
15348         * pygnulib/*.py: Fix typos in error messages and comments.
15350 2019-01-12  Bruno Haible  <bruno@clisp.org>
15352         doc: Fix documentation about container data types.
15353         Reported by Werner Lemberg <wl@gnu.org>.
15354         * doc/containers.texi (Container data types): Fix typo.
15356 2019-01-10  Bruno Haible  <bruno@clisp.org>
15358         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
15359         Reported by Reuben Thomas <rrt@sc3d.org>.
15360         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
15362 2019-01-06  Bruno Haible  <bruno@clisp.org>
15364         maintainer-makefile: Make the configure.ac section optional.
15365         * top/maint.mk (GREP, SED): Define if not defined.
15367 2019-01-06  Bruno Haible  <bruno@clisp.org>
15369         localename: Assume setlocale function.
15370         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
15371         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
15373 2019-01-06  Bruno Haible  <bruno@clisp.org>
15375         doc: Add documentation about container data types.
15376         * doc/containers.texi: New file.
15377         * doc/gnulib.texi (Particular Modules): Include it.
15379 2019-01-06  Bruno Haible  <bruno@clisp.org>
15381         doc: Update documentation about 'progname' module.
15382         * doc/progname.texi: Rename from doc/error.texi. Change node name and
15383         title. Rewrite.
15384         * doc/gnulib.texi (Particular Modules): Update.
15386 2019-01-06  Bruno Haible  <bruno@clisp.org>
15388         doc: Document the xstdopen and *-safer modules.
15389         * doc/xstdopen.texi: New file.
15390         * doc/gnulib.texi (Particular Modules): Include it.
15392 2019-01-06  Bruno Haible  <bruno@clisp.org>
15394         xstdopen: Add tests.
15395         * tests/test-xstdopen.c: New file.
15396         * tests/test-xstdopen.sh: New file.
15397         * modules/xstdopen-tests: New file.
15399         xstdopen: New module.
15400         * lib/xstdopen.h: New file.
15401         * lib/xstdopen.c: New file.
15402         * modules/xstdopen: New file.
15404 2019-01-06  Bruno Haible  <bruno@clisp.org>
15406         stdopen: Fix compilation error with IRIX cc.
15407         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
15409 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
15411         xfreopen need not include stdio--.h
15412         * lib/xfreopen.c: Do not include stdio--.h.
15414         xfreopen need not depend on freopen-safer
15415         * modules/xfreopen (Depends-on):
15416         Depend on freopen, not freopen-safer.
15418         stdopen: modernize and simplify
15419         * lib/stdopen.c: Update copyright date
15420         Do not include sys/types.h; no longer needed these days.
15421         (stdopen): Use C99-style decl in loop.  Return int errno
15422         value, rather than just a bool.  Do not worry about fd mismatches,
15423         since the caller cares only if 0, 1, 2 are occupied.
15424         * lib/stdopen.h: No need to include <stdbool.h>.
15425         * m4/stdopen.m4: Remove.
15426         * modules/stdopen: New file.
15428         stdopen: copy from last use in coreutils
15429         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
15430         New files, taken from their last commit in coreutils
15431         2007-07-23T12:35:58Z!jim@meyering.net
15432         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
15434 2019-01-05  Bruno Haible  <bruno@clisp.org>
15436         argp: Don't pass an invalid argument to dgettext().
15437         Reported by He X <xw897002528@gmail.com>.
15438         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
15439         dgettext().
15441 2019-01-05  Bruno Haible  <bruno@clisp.org>
15443         argp: Don't pass an invalid argument to dgettext().
15444         Reported by He X <xw897002528@gmail.com>.
15445         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
15446         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
15447         dgettext().
15449 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
15451         stdioext: port to newer 32-bit Android
15452         Problem reported by Tom Yan in:
15453         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
15454         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
15455         (fp_) [__ANDROID__]: Use it.
15457 2019-01-04  Bruno Haible  <bruno@clisp.org>
15459         lock: Fix link error with --enable-threads=pth.
15460         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
15461         Mark as weak.
15463 2019-01-04  Bruno Haible  <bruno@clisp.org>
15465         Fix link errors in unit tests.
15466         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15467         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
15468         * modules/array-map-tests (Makefile.am): Link test-array_map against
15469         libintl.
15470         * modules/array-set-tests (Makefile.am): Link test-array_set against
15471         libintl.
15472         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
15473         libintl.
15474         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
15475         libintl.
15476         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
15477         against libintl.
15478         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
15479         against libintl.
15481 2019-01-04  Bruno Haible  <bruno@clisp.org>
15483         Fix incorrect 'Link' sections.
15484         * modules/regex (Link): Mention the link requirement of module 'lock'.
15485         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
15487 2019-01-04  Bruno Haible  <bruno@clisp.org>
15489         Fix some 'Link' sections.
15490         * modules/c-stack (Link): Add link directive from the 'gettext-h'
15491         dependency.
15492         * modules/getaddrinfo (Link): Likewise.
15494 2019-01-04  Bruno Haible  <bruno@clisp.org>
15496         Remove redundant 'Link' sections.
15497         * modules/canon-host (Link): Remove section.
15498         * modules/timevar (Link): Likewise.
15500 2019-01-04  Bruno Haible  <bruno@clisp.org>
15502         Remove incorrect 'Link' sections.
15503         * modules/acl (Link): Remove section. Use combined 'Link' sections from
15504         the dependencies instead.
15505         * modules/crypto/md5 (Link): Likewise.
15506         * modules/crypto/sha1 (Link): Likewise.
15507         * modules/crypto/sha256 (Link): Likewise.
15508         * modules/crypto/sha512 (Link): Likewise.
15509         * modules/faccessat (Link): Likewise.
15510         * modules/fdutimensat (Link): Likewise.
15511         * modules/iconv_open-utf (Link): Likewise.
15512         * modules/propername (Link): Likewise.
15513         * modules/qacl (Link): Likewise.
15514         * modules/unicodeio (Link): Likewise.
15515         * modules/utimecmp (Link): Likewise.
15516         * modules/utimensat (Link): Likewise.
15517         * modules/xstriconv (Link): Likewise.
15518         * modules/xstriconveh (Link): Likewise.
15520 2019-01-04  Bruno Haible  <bruno@clisp.org>
15522         gnulib-tool: New option --extract-recursive-link-directive.
15523         * gnulib-tool (func_usage): Document the new options
15524         --extract-recursive-dependencies, --extract-recursive-link-directive.
15525         (func_verify_module): Document output variables.
15526         (func_get_dependencies_recursively): New function.
15527         (func_get_link_directive_recursively): New function.
15528         Use them to implement the new options
15529         --extract-recursive-dependencies, --extract-recursive-link-directive.
15530         * doc/gnulib-tool.texi (Link-time requirements): New section.
15532 2019-01-04  Bruno Haible  <bruno@clisp.org>
15534         Clarify meaning of 'Link' section in module description.
15535         * doc/gnulib.texi (Module description): Clarify the meaning of the
15536         'Link' section versus the one of the dependencies.
15537         * NEWS: Mention the change.
15539 2019-01-04  Bruno Haible  <bruno@clisp.org>
15541         pselect: Fix module description.
15542         * modules/pselect (Link): Put one link option per line.
15544 2019-01-04  Bruno Haible  <bruno@clisp.org>
15546         cosl: Fix module description.
15547         * modules/cosl (Link): Fix typo.
15548         * modules/mathl (configure.ac): Likewise.
15550 2019-01-04  Bruno Haible  <bruno@clisp.org>
15552         c-xvasprintf: Fix module dependencies.
15553         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
15555 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
15557         bootstrap: die when some submodules are not initialized
15558         * build-aux/bootstrap: Make sure all submodules are initialized.
15560 2019-01-04  Bruno Haible  <bruno@clisp.org>
15562         bitsetv: Fix module dependencies.
15563         * lib/bitsetv.c: Include xalloc.h.
15564         * modules/bitsetv (Depends-on): Add 'xalloc'.
15566 2019-01-04  Bruno Haible  <bruno@clisp.org>
15568         xmemdup0: Remove redundant code.
15569         * lib/xmemdup0.h (xalloc_die): Remove declaration.
15571 2019-01-04  Bruno Haible  <bruno@clisp.org>
15573         backupfile: Fix module dependencies.
15574         * modules/backupfile (Depends-on): Add 'xalloc'.
15576 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
15578         bitset, crypto/gc: fix conflicts with Solaris 11
15579         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
15580         avoid clash with Solaris 11 <sys/bitset.h>.
15581         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
15582         with Solaris 11 <xorg/gc.h>.
15584 2019-01-04  Bruno Haible  <bruno@clisp.org>
15586         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
15587         Reported by Andy Fiddaman <andy@omniosce.org>.
15588         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
15590 2019-01-03  Eric Blake  <eblake@redhat.com>
15592         maintainer-makefile: fix typo in previous patch
15593         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
15594         of Roman's work.
15596 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
15598         maintainer-makefile: prefer $(GREP) over grep
15599         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
15600         defined.
15601         * top/maint.mk: Use it everywhere.
15603         maintainer-makefile: split long argument lines
15604         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
15605         it would be too long for exec limits on BSD.
15607 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15609         mkfifo: bring back HAVE_MKFIFO macro
15610         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
15611         Problem reported by Andrew Janke in:
15612         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
15614 2018-12-21  Bruno Haible  <bruno@clisp.org>
15616         Assume Autoconf >= 2.63.
15617         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
15618         versions < 2.60.
15620 2018-12-21  Bruno Haible  <bruno@clisp.org>
15622         memcmp: Mention the clang bug.
15623         * tests/test-memcmp.c: Add comment about a known test failure.
15624         * doc/posix-functions/memcmp.texi: Mention the clang bug.
15626 2018-12-20  Jim Meyering  <meyering@fb.com>
15628         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
15629         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
15630           echo '123-x'|LC_ALL=C grep -E '.\bx'
15631         The goal is to revert the first, but reverting it requires to restore
15632         the function deleted in the second. I ran this to restore the deleted
15633         function:
15634           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
15635             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
15636             | patch -R -p1
15637         * lib/dfa.c (charclass_context): Restore deleted function.
15638         Reverting the primary commit removes this change:
15639         dfa: Simplify a building state
15640         * lib/dfa.c (build_state): Simplify a building state.
15642 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
15644         version-etc: allow zero authors
15645         * lib/version-etc.c (version_etc_arn): If no authors are given,
15646         omit authorship info instead of dumping core.
15648 2018-12-19  Bruno Haible  <bruno@clisp.org>
15650         lchown tests: Be more permissive regarding errno values.
15651         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
15652         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
15653         alternative to ENOSYS.
15654         * modules/lchown-tests (Depends-on): Add 'errno'.
15655         * modules/fchownat-tests (Depends-on): Likewise.
15657 2018-12-18  Bruno Haible  <bruno@clisp.org>
15659         duplocale: Avoid test failure on AIX 7.
15660         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
15661         (configure.ac): Invoke gt_FUNC_USELOCALE.
15662         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
15663         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
15664         works.
15666 2018-12-18  Bruno Haible  <bruno@clisp.org>
15668         localename: Fix test failure on AIX 7.
15669         Reported by Assaf Gordon in
15670         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
15671         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
15672         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
15673         instead of ac_cv_func_uselocale.
15674         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
15675         HAVE_USELOCALE.
15676         * lib/localename-table.h: Likewise.
15677         * lib/localename-table.c: Likewise.
15678         * tests/test-localename.c: Likewise.
15679         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
15681 2018-12-18  Bruno Haible  <bruno@clisp.org>
15683         localename: Update comments regarding Cygwin.
15684         * lib/localename.c: Update comment.
15685         * doc/posix-functions/uselocale.texi: Update platforms list.
15686         * doc/posix-functions/newlocale.texi: Likewise.
15687         * doc/posix-functions/duplocale.texi: Likewise.
15688         * doc/posix-functions/freelocale.texi: Likewise.
15690 2018-12-16  Bruno Haible  <bruno@clisp.org>
15692         c-stack: Fix for Linux/sparc.
15693         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
15694         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
15696 2018-12-16  Bruno Haible  <bruno@clisp.org>
15698         localename: Avoid test failure on some glibc systems.
15699         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
15700         Unset environment variables that might disturb the first setlocale call,
15701         and verify that this setlocale call succeeds.
15703 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
15705         random: Fix build error on native Windows (regression from 2018-06-21).
15706         * lib/random.c (__srandom, __initstate, __setstate, __random,
15707         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
15708         to the symbols without '__' prefix.
15710 2018-12-16  Bruno Haible  <bruno@clisp.org>
15712         obstack, libc-config: Support HP-UX cc in C99 mode.
15713         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
15714         compiler, even when in C99 mode.
15715         * lib/cdefs.h (__flexarr): Likewise.
15716         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
15718 2018-12-16  Bruno Haible  <bruno@clisp.org>
15720         localename: Fix test failure on OpenBSD >= 6.2.
15721         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
15722         locale system. Define HAVE_FAKE_LOCALES in this case.
15723         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
15724         HAVE_USELOCALE.
15725         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
15726         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
15727         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
15728         platforms list.
15729         * doc/posix-functions/newlocale.texi: Likewise.
15730         * doc/posix-functions/duplocale.texi: Update platforms list.
15731         * doc/posix-functions/freelocale.texi: Likewise.
15733 2018-12-16  Bruno Haible  <bruno@clisp.org>
15735         duplocale tests: Re-enable the test on platforms without <monetary.h>.
15736         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
15737         of the test, on platforms without <monetary.h>.
15739 2018-12-16  Bruno Haible  <bruno@clisp.org>
15741         localename: Update comments.
15742         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
15744 2018-12-15  Jim Meyering  <meyering@fb.com>
15746         regex: fix indentation
15747         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
15749 2018-12-15  Bruno Haible  <bruno@clisp.org>
15751         openat-safer tests: Avoid test failure on NetBSD 8.
15752         * tests/test-openat-safer.c (main): Execute a Linux specific test only
15753         on Linux.
15755 2018-12-15  Jim Meyering  <meyering@fb.com>
15757         regex: work around a bug in glibc-2.27 and prior
15758         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
15759         assertion for /0|()0|\1|0/.
15760         * tests/test-regex.c (main): Add the same test here.
15762 2018-12-15  Bruno Haible  <bruno@clisp.org>
15764         localename: Fix use of uninitialized shell variable.
15765         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
15766         gt_cv_locale_solaris114 always before use. Remove assignment without
15767         effect.
15769 2018-12-15  Bruno Haible  <bruno@clisp.org>
15771         dfa tests: Avoid test failure on Alpine Linux.
15772         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
15773         command found on Alpine Linux.
15775 2018-12-15  Jim Meyering  <meyering@fb.com>
15777         dfa: avoid new warnings from gcc
15778         These would prevent building with -Werror and a Dec snapshot of gcc.
15779         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
15780         Rename each inner instance to "p".
15781         (charclass_context): Remove unused static function.
15783 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
15785         mkdir-p: improve diagnostic for FUSE mounts
15786         Problem reported by Niklas Hambüchen in:
15787         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
15788         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
15789         errno to mkdir errno if the stat errno is likely more interesting.
15791 2018-12-14  Bruno Haible  <bruno@clisp.org>
15793         hash-map: Add tests.
15794         * tests/test-hash_map.c: New file.
15795         * modules/hash-map-tests: New file.
15797         linkedhash-map: Add tests.
15798         * tests/test-linkedhash_map.c: New file.
15799         * modules/linkedhash-map-tests: New file.
15801         array-map: Add tests.
15802         * tests/test-array_map.c: New file.
15803         * modules/array-map-tests: New file.
15805         xmap: New module.
15806         * lib/gl_xmap.h: New file.
15807         * lib/gl_xmap.c: New file.
15808         * modules/xmap: New file.
15810         hash-map: New module.
15811         * lib/gl_hash_map.h: New file.
15812         * lib/gl_hash_map.c: New file.
15813         * modules/hash-map: New file.
15815         linkedhash-map: New module.
15816         * lib/gl_linkedhash_map.h: New file.
15817         * lib/gl_linkedhash_map.c: New file.
15818         * lib/gl_anyhash1.h: Update comments.
15819         * lib/gl_anyhash2.h: Likewise.
15820         * modules/linkedhash-map: New file.
15822         array-map: New module.
15823         * lib/gl_array_map.h: New file.
15824         * lib/gl_array_map.c: New file.
15825         * modules/array-map: New file.
15827         map: New module.
15828         * lib/gl_map.h: New file.
15829         * lib/gl_map.c: New file.
15830         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
15831         conflict with gl_map.h.
15832         * modules/map: New file.
15834 2018-12-13  Bruno Haible  <bruno@clisp.org>
15836         select tests: Avoid test failure on Cygwin.
15837         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
15839 2018-12-13  Bruno Haible  <bruno@clisp.org>
15841         localtime-buffer: Avoid endless recursion in localtime and gmtime.
15842         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
15844 2018-12-13  Bruno Haible  <bruno@clisp.org>
15846         localeconv tests: Avoid test failure on Cygwin.
15847         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
15848         'mon_grouping' tests.
15850 2018-12-11  Bruno Haible  <bruno@clisp.org>
15852         omap: Don't dispose the old value when the function returns it.
15853         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
15854         here.
15855         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
15856         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
15857         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
15858         here.
15860         array-omap, avltree-omap, rbtree-omap: Tweak style.
15861         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
15862         false.
15863         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
15865         rbtree-omap: Add tests.
15866         * tests/test-rbtree_omap.c: New file.
15867         * modules/rbtree-omap-tests: New file.
15869         avltree-omap: Add tests.
15870         * tests/test-avltree_omap.c: New file.
15871         * modules/avltree-omap-tests: New file.
15873         array-omap: Add tests.
15874         * tests/test-array_omap.c: New file.
15875         * modules/array-omap-tests: New file.
15877         xomap: New module.
15878         * lib/gl_xomap.h: New file.
15879         * lib/gl_xomap.c: New file.
15880         * modules/xomap: New file.
15882         rbtree-omap: New module.
15883         * lib/gl_rbtree_omap.h: New file.
15884         * lib/gl_rbtree_omap.c: New file.
15885         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
15886         Parameterize.
15887         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
15888         * modules/rbtree-omap: New file.
15889         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
15890         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
15892         avltree-omap: New module.
15893         * lib/gl_avltree_omap.h: New file.
15894         * lib/gl_avltree_omap.c: New file.
15895         * lib/gl_avltree_ordered.h: Code moved to here from
15896         lib/gl_avltree_oset.c. Parameterize.
15897         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
15898         * lib/gl_anytree_omap.h: New file.
15899         * modules/avltree-omap: New file.
15900         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
15901         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
15903         array-omap: New module.
15904         * lib/gl_array_omap.h: New file.
15905         * lib/gl_array_omap.c: New file.
15906         * modules/array-omap: New file.
15908         omap: New module.
15909         * lib/gl_omap.h: New file.
15910         * lib/gl_omap.c: New file.
15911         * modules/omap: New file.
15913 2018-12-11  Bruno Haible  <bruno@clisp.org>
15915         hash-set, linkedhash-set: Reduce code duplication.
15916         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
15917         lib/gl_anyhash_set1.h.
15918         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
15919         lib/gl_anyhash_set2.h. Parameterize.
15920         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
15921         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
15922         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
15923         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
15924         * lib/gl_rbtreehash_list.c: Likewise.
15925         * lib/gl_linkedhash_list.c: Likewise.
15926         (hash_resize_after_add): Remove function.
15927         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
15928         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
15929         * gl_hash_set.c: Likewise.
15930         * modules/avltreehash-list (Files, Makefile.am): Update file list.
15931         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
15932         * modules/linkedhash-list (Files, Makefile.am): Likewise.
15933         * modules/linkedhash-set (Files, Makefile.am): Likewise.
15934         * modules/hash-set (Files, Makefile.am): Likewise.
15936 2018-12-11  Bruno Haible  <bruno@clisp.org>
15938         array-set: Optimize.
15939         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
15940         outside the loop, not inside the loop.
15942 2018-12-11  Bruno Haible  <bruno@clisp.org>
15944         times: Fix tests.
15945         * tests/test-times.c (doublecmp): Implement a total order.
15947 2018-12-11  Bruno Haible  <bruno@clisp.org>
15949         array-set, linkedhash-set, hash-set: Fix tests.
15950         * tests/test-array_set.c (cmp_objects_in_array): New function.
15951         (check_equals): Use it.
15952         * tests/test-hash_set.c: Likewise.
15953         * tests/test-linkedhash_set.c: Likewise.
15955 2018-12-08  Bruno Haible  <bruno@clisp.org>
15957         Fix comments.
15958         * lib/gl_list.h (gl_list_free): Clarify what it does.
15959         * lib/gl_oset.h (gl_oset_free): Likewise.
15960         * lib/gl_set.h (gl_set_free): Likewise.
15961         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
15962         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
15963         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
15964         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
15966 2018-12-03  Bruno Haible  <bruno@clisp.org>
15968         hash-set: Add tests.
15969         * tests/test-hash_set.c: New file.
15970         * modules/hash-set-tests: New file.
15972         linkedhash-set: Add tests.
15973         * tests/test-linkedhash_set.c: New file.
15974         * modules/linkedhash-set-tests: New file.
15976         array-set: Add tests.
15977         * tests/test-array_set.c: New file.
15978         * modules/array-set-tests: New file.
15980         xset: New module.
15981         * lib/gl_xset.h: New file.
15982         * lib/gl_xset.c: New file.
15983         * modules/xset: New file.
15985         hash-set: New module.
15986         * lib/gl_hash_set.h: New file.
15987         * lib/gl_hash_set.c: New file.
15988         * modules/hash-set: New file.
15990         linkedhash-set: New module.
15991         * lib/gl_linkedhash_set.h: New file.
15992         * lib/gl_linkedhash_set.c: New file.
15993         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
15994         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
15995         * lib/gl_anyhash_primes.h: New file, extracted from
15996         lib/gl_anyhash_list2.h.
15997         * lib/gl_anyhash_list2.h: Include it.
15998         (primes, next_prime): Remove definitions.
15999         * modules/linkedhash-set: New file.
16000         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
16001         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
16002         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
16003         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
16004         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
16005         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
16007         array-set: New module.
16008         * lib/gl_array_set.h: New file.
16009         * lib/gl_array_set.c: New file.
16010         * modules/array-set: New file.
16012         set: New module.
16013         * lib/gl_set.h: New file.
16014         * lib/gl_set.c: New file.
16015         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
16016         gl_set.h.
16017         * modules/set: New file.
16019 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
16021         bison: don't force the Yacc mode
16022         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
16023         errors when Bison features are used in the grammar file.  Some of
16024         these features (such as %expect) were flagged non-yacc recently.  Most
16025         of the time, -y is actually used to please Automake's ylwrap which
16026         expects the output to be y.tab.c.
16027         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
16029 2018-12-01  Bruno Haible  <bruno@clisp.org>
16031         gnupload: Document short options.
16032         * build-aux/gnupload (usage): Document the short options.
16034 2018-11-28  Ben Elliston  <bje@gnu.org>
16036         gnupload: Support option -h as alias of --help.
16037         * build-aux/gnupload: Support -h.
16039 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
16041         memrchr: port better to clang
16042         * lib/memrchr.c (__memrchr): Cast to void * instead of to
16043         longword *, to pacify clang -Wcast-align (Bug#33544).
16045 2018-11-29  Eric Blake  <eblake@redhat.com>
16047         docs: mention printf %m considerations
16048         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
16049         is not portable, and is easy enough to work around.
16050         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
16051         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
16052         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
16053         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
16054         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
16055         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
16056         * doc/posix-functions/printf.texi (printf): Likewise.
16057         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
16058         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
16059         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
16060         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16061         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16062         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
16063         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16064         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16065         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
16066         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
16067         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16068         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
16070 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
16072         bitset: rename ebitset/expandable.* as tbitset/table.*
16073         See
16074         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
16075         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
16076         * lib/bitset/table.h, lib/bitset/table.c: these.
16077         Rename all the ebitset* symbols as tbitset*.
16078         Adjust dependencies.
16080 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
16082         bitset: check the operations
16083         * tests/test-bitset.c (bitset_random): New.
16084         Use it.
16085         * lib/bitset/expandable.c (ebitset_not): Fix typo.
16087 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
16089         bitset: properly use false/true instead of 0/1 for Booleans
16090         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
16091         0/1, as Booleans.
16093 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
16095         bitset: rename BITSET_VARRAY as BITSET_VECTOR
16096         For consistency with the name of the file.
16097         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
16098         * lib/bitset/stats.c, lib/bitset/vector.c
16099         (BITSET_VARRAY): Rename as...
16100         (BITSET_VECTOR): this.
16102 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
16104         strerror_r-posix: memmove, not memcpy
16105         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
16106         since the source and destination might overlap in the call
16107         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
16108         Simplify.
16110 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
16112         bitsetv: new module
16113         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
16115 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
16117         bitset: add tests and doc
16118         First stabs at providing a documentation and test for the bitset
16119         module.
16120         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
16122 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
16124         bitset: new module
16125         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
16126         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
16127         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
16128         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
16129         * lib/bitset/vector.h, modules/bitset:
16130         New.
16132 2018-11-23  Bruno Haible  <bruno@clisp.org>
16134         localename: Fix gettext test failures on mingw.
16135         * lib/localename.c (gl_locale_name_posix): Convert the result of
16136         gl_locale_name_environ to XPG syntax.
16138 2018-11-23  Karl Berry  <karl@freefriends.org>
16140         * config/srclistvars.txt,
16141         * config/srclist.txt: remove all gettext references;
16142         the gettext maintainers will sync as needed.
16144 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
16146         mktime: add libc-config dependency
16147         I missed this when we synced from glibc.
16148         * modules/mktime (Depends-on): Add libc-config.
16150 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
16152         longlong: fix comment typo
16153         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
16155 2018-11-11  Bruno Haible  <bruno@clisp.org>
16157         havelib: Remove the need to include asm-underscore.m4.
16158         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
16159         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
16160         gl_HOST_CPU_C_ABI.
16161         * modules/havelib (Files): Add host-cpu-c-abi.m4.
16162         (Depends-on): Remove host-cpu-c-abi.
16164 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
16166         parse-datetime: simplify test for mktime failure
16167         * lib/parse-datetime.y (mktime_ok): Simplify.
16168         Remove args TZ and T; no longer needed.  Callers changed.
16170         posixtm: simplify test for mktime failure
16171         * lib/posixtm.c (posixtime): Simplify.
16173         nstrftime: simplify test for mktime failure
16174         * lib/nstrftime.c (__strftime_internal): Simplify.
16176 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
16178         gnulib-common.m4: port _Noreturn to C++
16179         Problem reported by Akim Demaille in:
16180         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
16181         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
16182         Merge adjustments from _Noreturn.h and from glibc into the non-C++
16183         version.
16184         * lib/_Noreturn.h: Match gnulib-common.
16186 2018-10-30  Bruno Haible  <bruno@clisp.org>
16188         gnu-make: Fix for NetBSD 8 'make'.
16189         Reported by Reuben Thomas in
16190         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
16191         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
16192         output, ignoring exit codes.
16194 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
16196         maintainer-makefile: fix syntax-check rule for "same.h"
16197         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
16198         for 'same_nameat', too.
16200 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
16202         havelib: fix nested ‘configure’ chatter
16203         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
16204         AC_CACHE_CHECK calls, which resulted in confusing output like
16205         “checking for the common suffixes of directories in the library
16206         search path... checking for 64-bit host... no lib,lib”.
16208         backupfile: tweak for better code
16209         * lib/backupfile.c: Sort include directives, and remove
16210         unnecessary <limits.h> include.
16211         (FALLTHROUGH): New macro, copied from other modules.
16212         (backupfile_internal): Use it to avoid code duplication.
16213         This lets GCC 8.2.1 generate better code by inlining the
16214         call to check_extension.
16216 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
16218         backupfile: new dir_fd args
16219         New module opendirat with code taken from fts.
16220         Use this module to let backupfile use a directory file descriptor.
16221         * NEWS: Document the incompatible change.
16222         * lib/backup-find.c (find_backup_file_name):
16223         * lib/backup-rename.c (backup_file_rename):
16224         New arg DIR_FD.
16225         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
16226         (SIZE_MAX): Remove.
16227         Include opendirat.h rather than dirent--.h.
16228         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
16229         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
16230         (backupfile_internal): New arg DIR_FD.  All callers changed.
16231         * lib/fts.c: Include opendirat.h.
16232         (opendirat): Move to opendirat.c.
16233         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
16234         * modules/backupfile (Depends-on): Remove dirfd, opendir.
16235         Add opendirat.
16236         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
16237         Add opendirat.
16239 2018-10-23  Bruno Haible  <bruno@clisp.org>
16241         localename: Simplify support for per-thread locales on Solaris 11.4.
16242         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
16243         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
16244         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
16245         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
16246         specific code.
16247         * lib/localename-table.h: Update comments.
16248         * lib/localename-table.c: Update comments.
16249         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
16250         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
16251         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
16252         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
16253         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
16254         HAVE_NAMELESS_LOCALES here.
16255         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
16256         m4/intlsolaris.m4.
16257         * modules/gettext (Files): Likewise.
16259 2018-10-22  Bruno Haible  <bruno@clisp.org>
16261         std-gnu11: Support Autoconf versions < 2.64.
16262         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
16263         when _AC_DO_LIMIT does not exist.
16265 2018-10-22  Bruno Haible  <bruno@clisp.org>
16267         Assume Autoconf >= 2.63.
16268         * DEPENDENCIES: Mention the requirement.
16270         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
16271         (func_get_filelist): Don't list m4/onceonly.m4 any more.
16272         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
16273         * m4/onceonly.m4: Remove file.
16275         * m4/openmp.m4: Remove file.
16276         * modules/openmp (Files): Remove m4/openmp.m4.
16278         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
16279         htmldir, dvidir, pdfdir, psdir, localedir.
16280         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
16282         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
16283         Autoconf < 2.60.
16284         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
16285         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
16287         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
16288         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
16289         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
16291         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
16292         exists.
16293         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
16295         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
16296         Autoconf < 2.61.
16298         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
16299         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
16300         Autoconf >= 2.52.
16302         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
16303         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
16304         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
16306 2018-10-22  Bruno Haible  <bruno@clisp.org>
16308         Assume Automake >= 1.11.
16309         * m4/configmake.m4: Update comments.
16310         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
16311         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
16312         of 'eval'.
16313         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
16314         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
16315         requires Automake >= 1.11.
16317 2018-10-22  Bruno Haible  <bruno@clisp.org>
16319         localename: Fix typo in comment.
16320         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
16322 2018-10-22  Bruno Haible  <bruno@clisp.org>
16324         Fix failure of 'gnulib-tool --create-testdir' with all modules.
16325         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
16327 2018-10-21  Bruno Haible  <bruno@clisp.org>
16329         locale: Ease integration with GNU libintl.
16330         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
16331         GNULIB_defined_freelocale): New macros.
16333 2018-10-21  Bruno Haible  <bruno@clisp.org>
16335         localename: Fine-tune support for per-thread locales on Solaris 11.4.
16336         * lib/localename-table.h: New file, extracted from lib/localename.c.
16337         * lib/localename-table.c: Likewise.
16338         * lib/localename.c: Include localename-table.h.
16339         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
16340         locale_hash_function instead of pointer_hash.
16341         * modules/localename (Files): Add lib/localename-table.h,
16342         lib/localename-table.c.
16343         (lib_SOURCES): Add localename-table.c.
16344         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
16345         for Solaris 11.4 locale system only on Solaris. Test for it
16346         independently whether getlocalename_l exists.
16347         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
16348         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
16349         HAVE_NAMELESS_LOCALES.
16350         * modules/gettext (Files): Add m4/intlsolaris.m4.
16352 2018-10-21  Bruno Haible  <bruno@clisp.org>
16354         Small update from gettext.
16355         * m4/intl.m4: Update from gettext:
16356         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
16357         mode on AIX.
16358         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
16359         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
16361 2018-10-16  Bruno Haible  <bruno@clisp.org>
16363         mountlist: Remove support for Cray with UNICOS 9.
16364         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
16365         MOUNTED_LISTMNTENT.
16366         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
16368 2018-10-16  Bruno Haible  <bruno@clisp.org>
16370         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
16371         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
16372         STAT_STATFS2_FS_DATA.
16373         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
16374         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
16375         MOUNTED_GETMNT.
16376         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
16377         * lib/getloadavg.c (decstation): Remove definition and case.
16378         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
16379         * lib/getgroups.c: Likewise.
16380         * doc/posix-functions/getgroups.texi: Likewise.
16381         * lib/time.in.h: Update comments.
16383 2018-10-16  Bruno Haible  <bruno@clisp.org>
16385         getloadavg: Remove support for ConvexOS.
16386         * lib/getloadavg.c: Remove convex case.
16388 2018-10-16  Bruno Haible  <bruno@clisp.org>
16390         getloadavg: Remove support for Sony NEWS.
16391         * lib/getloadavg.c: Remove sony_news case.
16393 2018-10-16  Bruno Haible  <bruno@clisp.org>
16395         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
16396         * lib/fsusage.c: Remove _SEQUENT_ case.
16397         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
16398         * lib/mountlist.c: Don't test for MNTTABNAME.
16399         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
16400         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
16401         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
16402         * lib/stat-size.h: Don't mention the Sequent bug.
16403         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
16405 2018-10-16  Bruno Haible  <bruno@clisp.org>
16407         fsusage: Remove support for AIX 3.
16408         * lib/fsusage.c: Remove code for AIX 3.
16409         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
16411 2018-10-16  Bruno Haible  <bruno@clisp.org>
16413         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
16414         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
16415         * lib/fsusage.c: Remove code for AIX PS/2.
16416         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
16417         * lib/getloadavg.c: Likewise.
16419 2018-10-16  Bruno Haible  <bruno@clisp.org>
16421         getloadavg: Remove support for HP-UX on m68k.
16422         * lib/getloadavg.c: Remove hp9000s300 case.
16424 2018-10-16  Bruno Haible  <bruno@clisp.org>
16426         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
16427         * lib/fsusage.c: Remove DOLPHIN case.
16428         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
16429         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
16431 2018-10-16  Bruno Haible  <bruno@clisp.org>
16433         getloadavg: Remove support for Alliant FX/2800.
16434         * lib/getloadavg.c: Remove alliant case.
16436 2018-10-16  Bruno Haible  <bruno@clisp.org>
16438         getloadavg: Remove support for tek4300.
16439         * lib/getloadavg.c: Remove tek4300 case.
16441 2018-10-16  Bruno Haible  <bruno@clisp.org>
16443         getloadavg: Remove support for Ardent.
16444         * lib/getloadavg.c: Remove ardent case.
16446 2018-10-16  Bruno Haible  <bruno@clisp.org>
16448         mountlist: Remove support for SVR2.
16449         Reported by Andrew Borodin <aborodin@vmail.ru> in
16450         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
16451         * lib/mountlist.c: Remove MOUNTED_FREAD case.
16452         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
16453         MOUNTED_FREAD.
16455 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
16457         libc-config: merge from glibc
16458         * lib/cdefs.h (__glibc_has_attribute): New macro.
16460         regex: depend on libc-config
16461         * modules/regex (Depends-on): Add libc-config.
16462         This is needed after the recent autoupdate from glibc.
16464 2018-10-14  Bruno Haible  <bruno@clisp.org>
16466         localename: Add support for per-thread locales on Solaris 11.4.
16467         * lib/locale.in.h (newlocale, freelocale): New declarations.
16468         (duplocale): Declare also when the 'localename' module requests it.
16469         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
16470         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
16471         (struniq): Update.
16472         (struct locale_categories_names, struct locale_hash_node): New types.
16473         (LOCALE_HASH_TABLE_SIZE): New constant.
16474         (locale_hash_table, locale_lock): New variables.
16475         (pointer_hash, get_locale_t_name): New functions.
16476         (newlocale, duplocale, freelocale): New overridden functions.
16477         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
16478         * m4/intlsolaris.m4: New file.
16479         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
16480         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
16481         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
16482         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
16483         declared.
16484         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
16485         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
16486         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
16487         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
16488         * modules/localename (Files): Add intlsolaris.m4.
16489         (Depends-on): Add 'locale'.
16490         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
16491         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
16492         the signatures.
16494 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
16496         timevar: use gethrxtime to get wall clock time
16497         clock_gettime is not portable.  gethrxtime takes the best available
16498         option to get the wall clock time, including clock_gettime (monotonic
16499         clock), and gettime (non monotonic).
16500         Also, using xtime_t instead of float preserves the precision.
16501         Suggested by Bruno Haible.
16502         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
16503         * modules/timevar (Depends-on): We need gethrxtime.
16504         We no longer use times().
16505         (Link): Update.
16506         * lib/timevar.h (timevar_time_def): Use xtime_t.
16507         * lib/timevar.c (set_to_current_time): Use gethrxtime.
16508         (timevar_print): Instead of checking whether the timings themselves
16509         are large enough for the timevar to be printed, check the percentages.
16511 2018-10-14  Bruno Haible  <bruno@clisp.org>
16513         wcsnrtombs: Work around Solaris 11.4 bug.
16514         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
16515         macro.
16516         (gl_FUNC_WCSNRTOMBS): Invoke it.
16517         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
16519 2018-10-14  Bruno Haible  <bruno@clisp.org>
16521         mbsnrtowcs: Work around Solaris 11.4 bug.
16522         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
16523         macro.
16524         (gl_FUNC_MBSNRTOWCS): Invoke it.
16525         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
16527 2018-10-14  Bruno Haible  <bruno@clisp.org>
16529         doc: Update for Solaris 11.4.
16530         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
16531         mention Solaris 11.4.
16532         * m4/printf.m4: Update comments about Solaris.
16533         * m4/log.m4: Likewise.
16534         * m4/log10.m4: Likewise.
16535         * m4/logb.m4: Likewise.
16536         * m4/logbf.m4: Likewise.
16537         * m4/logbl.m4: Likewise.
16538         * m4/rename.m4: Likewise.
16539         * m4/wcrtomb.m4: Likewise.
16540         * m4/hostent.m4: Likewise.
16541         * m4/servent.m4: Likewise.
16543 2018-10-14  Bruno Haible  <bruno@clisp.org>
16545         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
16546         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
16547         pointer.
16548         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
16549         pointer.
16550         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
16551         pointer.
16552         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
16553         pointer.
16554         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
16555         pointer.
16557 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
16559         bootstrap: fix wget command for po files.
16560         * build-aux/bootstrap (po_download_command_format): Fix comment,
16561         and adjust callers.
16563 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
16565         timevar: improve the output format
16566         Suggested by Bruno Haible.
16567         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
16568         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
16569         wall, since its resolution is much higher.
16571 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
16573         timevar: expect that getrusage is available.
16574         Don't keep both times and getrusage as backend: both are guaranteed by
16575         gnulib, a single one suffices.  Using getrusage is open to possibly
16576         tracking other types of resources in the future.
16577         * modules/timevar (Depends-on): Add getrusage.
16578         (configure.ac): Remove gl_TIMEVAR.
16579         (Files): Remove m4/timevar.m4.
16580         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
16581         * lib/timevar.h (timevar_enabled): Clarify documentation.
16582         * lib/timevar.c: Remove all the code about times.
16583         Remove all the CPP guards about getrusage: expect it to be present
16584         (courtesy of gnulib).
16586 2018-10-12  Bruno Haible  <bruno@clisp.org>
16588         mountlist: Improve support for Solaris in 64-bit mode.
16589         Reported by David Wood <David.Wood@deshaw.com> in
16590         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
16591         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
16592         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
16593         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
16595 2018-10-12  Bruno Haible  <bruno@clisp.org>
16597         mountlist: Add support for Minix.
16598         Reported by Assaf Gordon in
16599         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
16600         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
16601         AC_CHECK_FUNCS to check for 'getmntinfo'.
16602         * lib/mountlist.c: Update comments.
16604 2018-10-12  Bruno Haible  <bruno@clisp.org>
16606         Make better use of Autoconf.
16607         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
16608         * m4/manywarnings.m4: Likewise.
16609         * m4/manywarnings-c++.m4: Likewise.
16610         * m4/socklen.m4: Likewise.
16611         * m4/sockpfaf.m4: Likewise.
16612         * m4/stdarg.m4: Likewise.
16613         * m4/visibility.m4: Likewise.
16614         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
16615         indentation.
16616         * m4/ls-mntd-fs.m4: Likewise.
16618 2018-10-11  Bruno Haible  <bruno@clisp.org>
16620         mountlist: Modernize platform lists.
16621         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
16622         platforms, deemphasizing the obsolete ones.
16623         * lib/mountlist.c: Likewise.
16625 2018-10-11  Bruno Haible  <bruno@clisp.org>
16627         getprogname: Add support for 32-bit programs on HP-UX.
16628         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
16629         try the similar functions 32-bit programs on 64-bit HP-UX.
16631 2018-10-11  Bruno Haible  <bruno@clisp.org>
16633         getprogname: Work around program name truncation when possible.
16634         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
16635         possibly use pst_cmd instead.
16637 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
16639         fts: cleanup after FTS_NOATIME removal
16640         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
16641         (FTS_STOP): Shrink to minimal values.  We don’t need to
16642         worry about binary compatibility in Gnulib, and the old way
16643         of doing things had a hole in the user options that caused
16644         FTS_OPTIONMASK to not work as desired.
16646 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
16648         fts: remove FTS_NOATIME
16649         This reverts commit da4d6974013c822af1498941e32db774b2031765.
16650         We cannot guarantee that O_NOATIME works: e.g. openat fails
16651         with EPERM if the effective user ID of the caller does not match
16652         the owner of the file and the caller is not privileged.
16653         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
16654         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
16655         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
16656         (FTS_OPTIONMASK): Adjust.
16657         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
16658         (fd_ring_check): Likewise.
16660 2018-10-08  Bruno Haible  <bruno@clisp.org>
16662         csharpcomp*, csharpexec*: Remove support for pnet.
16663         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
16664         HAVE_CSCC.
16665         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
16666         Don't test HAVE_CSCC.
16667         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
16668         (compile_csharp_class): Don't invoke it.
16669         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
16670         HAVE_ILRUN.
16671         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
16672         Don't test HAVE_ILRUN.
16673         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
16674         (execute_csharp_program): Don't invoke it.
16675         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
16676         any more.
16678 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
16680         renameatu: prefer renameat2 to syscall
16681         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
16682         Use renameat2 instead of syscall (Bug#32796).
16683         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
16685 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
16687         bootstrap, gnulib-tool: use https instead of insecure rsync
16688         * build-aux/bootstrap (download_po_files, po_download_command_format):
16689         Don't try using rsync; always use wget over https to fetch PO files.
16690         * gnulib-tool (func_import): Likewise.
16691         * pygnulib/GLImport.py (GLImport.execute): Likewise.
16693 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
16695         bootstrap, gnulib-tool: correct the translations wget command
16696         * build-aux/bootstrap (po_download_command_format2): Restrict
16697         recursion to a single level.
16698         * gnulib-tool (func_import): Likewise.
16699         * pygnulib/GLImport.py (GLImport.execute): Likewise.
16701 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
16703         doc: the gnulib snapshots are not maintained
16704         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
16706 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
16708         timevar: add to lib_SOURCES
16709         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
16711 2018-10-07  Bruno Haible  <bruno@clisp.org>
16713         dirent: Update documentation.
16714         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
16716 2018-10-05  Bruno Haible  <bruno@clisp.org>
16718         strpbrk: Make it possible to namespace the defined symbol.
16719         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
16721 2018-10-05  Bruno Haible  <bruno@clisp.org>
16723         strcspn: Make it possible to namespace the defined symbol.
16724         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
16726 2018-10-05  Bruno Haible  <bruno@clisp.org>
16728         raise: Make it possible to namespace the defined symbol.
16729         * lib/raise.c (raise): Undefine only after the replacement function has
16730         been defined.
16731         (raise): Renamed from rpl_raise.
16732         (raise_nothrow): Move to the end of the compilation unit.
16734 2018-10-05  Bruno Haible  <bruno@clisp.org>
16736         memcmp: Make it possible to namespace the defined symbol.
16737         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
16739 2018-10-05  Bruno Haible  <bruno@clisp.org>
16741         explicit_bzero: Make it possible to namespace the defined symbol.
16742         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
16743         glibc.
16745 2018-10-05  Bruno Haible  <bruno@clisp.org>
16747         mkdir-p: Depend on 'mkdir'.
16748         * modules/mkdir-p (Depends-on): Add 'mkdir'.
16750 2018-10-05  Bruno Haible  <bruno@clisp.org>
16752         tempname: Depend on 'mkdir'.
16753         Reported by Maarten Bosmans <mkbosmans@gmail.com>
16754         at <https://savannah.gnu.org/bugs/?33379>.
16755         * modules/tempname (Depends-on): Add 'mkdir'.
16757 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
16759         timevar: rely on gnulib modules for time portability.
16760         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
16761         * m4/timevar.m4: Don't check for clock_t and struct tms,
16762         guaranteed by gnulib.
16763         * lib/timevar.h: Use extern "C" protection.
16764         Include <stdio.h> for FILE.
16765         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
16766         they are guaranteed by gnulib.
16767         Remove uses of clock as (now useless) fallback.
16769 2018-10-04  Bruno Haible  <bruno@clisp.org>
16771         sh-filename: New module.
16772         * m4/sh-filename.m4: New file.
16773         * modules/sh-filename: New file.
16774         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
16775         "/bin/sh".
16776         * tests/test-posix_spawn1.c (main): Likewise.
16777         * tests/test-posix_spawn2.c (main): Likewise.
16778         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
16779         is_envjavac_gcj43): Likewise.
16780         * lib/javaexec.c (execute_java_class): Likewise.
16781         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
16782         * modules/posix_spawnp-tests (Depends-on): Likewise.
16783         * modules/javacomp (Depends-on): Likewise.
16784         * modules/javaexec (Depends-on): Likewise.
16786 2018-10-04  Bruno Haible  <bruno@clisp.org>
16788         spawn-pipe tests: Avoid test failure on native Windows.
16789         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
16790         that fd 2 is closed.
16792 2018-10-04  Bruno Haible  <bruno@clisp.org>
16794         fcntl: Make it possible to namespace the defined symbol.
16795         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
16796         been defined.
16797         (fcntl): Renamed from rpl_fcntl.
16798         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
16799         from fcntl.
16800         (klibc_fcntl): Move to the end of the compilation unit.
16802 2018-10-02  Bruno Haible  <bruno@clisp.org>
16804         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
16805         * tests/test-vasnprintf.c (test_function): Change the test added on
16806         2018-09-23 to check only the 18 most significant digits.
16808         vasnprintf tests: Avoid test failure on Cygwin.
16809         * tests/test-vasnprintf.c (test_function): Change the test added on
16810         2018-09-23 to check only the 42 most significant digits.
16812 2018-10-01  Bruno Haible  <bruno@clisp.org>
16814         mkostemp, mkostemps: Update documentation.
16815         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
16816         * doc/glibc-functions/mkostemps.texi: Likewise.
16818 2018-10-01  Tom Tromey  <tom@tromey.com>
16820         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
16821         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
16822         on OS X.
16824 2018-09-30  Pádraig Brady  <P@draigBrady.com>
16826         hmac-*: refactor to remove repetitive code
16827         * lib/hmac.c: A new parameterized single implementation.
16828         * lib/hmac-md5.c: Define parameters and include implementation.
16829         * lib/hmac-sha1.c: Likewise.
16830         * lib/hmac-sha256.c: Likewise.
16831         * lib/hmac-sha512.c: Likewise.
16832         * modules/crypto/hmac-md5: Reference the new implementation file.
16833         * modules/crypto/hmac-sha1: Likewise.
16834         * modules/crypto/hmac-sha256: Likewise.
16835         * modules/crypto/hmac-sha512: Likewise.
16836         * tests/test-hmac-md5.c: Refactor common code to a single function.
16837         * tests/test-hmac-sha1.c: Likewise.
16838         * tests/test-hmac-sha256.c: Likewise.
16839         * tests/test-hmac-sha512.c: Likewise.
16841 2018-09-30  Zhang Qing  <zhangqingl@126.com>
16843         hmac-sha512: fix hash for keys > blocksize (128 bytes)
16844         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
16845         key length to that output by sha512, not the blocksize.
16846         Otherwise uninitialized data from the stack
16847         is used when computing the hash.
16848         * tests/test-hmac-sha512.c: Add a shortened key test case.
16849         Reported at https://github.com/coreutils/gnulib/pull/5
16851 2018-09-30  Bruno Haible  <bruno@clisp.org>
16853         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
16854         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
16855         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
16856         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
16857         'unsigned int' before comparison with an unsigned value.
16859 2018-09-30  Bruno Haible  <bruno@clisp.org>
16861         grantpt: Remove unnecessary dependency.
16862         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
16864 2018-09-30  Bruno Haible  <bruno@clisp.org>
16866         timevar: Small tweaks.
16867         * lib/timevar.h: Fix comments. Add parameter names to function
16868         declarations.
16869         * lib/timevar.c: Include timevar.h immediately after config.h.
16870         * lib/timevar.def: Fix comments.
16871         * modules/timevar (Maintainer): List Akim Demaille.
16873 2018-09-30  Bruno Haible  <bruno@clisp.org>
16875         timevar: Include documentation in gnulib manual.
16876         * doc/timevar.texi: Change node and section name to 'Profiling of
16877         program phases'.
16878         In the code snippets, tweak the #includes and use GNU coding style.
16879         * doc/gnulib.texi: Include timevar.texi.
16881 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
16883         timevar: import from Bison.
16884         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
16885         New files.
16886         * lib/timevar.def: New file.
16887         * doc/timevar.texi: New file.
16889 2018-09-26  Bruno Haible  <bruno@clisp.org>
16891         javacomp-script, javacomp: Add preliminary support for Java 12..17.
16892         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
16893         * lib/javacomp.c (default_target_version): Likewise.
16895 2018-09-26  Bruno Haible  <bruno@clisp.org>
16897         javacomp-script, javacomp: Add support for Java 11.
16898         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
16899         target-version 11.
16900         * lib/javaversion.h: Update comments.
16901         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
16902         source_version_index, get_goodcode_snippet, get_failcode_snippet,
16903         TARGET_VERSION_BOUND, target_version_index,
16904         corresponding_classfile_version): Accept source_version 11 and
16905         target_version 11.
16906         * lib/javacomp.h: Update comments accordingly.
16908 2018-09-23  Bruno Haible  <bruno@clisp.org>
16910         vasnprintf: Fix heap memory overrun bug.
16911         Reported by Ben Pfaff <blp@cs.stanford.edu> in
16912         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
16913         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
16914         memory.
16915         * tests/test-vasnprintf.c (test_function): Add another test.
16917 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
16919         maint: mktime.c now shared with glibc
16920         * config/srclist.txt: intprops.h, timegm.c and mktime.c
16921         are now the same in Gnulib and glibc.
16923         mktime: fix _LIBC typo
16924         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
16926 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
16928         dfa: optimization for state merge
16929         * lib/dfa.c (merge2): New function.
16930         (merge_nfa_state): Use it.
16932 2018-09-18  Jim Meyering  <meyering@fb.com>
16934         dfa: trivial comment fix: s/is/if/
16935         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
16937 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
16939         dfa: use more-informative function name
16940         * lib/dfa.c (maybe_disable_superset_dfa):
16941         Rename from dfautf8noss.  Use change.
16943         dfa: tweak allocation performance
16944         * lib/dfa.c (merge_nfa_state, dfaoptimize):
16945         Prefer ptrdiff_t for indexes some more.
16946         Use char for flags, as it’s wide enough.
16947         Allocate queue and flags together, with one malloc call.
16948         No need to use xnmalloc since the multiplication and
16949         addition cannot overflow (it’s already been checked by
16950         earlier allocation).  Prefer memset to open-coding.
16952         dfa: prune states as we go
16953         * lib/dfa.c (prune): Remove.
16954         dfa: reorder enum for efficiency
16955         (merge_nfa_state): Prune as we go instead of at the end.
16956         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
16958         * lib/dfa.c (END): Now -1 again.  Reorder other elements
16959         of the enumeration to make it easier for GCC to generate
16960         efficient code by using fewer comparisons to check for
16961         ranges of values.
16962         (atom): Take advantage of the reordering.
16964 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
16966         dfa: optimize alternation in NFA
16967         Even when similar states exist in alternation, the DFA treats them
16968         as separate items, which may complicate the transition in NFA and
16969         cause slowdown.  This change assembles the states into one.  For
16970         example, ab|ac is changed into a(b|c).  This change speeds-up
16971         matching for many branched patterns.  For example, grep speeds up
16972         more than 30× in:
16974           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
16975           time -p env LC_ALL=C grep -vf in in
16977         * lib/dfa.c (prune): New function.
16978         (merge_nfa_state): New function.  It merges similar NFA states.
16979         (dfaoptimize): New function.  It seeks merged and removed nodes.
16980         (dfaanalyze): Call new function.
16981         (dfautf8noss): Change name from dfaoptimize because of addition of new
16982         function.
16983         (dfacomp): Update caller.
16985         dfa: simplify initial state
16986         Simplifying the initial state enables easier optimization of the NFA.
16987         * lib/dfa.c (enum token): Add new element BEG.
16988         (prtok): Adjust due to adding element BEG.
16989         (dfaparse): Put BEG at a head of tokens.
16990         (state_index): Adjust due to adding element BEG.
16991         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
16992         build initial state.
16993         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
16995 2018-09-18  Bruno Haible  <bruno@clisp.org>
16997         file-has-acl: Fix test failure on Cygwin 2.9.
16998         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
16999         * lib/acl-internal.h: Likewise.
17000         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
17001         * lib/acl-internal.c: Update comments regarding Cygwin.
17002         * lib/acl_entries.c: Likewise.
17003         * lib/file-has-acl.c: Likewise.
17004         (file_has_acl): For Cygwin, use a different way to determine whether
17005         the "default" ACL of a directory is nontrivial.
17006         * lib/get-permissions.c: Update comments regarding Cygwin.
17007         * lib/set-permissions.c: Likewise.
17009 2018-09-18  Bruno Haible  <bruno@clisp.org>
17011         stat-time tests: Fix test failure on Cygwin.
17012         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
17014 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
17016         doc: OS X 10.11 lacked ns time functions
17017         According to <https://github.com/zeromq/libzmq/issues/2175>,
17018         nanosecond-resolution timestamp functions were introduced
17019         in macOS 10.12, so document the last version (OS X 10.11)
17020         where they were absent.
17022         gettime: nanotime never existed
17023         Problem reported by Bruno Haible in:
17024         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
17025         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
17026         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
17028 2018-09-18  Bruno Haible  <bruno@clisp.org>
17030         doc: Update statement about target platforms.
17031         Reported by Simon Sobisch.
17032         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
17033         restrictions on MSVC versions.
17035 2018-09-18  Bruno Haible  <bruno@clisp.org>
17037         posix_spawn tests: Fix link error on 64-bit Cygwin.
17038         * tests/test-posix_spawn1.c (environ): Remove declaration.
17039         * tests/test-posix_spawn2.c (environ): Likewise.
17040         * tests/test-posix_spawn3.c (environ): Likewise.
17041         * tests/test-posix_spawn4.c (environ): Likewise.
17042         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
17043         * modules/posix_spawnp-tests (Depends-on): Likewise.
17045 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
17047         timespec: new function current_timespec
17048         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
17049         and don’t worry about it failing on a CLOCK_REALTIME arg.
17050         POSIX requires it to succeed and I don’t know of any
17051         counterexamples where the fallbacks would work.
17052         (current_timespec): New function, taken from Emacs.  It is more
17053         convenient than gettime, and can help register allocation.
17054         * lib/timespec.h: Include arg-nonnull.h.
17055         (current_timespec): New declaration.
17056         (gettime, settime): Declare args to be nonnull.
17057         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
17059 2018-09-16  Bruno Haible  <bruno@clisp.org>
17061         setlocale: Improve locale handling on macOS 10.12 or newer.
17062         * lib/setlocale.c: Include header files for CoreFoundation. Declare
17063         gl_locale_name_canonicalize.
17064         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
17065         and LC_MESSAGES.
17066         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
17068 2018-09-16  Bruno Haible  <bruno@clisp.org>
17070         Update list of locale names with scripts on macOS.
17071         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
17072         match Mac OS X 10.13 and recent glibc.
17074 2018-09-16  Bruno Haible  <bruno@clisp.org>
17076         gettext: Use newer macOS APIs when possible.
17077         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
17078         CFLocaleCopyPreferredLanguages.
17080 2018-09-16  Bruno Haible  <bruno@clisp.org>
17082         localename: Revisit macOS specific code.
17083         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
17084         Fix comments about Mac OS X versions.
17086 2018-09-15  Bruno Haible  <bruno@clisp.org>
17088         setlocale: Improve support for locales not supported by libc.
17089         Reported by Dapeng Gao <peter@dpgao.cc> at
17090         <https://savannah.gnu.org/bugs/?54479>.
17091         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
17092         (libintl_setlocale): Use a more error-tolerant strategy when the locale
17093         to be set is not supported by libc: Emit warnings instead of failing.
17095 2018-09-15  Bruno Haible  <bruno@clisp.org>
17097         strstr, strcasestr: Add workaround against glibc-2.28 bug.
17098         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
17099         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
17100         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
17101         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
17102         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
17103         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
17104         * doc/glibc-functions/strcasestr.texi: Likewise.
17106 2018-09-14  Bruno Haible  <bruno@clisp.org>
17108         doc: Fix bottom of top-level page.
17109         Reported by Akim Demaille <akim.demaille@gmail.com> in
17110         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
17111         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
17112         mode.
17113         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
17114         accordingly.
17116 2018-09-12  Bruno Haible  <bruno@clisp.org>
17118         Add test case from a recent glibc bug.
17119         * tests/test-strstr.c (main): Add test of long needle.
17120         * tests/test-strcasestr.c (main): Likewise.
17121         * tests/test-c-strstr.c (main): Likewise.
17122         * tests/test-c-strcasestr.c (main): Likewise.
17123         * tests/test-memmem.c (main): Likewise.
17125 2018-09-12  Bruno Haible  <bruno@clisp.org>
17127         Apply Eric Blake's improvements from 2011-02-25 to more tests.
17128         * tests/test-c-strstr.c (main): Add the same tests here as well.
17130 2018-09-12  Bruno Haible  <bruno@clisp.org>
17132         Apply Jim Meyering's fix from 2015-01-11 to more tests.
17133         * tests/test-memmem.c (main): Free haystack.
17134         * tests/test-strcasestr.c (main): Likewise.
17135         * tests/test-c-strcasestr.c (main): Likewise.
17137 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
17139         xstrtol: fix missing-TYPE_SIGNED typo
17140         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
17142 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
17144         timespec: fix resolution confusion
17145         In normal usage, clock resolution is given in seconds, but the
17146         code was mistakenly using inverse seconds and calling it
17147         “resolution”.  Fix this, partly by renaming two identifiers.
17148         The old names will be kept for a bit, to ease transition.
17149         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
17150         New constants, replacing TIMESPEC_RESOLUTION and
17151         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
17152         All uses changed.
17154 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
17156         mktime: simplify in prep for glibc merge
17157         * lib/mktime.c, lib/timegm.c [_LIBC]:
17158         Include mktime-internal.h (a small file just for glibc)
17159         instead of using a typedef.
17161 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
17163         intprops: minor clarification of code
17164         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
17165         Use _GL_INT_CONVERT rather than reinventing it.
17167 2018-09-07  Bruno Haible  <bruno@clisp.org>
17169         Fix a comment.
17170         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
17172 2018-09-07  Bruno Haible  <bruno@clisp.org>
17174         posix_spawn_file_actions_addchdir: Add tests.
17175         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
17176         * tests/test-posix_spawn4.c: New file.
17177         * modules/posix_spawn_file_actions_addchdir-tests: New file.
17179 2018-09-07  Bruno Haible  <bruno@clisp.org>
17181         posix_spawn_file_actions_addchdir: New module.
17182         Suggested by Eric Blake in
17183         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
17184         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
17185         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
17186         union member 'chdir_action'.
17187         * lib/spawn_faction_addchdir.c: New file.
17188         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
17189         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
17190         HAVE_WORKING_POSIX_SPAWN.
17191         * lib/spawn_faction_adddup2.c: Likewise.
17192         * lib/spawn_faction_addopen.c: Likewise.
17193         * m4/posix_spawn_faction_addchdir.m4: New file.
17194         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
17195         'posix_spawn_file_actions_addchdir' is present and whether
17196         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
17197         instead of HAVE_WORKING_POSIX_SPAWN.
17198         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
17199         posix_spawn_file_actions_addchdir is declared.
17200         (gl_SPAWN_H_DEFAULTS): Initialize
17201         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
17202         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
17203         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
17204         * modules/spawn (Makefile.am): Substitute
17205         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
17206         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
17207         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
17208         * modules/posix_spawn_file_actions_addchdir: New file.
17209         * modules/posix_spawn_file_actions_addclose (Depends-on,
17210         configure.ac): Test also REPLACE_POSIX_SPAWN.
17211         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
17212         configure.ac): Likewise.
17213         * modules/posix_spawn_file_actions_addopen (Depends-on,
17214         configure.ac): Likewise.
17215         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
17216         signature.
17217         * doc/posix-functions/posix_spawn.texi: Mention the new module.
17218         * doc/posix-functions/posix_spawnp.texi: Likewise.
17220 2018-09-06  Bruno Haible  <bruno@clisp.org>
17222         stddef: Override max_align_t on NetBSD 8.0/x86.
17223         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
17224         the value of __alignof__ (max_align_t).
17225         * doc/posix-headers/stddef.texi: Mention the issue.
17227 2018-09-06  Bruno Haible  <bruno@clisp.org>
17229         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
17230         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
17231         system fcntl.
17232         * doc/posix-functions/fcntl.texi: Document the issue.
17234 2018-09-06  Bruno Haible  <bruno@clisp.org>
17236         count-trailing-zeros tests: Rely on limits-h module.
17237         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
17238         definition.
17239         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
17241 2018-09-06  Bruno Haible  <bruno@clisp.org>
17243         count-leading-zeros tests: Rely on limits-h module.
17244         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
17245         definition.
17246         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
17248 2018-09-06  Bruno Haible  <bruno@clisp.org>
17250         count-one-bits tests: Rely on limits-h module.
17251         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
17252         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
17254 2018-09-06  Bruno Haible  <bruno@clisp.org>
17256         xstrtoll: Rely on limits-h module.
17257         * lib/xstrtol.c: Don't include intprops.h.
17258         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
17259         * modules/xstrtol (Depends-on): Remove 'intprops'.
17260         * modules/xstrtoll (Depends-on): Add 'limits-h'.
17262 2018-09-06  Bruno Haible  <bruno@clisp.org>
17264         strtoll, strtoull: Rely on limits-h module.
17265         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
17266         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
17267         * modules/strtoll (Depends-on): Add limits-h.
17268         * modules/strtoull (Depends-on): Likewise.
17270 2018-09-06  Bruno Haible  <bruno@clisp.org>
17272         intprops tests: Fix compilation error with pre-C99 compiler.
17273         * tests/test-intprops.c (verify_stmt): New macro.
17274         (VERIFY, main): Use it.
17276 2018-09-06  Bruno Haible  <bruno@clisp.org>
17278         limits-h: Provide numerical limits macros.
17279         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
17280         IRIX and for GCC.
17281         (WORD_BIT, LONG_BIT): Define.
17282         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
17283         <limits.h> does not define LLONG_MAX or WORD_BIT.
17284         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
17285         TYPE_MAXIMUM): New macros, from intprops.h.
17286         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
17287         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
17288         provides.
17290 2018-09-05  Bruno Haible  <bruno@clisp.org>
17292         fcntl: Don't access nonexistent optional argument.
17293         Reported by Frank Busse <f.busse@imperial.ac.uk> in
17294         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
17295         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
17296         don't consume an argument. For actions that take an 'int' argument,
17297         consume an 'int' argument.
17299 2018-09-05  Eric Blake  <eblake@redhat.com>
17301         doc: mention environ pitfall
17302         * doc/posix-functions/environ.texi (environ): Assigning NULL to
17303         environ is a glibc extension.
17305 2018-09-03  Bruno Haible  <bruno@clisp.org>
17307         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
17308         Reported by Antoine Luong <antoine.luong@c-s.fr> in
17309         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
17310         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
17311         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
17312         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
17314 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17316         mktime: fix unlikely race+overflow bug
17317         Problem reported by Alexandre Oliva in:
17318         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
17319         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
17320         to avoid an unlikely race if the compiler delays a load and
17321         if this cascades into a signed integer overflow.
17323 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17325         mktime, timegm: simplify glibc time64_t
17326         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
17327         Now long int, not time_t, since long int is the longstanding type
17328         for this in glibc and there is no need to change it even if time_t
17329         becomes 64 bits - even int would do, though this would be a change
17330         to the glibc generated code.  When this change is merged into
17331         glibc, it should simplify the time_t vs time64_t situation.
17333         mktime, timegm: simplify merge to glibc
17334         Move code around to make a merge to glibc easier to audit.
17335         This should not change behavior.
17336         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
17337         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
17338         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
17339         simplify later conditionals; default the others to zero.  In uses
17340         of these conditionals, explicitly spell out how _LIBC affects
17341         things, so it’s easier to review from a glibc viewpoint.
17342         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
17343         compartmentalize tzset issues.  Move system-dependent tzsettish
17344         code here from mktime.
17345         (mktime): Move tzsettish code to my_tzset, and move
17346         localtime_offset to within mktime so that it doesn’t
17347         need a separate ifdef.
17349 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
17351         intprops: avoid evaluation of some expressions
17352         This makes EXPR_SIGNED (e) easier to use, as it no longer
17353         evaluates the expression E.  Formerly, E was required to be free
17354         of side effects.
17355         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
17356         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
17357         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
17359 2018-08-23  Bruno Haible  <bruno@clisp.org>
17361         getcwd: Add cross-compilation guesses.
17362         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
17363         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
17364         Based on a patch by Paul Eggert.
17365         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
17366         guesses for all GNU systems.
17368 2018-08-19  Bruno Haible  <bruno@clisp.org>
17370         glob-h: Formalize side effects from other modules.
17371         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
17372         * m4/glob.m4 (gl_GLOB): Invoke it.
17374         fnmatch-h: Formalize side effects from other modules.
17375         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
17376         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
17378         limits-h: Formalize side effects from other modules.
17379         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
17380         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
17382 2018-08-19  Bruno Haible  <bruno@clisp.org>
17384         getpass: Move declaration to <unistd.h>.
17385         * lib/unistd.in.h (getpass): New declaration.
17386         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
17387         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
17388         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
17389         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
17390         On glibc systems, don't set REPLACE_GETPASS to 1.
17391         * modules/getpass (Depends-on): Add 'unistd'.
17392         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
17393         (Include): Specify <unistd.h> instead of "getpass.h".
17394         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
17395         (configure.ac): Sync with the configure.ac section of modules/getpass.
17396         (Include): Specify <unistd.h> instead of "getpass.h".
17397         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
17398         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
17399         REPLACE_GETPASS.
17400         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
17401         REPLACE_GETPASS.
17402         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
17403         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
17404         and musl.
17405         * NEWS: Mention the change.
17407 2018-08-19  Bruno Haible  <bruno@clisp.org>
17409         glob: Fix over-optimization due to attribute __nonnull__.
17410         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
17412 2018-08-19  Bruno Haible  <bruno@clisp.org>
17414         glob: Fix another compilation error when glob.h is not replaced.
17415         Reported by Reuben Thomas <rrt@sc3d.org> in
17416         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
17417         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
17418         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
17420 2018-08-18  Bruno Haible  <bruno@clisp.org>
17422         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
17423         Reported by Reuben Thomas <rrt@sc3d.org> in
17424         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
17425         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
17426         in config.h.
17428 2018-08-18  Bruno Haible  <bruno@clisp.org>
17430         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
17431         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
17432         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
17433         Solution proposed by Eli Zaretskii.
17434         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
17435         * lib/gettimeofday.c (GetProcAddress): Likewise.
17436         * lib/link.c (GetProcAddress): Likewise.
17437         * lib/physmem.c (GetProcAddress): Likewise.
17438         * lib/poll.c (GetProcAddress): Likewise.
17439         * lib/select.c (GetProcAddress): Likewise.
17440         * lib/stat-w32.c (GetProcAddress): Likewise.
17442 2018-08-18  Bruno Haible  <bruno@clisp.org>
17444         glob: Fix another compilation error when glob.h is not replaced.
17445         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
17446         * lib/globfree.c: Include <libc-config.h>.
17448 2018-08-18  Bruno Haible  <bruno@clisp.org>
17450         glob: Fix compilation error when glob.h is not replaced.
17451         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
17452         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
17453         * lib/glob_pattern_p.c: Include <libc-config.h>.
17454         * modules/glob (Depends-on): Add libc-config.
17456 2018-08-18  Bruno Haible  <bruno@clisp.org>
17458         scratch_buffer: Add tests.
17459         * tests/test-scratch-buffer.c: New file.
17460         * modules/scratch_buffer-tests: New file.
17462 2018-08-18  Bruno Haible  <bruno@clisp.org>
17464         scratch_buffer: Fix include file.
17465         Reported by Reuben Thomas <rrt@sc3d.org> in
17466         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
17467         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
17468         double-inclusion guard.
17470 2018-08-18  Bruno Haible  <bruno@clisp.org>
17472         glob-h: Revert Paul Eggert's revert.
17473         * m4/glob_h.m4: Revert to previous state.
17474         * modules/glob-h: Likewise.
17476 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
17478         glob-h: always build glob.h
17479         This works around a problem reported by Reuben Thomas in:
17480         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
17481         This workaround always builds glob.h, even on platforms that
17482         do not need it; perhaps this could be improved someday.
17483         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
17484         is always created now.
17485         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
17487 2018-08-13  Bruno Haible  <bruno@clisp.org>
17489         monetary: Simplify m4 code.
17490         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
17491         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
17493 2018-08-13  Bruno Haible  <bruno@clisp.org>
17495         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
17496         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
17497         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
17498         and by Paul J. Lucas <paul@lucasmail.org> in
17499         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
17500         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
17502 2018-08-11  Bruno Haible  <bruno@clisp.org>
17504         setlocale: Trivial simplification.
17505         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
17507 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
17509         verify: port 'assume' to traditional tools
17510         * lib/verify.h (assume): Port better to Oracle Studio 12.6
17511         and other tools that use /*NOTREACHED*/ comments.
17513 2018-08-10  Bruno Haible  <bruno@clisp.org>
17515         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
17516         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
17517         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
17518         'fnmatch-gnu' is in use.
17520 2018-08-07  Bruno Haible  <bruno@clisp.org>
17522         glob-h: Add tests.
17523         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
17524         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
17525         tests/test-glob-h.c.
17526         * modules/glob-h-tests: New file.
17527         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
17528         conditions.
17529         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
17530         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
17532 2018-08-07  Bruno Haible  <bruno@clisp.org>
17534         glob-h: New module.
17535         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
17536         replacements.
17537         * lib/glob.c: Include <config.h>.
17538         * m4/glob_h.m4: New file.
17539         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
17540         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
17541         REPLACE_GLOB_PATTERN_P as appropriate.
17542         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
17543         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
17544         * modules/glob-h: New file.
17545         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
17546         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
17547         lstat, sys_stat. Change conditions.
17548         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
17549         REPLACE_GLOB_PATTERN_P. Set module indicator.
17550         (Makefile.am): Remove code that is moved to glob-h.
17551         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
17552         * modules/posixcheck (Depends-on): Add glob-h.
17554 2018-08-06  Bruno Haible  <bruno@clisp.org>
17556         Force generation of substitute .h file when C++ support is enabled.
17557         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
17558         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
17559         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
17560         FNMATCH_H to non-empty.
17561         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
17562         ICONV_H to non-empty.
17563         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
17564         MONETARY_H to non-empty.
17565         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
17566         non-empty.
17568 2018-08-06  Bruno Haible  <bruno@clisp.org>
17570         fnmatch-h: Fix test compilation error on mingw (regression from today).
17571         * lib/fnmatch.in.h: Fix conditions.
17573 2018-08-06  Bruno Haible  <bruno@clisp.org>
17575         sys_resource: Relicense under LGPLv2+.
17576         John Malmberg's approval is in
17577         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
17578         * modules/sys_resource (License): Change to LGPLv2+.
17580 2018-08-06  Bruno Haible  <bruno@clisp.org>
17582         fnmatch-h: Add tests.
17583         * tests/test-fnmatch-h.c: New file.
17584         * modules/fnmatch-h-tests: New file.
17585         * tests/test-fnmatch-h-c++.cc: New file.
17586         * modules/fnmatch-h-c++-tests: New file.
17588 2018-08-06  Bruno Haible  <bruno@clisp.org>
17590         fnmatch-h: New module.
17591         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
17592         replacements.
17593         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
17594         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
17595         'posixcheck' warning.
17596         * m4/fnmatch_h.m4: New file.
17597         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
17598         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
17599         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
17600         as appropriate.
17601         * modules/fnmatch-h: New file.
17602         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
17603         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
17604         conditions.
17605         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
17606         indicator.
17607         (Makefile.am): Remove code that is moved to fnmatch-h.
17608         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
17609         REPLACE_FNMATCH.
17610         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
17611         * modules/posixcheck (Depends-on): Add fnmatch-h.
17613 2018-08-06  Bruno Haible  <bruno@clisp.org>
17615         Enable more C++ tests.
17616         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
17617         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
17618         * modules/strings-tests (Depends-on): Add strings-c++-tests.
17619         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
17620         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
17622 2018-08-06  Bruno Haible  <bruno@clisp.org>
17624         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
17625         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
17626         getopt.h.
17627         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
17629 2018-08-05  Bruno Haible  <bruno@clisp.org>
17631         utime-h: Generate header file when module 'posixcheck' is in use.
17632         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
17633         UTIME_H to non-empty.
17635 2018-08-05  Bruno Haible  <bruno@clisp.org>
17637         monetary: Generate header file when module 'posixcheck' is in use.
17638         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
17639         use, set MONETARY_H to non-empty.
17641 2018-08-05  Bruno Haible  <bruno@clisp.org>
17643         iconv-h: Generate header file when module 'posixcheck' is in use.
17644         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
17645         set ICONV_H to non-empty.
17647 2018-08-05  Bruno Haible  <bruno@clisp.org>
17649         Optimize the "checking whether ... is declared without a macro" checks.
17650         Suggested by Paul Eggert in
17651         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
17652         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
17653         Gnulib module 'posixcheck' is not in use.
17655 2018-08-05  Bruno Haible  <bruno@clisp.org>
17657         iconv-h: Enable 'posixcheck' warnings.
17658         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
17659         iconv_open.
17660         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
17662 2018-08-05  Bruno Haible  <bruno@clisp.org>
17664         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
17665         * m4/extern-inline.m4: Add more comments.
17666         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
17667         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
17668         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
17670 2018-08-04  Bruno Haible  <bruno@clisp.org>
17672         New module 'posixcheck'.
17673         * modules/posixcheck: New file.
17674         * m4/posixcheck.m4: New file.
17675         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
17676         (Which modules?): Reference it.
17678 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
17680         dfa: fix memory leak
17681         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
17683 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
17685         ieee754-h: new module
17686         It looks like Emacs can use this for some NaN processing.
17687         Emacs uses it only on double NaNs so it should be safe.
17688         * MODULES.html.sh (func_all_modules): Add ieee754-h.
17689         * config/srclist.txt: Mention ieee754.h in a comment.
17690         * doc/glibc-headers/ieee754.texi (ieee754.h):
17691         Gnulib now has a substitute that should work
17692         except for long double and for non-IEEE platforms.
17693         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
17694         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
17696 2018-07-27  Bruno Haible  <bruno@clisp.org>
17698         iswcntrl: Mention minor problem on macOS.
17699         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
17701 2018-07-26  Colin Watson  <cjwatson@debian.org>
17703         bootstrap, gnulib-tool: fix translations rsync
17704         Previously, we created files such as $pobase/Makefile.in.in and then the
17705         subsequent rsync would immediately delete them.
17706         * build-aux/bootstrap (po_download_command_format): Avoid deleting
17707         non-.po files in target directory when rsyncing translations.
17708         * gnulib-tool (func_import): Likewise.
17709         * pygnulib/GLImport.py (GLImport.execute): Likewise.
17711 2018-07-25  Jim Meyering  <meyering@fb.com>
17713         bootstrap: reinstate definition fo gnulib_mk.
17714         That variable is used at least by cppi.
17715         * build-aux/bootstrap (gnulib_mk): Restore definition.
17716         This reverts the deletion from v0.1-1844-gc66dba9ba.
17718 2018-07-23  Bruno Haible  <bruno@clisp.org>
17720         doc: For module names, use texinfo markup @code{} or @samp{}.
17721         * doc/alloca.texi: Mark gnulib module names with @code.
17722         * doc/alloca-opt.texi: Likewise.
17723         * doc/quote.texi: Likewise.
17724         * doc/posix-functions/freopen.texi: Likewise.
17725         * doc/posix-functions/open.texi: Likewise.
17726         * doc/posix-functions/readlink.texi: Likewise.
17727         * doc/posix-functions/readlinkat.texi: Likewise.
17728         * doc/posix-functions/stdout.texi: Likewise.
17729         * doc/posix-functions/stderr.texi: Likewise.
17730         * doc/posix-functions/unlink.texi: Likewise.
17731         * doc/posix-functions/unlinkat.texi: Likewise.
17732         * doc/posix-functions/utime.texi: Likewise.
17733         * doc/posix-functions/utimensat.texi: Likewise.
17734         * doc/posix-functions/utimes.texi: Likewise.
17735         * doc/posix-headers/stdint.texi: Likewise.
17736         * doc/glibc-functions/futimesat.texi: Likewise.
17737         * doc/glibc-functions/lutimes.texi: Likewise.
17738         * doc/glibc-functions/memmem.texi: Likewise.
17740 2018-07-23  Werner LEMBERG  <wl@gnu.org>
17742         doc: Avoid some overfull lines in the TeX output.
17743         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
17744         @example.
17745         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
17746         newline before the long URL.
17747         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
17748         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
17749         Add line breaks in code snippets.
17751 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
17753         hard-locale: simplify by removing hard-locale.m4
17754         * m4/hard-locale.m4: Remove.
17755         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
17756         (configure.ac): Do not call gl_HARD_LOCALE.
17758         gnulib-tool: limit line length for git send-email
17759         * gnulib-tool (func_import): Break actioncmd log line
17760         into multiple lines.
17762 2018-07-16  Bruno Haible  <bruno@clisp.org>
17764         ffs: Ensure declaration on mingw.
17765         Reported by Daniel P. Berrangé <berrange@redhat.com>
17766         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
17767         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
17768         also declared.
17770 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
17772         regex-tests: add dependency
17773         * modules/regex-tests (Depends-on): Add gettext-h.
17774         This is needed given the recent changes to regex,
17775         which no longer depends on gettext-h.
17777 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17779         regex: now in sync with glibc
17780         * config/srclist.txt: Gnulib and glibc regex code
17781         are synchronized again.
17783 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
17785         renameatu: rename from renameat2
17786         It's looking like Glibc will add a renameat2 function
17787         that is incompatible with Gnulib renameat2; see:
17788         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
17789         To help avoid future confusion, rename renameat2 to something else.
17790         Use the name 'renameatu', as the Gnulib function is close to the
17791         Glibc function.  Perhaps someday there will also be a renameat2
17792         Gnulib module, which mimicks the future glibc renameat2, but that
17793         can wait as nobody seems to need such a module now.
17794         * NEWS: Mention this.
17795         * lib/renameatu.c: Rename from lib/renameat2.c.
17796         * lib/renameatu.h: Rename from lib/renameat2.h.
17797         * modules/renameatu: Rename from modules/renameat2.
17798         * modules/renameatu-tests: Rename from modules/renameat2-tests.
17799         All uses of "renameat2" in identifiers or file name
17800         changed to "renameatu", except for two instances in
17801         lib/renameatu.c that deal with the Linux kernel's
17802         renameat2 syscall.
17804 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
17806         gnulib-tool: minor tweaks for --gnu-make
17807         * gnulib-tool: Do not allow --gnu-make in test modes,
17808         since they all require automake.
17809         (func_emit_lib_Makefile_am): Don’t emit automake comment
17810         if --gnu-make.
17812         regex: work around conditional-dependencies glitch
17813         * modules/regex (Depends-on): Add langinfo.
17814         Without this change, I had problems building an experimental
17815         version of GNU Emacs.  The symptom of the bug was a message
17816         ‘./configure: line 12726: test: =: unary operator expected’.
17817         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
17818         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
17819         was unset.  Although gl_FUNC_NL_LANGINFO has
17820         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
17821         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
17822         --conditional-dependencies sometimes arranges for the
17823         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
17824         code.  Since the regex code includes <langinfo.h> it should be
17825         depending on the langinfo module anyway, and this happens to work
17826         around the bug, so install that as a workaround for now.  To
17827         reproduce the original problem, run the following shell script on
17828         the version of Gnulib just before this patch was installed.
17829                 rm -fr foo
17830                 mkdir foo
17831                 cat >foo/configure.ac <<'EOF'
17832                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
17833                 gl_EARLY
17834                 gl_INIT
17835                 AC_OUTPUT
17836                 EOF
17837                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
17838                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
17839                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
17840                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
17841                 cd foo
17842                 aclocal -I m4
17843                 autoconf
17844                 ./configure --with-included-regex
17846 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
17848         wchar: fix bug when checking for ‘inline’
17849         I discovered this when looking into using the regex module
17850         with Emacs.
17851         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
17852         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
17853         conftest1.c and conftest2.c but these files were not created.
17854         As far as I can see, this check never worked and nobody reported
17855         it until now, which is a bit worrisome.
17857 2018-06-30  Jim Meyering  <meyering@fb.com>
17859         bootstrap: s/--option val/--option=val/
17860         * build-aux/bootstrap (gnulib_tool_options): Change the
17861         spelling of "--option val" pairs to "--option=val", for
17862         aesthetics, and also so that this file no longer triggers
17863         a common help2man syntax-check warning when copied into
17864         projects like grep, gzip, etc.
17866 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
17868         manywarnings: omit -Wswitch-default
17869         This should make things more consistent, as we already ignore
17870         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
17871         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
17872         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
17873         Add -Wswitch-default.
17874         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
17875         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
17876         Remove -Wswitch-default.
17878         regex: revert most trimming
17879         Problems reported by Bruno Haible in:
17880         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
17881         * modules/regex (Depends-on): Add lock, memcmp, memmove,
17882         and wctype back in.  lock because regex users shouldn’t
17883         need to know that regex needs locking, and the rest because
17884         gnulib-tool should ordinarily ignore them anyway.
17886 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
17888         regex: trim module dependencies
17889         * modules/regex (Depends-on): Remove gettext-h and lock,
17890         since the regex code should work OK without these modules,
17891         and Emacs uses it that way.  Also remove memcmp, memmove,
17892         and wctype, as these modules are obsolete and should not be
17893         needed any more.
17895 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
17897         regex: glibc does not use intprops.h
17898         Maybe we can talk glibc into using intprops.h someday, but
17899         now doesn’t seem to be a good time.
17900         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
17901         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
17902         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
17904 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
17906         regex: port to recently proposed glibc regex merge
17907         This patch is inspired by Adhemerval Zanella's recent proposal
17908         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
17909         to merge glibc and Gnulib regex.  It aims to simplify the merge on
17910         the glibc side, without keeping Gnulib portable.
17911         * lib/regex.h: Fix a problem with glibc installed-header checking,
17912         as follows:
17913         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
17914         (_Restrict_arr_): Prefer __restrict_arr if defined,
17915         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
17916         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
17917         (build_wcs_upper_buffer, build_upper_buffer)
17918         (re_string_translate_buffer, re_string_context_at):
17919         Move decls here from lib/regex_internal.h, for glibc internal tests.
17920         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
17921         glibc BZ #18496.
17922         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
17923         -Wunused-value.
17924         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
17925         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
17926         (bitset_mask): Now static inline, and without any __attribute__
17927         ((unused)) decoration, for glibc internal tests.
17929 2018-06-25  Bruno Haible  <bruno@clisp.org>
17931         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
17932         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
17933         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
17934         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
17935         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
17936         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
17937         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
17938         / -lthread / -lpth does not get optimized away by a preceding
17939         --as-needed option.
17941 2018-06-25  Bruno Haible  <bruno@clisp.org>
17943         Continue to use spaces for indentation, not tabs.
17944         * MODULES.html.sh: Untabify.
17945         * doc/regex.texi: Likewise.
17946         * lib/acl-internal.c: Likewise.
17947         * lib/dfa.c: Likewise.
17948         * lib/exclude.c: Likewise.
17949         * lib/exclude.h: Likewise.
17950         * lib/get-permissions.c: Likewise.
17951         * lib/gettimeofday.c: Likewise.
17952         * lib/parse-datetime.y: Likewise.
17953         * lib/pselect.c: Likewise.
17954         * lib/set-permissions.c: Likewise.
17955         * lib/time.in.h: Likewise.
17956         * m4/canonicalize.m4: Likewise.
17957         * m4/gc.m4: Likewise.
17958         * m4/gnulib-common.m4: Likewise.
17959         * m4/pthread_sigmask.m4: Likewise.
17960         * m4/vararrays.m4: Likewise.
17961         * tests/test-digest.h: Likewise.
17962         * tests/test-fcntl-h.c: Likewise.
17963         * tests/test-timespec.c: Likewise.
17964         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
17966 2018-06-25  Bruno Haible  <bruno@clisp.org>
17968         manywarnings: Don't enable -Wjump-misses-init warnings by default.
17969         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
17970         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
17971         -Wjump-misses-init.
17973 2018-06-25  Jim Meyering  <meyering@fb.com>
17975         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
17976         * lib/acl-internal.h (free_permission_context): Remove that
17977         attribute directive.  Otherwise, it would provoke this from GCC 9:
17978         lib/acl-internal.h:300:3: error: 'const' attribute on function \
17979           returning 'void' [-Werror=attributes]
17981 2018-06-24  Jim Meyering  <meyering@fb.com>
17983         parse-datetime: accommodate gcc-4.8.5
17984         Bruno Haible reported the build failure in
17985         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
17986         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
17987         on declaration of new local.
17989 2018-06-24  Bruno Haible  <bruno@clisp.org>
17991         af_alg: Fail in continuable manner on Linux/powerpc64le.
17992         Reported by Assaf Gordon <assafgordon@gmail.com>
17993         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
17994         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
17995         byte send() as the first round.
17997 2018-06-24  Bruno Haible  <bruno@clisp.org>
17999         af_alg: Fix state of stream after sendfile() succeeds.
18000         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
18001         the stream is correctly positioned afterwards.
18002         * modules/crypto/af_alg (Depends-on): Add fflush.
18003         * tests/test-digest.h (test_digest_on_files): Verify that after the
18004         operation the stream is positioned at end of file.
18006 2018-06-24  Jim Meyering  <meyering@fb.com>
18008         canon-host: take GCC9's advice rather than ignoring warning
18009         Pádraig Brady suggested not to ignore this GCC9 advice.
18010         * lib/canon-host.c: Undo preceding change.
18011         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
18013         parse-datetime.y: avoid spurious GCC 9 warning
18014         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
18015         a function local prior to the first "goto fail".  The prior use would
18016         evoke this:
18017         parse-datetime.y: In function 'parse_datetime2':
18018         parse-datetime.y:1791:19: error: jump skips variable initialization \
18019           [-Werror=jump-misses-init]
18020         parse-datetime.y:2385:2: note: label 'fail' defined here
18021         parse-datetime.y:188:43: note: '({anonymous})' declared here
18022         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
18024         canon-host.c: avoid spurious GCC 9 warning
18025         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
18027         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
18028         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
18029         * m4/manywarnings.m4: Remove them.
18030         Otherwise, building coreutils, I would see this:
18031         cc1: error: deprecated command line option '-Wchkp' [-Werror]
18032         cc1: error: -Wabi won't warn about anything [-Werror=abi]
18033         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
18034           which is also used by default
18035         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
18037 2018-06-24  Bruno Haible  <bruno@clisp.org>
18039         af_alg tests: Add another test.
18040         * tests/test-digest.h (test_digest_on_files): Also check a large file
18041         with a skipped header.
18042         * tests/test-md5.c: Include macros.h.
18043         * tests/test-sha1.c: Likewise.
18044         * tests/test-sha256.c: Likewise.
18045         * tests/test-sha512.c: Likewise.
18046         * modules/crypto/md5-tests (Files): Add tests/macros.h.
18047         * modules/crypto/sha1-tests (Files): Likewise.
18048         * modules/crypto/sha256-tests (Files): Likewise.
18049         * modules/crypto/sha512-tests (Files): Likewise.
18051 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18053         maint: clarify comments about sticky EOF
18054         * lib/af_alg.c: Be more direct that we can't
18055         assume stickiness of EOF for portability reasons.
18056         * lib/md5.c: Clarify that this isn't just a glibc issue.
18057         * lib/sha1.c: Likewise.
18058         * lib/sha256.c: Likewise.
18059         * lib/sha512.c: Likewise.
18061 2018-06-24  Bruno Haible  <bruno@clisp.org>
18063         af_alg: Comment and style improvements.
18064         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
18065         (afalg_buffer, afalg_stream): Improve comments.
18067 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18069         af_alg: disable kernel hash functions by default
18070         All the kernel routines were seen to be significantly slower
18071         with these relatively recent components on an i3-2310M system:
18072           kernel-4.10.6-200.fc25.x86_64
18073           openssl-1.0.2m-1.fc25.x86_64
18074         sha1 was nearly twice as slow in the kernel for example.
18075         Further considerations why this should not be the default, at:
18076         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
18078         * m4/af_alg.m4: Require --with-linux-crypto to enable.
18079         * m4/gl-openssl.m4: Tweak accordingly.
18081 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18083         af_alg: avoid hangs when reading from streams
18084         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
18085         and thus avoid doing a fread() when feof() is set.
18086         * lib/md5.c: Ensure feof() is called before fread().
18087         * lib/sha1.c: Likewise.
18088         * lib/sha256.c: Likewise.
18089         * lib/sha512.c: Likewise.
18091 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18093         af_alg: fix error handling when hash not returned
18094         * lib/af_alg.c (afalg_stream): Handle the case where we've
18095         successfully written data to the kernel in the read/write loop,
18096         but the kernel doesn't respond with the hash.
18098 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
18100         libc-config: merge from glibc
18101         * lib/cdefs.h (__inline, __restrict):
18102         Copy from current glibc.  This fixes glibc bug 17721,
18103         which Gnulib had already fixed in a different way.
18104         (__nonnull): Lessen the distance from glibc by using the
18105         glibc definition inside an ‘#ifndef __nonnull’.
18106         (__attribute_nonstring__): New macro, copied from
18107         current glibc.
18108         * lib/libc-config.h (__attribute_nonstring__): New undef.
18109         (__restrict): Remove; workaround no longer needed.
18110         Keep the __inline workaround, though, as it uses HAVE___INLINE to
18111         support more compilers than the glibc __inline can.
18113 2018-06-24  Bruno Haible  <bruno@clisp.org>
18115         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
18116         * lib/mbrtowc.c (enc_t): New enum type.
18117         (locale_enc, locale_enc_cached): New functions.
18118         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
18119         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
18120         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
18121         instead.
18122         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
18123         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
18124         * modules/wcwidth (configure.ac): Invoke it.
18126 2018-06-24  Bruno Haible  <bruno@clisp.org>
18128         wchar-single: Fix test failure in wcwidth tests.
18129         * tests/test-wcwidth.c (main): If the wchar-single module is present,
18130         skip the tests in the C locale.
18132 2018-06-23  Pádraig Brady  <P@draigBrady.com>
18134         crypto: mention --without-linux-crypto in --with-openssl --help
18135         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
18136         routines take precedence in --with-openssl help output.
18138 2018-06-23  Pádraig Brady  <P@draigBrady.com>
18140         wchar-single: a new module to enable optimizations in wchar replacements
18141         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
18142         GNULIB_WCHAR_SINGLE is enabled.
18143         * lib/wcwidth.c (wcwidth): Likewise.
18145 2018-06-23  Bruno Haible  <bruno@clisp.org>
18147         libc-config: Fix conflict with FreeBSD include files.
18148         * lib/cdefs.h (__nonnull): Remove definition.
18149         * lib/libc-config.h (__nonnull): Remove undefinition.
18151 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
18153         random_r: do not crash if state is unaligned
18154         Problem reported by Bruce Korb in:
18155         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
18156         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
18157         with 'cc -O2 -xmemalign=8s'.
18158         * lib/random_r.c: Include string.h, for memcpy.
18159         (get_int32, set_int32): New functions.
18160         (__srandom_r, __initstate_r, __setstate_r, __random_r):
18161         Use them to avoid assumption that state pointer is aligned.
18162         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
18163         * tests/test-random_r.c (test_failed): New function.
18164         (main): Use it, to test for alignment bugs.
18166         random_r: omit unnecessary include
18167         * lib/random_r.c: Do not include limits.h.
18169         random, random_r: merge from glibc
18170         * lib/random.c, lib/random_r.c:
18171         Include libc-config.h if !_LIBC, not config.h unilaterally.
18172         * lib/random.c:
18173         Do not include stdint.h or time.h; not needed.
18174         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
18175         (unsafe_state): Rename from generator.  All uses changed.
18176         Use C99-style initializers.
18177         (__random, __srandom, __initstate, __setstate): Rename from
18178         non-underscored version, but define it to non-underscored version
18179         on Gnulib.  Add a lock.
18180         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
18181         Likewise.
18182         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
18183         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
18184         (__srandom_r): Use int32_t instead of long int where int32_t will do.
18185         (__random_r): Use uint32 to fix glibc bug 17343.
18186         * modules/random, modules/random_r (Depends-on): Add libc-config.
18187         Depend on stdint only if $HAVE_RANDOM = 0.
18189 2018-06-19  Jim Meyering  <meyering@fb.com>
18191         README-release: also run any check-very-expensive tests
18192         * top/README-release: Adjust instructions so they run the
18193         check-very-expensive tests when there is such a target.
18195 2018-06-18  Bruno Haible  <bruno@clisp.org>
18197         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
18198         * m4/pthread_rwlock_rdlock.m4: Add comment.
18199         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
18200         are reader-preferring in glibc.
18201         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
18202         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
18204 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
18206         crypto: use byteswap
18207         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
18208         * lib/sm3.c: Include <byteswap.h>.
18209         (SWAP): Use its macros rather than reinventing the wheel.
18210         * modules/crypto/md4, modules/crypto/md5-buffer:
18211         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
18212         * modules/crypto/sha512-buffer, modules/crypto/sm3:
18213         (Depends-on): Add byteswap.
18215 2018-06-17  Pádraig Brady  <P@draigBrady.com>
18217         gendocs.sh: fix support for legacy --texi2html
18218         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
18219         to the default makeinfo invocation.
18220         Reported by Bruce Korb
18222 2018-06-17  Bruno Haible  <bruno@clisp.org>
18224         gettext po infrastructure: Update from current gettext git.
18225         Reported by Akim Demaille <akim@lrde.epita.fr>.
18226         * build-aux/po/Makefile.in.in: Update from current gettext git.
18227         * build-aux/po/remove-potcdate.sin: Likewise.
18228         * config/srclist.txt: Temporarily disable sync for these files.
18230 2018-06-17  Bruno Haible  <bruno@clisp.org>
18232         getloadavg: Return 0 on Windows without Cygwin.
18233         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
18235 2018-06-17  Paul Smith  <psmith@gnu.org>
18237         getloadavg: Allow building on Windows without Cygwin
18238         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
18239         * m4/getloadavg.m4: Check for unistd.h.
18241 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
18243         Port crypto/af_alg to GCC 4.8.4
18244         Problem reported by Peter Simons in:
18245         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
18246         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
18248 2018-05-27  Colin Watson  <cjwatson@debian.org>
18250         bootstrap: document source fetching in --help
18251         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
18253 2018-04-09  Colin Watson  <cjwatson@debian.org>
18255         bootstrap: allow non-submodule control of gnulib
18256         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
18257         bootstrap.conf when fetching gnulib using "git clone" or via
18258         GNULIB_SRCDIR.
18260 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
18262         crypto: omit stream ops Emacs doesn’t need
18263         * lib/md5.c (md5_stream):
18264         * lib/sha1.c (sha1_stream):
18265         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
18266         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
18267         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
18268         defined.  Emacs needs this, as it does not use the stream
18269         operations and doesn’t need all the af_alg stuff we’ve recently
18270         added.  Perhaps a similar change is needed to the other crypto
18271         modules, but this patch changes only those needed for Emacs.
18272         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
18273         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
18274         New modules, used by Emacs.
18275         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
18276         * modules/crypto/sha512: Rewrite to depend on the new modules.
18278 2018-05-20  Pádraig Brady  <P@draigBrady.com>
18280         fts: avoid a memory leak edge case
18281         * lib/fts.c (fts_open): Set an appropriate fts_level
18282         so that an immediate fts_close() will free the allocation.
18283         * tests/test-fts.c (fts_dealloc): Add a test case which
18284         will trigger under valgrind or address sanitizer.
18285         Fixes https://bugs.gnu.org/31439
18287 2018-05-20  Bruno Haible  <bruno@clisp.org>
18289         wcwidth tests: Fix link error.
18290         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
18291         $(LIBUNISTRING).
18293 2018-05-20  Bruno Haible  <bruno@clisp.org>
18295         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
18296         * modules/regex (Files): Add m4/glibc21.m4.
18298 2018-05-20  Bruno Haible  <bruno@clisp.org>
18300         localcharset: Optimize.
18301         * lib/localcharset.c (alias_table): Comment out no-op mappings for
18302         platforms where these don't matter. This reduces the table size,
18303         which in turn reduces the lookup time.
18305 2018-05-19  Bruno Haible  <bruno@clisp.org>
18307         localcharset: Map the locale encodings found in newer OSes.
18308         * lib/localcharset.c (alias_table): Add mapping for locale encodings
18309         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
18310         IRIX 6.5, Minix 3.3.
18311         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
18313 2018-05-19  Bruno Haible  <bruno@clisp.org>
18315         localcharset: Move mapping tables into the code. Use a binary search.
18316         * lib/localcharset.h: Document the GNU canonical names for character
18317         encodings here.
18318         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
18319         relocatable.h, configmake.h.
18320         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
18321         macros.
18322         (charset_aliases): Remove variable.
18323         (get_charset_aliases): Remove function.
18324         (struct table_entry): New type.
18325         (alias_table, locale_table): New constants.
18326         (locale_charset): Use the alias_table or locale_table to get the
18327         canonicalized encoding name.
18328         * lib/config.charset: Remove file.
18329         * lib/ref-add.sin: Remove file.
18330         * lib/ref-del.sin: Remove file.
18331         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
18332         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
18333         * modules/localcharset (Notice): Remove.
18334         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
18335         glibc21.m4.
18336         (Depends-on): Remove configmake.
18337         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
18338         (Makefile.am): Simplify.
18339         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
18341 2018-05-19  Bruno Haible  <bruno@clisp.org>
18343         localcharset: Add a manual test.
18344         * tests/test-localcharset.c: New file.
18345         * modules/localcharset-tests: New file.
18347 2018-05-19  Bruno Haible  <bruno@clisp.org>
18349         localcharset: Remove support for obsolete platforms.
18350         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
18351         Mac OS X 10.2. Comment out dubious entry for Solaris.
18353 2018-05-19  Jim Meyering  <meyering@fb.com>
18355         gnupload: adjust comment
18356         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
18357         more likely we'll remove the just-added code in a year or two.
18359 2018-05-19  Bruno Haible  <bruno@clisp.org>
18361         gnupload: Fix "gpg-agent is not available in this session" error.
18362         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
18364 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
18366         crypto/af_alg: fix --help
18367         * m4/af_alg.m4: Avoid spurious newline in --help output.
18369 2018-05-13  Bruno Haible  <bruno@clisp.org>
18371         nl_langinfo: Fix compilation error on Android.
18372         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
18373         INT_CURR_SYMBOL, etc. only if these items are defined.
18375 2018-05-13  Bruno Haible  <bruno@clisp.org>
18377         truncate: Fix compilation error on Android.
18378         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
18379         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
18380         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
18381         HAVE_TRUNCATE.
18382         * modules/truncate: Likewise.
18383         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
18384         not HAVE_TRUNCATE.
18385         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
18386         HAVE_TRUNCATE.
18387         * doc/posix-functions/truncate.texi: Mention the issue.
18389 2018-05-13  Bruno Haible  <bruno@clisp.org>
18391         pthread: Fix compilation error on Android.
18392         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
18393         recursive inclusion of this file.
18395 2018-05-13  Bruno Haible  <bruno@clisp.org>
18397         posix_spawn: Fix compilation error on Android.
18398         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
18399         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
18400         (posix_spawn_file_actions_t): Consider also the case
18401         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
18403 2018-05-13  Bruno Haible  <bruno@clisp.org>
18405         tsearch: Move from K&R C to ANSI C.
18406         * lib/tsearch.c (tfind): Convert definition to ANSI C.
18408 2018-05-13  Bruno Haible  <bruno@clisp.org>
18410         tsearch: Fix compilation error on Android.
18411         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
18412         is 0.
18413         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
18414         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
18415         GNULIB_defined_tsearch is true.
18416         (twalk): Define only if GNULIB_defined_twalk is true.
18417         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
18418         is 0.
18419         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
18420         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
18421         * modules/search (Makefile.am): Substitute HAVE_TWALK.
18423 2018-05-13  Bruno Haible  <bruno@clisp.org>
18425         imaxdiv: Fix compilation error on Android.
18426         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
18427         is not defined.
18428         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
18429         HAVE_DECL_IMAXDIV, is 0.
18430         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
18431         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
18433 2018-05-13  Bruno Haible  <bruno@clisp.org>
18435         Support selective inclusion mechanism of recent mingw.org header files.
18436         Reported by Eli Zaretskii <eliz@gnu.org>.
18437         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
18438         __need_ssize_t, or __need_time_t is defined, just include the system's
18439         <sys/types.h>.
18440         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
18441         include the system's <locale.h>.
18443 2018-05-13  Bruno Haible  <bruno@clisp.org>
18445         Avoid compilation error due to 'mmap' on Android.
18446         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
18447         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
18448         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
18449         Undefine on Android.
18451 2018-05-13  Bruno Haible  <bruno@clisp.org>
18453         Add cross-compilation guesses for Linux systems without glibc.
18454         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
18455         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
18456         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18457         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18458         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
18459         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
18460         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18461         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
18462         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
18463         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
18464         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18465         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18466         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
18467         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18468         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18469         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
18470         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18471         * m4/utimens.m4 (gl_UTIMENS): Likewise.
18473 2018-05-13  Bruno Haible  <bruno@clisp.org>
18475         getpagesize: Fix compilation error on Android.
18476         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
18477         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
18478         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
18479         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
18480         HAVE_GETPAGESIZE accordingly.
18481         * modules/getcwd (Files): Add m4/getpagesize.m4.
18483 2018-05-13  Bruno Haible  <bruno@clisp.org>
18485         tcgetsid: Fix compilation error on Android.
18486         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
18487         AC_CHECK_FUNC.
18489 2018-05-13  Bruno Haible  <bruno@clisp.org>
18491         getpass: Fix configure test for Android.
18492         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
18493         AC_CHECK_FUNC.
18495 2018-05-13  Bruno Haible  <bruno@clisp.org>
18497         ffs: Fix compilation error on Android.
18498         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
18500 2018-05-13  Bruno Haible  <bruno@clisp.org>
18502         mkfifo: Fix compilation error on Android.
18503         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
18504         AC_CHECK_FUNC.
18506 2018-05-13  Bruno Haible  <bruno@clisp.org>
18508         c-strtod: Fix configure test for Android.
18509         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
18510         AC_CHECK_FUNC.
18512 2018-05-13  Bruno Haible  <bruno@clisp.org>
18514         random: Fix compilation error on Android.
18515         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
18516         AC_CHECK_FUNC.
18518 2018-05-13  Bruno Haible  <bruno@clisp.org>
18520         grantpt: Fix compilation error on Android.
18521         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
18522         AC_CHECK_FUNC.
18524 2018-05-13  Bruno Haible  <bruno@clisp.org>
18526         stdioext: Fix compilation errors with newer Android headers.
18527         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
18528         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
18529         fallbacks for Android.
18530         * lib/fpending.c: Update comments.
18531         * lib/fpurge.c: Likewise.
18532         * lib/freadable.h: Likewise.
18533         * lib/freadable.c: Likewise.
18534         * lib/freadahead.c: Likewise.
18535         * lib/freading.h: Likewise.
18536         * lib/freadptr.c: Likewise.
18537         * lib/fseterr.c: Likewise.
18538         * lib/fwritable.h: Likewise.
18539         * lib/fwritable.c: Likewise.
18540         * lib/fwriting.h: Likewise.
18541         * lib/fwriting.c: Likewise.
18543 2018-05-13  Bruno Haible  <bruno@clisp.org>
18545         doc: Add info about Android versions 2.0 to 8.1.
18546         * doc/**/*.texi: Add info about functions in all released versions of
18547         Bionic.
18549 2018-05-12  Bruno Haible  <bruno@clisp.org>
18551         fseeko: On mingw, don't use the hidden function _fseeki64.
18552         Reported by Eli Zaretskii <eliz@gnu.org>.
18553         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
18554         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
18556 2018-05-12  Bruno Haible  <bruno@clisp.org>
18558         glob: Choose 'dirent_type' in a way that works better on mingw.
18559         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
18560         * lib/glob.c (dirent_type): Define as uint_fast32_t.
18562 2018-05-12  Bruno Haible  <bruno@clisp.org>
18564         execute, spawn-pipe: Avoid warning about redefining 'close'.
18565         Reported by Eli Zaretskii <eliz@gnu.org>.
18566         * lib/execute.c: Undefine 'close' before redefining it.
18567         * lib/spawn-pipe.c: Likewise.
18569 2018-05-12  Bruno Haible  <bruno@clisp.org>
18571         nanosleep: Avoid test failure on mingw when it has nanosleep.
18572         Reported by Eli Zaretskii <eliz@gnu.org>.
18573         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
18574         If it does not exist, use a simpler test program that does not call
18575         alarm().
18577 2018-05-10  Bruno Haible  <bruno@clisp.org>
18579         lock, cond, thread, tls: Use a different symbol as libpthread witness.
18580         Reported by Devin Hussey <husseydevin@gmail.com>.
18581         Based on a patch by Paul Eggert.
18582         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
18583         as witness of libpthread.
18584         * lib/glthread/cond.h (pthread_in_use): Likewise.
18585         * lib/glthread/thread.h (pthread_in_use): Likewise.
18586         * lib/glthread/tls.h (pthread_in_use): Likewise.
18588 2018-05-10  Bruno Haible  <bruno@clisp.org>
18590         cond tests: Fix compilation error on Solaris.
18591         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
18592         macro.
18594 2018-05-10  Bruno Haible  <bruno@clisp.org>
18596         doc: Add partial info about Android 4.3.
18597         * doc/*-functions/*.texi: Add info about functions that were added
18598         to Bionic between Android 4.3 and Android 9.0.
18600 2018-05-10  Bruno Haible  <bruno@clisp.org>
18602         doc: Add info about Android 9.0.
18603         * doc/**/*.texi: Add info about functions and headers in Bionic from
18604         Android 9.0.
18606 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
18608         af_alg: fix my typo in afalg_buffer
18609         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
18610         (afalg_stream): Simplify and avoid the need for a runtime test
18611         at the end.
18613         af_alg: recover better from crypto failures
18614         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
18615         input stream is seekable, by repositioning the stream back to
18616         where it was, possibly by just calling sendfile with an offset
18617         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
18618         cases, which lets our callers try again with user-mode code.
18619         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
18620         instead of on fflush and lseek.
18622         af_alg: distiguish I/O errors better
18623         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
18624         not -EIO, if it’s OK for the caller to try again with user-mode code.
18625         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
18626         some other error number) if fflush fails, as the caller should not
18627         try again that case.
18629         af_alg: avoid gotos
18630         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
18631         gotos, as they were a source of unreliability and made the code a
18632         bit harder to follow.
18634         af_alg: don’t leak file descriptors into children
18635         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
18636         This code should be compiled only on recent GNU/Linux platforms
18637         so we shouldn’t have to also depend on the accept4 module.
18639         af_alg: coalesce socket creation
18640         * lib/af_alg.c (alg_socket): New function.
18641         (afalg_buffer, afalg_stream): Use it.  This avoids some
18642         code duplication and gotos.
18644         af_alg: fix file descriptor leak
18645         * lib/af_alg.c (afalg_stream): Close leak.
18647         af_alg: Pacify --enable-gcc-warnings on GCC 8
18648         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
18649         and checking to pacify gcc -Wjump-misses-init on GCC 8.
18651 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
18653         af_alg: Pacify --enable-gcc-warnings
18654         Problem reported by Assaf Gordon in:
18655         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
18656         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
18657         gcc -Wjump-misses-init.
18658         * lib/sha512.c (shaxxx_stream): Now static.
18660 2018-05-06  Bruno Haible  <bruno@clisp.org>
18662         af_alg: Add ability to use Linux kernel crypto API on data in memory.
18663         * lib/af_alg.h (afalg_buffer): New declaration.
18664         * lib/af_alg.c (afalg_buffer): New function.
18666 2018-05-06  Bruno Haible  <bruno@clisp.org>
18668         af_alg: Avoid warnings.
18669         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
18670         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
18672 2018-05-06  Bruno Haible  <bruno@clisp.org>
18674         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
18675         * tests/bench-digest.h: New file.
18676         * tests/bench-md5.c: New file.
18677         * tests/bench-sha1.c: New file.
18678         * tests/bench-sha224.c: New file.
18679         * tests/bench-sha256.c: New file.
18680         * tests/bench-sha384.c: New file.
18681         * tests/bench-sha512.c: New file.
18682         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
18683         tests/bench-digest.h.
18684         (Depends-on): Add getrusage, gettimeofday.
18685         (Makefile.am): Add variables to build bench-md5.
18686         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
18687         tests/bench-digest.h.
18688         (Depends-on): Add getrusage, gettimeofday.
18689         (Makefile.am): Add variables to build bench-sha1.
18690         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
18691         tests/bench-sha256.c, tests/bench-digest.h.
18692         (Depends-on): Add getrusage, gettimeofday.
18693         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
18694         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
18695         tests/bench-sha512.c, tests/bench-digest.h.
18696         (Depends-on): Add getrusage, gettimeofday.
18697         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
18699 2018-05-06  Bruno Haible  <bruno@clisp.org>
18701         af_alg: Fix a resource leak.
18702         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
18703         New local variable 'result'.
18705 2018-05-06  Bruno Haible  <bruno@clisp.org>
18707         af_alg: Fix bug with streams that are not at position 0.
18708         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
18709         assume that the stream is positioned at position 0.
18710         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
18711         of the stream.
18712         * lib/md5.h (md5_stream): Likewise.
18713         * lib/sha1.h (sha1_stream): Likewise.
18714         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
18715         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
18716         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
18718         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
18719         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
18720         stream that is not positioned at the beginning.
18722 2018-05-06  Bruno Haible  <bruno@clisp.org>
18724         af_alg: Add configure option to enable/disable use of Linux crypto API.
18725         Suggested by Assaf Gordon <assafgordon@gmail.com>.
18726         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
18727         USE_LINUX_CRYPTO_API.
18728         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
18729         * lib/af_alg.c: Likewise.
18731 2018-05-06  Bruno Haible  <bruno@clisp.org>
18733         Followup to 'af_alg: New module.'.
18734         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
18735         * modules/crypto/sha1 (Depends-on): Likewise.
18736         * modules/crypto/sha256 (Depends-on): Likewise.
18737         * modules/crypto/sha512 (Depends-on): Likewise.
18739 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18741         crypto/{md5,sha1,sha256,sha512}: simplify
18742         * lib/md5.c (md5_stream):
18743         * lib/sha1.c (sha1_stream):
18744         * lib/sha256.c (shaxxx_stream):
18745         Simplify, partly by assuming C99.
18746         * lib/sha256.c (shaxxx_stream):
18747         New function, which implements both sha256 and sha224.
18748         Simplify, partly by assuming C99.
18749         (sha256_stream, sha224_stream):
18750         Use it to avoid code duplication, removing a FIXME.
18751         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
18752         Likewise.
18754         af_alg: Improve comments.
18755         * lib/af_alg.h: Use imperatives and tighten up wording.
18757 2018-05-05  Bruno Haible  <bruno@clisp.org>
18759         af_alg: Improve comments.
18760         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
18762 2018-05-05  Bruno Haible  <bruno@clisp.org>
18764         af_alg: New module.
18765         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
18766         * lib/af_alg.c: Include "af_alg.h" before the other header files.
18767         * lib/md5.c: Include "af_alg.h" unconditionally.
18768         (md5_stream): Invoke afalg_stream unconditionally.
18769         * lib/sha1.c: Include "af_alg.h" unconditionally.
18770         (sha1_stream): Invoke afalg_stream unconditionally.
18771         * lib/sha256.c: Include "af_alg.h" unconditionally.
18772         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
18773         * lib/sha512.c: Include "af_alg.h" unconditionally.
18774         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
18775         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
18776         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
18777         * modules/crypto/af_alg: New file.
18778         * modules/crypto/md5 (Files): Remove files that are now in the
18779         'crypto/af_alg' module.
18780         (Depends-on): Add crypto/af_alg.
18781         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18782         (Makefile.am): Don't mention af_alg.c here.
18783         * modules/crypto/sha1 (Files): Remove files that are now in the
18784         'crypto/af_alg' module.
18785         (Depends-on): Add crypto/af_alg.
18786         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18787         (Makefile.am): Don't mention af_alg.c here.
18788         * modules/crypto/sha256 (Files): Remove files that are now in the
18789         'crypto/af_alg' module.
18790         (Depends-on): Add crypto/af_alg.
18791         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18792         (Makefile.am): Don't mention af_alg.c here.
18793         * modules/crypto/sha512 (Files): Remove files that are now in the
18794         'crypto/af_alg' module.
18795         (Depends-on): Add crypto/af_alg.
18796         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18797         (Makefile.am): Don't mention af_alg.c here.
18799 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18801         crypto tests: pacify GCC
18802         * tests/test-digest.h (test_digest_on_files):
18803         Don’t assume digest size fits in int (!).
18805         af_alg: minor style improvements
18806         * lib/af_alg.c (afalg_stream): Prefer C99 style
18807         decl-after-statement, since we’re already assuming C99.  Clarify
18808         by strengthening the bind test and omit unnecessary assignment.
18810 2018-05-05  Bruno Haible  <bruno@clisp.org>
18812         af_alg: Fix bug on empty files.
18813         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
18814         stream is empty.
18816 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18818         sys-limits.h: new file for crypto and safe I/O
18819         * lib/af_alg.c: Include sys-limits.h.
18820         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
18821         (afalg_stream): Also reject negative sizes for sendfile; they
18822         should not happen and the code is a bit cleaner and faster this way.
18823         * lib/safe-read.c: Include sys-limits.h.
18824         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
18825         * lib/sys-limits.h: New file, with values and commentary derived
18826         from the old safe-read.c and from GNU Emacs sysdep.c.
18827         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
18828         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
18829         Add lib/sys-limits.h to Files section.
18831 2018-05-05  Bruno Haible  <bruno@clisp.org>
18833         af_alg: Improve function signature.
18834         * lib/af_alg.h (afalg_stream): Swap second and third argument.
18835         * lib/af_alg.c (afalg_stream): Likewise.
18836         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
18838 2018-05-05  Bruno Haible  <bruno@clisp.org>
18840         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
18841         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
18842         * modules/crypto/sha1 (Depends-on): Likewise.
18843         * modules/crypto/sha256 (Depends-on): Likewise.
18844         * modules/crypto/sha512 (Depends-on): Likewise.
18846 2018-05-05  Bruno Haible  <bruno@clisp.org>
18848         crypto/{md5,sha1,sha256,sha512}: Fix module description.
18849         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
18850         * modules/crypto/sha1 (Depends-on): Likewise.
18851         * modules/crypto/sha256 (Depends-on): Likewise.
18852         * modules/crypto/sha512 (Depends-on): Likewise.
18854 2018-05-05  Bruno Haible  <bruno@clisp.org>
18856         af_alg: Add documentation.
18857         * lib/af_alg.h: Add comments.
18859 2018-05-05  Bruno Haible  <bruno@clisp.org>
18861         sha512: Add tests.
18862         * tests/test-sha512.c: New file.
18863         * modules/crypto/sha512-tests: New file.
18865 2018-05-05  Bruno Haible  <bruno@clisp.org>
18867         sha256: Add tests.
18868         * tests/test-sha256.c: New file.
18869         * modules/crypto/sha256-tests: New file.
18871 2018-05-05  Bruno Haible  <bruno@clisp.org>
18873         sha1 tests: Add test for sha1_stream.
18874         * tests/test-sha1.c: Include test-digest.h.
18875         (main): Invoke test_digest_on_files on 'sha1_stream'.
18876         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
18878 2018-05-05  Bruno Haible  <bruno@clisp.org>
18880         md5 tests: Add test for md5_stream.
18881         * tests/test-digest.h: New file.
18882         * tests/test-md5.c: Include test-digest.h.
18883         (main): Invoke test_digest_on_files on 'md5_stream'.
18884         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
18886 2018-04-28  Matteo Croce  <mcroce@redhat.com>
18888         md5sum: Use AF_ALG when available.
18889         * lib/md5.c: Include af_alg.h.
18890         (md5_stream): Use afalg_stream when available.
18891         * modules/crypto/md5 (Files): Add the af_alg files.
18892         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
18893         (Makefile.am): Add af_alg.c.
18895 2018-04-28  Matteo Croce  <mcroce@redhat.com>
18897         sha512sum: Use AF_ALG when available.
18898         * lib/sha512.c: Include af_alg.h.
18899         (sha512_stream, sha384_stream): Use afalg_stream when available.
18900         * modules/crypto/sha512 (Files): Add the af_alg files.
18901         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
18902         (Makefile.am): Add af_alg.c.
18904 2018-04-28  Matteo Croce  <mcroce@redhat.com>
18906         sha256sum: Use AF_ALG when available.
18907         * lib/sha256.c: Include af_alg.h.
18908         (sha256_stream, sha224_stream): Use afalg_stream when available.
18909         * modules/crypto/sha256 (Files): Add the af_alg files.
18910         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
18911         (Makefile.am): Add af_alg.c.
18913 2018-04-28  Matteo Croce  <mcroce@redhat.com>
18915         sha1sum: Use AF_ALG when available.
18916         * lib/af_alg.h: New file.
18917         * lib/af_alg.c: New file.
18918         * lib/sha1.c: Include af_alg.h.
18919         (sha1_stream): Use afalg_stream when available.
18920         * m4/linux-if-alg.m4: New file.
18921         * modules/crypto/sha1 (Files): Add the new files.
18922         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
18923         (Makefile.am): Add af_alg.c.
18925 2018-05-05  Bruno Haible  <bruno@clisp.org>
18927         all: Replace more http URLs by https URLs.
18928         * lib/localename.c: Use https: URL.
18929         * lib/timespec.h: Likewise.
18931 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
18933         maint: port more modules to GCC 8
18934         * lib/dirname.h (base_name):
18935         * lib/exclude.h (new_exclude):
18936         * lib/xstrndup.h (xstrndup):
18937         Add malloc attribute.
18938         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
18939         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
18940         This pacifies GCC 8.
18941         * m4/gnulib-common.m4 (gl_COMMON_BODY):
18942         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
18944 2018-05-03  Bruno Haible  <bruno@clisp.org>
18946         Simplify code. Drop support for Borland C++ on Windows.
18947         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
18948         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
18949         'defined _WIN32'.
18950         * lib/canonicalize-lgpl.c: Likewise.
18951         * lib/classpath.c: Likewise.
18952         * lib/clean-temp.c: Likewise.
18953         * lib/csharpexec.c: Likewise.
18954         * lib/ctime.c: Likewise.
18955         * lib/dosname.h: Likewise.
18956         * lib/dup2.c: Likewise.
18957         * lib/errno.in.h: Likewise.
18958         * lib/error.c: Likewise.
18959         * lib/euidaccess.c: Likewise.
18960         * lib/execute.c: Likewise.
18961         * lib/fcntl.in.h: Likewise.
18962         * lib/fcntl.c: Likewise.
18963         * lib/filename.h: Likewise.
18964         * lib/findprog.c: Likewise.
18965         * lib/flock.c: Likewise.
18966         * lib/fopen.c: Likewise.
18967         * lib/freopen.c: Likewise.
18968         * lib/fstat.c: Likewise.
18969         * lib/fsync.c: Likewise.
18970         * lib/gc-gnulib.c: Likewise.
18971         * lib/get-rusage-data.c: Likewise.
18972         * lib/getaddrinfo.c: Likewise.
18973         * lib/getdelim.c: Likewise.
18974         * lib/getdtablesize.c: Likewise.
18975         * lib/gethostname.c: Likewise.
18976         * lib/getlogin.c: Likewise.
18977         * lib/getlogin_r.c: Likewise.
18978         * lib/getopt.c: Likewise.
18979         * lib/getpagesize.c: Likewise.
18980         * lib/getpass.c: Likewise.
18981         * lib/getrusage.c: Likewise.
18982         * lib/gettimeofday.c: Likewise.
18983         * lib/glob.c: Likewise.
18984         * lib/inttypes.in.h: Likewise.
18985         * lib/isapipe.c: Likewise.
18986         * lib/javaexec.c: Likewise.
18987         * lib/link.c: Likewise.
18988         * lib/localcharset.c: Likewise.
18989         * lib/localename.h: Likewise.
18990         * lib/localename.c: Likewise.
18991         * lib/localtime.c: Likewise.
18992         * lib/lseek.c: Likewise.
18993         * lib/mbsinit.c: Likewise.
18994         * lib/mkdir.c: Likewise.
18995         * lib/msvc-nothrow.h: Likewise.
18996         * lib/nanosleep.c: Likewise.
18997         * lib/nl_langinfo.c: Likewise.
18998         * lib/nonblocking.c: Likewise.
18999         * lib/nproc.c: Likewise.
19000         * lib/open.c: Likewise.
19001         * lib/openpty.c: Likewise.
19002         * lib/pathmax.h: Likewise.
19003         * lib/pipe-filter-aux.c: Likewise.
19004         * lib/pipe-filter-gi.c: Likewise.
19005         * lib/pipe-filter-ii.c: Likewise.
19006         * lib/pipe.c: Likewise.
19007         * lib/pipe2.c: Likewise.
19008         * lib/poll.c: Likewise.
19009         * lib/popen.c: Likewise.
19010         * lib/posix_openpt.c: Likewise.
19011         * lib/printf-parse.c: Likewise.
19012         * lib/progreloc.c: Likewise.
19013         * lib/putenv.c: Likewise.
19014         * lib/read.c: Likewise.
19015         * lib/relocatable.c: Likewise.
19016         * lib/rename.c: Likewise.
19017         * lib/same-inode.h: Likewise.
19018         * lib/secure_getenv.c: Likewise.
19019         * lib/select.c: Likewise.
19020         * lib/sethostname.c: Likewise.
19021         * lib/setlocale.c: Likewise.
19022         * lib/sigaction.c: Likewise.
19023         * lib/sigprocmask.c: Likewise.
19024         * lib/sleep.c: Likewise.
19025         * lib/spawn-pipe.h: Likewise.
19026         * lib/spawn-pipe.c: Likewise.
19027         * lib/spawni.c: Likewise.
19028         * lib/stat-time.h: Likewise.
19029         * lib/stat-w32.c: Likewise.
19030         * lib/stat.c: Likewise.
19031         * lib/stdio.in.h: Likewise.
19032         * lib/stdio-impl.h: Likewise.
19033         * lib/stdio-read.c: Likewise.
19034         * lib/stdio-write.c: Likewise.
19035         * lib/stdlib.in.h: Likewise.
19036         * lib/strerror_r.c: Likewise.
19037         * lib/strftime-fixes.c: Likewise.
19038         * lib/sys_stat.in.h: Likewise.
19039         * lib/sys_types.in.h: Likewise.
19040         * lib/sys_wait.in.h : Likewise.
19041         * lib/system-quote.h: Likewise.
19042         * lib/system-quote.c: Likewise.
19043         * lib/tmpdir.c: Likewise.
19044         * lib/tzset.c: Likewise.
19045         * lib/uname.c: Likewise.
19046         * lib/unistd.in.h: Likewise.
19047         * lib/utime.in.h: Likewise.
19048         * lib/utime.c: Likewise.
19049         * lib/utimecmp.c: Likewise.
19050         * lib/utimens.c: Likewise.
19051         * lib/vasnprintf.c: Likewise.
19052         * lib/vma-iter.h: Likewise.
19053         * lib/vma-iter.c: Likewise.
19054         * lib/wait-process.c: Likewise.
19055         * lib/wcsftime.c: Likewise.
19056         * lib/wctype.in.h: Likewise.
19057         * lib/write.c: Likewise.
19058         * tests/nap.h: Likewise.
19059         * tests/test-cloexec.c: Likewise.
19060         * tests/test-dup-safer.c: Likewise.
19061         * tests/test-dup2.c: Likewise.
19062         * tests/test-dup3.c: Likewise.
19063         * tests/test-fcntl.c: Likewise.
19064         * tests/test-get-rusage-data.c: Likewise.
19065         * tests/test-getaddrinfo.c: Likewise.
19066         * tests/test-getlogin.h: Likewise.
19067         * tests/test-isatty.c: Likewise.
19068         * tests/test-localename.c: Likewise.
19069         * tests/test-mbrtowc-w32.c: Likewise.
19070         * tests/test-nonblocking.c: Likewise.
19071         * tests/test-nonblocking-pipe-main.c: Likewise.
19072         * tests/test-nonblocking-socket-main.c: Likewise.
19073         * tests/test-nonblocking-socket.h: Likewise.
19074         * tests/test-pipe.c: Likewise.
19075         * tests/test-pipe2.c: Likewise.
19076         * tests/test-poll.c: Likewise.
19077         * tests/test-pthread_sigmask1.c: Likewise.
19078         * tests/test-select.h: Likewise.
19079         * tests/test-sethostname2.c: Likewise.
19080         * tests/test-sigprocmask.c: Likewise.
19081         * tests/test-spawn-pipe-child.c: Likewise.
19082         * tests/test-stat-time.c: Likewise.
19083         * tests/test-system-quote-main.c: Likewise.
19084         * tests/test-utimens-common.h: Likewise.
19085         * tests/test-wcrtomb-w32.c: Likewise.
19086         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
19087         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19088         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
19089         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
19090         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
19091         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19092         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19093         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19094         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19095         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
19096         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
19097         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
19098         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
19099         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
19100         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
19101         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19103 2018-05-02  Bruno Haible  <bruno@clisp.org>
19105         localename: Fix test failures on mingw.
19106         * lib/localename.c (gl_locale_name_thread): Remove code specific to
19107         native Windows.
19108         (gl_locale_name_posix): Move code specific to native Windows here.
19109         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
19110         Accept result without charset suffix, as it appears on mingw.
19112 2018-04-28  Paul Smith  <psmith@gnu.org>
19114         bootstrap: Avoid gnulib operations if not needed
19115         * build-aux/bootstrap: Remove unused variable gnulib_mk.
19116         Set $gnulib_extra_files early so it can be overridden in .conf.
19117         Remove redundant --import flag from $gnulib_tool_options.
19118         Set $use_gnulib to false if no gnulib modules or files are needed.
19119         If $use_gnulib is false, don't do anything related to gnulib.
19120         A lot of this is just whitespace (indentation) changes.
19122 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
19124         manywarnings: port to GCC 8.0
19125         * build-aux/gcc-warning.spec: Add -Wcatch-value,
19126         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
19127         fact that the GCC help message now mentions operands for
19128         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
19129         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
19130         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
19131         and -Wunused-const-variable.
19132         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
19133         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
19134         -Wmissing-attributes, -Wmultistatement-macros,
19135         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
19136         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
19138 2018-04-24  Bruno Haible  <bruno@clisp.org>
19140         sys_socket: Make SO_REUSEPORT available across platforms.
19141         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19142         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
19143         * doc/posix-headers/sys_socket.texi: Mention the issue.
19144         * tests/test-poll.c (SO_REUSEPORT): Remove.
19145         * tests/test-select.h: Include <sys/socket.h>.
19146         (SO_REUSEPORT): Remove.
19147         * modules/select-tests (Depends-on): Add 'sys_socket'.
19149 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
19151         localcharset: short-circuit the search for an alias on a Mac
19152         * lib/localcharset.c (get_charset_aliases): Add a tautological
19153         UTF-8 entry to speed up the search for this case.
19154         Most machines default to a UTF-8 locale nowadays, so begin the
19155         list of aliases with a dummy UTF-8 entry so it will be found
19156         immediately and a time-consuming search through the rest of
19157         the list is avoided.
19159 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
19161         fts: add comment
19162         * lib/fts.c (fts_build): Explain why ==, not >.
19163         See remark by Bernhard Voelker in:
19164         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
19166         fts: fix bug in find across filesystems
19167         This fixes a bug I introduced last summer.
19168         Problem reported by Kamil Dudka in:
19169         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
19170         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
19171         (leaf_optimization):
19172         New arg for file descriptor.  All callers changed.
19173         (fts_build): Check for whether inodes should be sorted
19174         before closing the directory.
19176 2018-04-07  Bruno Haible  <bruno@clisp.org>
19178         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
19179         Reported by Genki Sky <sky@genki.is>.
19180         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
19181         version 0.9.10 or newer.
19182         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
19183         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
19184         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
19185         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
19186         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
19188 2018-04-07  Bruno Haible  <bruno@clisp.org>
19190         execute: Update comment.
19191         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
19193 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
19195         fts: treat CIFS like NFS
19196         Problem reported by Kamil Dudka in:
19197         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
19198         * lib/fts.c (S_MAGIC_CIFS): New macro.
19199         (dirent_inode_sort_may_be_useful, leaf_optimization):
19200         Treat CIFS like NFS.
19202 2018-03-28  Bruno Haible  <bruno@clisp.org>
19204         c-stack: Fix possible build failure on some platforms.
19205         * lib/c-stack.c (die): Define whenever this function is referenced.
19207 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
19209         time_rz: fix workaround for Mac OS X 10.6 infloop
19210         Problems reported by Charles A. Roelli (Bug#27736#117).
19211         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
19212         Also, discard output, which clutters the 'configure' log.
19214 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
19216         havelib: port to Solaris 10 /bin/sh
19217         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
19218         instead of '! test EXPR'.
19220 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
19222         time_rz: work around Mac OS X 10.6 infloop
19223         * doc/posix-functions/localtime.texi:
19224         * doc/posix-functions/localtime_r.texi: Mention the bug.
19225         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
19226         better to fix localtime and localtime_r instead, but that would be
19227         more work and is not needed to fix the Emacs problem.
19228         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
19230 2018-03-24  Jim Meyering  <meyering@fb.com>
19232         test-version-etc.sh: don't use diff directly: use init.sh's compare
19233         We'd rather not sacrifice readable "diff -u" output even for
19234         "diff -c" output (not supported by busybox) or for even less
19235         readable ed-style "diff" output.  So use init.sh's compare function
19236         * tests/test-version-etc.sh: Source init.sh and add "." to path.
19237         Remove "./" from invocation of test-version-etc, so we use path.
19238         And s/diff/compare/.
19239         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
19240         to get init.sh.
19241         Prompted by Eric Blake's comments in
19242         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
19244 2018-03-24  Bruno Haible  <bruno@clisp.org>
19246         javacomp-script, javacomp: Add support for Java 10.
19247         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
19248         target-version 10.
19249         * lib/javaversion.h: Update comments.
19250         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
19251         source_version_index, get_goodcode_snippet, get_failcode_snippet,
19252         TARGET_VERSION_BOUND, target_version_index,
19253         corresponding_classfile_version): Accept source_version 10 and
19254         target_version 10.
19255         * lib/javacomp.h: Update comments accordingly.
19257 2018-03-24  Bruno Haible  <bruno@clisp.org>
19259         javacomp-script, javacomp: Update comments.
19260         * m4/javacomp.m4: Update comments regarding gcj.
19261         * lib/javacomp.h: Likewise.
19263 2018-03-24  Bruno Haible  <bruno@clisp.org>
19265         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
19266         * lib/javaversion.h: Update comments.
19267         * lib/javacomp.h: Likewise.
19268         * lib/javacomp.c (default_target_version, source_version_index,
19269         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
19270         "1.9".
19271         (TARGET_VERSION_BOUND): Bump to 9.
19272         (target_version_index, corresponding_classfile_version): Recognize "9"
19273         instead of "1.9".
19274         (get_source_version_for_javac): New function.
19275         (is_envjavac_nongcj_usable, is_javac_usable): Add
19276         source_version_for_javac argument.
19277         (compile_java_class): Determine and pass source_version_for_javac.
19278         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
19279         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
19280         appropriate.
19282 2018-03-23  Jim Meyering  <meyering@fb.com>
19284         test-version-etc.sh: port to diff without -c
19285         * tests/test-version-etc.sh: Don't use diff's -c option.
19286         This caused spurious test failure on Alpine Linux, which
19287         uses busybox's diff. Reported by Assaf Gordon in
19288         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
19290 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
19292         c-stack: port to recent GCC build
19293         Problem reported by The Fireplace (Bug#30913).
19294         * lib/c-stack.c (die): Define only if used.
19296 2018-03-20  Bruno Haible  <bruno@clisp.org>
19298         euidaccess: Port to native Windows.
19299         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
19300         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
19302 2018-03-19  Bruno Haible  <bruno@clisp.org>
19304         javacomp: Add support for Java 7, 8, 9.
19305         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
19306         source_version_index, get_goodcode_snippet, get_failcode_snippet,
19307         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
19308         and target_version 1,7, 1.8, 1.9.
19309         * lib/javacomp.h: Update comments accordingly.
19311 2018-03-19  Bruno Haible  <bruno@clisp.org>
19313         javacomp-script: Add support for Java 9.
19314         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
19315         target-version 1.9.
19317 2018-03-16  Bruno Haible  <bruno@clisp.org>
19319         glob: Don't compile replacements on recent glibc systems.
19320         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
19321         REPLACE_GLOB is 0, include the system's <glob.h> and use
19322         _GL_CXXALIAS_SYS.
19323         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
19324         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
19325         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
19326         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
19327         Remove snippet/warn-on-use.
19328         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
19329         (Makefile.am): Create glob.h always. Update list of substitutions in
19330         glob.h. Don't depend on $(WARN_ON_USE_H).
19332 2018-03-16  Bruno Haible  <bruno@clisp.org>
19334         glob: Fix link error on native Windows.
19335         * modules/glob (Depends-on): Add 'lstat'.
19337 2018-03-15  Bruno Haible  <bruno@clisp.org>
19339         glob: Fix compilation error in C++ mode.
19340         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
19342 2018-03-15  Bruno Haible  <bruno@clisp.org>
19344         host-cpu-c-abi: Support for RISC-V CPU.
19345         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
19346         riscv32 and riscv64 ABIs.
19347         References:
19348         https://github.com/riscv/riscv-toolchain-conventions
19349         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
19350         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
19352 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
19354         fflush: be more paranoid about libio.h change
19355         Suggested by Eli Zaretskii in:
19356         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
19357         * lib/fbufmode.c (fbufmode):
19358         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
19359         (disable_seek_optimization, rpl_fflush):
19360         * lib/fpending.c (__fpending):
19361         * lib/fpurge.c (fpurge):
19362         * lib/freadable.c (freadable):
19363         * lib/freadahead.c (freadahead):
19364         * lib/freading.c (freading):
19365         * lib/freadptr.c (freadptr):
19366         * lib/freadseek.c (freadptrinc):
19367         * lib/fseeko.c (fseeko):
19368         * lib/fseterr.c (fseterr):
19369         * lib/fwritable.c (fwritable):
19370         * lib/fwriting.c (fwriting):
19371         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
19373 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
19375         maint: write-file-hooks -> before-save-hook
19376         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
19377         it's time to use the recommended replacement.
19378         Problem reported by Glenn Morris in:
19379         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
19380         * build-aux/announce-gen, build-aux/bootstrap:
19381         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
19382         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
19383         * build-aux/gnu-web-doc-update, build-aux/gnupload:
19384         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
19385         * build-aux/update-copyright, build-aux/useless-if-before-free:
19386         * build-aux/vc-list-files:
19387         Update hook usage for files where Gnulib is the canonical source.
19389 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
19391         binary-io: pacify gcc -Wunused-parameter
19392         Problem reported by Reuben Thomas in:
19393         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
19394         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
19395         Use _GL_UNUSED where appropriate.
19397         fflush: adjust to glibc 2.28 libio.h removal
19398         Problem reported by Daniel P. Berrangé in:
19399         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
19400         * lib/fbufmode.c (fbufmode):
19401         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
19402         (disable_seek_optimization, rpl_fflush):
19403         * lib/fpending.c (__fpending):
19404         * lib/fpurge.c (fpurge):
19405         * lib/freadable.c (freadable):
19406         * lib/freadahead.c (freadahead):
19407         * lib/freading.c (freading):
19408         * lib/freadptr.c (freadptr):
19409         * lib/freadseek.c (freadptrinc):
19410         * lib/fseeko.c (fseeko):
19411         * lib/fseterr.c (fseterr):
19412         * lib/fwritable.c (fwritable):
19413         * lib/fwriting.c (fwriting):
19414         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
19415         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
19416         Define if not already defined.
19418 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
19420         environ: fix link error on 32-bit Cygwin
19421         Problem reported for GNU Emacs by Ken Brown in:
19422         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
19423         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
19425 2018-02-24  Bruno Haible  <bruno@clisp.org>
19427         mbrtowc tests: Fix regression on glibc.
19428         Reported by Bernhard Voelker.
19429         * tests/test-mbrtowc.c (main): Fix expected value of wc.
19431 2018-02-24  Bruno Haible  <bruno@clisp.org>
19433         striconveha, uniconv/*: Avoid test failures on musl libc.
19434         * tests/iconvsupport.c: New file.
19435         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
19436         does not support the ISO-2022-JP-2 encoding.
19437         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
19438         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
19439         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
19440         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
19441         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
19442         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
19443         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
19444         (Makefile.am): Link test-striconveha with iconvsupport.o.
19445         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
19446         tests/iconvsupport.c.
19447         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
19448         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
19449         tests/iconvsupport.c.
19450         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
19451         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
19452         tests/iconvsupport.c.
19453         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
19454         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
19455         tests/iconvsupport.c.
19456         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
19457         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
19458         tests/iconvsupport.c.
19459         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
19460         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
19461         tests/iconvsupport.c.
19462         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
19464 2018-02-24  Bruno Haible  <bruno@clisp.org>
19466         localename: Add support for musl libc.
19467         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
19468         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
19469         on Linux platforms which define NL_LOCALE_NAME.
19471 2018-02-24  Bruno Haible  <bruno@clisp.org>
19473         mbrtowc tests: Don't make assumptions about the charset the C locale.
19474         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
19475         particular mapping in the C locale.
19477 2018-02-24  Bruno Haible  <bruno@clisp.org>
19479         ptsname_r: Don't expect that this function sets errno.
19480         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
19481         from ptsname_r().
19482         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
19484 2018-02-23  Bruno Haible  <bruno@clisp.org>
19486         xmalloca: pacify gcc -Wbad-function-cast
19487         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
19489 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
19491         nl_langinfo: pacify gcc -Wunused-function
19492         * lib/nl_langinfo.c (ctype_codeset): Do not define if
19493         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
19494         this case.  Without this change, I got a diagnostic when building
19495         coreutils on Fedora 27 with gcc 7.3.1 20180130.
19497         same: pacify gcc -Wunused-variable
19498         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
19499         Omit unused variable.
19501         malloca: pacify gcc -Wbad-function-cast
19502         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
19503         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
19504         To pacify GCC, I had to cast alloca’s result to some type other
19505         than void * before casting that to uintptr_t.
19507 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
19509         utimecmp: new function utimecmpat
19510         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
19511         Do not include utimens.h.
19512         (utimecmpat): New function, generalizing utimecmp.
19513         (utimecmp): Now a thin layer around utimecmpat.
19514         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
19515         utimensat instead of on lstat and utimens.
19517         same: new function same_nameat
19518         * lib/same.c: Include fcntl.h.
19519         * lib/same.c (same_nameat): New function, generalizing same_name.
19520         (same_name): Now a thin layer around same_nameat.
19521         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
19522         * modules/same (Depends-on): Depend on fstatat, openat.
19524 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
19526         warnings: Add support for Objective C.
19527         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
19528         macro.
19530 2018-02-17  Bruno Haible  <bruno@clisp.org>
19532         lock: Fix test-once1 crash on FreeBSD11.
19533         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
19534         'pthread_create', not 'pthread_cancel'.
19536 2018-02-17  Bruno Haible  <bruno@clisp.org>
19538         lock: Add test of gl_once.
19539         * tests/test-once.c: New file.
19540         * modules/lock-tests (Files): Add it.
19541         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
19543 2018-02-17  Bruno Haible  <bruno@clisp.org>
19545         thread: Fix compilation error on IRIX.
19546         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
19547         needed; include it outside the C++ extern "C" {} block.
19548         * doc/posix-headers/pthread.texi: Mention the problem with
19549         pthread_atfork on IRIX.
19551 2018-02-04  Bruno Haible  <bruno@clisp.org>
19553         nl_langinfo: Override the system's nl_langinfo() when needed.
19554         Reported by Jim Meyering.
19555         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
19556         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
19558 2018-02-04  Bruno Haible  <bruno@clisp.org>
19560         signal-h, monetary, strings: Fix build failure in some cases.
19561         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19562         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
19563         as delimiter in sed command, not '|'.
19564         * modules/monetary (Makefile.am): Likewise.
19565         * modules/strings (Makefile.am): Likewise.
19567 2018-02-03  Jim Meyering  <meyering@fb.com>
19569         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
19570         * top/maint.mk (sc_file_system): Don't complain about
19571         "/proc/filesystems".
19573 2018-02-03  Bruno Haible  <bruno@clisp.org>
19575         stdlib: Fix compilation error on OpenIndiana.
19576         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
19577         <sys/time.h>.
19578         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
19579         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
19581 2018-02-03  Bruno Haible  <bruno@clisp.org>
19583         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
19584         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
19585         and use $EGREP instead of 'grep -E'.
19586         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
19587         'grep -E'.
19589 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
19591         malloca: Add a compile-time verification.
19592         * lib/malloca.c (small_t): Verify that it is wide enough.
19593         * modules/malloca (Depends-on): Add verify.
19595 2018-02-02  Bruno Haible  <bruno@clisp.org>
19597         malloca: Add an argument check.
19598         Suggested by Paul Eggert.
19599         * lib/malloca.c (freea): Check against an invalid argument.
19601 2018-02-02  Bruno Haible  <bruno@clisp.org>
19603         localename: Add support for OpenIndiana.
19604         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
19605         Solaris 11 variants with uselocale() but without getlocalename_l().
19607 2018-02-02  Bruno Haible  <bruno@clisp.org>
19609         malloca, xmalloca: Make multithread-safe.
19610         Reported by Florian Weimer <fweimer@redhat.com>.
19611         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
19612         * lib/malloca.h (malloca): In the stack allocation case, return a
19613         pointer that is a multiple of 2 * sa_alignment_max.
19614         (sa_increment): Remove enum item.
19615         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
19616         a pointer that is a multiple of 2 * sa_alignment_max.
19617         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
19618         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
19619         HASH_TABLE_SIZE, mmalloca_results): Remove.
19620         (small_t): New type.
19621         (mmalloca, free): Rewritten.
19622         * lib/malloca.valgrind: Remove file.
19623         * modules/malloca (Files): Remove it.
19624         (Depends-on): Remove verify.
19626 2018-01-31  Bruno Haible  <bruno@clisp.org>
19628         environ: Fix link error on 64-bit Cygwin.
19629         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
19630         __declspec(dllimport) attribute.
19631         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
19633 2018-01-30  Bruno Haible  <bruno@clisp.org>
19635         get-rusage-data: Add support for Minix 3.
19636         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
19638 2018-01-30  Bruno Haible  <bruno@clisp.org>
19640         vma-iter: Add support for Minix 3.
19641         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
19642         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
19644 2018-01-27  Bruno Haible  <bruno@clisp.org>
19646         Fix malfunction of socket functions on HP-UX in 64-bit mode.
19647         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
19648         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
19649         _HPUX_ALT_XOPEN_SOCKET_API.
19650         * modules/accept (Depends-on): Add 'extensions'.
19651         * modules/getpeername (Depends-on): Likewise.
19652         * modules/getsockname (Depends-on): Likewise.
19653         * modules/getsockopt (Depends-on): Likewise.
19654         * modules/recvfrom (Depends-on): Likewise.
19655         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
19656         * doc/posix-functions/getpeername.texi: Likewise.
19657         * doc/posix-functions/getsockname.texi: Likewise.
19658         * doc/posix-functions/getsockopt.texi: Likewise.
19659         * doc/posix-functions/recvfrom.texi: Likewise.
19661 2018-01-27  Bruno Haible  <bruno@clisp.org>
19663         getsockname tests: More tests.
19664         * tests/test-getsockname.c (open_server_socket): New function, mostly
19665         copied from test-poll.c.
19666         (main): Check that getsockname fills in addr.
19667         * modules/getsockname-tests (Depends-on): Add the necessary
19668         dependencies.
19669         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
19671 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
19673         manywarnings: fix maintainer comment
19674         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
19675         it does not mistakenly think that ‘-1)’ is an option.
19677 2018-01-26  Bruno Haible  <bruno@clisp.org>
19679         langinfo: Fix last commit.
19680         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19681         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
19683 2018-01-24  Bruno Haible  <bruno@clisp.org>
19685         langinfo, nl_langinfo: Add support for alternative month names.
19686         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
19687         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
19688         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
19689         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
19690         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
19691         * doc/posix-functions/nl_langinfo.texi: Likewise.
19693 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19695         Merge strftime.c changes from glibc
19696         This incorporates:
19697         2017-11-14 [BZ #10871] Implement alternative month names
19698         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
19699         2017-06-20 Use locale_t, not __locale_t, throughout glibc
19700         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
19701         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
19702         Use locale_t, not __locale_t.
19703         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
19704         (__strftime_internal): Add support for alternate months.
19706 2018-01-23  Bruno Haible  <bruno@clisp.org>
19708         doc: Mention another prerequisite for using Gnulib.
19709         Reported at <https://stackoverflow.com/questions/48378214/>.
19710         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
19711         AC_CONFIG_HEADERS.
19713 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
19715         build: GuixSD doesn't have /bin/bash
19716         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
19718 2018-01-21  Bruno Haible  <bruno@clisp.org>
19720         Avoid test failures on Microsoft Windows Subsystem for Linux.
19721         * tests/test-fcntl.c (main): Allow a different errno.
19722         * tests/test-rename.h (test_rename): Likewise.
19723         * tests/test-renameat.c (main): Likewise.
19724         * tests/test-renameat2.c (main): Likewise.
19726 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
19728         filenamecat: make base a suffix of result
19729         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
19730         (mfile_name_concat): Always make BASE a suffix of the result, as
19731         cp expects this.  To implement this, separate with '.' instead of
19732         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
19733         * tests/test-filenamecat.c (main): Adjust tests to match
19734         current behavior.  Check that BASE_IN_RESULT points to
19735         a copy of BASE and is a suffix of the resultk, and that DIR
19736         is a prefix of the result that is no longer than the prefix
19737         indicated by BASE_IN_RESULT.
19739 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
19741         update-copyright: Handle use of ©
19742         * build-aux/update-copyright ($circle_c_re): Update regex to
19743         handle use of © in headers.
19745 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
19747         Fix -Wundef warning in user-included header lib/cdefs.h.
19748         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
19750 2018-01-04  Bruno Haible  <bruno@clisp.org>
19752         pthread_sigmask: Avoid compilation error on mingw.
19753         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19754         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
19755         macro.
19757 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
19759         test-framework-sh: ‘ps -ef’, not ‘ps ef’
19760         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
19761         Suggested by Bob Proulx (Bug#29968).
19762         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
19764 2018-01-02  Eric Blake  <eblake@redhat.com>
19766         stat-time: silence -Wunused-parameter regression
19767         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
19768         Prefer attribute over cast-to-void.
19769         (stat_time_normalize): Mark st as potentially unused.
19771 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
19773         test-framework-sh: avoid netstat
19774         Problem reported by Kristýna Streitová (Bug#29947).
19775         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
19776         deprecated on SuSE and it's not that important anyway.
19778 2018-01-01  Jim Meyering  <meyering@fb.com>
19780         update-copyright: add code to handle more special cases
19781         After running "make update-copyright" this year, five files
19782         required additional manual changes.  Automate those adjustments
19783         for next year.
19784         * Makefile (_year_and_prev): Define.
19785         (update-copyright): Add perl commands to induce this year's post-
19786         update-copyright adjustments.
19788 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
19790         version-etc: new year
19791         * build-aux/gendocs.sh (version):
19792         * doc/gendocs_template:
19793         * doc/gendocs_template_min:
19794         * doc/gnulib.texi:
19795         * lib/version-etc.c (COPYRIGHT_YEAR):
19796         Update copyright dates by hand in templates and the like.
19798         maint: fix 'make update-copyright'
19799         * Makefile (update-copyright): Adjust to 2016-11-23 change
19800         to config/srclist-update, which changed the format of srclist.txt.
19802 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
19804         chdir-safer: remove this module
19805         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
19806         * NEWS: Document removal.
19807         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
19808         * modules/chdir-safer: Remove these files.
19810 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
19812         Add cross-compilation results for GNU/Hurd.
19813         * m4/calloc.m4: Add GNU/Hurd guess.
19814         * m4/cbrtl.m4: Likewise.
19815         * m4/ceil.m4: Likewise.
19816         * m4/ceilf.m4: Likewise.
19817         * m4/ceill.m4: Likewise.
19818         * m4/chown.m4: Likewise.
19819         * m4/duplocale.m4: Likewise.
19820         * m4/exp2l.m4: Likewise.
19821         * m4/expm1.m4: Likewise.
19822         * m4/fchdir.m4: Likewise.
19823         * m4/floor.m4: Likewise.
19824         * m4/floorf.m4: Likewise.
19825         * m4/fmod.m4: Likewise.
19826         * m4/fmodf.m4: Likewise.
19827         * m4/fmodl.m4: Likewise.
19828         * m4/getcwd.m4: Likewise.
19829         * m4/getgroups.m4: Likewise.
19830         * m4/gettimeofday.m4: Likewise.
19831         * m4/hypot.m4: Likewise.
19832         * m4/hypotf.m4: Likewise.
19833         * m4/hypotl.m4: Likewise.
19834         * m4/link-follow.m4: Likewise.
19835         * m4/link.m4: Likewise.
19836         * m4/linkat.m4: Likewise.
19837         * m4/log.m4: Likewise.
19838         * m4/log10.m4: Likewise.
19839         * m4/log10f.m4: Likewise.
19840         * m4/log1p.m4: Likewise.
19841         * m4/log1pf.m4: Likewise.
19842         * m4/log1pl.m4: Likewise.
19843         * m4/log2.m4: Likewise.
19844         * m4/log2f.m4: Likewise.
19845         * m4/logf.m4: Likewise.
19846         * m4/lstat.m4: Likewise.
19847         * m4/malloc.m4: Likewise.
19848         * m4/mbrlen.m4: Likewise.
19849         * m4/mbrtowc.m4: Likewise.
19850         * m4/mkdir.m4: Likewise.
19851         * m4/mkfifo.m4: Likewise.
19852         * m4/mknod.m4: Likewise.
19853         * m4/mkstemp.m4: Likewise.
19854         * m4/modf.m4: Likewise.
19855         * m4/modff.m4: Likewise.
19856         * m4/modfl.m4: Likewise.
19857         * m4/printf.m4: Likewise.
19858         * m4/pselect.m4: Likewise.
19859         * m4/ptsname.m4: Likewise.
19860         * m4/putenv.m4: Likewise.
19861         * m4/readlink.m4: Likewise.
19862         * m4/realloc.m4: Likewise.
19863         * m4/remainder.m4: Likewise.
19864         * m4/remainderf.m4: Likewise.
19865         * m4/remainderl.m4: Likewise.
19866         * m4/rmdir.m4: Likewise.
19867         * m4/round.m4: Likewise.
19868         * m4/roundf.m4: Likewise.
19869         * m4/roundl.m4: Likewise.
19870         * m4/select.m4: Likewise.
19871         * m4/setenv.m4: Likewise.
19872         * m4/signbit.m4: Likewise.
19873         * m4/sleep.m4: Likewise.
19874         * m4/stat.m4: Likewise.
19875         * m4/strerror.m4: Likewise.
19876         * m4/strtok_r.m4: Likewise.
19877         * m4/symlink.m4: Likewise.
19878         * m4/symlinkat.m4: Likewise.
19879         * m4/trunc.m4: Likewise.
19880         * m4/truncf.m4: Likewise.
19881         * m4/truncl.m4: Likewise.
19882         * m4/tzset.m4: Likewise.
19883         * m4/ungetc.m4: Likewise.
19884         * m4/usleep.m4: Likewise.
19885         * m4/wcwidth.m4: Likewise.
19887 2017-12-28  Bruno Haible  <bruno@clisp.org>
19889         gnulib-tool: Make --conditional-dependencies work better.
19890         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
19891         * gnulib-tool (Options): Don't reject the combination of
19892         --conditional-dependencies with --with-tests.
19893         (func_emit_autoconf_snippets): Add argument referenceable_modules.
19894         Don't reference $modules.
19895         (func_import, func_create_testdir): Pass it.
19897 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
19899         regex: use re_malloc etc. consistently
19900         Problem and original patch reported by Arnold Robbins in:
19901         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
19902         * lib/regcomp.c (re_comp):
19903         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
19904         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
19906 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
19907             Paul Eggert  <eggert@cs.ucla.edu>
19909         glob: Silence warning about void pointer arithmetic.
19910         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
19911         arithmetic.
19913 2017-12-15  Bruno Haible  <bruno@clisp.org>
19915         spawn-pipe: Silence a clang warning.
19916         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19917         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
19918         in this file.
19920 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
19922         explicit_bzero: port to macOS + Clang 9.0.0
19923         Problem reported by Marcus Johnson (Bug#29658).
19924         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
19925         Don’t use asm.
19927 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
19929         doc: Improve explanation of supporting relocatable libraries.
19930         * doc/relocatable-maint.texi (Supporting Relocation): Explain
19931         properly how to build the relocatable module for
19932         libraries. (Method and example code from Bruno Haible.)
19934 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
19936         doc: Use better texinfo tags in a few cases.
19937         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
19938         instead of @samp in a few places.
19940 2017-12-11  Bruno Haible  <bruno@clisp.org>
19942         unistr/base: Update comment.
19943         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
19945 2017-12-10  Pádraig Brady  <P@draigBrady.com>
19947         test-faccessat.c: unlink temp file to avoid subsequent test failure
19948         * tests/test-faccessat.c: Remove the file to avoid failure
19949         to open the file on subsequent runs due to being created
19950         with no permissions.
19952 2017-12-10  Bruno Haible  <bruno@clisp.org>
19954         doc: New sect. "Modifying the build rules of a Gnulib import directory".
19955         * doc/gnulib-tool.texi (Modified build rules): New node.
19957 2017-12-10  Bruno Haible  <bruno@clisp.org>
19959         doc: Tweak wording.
19960         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
19961         "binaries".
19963 2017-12-05  Sam Steingold  <sds@gnu.org>
19964             Bruno Haible  <bruno@clisp.org>
19966         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
19967         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
19968         AC_EGREP_CPP pattern.
19970 2017-12-03  Bruno Haible  <bruno@clisp.org>
19972         all: Replace more http URLs by https URLs.
19973         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
19974         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
19975         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
19976         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
19978 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
19980         Port better to CentOS 5
19981         Problems reported by Tom G. Christensen in:
19982         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
19983         * doc/glibc-functions/strverscmp.texi (strverscmp):
19984         Document strverscmp bug with glibc 2.9 and earlier.
19985         * doc/posix-functions/tzset.texi (tzset):
19986         Document that TZ with angle brackets is POSIX-2001 and later.
19987         * tests/test-nstrftime.c: Include unistd.h.
19988         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
19989         (TZ): Use it to skip tests with angle brackets in TZ,
19990         for older systems.
19992         stat: add missing module dependencies
19993         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
19994         Add stat-time.
19996 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
19998         stat: fix compilation failure on macOS Sierra
19999         Reported by Marius Schamschula <mschamschula@gmail.com> in:
20000         https://savannah.gnu.org/bugs/?52546
20001         * lib/stat.c: Add missing include of stat-time.h.
20003 2017-11-28  Jim Meyering  <meyering@fb.com>
20005         test-faccessat.c: correct BASE definition to avoid parallel test failure
20006         * tests/test-faccessat.c (BASE): Define using this file's name, not
20007         that of test-lstat.c.  Using the latter caused this test to fail
20008         sometimes when run concurrently with test-lstat.
20010 2017-11-27  Daiki Ueno  <ueno@gnu.org>
20012         unicase: fix VPATH build
20013         * modules/unicase/special-casing (Makefile.am): Ensure that the
20014         base directory is created when generating
20015         unicase/special-casing.h.
20017 2017-11-27  Daiki Ueno  <ueno@gnu.org>
20019         libunistring: update to Unicode 9.0.0
20020         * lib/gen-uni-tables.c (fill_properties): Recognize
20021         Sentence_Terminal and Prepended_Concatenation_Mark.
20022         (is_property_default_ignorable_code_point): Exclude U+08E2.
20023         (fill_arabicshaping): Allow missing whitespace when parsing;
20024         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
20025         (output_blocks): Increase the element size of the level1 table to
20026         accommodate more blocks.
20027         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
20028         Update each class according to the standard.
20029         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
20030         E_Base_GAZ characters.
20031         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
20032         Glue_After_Zwj, and E_Base_GAZ characters.
20033         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
20034         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
20035         enum value.
20036         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
20037         value.
20038         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
20039         LBP_ZWJ, LBP_EB, and LBP_EM.
20040         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
20041         enum value.
20042         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
20043         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
20044         declaration.
20045         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
20046         (uniwbrk_table): Implement WB14.
20047         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
20048         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
20049         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
20050         uc-is-grapheme-break.
20051         * modules/unigbrk/uc-grapheme-breaks: New module.
20052         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
20053         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
20054         enum value.
20055         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
20056         * lib/unigbrk/u-grapheme-breaks.h: New file.
20057         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
20058         u-grapheme-breaks.h instead of uc_is_grapheme_break.
20059         * lib/unigbrk/uc-grapheme-breaks.c: New file.
20060         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
20061         29.
20062         * tests/unigbrk/test-uc-gbrk-prop.c
20063         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
20064         GBP_GAZ, and GBP_EBG.
20065         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
20066         * tests/unigbrk/test-uc-is-grapheme-break.c
20067         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
20068         GBP_GAZ, and GBP_EBG.
20069         (main): Skip unsupported rules involving 3 or more characters,
20070         namely GB10, GB12, and GB13.
20071         * lib/uniwidth/width.c (nonspacing_table_data): Update.
20072         * all generated files under lib/uni* and tests/uni*: Regenerate.
20073         * all the affected modules: Bump version.
20075 2017-11-26  Bruno Haible  <bruno@clisp.org>
20077         strfmon_l: Fix compilation error with glibc 2.5.
20078         Reported by Tom G. Christensen <tgc@jupiterrise.com>
20079         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
20080         * lib/monetary.in.h: Include also <locale.h>.
20082 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
20084         posixtm: remove PDS_LEADING_YEAR
20085         This changes the API slightly, in a hopefully-innocuous way.
20086         Without this change the code had undefined behavior when a
20087         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
20088         Problem reported by Pádraig Brady in:
20089         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
20090         * NEWS: Mention this.
20091         * lib/posixtm.c (posix_time_parse): Treat the absence of
20092         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
20093         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
20094         present, but define it as zero, for compatibility with existing
20095         source code).  All other PDS_* values moved up.
20096         * tests/test-posixtm.c (LY): New macro.
20097         (T): Use it.  Do not expect a particular numeric encoding
20098         for PDS_CENTURY etc.
20100 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
20102         stat: work around Solaris bug with tv_nsec < 0
20103         * doc/posix-functions/fstat.texi (fstat):
20104         * doc/posix-functions/fstatat.texi (fstatat):
20105         * doc/posix-functions/lstat.texi (lstat):
20106         * doc/posix-functions/stat.texi (stat):
20107         Mention Solaris 11 bug.
20108         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
20109         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
20110         * lib/lstat.c (rpl_lstat):
20111         * lib/stat.c (rpl_stat):
20112         Normalize resulting timestamps.
20113         * lib/fstatat.c (normal_fstatat): New function.
20114         (rpl_fstatat): Use it.
20115         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
20116         (stat_time_normalize): New function.
20117         * m4/fstat.m4 (gl_FUNC_FSTAT):
20118         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
20119         * m4/lstat.m4 (gl_FUNC_LSTAT):
20120         * m4/stat.m4 (gl_FUNC_STAT):
20121         Replace on Solaris.
20122         * modules/fstat (Depends-on):
20123         * modules/fstatat (Depends-on):
20124         Add stat-time.
20125         * modules/stat-time (Depends-on): Add errno, intprops.
20127 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
20129         regex: merge from glibc
20130         * lib/regcomp.c (init_word_char): Add comments.
20132 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
20134         regex: merge from glibc
20135         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
20136         * lib/regex_internal.h (internal_function): Remove.
20137         All uses removed.
20139 2017-11-20  Bruno Haible  <bruno@clisp.org>
20141         crypto/gc-sm3: Fix buffer overrun.
20142         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
20143         Reported by Coverity.
20145 2017-11-12  Jim Meyering  <meyering@fb.com>
20147         maint: shorten https://lists.gnu.org/archive/html/... links
20148         Each /archive/html/ part can be replace with /r/.
20149         Run this to induce the change:
20150         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
20151         * ChangeLog: Perform that substitution.
20152         * Makefile: Likewise.
20153         * STATUS-libposix: Likewise.
20154         * build-aux/bootstrap: Likewise.
20155         * doc/maintain.texi: Likewise.
20156         * gnulib-tool: Likewise.
20157         * lib/allocator.h: Likewise.
20158         * lib/argp-ba.c: Likewise.
20159         * lib/argp-pv.c: Likewise.
20160         * lib/canon-host.c: Likewise.
20161         * lib/canonicalize-lgpl.c: Likewise.
20162         * lib/float.in.h: Likewise.
20163         * lib/fstat.c: Likewise.
20164         * lib/getdelim.c: Likewise.
20165         * lib/getprogname.c: Likewise.
20166         * lib/glthread/thread.h: Likewise.
20167         * lib/intprops.h: Likewise.
20168         * lib/mbsrtowcs-state.c: Likewise.
20169         * lib/safe-read.c: Likewise.
20170         * lib/signal.in.h: Likewise.
20171         * lib/stat.c: Likewise.
20172         * lib/stdbool.in.h: Likewise.
20173         * lib/stdio-impl.h: Likewise.
20174         * lib/stdio.in.h: Likewise.
20175         * lib/sysexits.in.h: Likewise.
20176         * lib/timespec.h: Likewise.
20177         * lib/wcsrtombs-state.c: Likewise.
20178         * m4/alloca.m4: Likewise.
20179         * m4/extern-inline.m4: Likewise.
20180         * m4/fstatat.m4: Likewise.
20181         * m4/gnulib-common.m4: Likewise.
20182         * m4/lib-ignore.m4: Likewise.
20183         * m4/printf.m4: Likewise.
20184         * m4/regex.m4: Likewise.
20185         * m4/stat-size.m4: Likewise.
20186         * m4/std-gnu11.m4: Likewise.
20187         * m4/stdbool.m4: Likewise.
20188         * m4/sys_types_h.m4: Likewise.
20189         * m4/threadlib.m4: Likewise.
20190         * m4/vararrays.m4: Likewise.
20191         * pygnulib/GLImport.py: Likewise.
20192         * tests/test-exp.h: Likewise.
20193         * tests/test-exp2.h: Likewise.
20194         * tests/test-expm1.h: Likewise.
20195         * tests/test-fflush2.c: Likewise.
20196         * tests/test-getopt_long.h: Likewise.
20197         * tests/test-intprops.c: Likewise.
20198         * tests/test-log.h: Likewise.
20199         * tests/test-log10.h: Likewise.
20200         * tests/test-log1p.h: Likewise.
20201         * tests/test-log2.h: Likewise.
20202         * tests/test-printf-posix.h: Likewise.
20203         * tests/test-regex.c: Likewise.
20204         * tests/test-snprintf-posix.h: Likewise.
20205         * tests/test-sprintf-posix.h: Likewise.
20206         * tests/test-stdalign.c: Likewise.
20207         * tests/test-stdbool.c: Likewise.
20208         * tests/test-vasnprintf-posix.c: Likewise.
20209         * tests/test-vasprintf-posix.c: Likewise.
20210         * top/maint.mk: Likewise.
20212 2017-11-12  Bruno Haible  <bruno@clisp.org>
20214         faccessat: Make the last change more robust.
20215         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
20216         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
20218 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
20220         faccessat: port to macOS (Bug#29231)
20221         macOS faccessat has the same bug that lstat does: if the file
20222         name ends in '/' it ignores the trailing slash.
20223         Problem reported for Emacs by Vincent Zhang.
20224         * doc/posix-functions/faccessat.texi (faccessat): Document this.
20225         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
20226         around the initial includes.  Include errno.h, string.h, sys/stat.h.
20227         (orig_faccessat) [HAVE_FACCESSAT]: New function.
20228         Include "unistd.h" after defining it.
20229         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
20230         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
20231         Handle in the usual way.
20232         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
20233         lstat dereferences symlinks, since faccessat is likely to
20234         have the same problem.
20235         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
20236         * modules/faccessat (Depends-on): Add fstatat.
20237         Depend if REPLACE_FACCESSAT is 1, too.
20238         (configure.ac): Link if REPLACE_FACCESSAT is 1.
20239         * modules/faccessat-tests (Depends-on): Add symlink.
20240         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
20241         * tests/test-faccessat.c (main): Test for the bug.
20243 2017-11-11  Bruno Haible  <bruno@clisp.org>
20245         getprogname: Fix compilation error on IRIX.
20246         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
20247         'namesize'.
20249 2017-11-11  Bruno Haible  <bruno@clisp.org>
20251         year2038: Tweak last patch.
20252         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
20254 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
20256         year2038: be more insistent about 64-bit time_t
20257         Applications requiring access to arbitrary files should not be
20258         built with 32-bit time_t on hosts that have 64-bit timestamps,
20259         as this can lead to real trouble at runtime.
20260         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
20261         Check on all systems, not just MinGW.  Use a heuristic involving
20262         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
20263         output a failure or just a warning, to make it more likely that
20264         builders will select 64-bit time_t.
20266 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
20268         havelib: fix typo in previous change
20269         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
20271         Don’t use AC_EGREP_CPP if affected by CFLAGS
20272         * m4/float_h.m4 (gl_FLOAT_H):
20273         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
20274         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
20275         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
20276         * m4/year2038.m4 (gl_YEAR2038):
20277         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
20278         likely to be affected by the choice of CFLAGS, since CFLAGS are
20279         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
20280         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
20282         fstatat: pacify GCC on unusual platform
20283         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
20284         Omit, as it’s unused in this case.
20286 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
20288         timespec: prefer ‘assume’ to ‘assure’
20289         This avoids some runtime tests.  The rest of the module makes
20290         similar assumptions and there is little point to testing here.
20291         * lib/timespec.h: Include verify.h instead of assure.h.
20292         (timespec_cmp): Use ‘assume’, not ‘assure’.
20293         Also, remove an unnecessary cast to ‘int’, as lots of other
20294         code in this module now causes -Wconversion to complain, and
20295         this is a problem with -Wconversion not with the code.
20297         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
20299         Port recent gnulib-tool change to Dash
20300         * gnulib-tool (func_create_testdir): Don't assume that the shell
20301         retokenizes after expanding "$@" inside the call to
20302         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
20304 2017-10-27  Jim Meyering  <meyering@fb.com>
20306         timespec.h: use "assure" to avoid a spurious warning
20307         * lib/timespec.h: Include "assure.h" and use it to help
20308         gcc7's -Wstrict-overflow avoid a false positive warning
20309         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
20310         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
20311         * modules/timespec (Depends-on): Add assure.
20313 2017-10-29  Bruno Haible  <bruno@clisp.org>
20315         Avoid several test failures with traditional locales on Haiku.
20316         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
20317         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
20318         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
20319         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
20320         LOCALE_ZH_CN=none.
20322 2017-10-29  Bruno Haible  <bruno@clisp.org>
20324         strerror_r-posix: Fix behaviour and test failure on Haiku.
20325         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
20326         are positive. Work around return value 0 instead of ERANGE on Haiku.
20327         For unknown error numbers, use a format string consistent with perror().
20328         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
20329         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
20330         are positive.
20332 2017-10-29  Bruno Haible  <bruno@clisp.org>
20334         get-rusage-data: Avoid crash on Haiku.
20335         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
20337 2017-10-29  Bruno Haible  <bruno@clisp.org>
20339         get-rusage-as: Avoid crash on Haiku.
20340         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
20342 2017-10-29  Bruno Haible  <bruno@clisp.org>
20344         ilogbl: Ensure replacement on Haiku.
20345         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
20346         REPLACE_ILOGBL if ilogbl does not work.
20347         (gl_FUNC_ILOGBL_WORKS): New macro.
20348         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
20349         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
20350         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
20351         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
20352         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
20354 2017-10-29  Bruno Haible  <bruno@clisp.org>
20356         expl: Ensure replacement on Haiku.
20357         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
20358         zero.
20359         * doc/posix-functions/expl.texi: Mention the Haiku problem.
20361 2017-10-29  Bruno Haible  <bruno@clisp.org>
20363         math: Fix test failure on Haiku.
20364         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
20365         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
20366         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
20367         * doc/posix-headers/math.texi: Mention the Haiku problem.
20369 2017-10-29  Bruno Haible  <bruno@clisp.org>
20371         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
20372         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
20373         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
20375 2017-10-29  Bruno Haible  <bruno@clisp.org>
20377         crypto/*: Verify that the header file is self-contained.
20378         * tests/test-gc-*.c: Include the module's header file immediately after
20379         <config.h>.
20380         * tests/test-hmac-*.c: Likewise.
20381         * tests/test-arcfour.c: Likewise.
20382         * tests/test-arctwo.c: Likewise.
20383         * tests/test-des.c: Likewise.
20384         * tests/test-md2.c: Likewise.
20385         * tests/test-md4.c: Likewise.
20386         * tests/test-md5.c: Likewise.
20387         * tests/test-rijndael.c: Likewise.
20388         * tests/test-sha1.c: Likewise.
20389         * tests/test-sm3.c: Likewise.
20391 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20392             Bruno Haible  <bruno@clisp.org>
20394         crypto/gc: fix build failure with -Werror=suggest-attribute=const
20395         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
20397 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20399         New module: crypto/gc-sm3
20400         * lib/gc.h: Declare SM3-related stuffs.
20401         * lib/gc-gnulib.c: Support sm3 in internal functions.
20402         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
20403         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
20404         * modules/crypto/gc-sm3: Define gc-sm3 module.
20405         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
20406         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
20407         * MODULES.html.sh: List gc-sm3 module.
20409 2017-10-29  Bruno Haible  <bruno@clisp.org>
20411         random, random_r: Mention different prototypes on Haiku.
20412         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
20413         * doc/glibc-functions/random_r.texi: Likewise.
20414         * doc/glibc-functions/initstate_r.texi: Likewise.
20415         * doc/glibc-functions/setstate_r.texi: Likewise.
20417 2017-10-28  Bruno Haible  <bruno@clisp.org>
20419         posix_spawn: Avoid spurious message in configure output.
20420         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
20421         'cmp' command.
20423 2017-10-28  Bruno Haible  <bruno@clisp.org>
20425         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
20426         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
20427         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
20429 2017-10-28  Bruno Haible  <bruno@clisp.org>
20431         ioctl: Override non-POSIX declaration on Haiku.
20432         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
20433         * lib/sys_ioctl.in.h: Add comment about Haiku.
20434         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
20435         * doc/glibc-headers/sys_ioctl.texi: Likewise.
20437 2017-10-28  Bruno Haible  <bruno@clisp.org>
20439         crypto/sm3: Add overview documentation to the .h file.
20440         * lib/sm3.h: Add comments.
20442 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20444         New module: crypto/sm3
20445         This new module can be used to compute SM3 message digest of files or
20446         memory blocks according to the specification GM/T 004-2012
20447         Cryptographic Hash Algorithm SM3, published by State Cryptography
20448         Administration, China.
20449         The official SM3 cryptographic hash algorithm specification is
20450         available at
20451         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
20452         * lib/sm3.h: Declare the APIs of sm3 module.
20453         * lib/sm3.c: Implement SM3 hash algorithm.
20454         * m4/sm3.m4: m4 file for sm3 module.
20455         * modules/crypto/sm3: Define sm3 module.
20456         * tests/test-sm3.c: Implement SM3 test case.
20457         * modules/crypto/sm3-tests: Define sm3 test module.
20458         * MODULES.html.sh: List sm3 module.
20460 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20462         gc-libgcrypt: fix undefined enum type in switch statement
20463         Resolve the following build failure:
20464         lib/gc-libgcrypt.c: In function 'gc_hash_open':
20465         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
20466         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
20467              case 0:
20468              ^~~~
20469         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
20470         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
20472 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20474         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
20475         Resolve the following build failure:
20476         lib/gc-libgcrypt.c: In function 'gc_hash_read':
20477         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
20478         in signedness [-Werror=pointer-sign]
20479             digest = gcry_md_read (ctx->gch, 0);
20480                    ^
20481         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
20483 2017-10-26  Bruno Haible  <bruno@clisp.org>
20485         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
20486         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
20487         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
20489 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
20491         glob: fix another heap buffer overflow
20492         Problem reported by Tim Rühsen in:
20493         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
20494         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
20496 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
20498         quotearg: pacify compiler re unsigned
20499         * lib/quotearg.c (quotearg_n_options):
20500         Rewrite to avoid diagnostic from overly-picky compiler.
20501         Problem reported by Sami Kerola in:
20502         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
20504         glob: fix heap buffer overflow
20505         * lib/glob.c (glob): Fix off-by-one error introduced into
20506         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
20507         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
20508         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
20509         Fix suggested by Bruno Haible.
20511 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
20513         glob: pacify fuzzer for mempcpy
20514         Problem reported by Tim Rühsen in:
20515         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
20516         * lib/glob.c (glob): Do not pass NULL to mempcpy.
20518 2017-10-12  Bruno Haible  <bruno@clisp.org>
20520         doc: Fix syntax error (regression from 2017-10-03).
20521         * doc/posix-functions/strncpy.texi: Fix syntax error.
20523 2017-10-12  Bruno Haible  <bruno@clisp.org>
20525         doc: Update for Solaris 11.3.
20526         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
20527         mention Solaris 11.3.
20528         * m4/log2.m4: Fix comments.
20529         * m4/log2f.m4: Likewise.
20530         * m4/printf.m4: Update comments.
20531         * m4/rename.m4: Likewise.
20532         * m4/strncat.m4: Likewise.
20534         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
20536 2017-10-10  Bruno Haible  <bruno@clisp.org>
20538         doc: Improve doc about ioctl.
20539         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
20540         prototype.
20542 2017-10-09  Bruno Haible  <bruno@clisp.org>
20544         wcwidth: Don't use obsolete syntax of 'test'.
20545         Reported by Eric Blake.
20546         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
20547         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
20549 2017-10-09  Bruno Haible  <bruno@clisp.org>
20551         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
20552         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
20553         and Daniel P. Berrange <berrange@redhat.com>.
20554         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
20555         on glibc systems. The getopt-pfx-core.h file declares exactly what
20556         unistd.h needs, nothing more.
20558 2017-10-08  Bruno Haible  <bruno@clisp.org>
20560         vma-iter: Improve support for FreeBSD.
20561         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
20562         vma_iterate.
20563         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
20565 2017-10-08  Bruno Haible  <bruno@clisp.org>
20567         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
20568         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
20570 2017-10-07  KO Myung-Hun  <komh@chollian.net>
20572         test-framework-sh: Fix 'invalid path dir' error.
20573         On OS/2, a path separator is ';' not ':'. And ':' is used as a
20574         separator between a drive letter and directory parts.
20575         As a result, an absolute path such as x:/path/to/dir on OS/2 is
20576         treated as an invalid path dir.
20577         * tests/init.sh (PATH_SEPARATOR): Set at startup.
20578         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
20579         instead of hard coded ':'.
20581 2017-10-07  Bruno Haible  <bruno@clisp.org>
20583         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
20584         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
20585         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
20586         (rof_open): On Linux, do multiple read() calls and make sure
20587         MIN_LEFTOVER bytes are left when read() returns.
20589 2017-10-07  Bruno Haible  <bruno@clisp.org>
20591         vma-iter: Improve support for GNU/Hurd.
20592         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
20593         API, not the /proc file system.
20595 2017-10-07  Bruno Haible  <bruno@clisp.org>
20597         test-framework-sh: Don't require bash on Windows and OS/2.
20598         Reported by KO Myung-Hun.
20599         * tests/test-init.sh: Use 'shopt' only when running in bash.
20601 2017-10-06  KO Myung-Hun  <komh@chollian.net>
20603         wcwidth: check a macro version of wcwidth () as well
20604         * lib/wchar.in.h: Revert commit from 2016-01-14.
20605         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
20607 2017-10-06  Bruno Haible  <bruno@clisp.org>
20609         getopt-posix: Clarify copyright header.
20610         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
20611         * lib/getopt-pfx-core.h: Likewise.
20612         * lib/getopt-pfx-ext.h: Likewise.
20613         * lib/getopt-cdefs.in.h: Likewise.
20615 2017-10-03  Bruno Haible  <bruno@clisp.org>
20617         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
20618         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
20619         gl_HOST_CPU_C_ABI.
20621 2017-10-03  Bruno Haible  <bruno@clisp.org>
20623         doc: warn about misuse of strncpy and wcsncpy.
20624         * doc/posix-functions/strcpy.texi: Describe requirements on prior
20625         memory allocation.
20626         * doc/posix-functions/wcscpy.texi: Likewise.
20627         * doc/posix-functions/strncpy.texi: Describe what this function is not
20628         useful for.
20629         * doc/posix-functions/wcsncpy.texi: Likewise.
20631 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
20633         fsuage: fix typo in previous change
20634         * lib/fsusage.c: Remove stray include of full-read.h.
20635         Problem reported by Sam Steingold for macOS (Bug#28669).
20637 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
20639         fsusage: remove SVR2 support
20640         SVR2 was obsolete by 1986 and is no longer supported by anybody,
20641         and its code was getting in the way of use of this module by
20642         Emacs, which has its own ‘read’ function anyway.
20643         * lib/fsusage.c: Do not include sys/filsys.h.
20644         (get_fs_usage): Remove SVR2-specific code.
20645         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
20646         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
20647         * modules/fsusage (Depends-on): Do not depend on full-read.
20649         Simplify autoupdate of licenses
20650         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
20651         place.
20653 2017-10-01  Bruno Haible  <bruno@clisp.org>
20655         vma-iter: Add support for GNU/Hurd.
20656         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
20657         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
20659 2017-09-30  Bruno Haible  <bruno@clisp.org>
20661         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
20662         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
20663         fail when module 'largefile' is in use.
20664         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
20665         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
20666         Don't test HAVE_SYS_PROCFS_H.
20668 2017-09-30  Bruno Haible  <bruno@clisp.org>
20670         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
20671         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
20672         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
20673         * modules/havelib (Depends-on): Add host-cpu-c-abi.
20675 2017-09-30  Bruno Haible  <bruno@clisp.org>
20677         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
20678         * lib/uniname/uniname.c (unicode_name_character): Add braces around
20679         scope of local variables.
20681 2017-09-28  Bruno Haible  <bruno@clisp.org>
20683         string: code style
20684         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
20685         substitutable variables.
20686         * modules/string (Makefile.am): Likewise.
20688 2017-09-26  Bruno Haible  <bruno@clisp.org>
20690         uniname/uniname-tests: Tighten code.
20691         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
20692         local variables into one.
20694 2017-09-26  Bruno Haible  <bruno@clisp.org>
20696         vma-iter: Improvements for Linux and BSD platforms.
20697         - Add support for DragonFly BSD.
20698         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
20699         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
20700         Read the entire file into memory in a single system call.
20701         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
20702         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
20704 2017-09-26  Bruno Haible  <bruno@clisp.org>
20706         vma-iter: Provide the protection flags on FreeBSD.
20707         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
20708         skip three fields between the addresses and the protection flags.
20710 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
20712         glob: remove bogus extern decl
20713         * lib/glob.c (__glob_pattern_type): Remove now-spurious
20714         extern declaration.  Problem reported by Adhemerval Zanella in:
20715         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
20717 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
20719         uniname/uniname-tests: integer overflow fix
20720         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
20721         Check for integer overflow.
20723         duplocale-tests: fix unlikely crash
20724         * tests/test-duplocale.c (get_locale_dependent_values):
20725         Don’t crash with absurdly long month names.
20727         maint: fix overflow checking in nap.h
20728         * modules/chown-tests:
20729         * modules/fchownat-tests, modules/fdutimensat-tests:
20730         * modules/futimens-tests, modules/lchown-tests:
20731         * modules/stat-time-tests, modules/utime-tests:
20732         * modules/utimens-tests, modules/utimensat-tests:
20733         Depend on intprops.
20734         * tests/nap.h: Include intprops.h.
20735         (diff_timespec): Handle overflow properly.
20737         sys_types: update URL
20738         * m4/sys_types_h.m4: Use https: URL.
20740         parse-datetime: fix dependency
20741         * modules/parse-datetime (Depends-on): Depend
20742         on nstrftime, not strftime.
20744         parse-datetime, posixtm: avoid uninit access
20745         * lib/parse-datetime.y (parse_datetime2):
20746         * lib/posixtm.c (posixtime):
20747         Do not access uninitialized storage, even though the resulting
20748         value is never used.
20750 2017-09-25  Bruno Haible  <bruno@clisp.org>
20752         vma-iter: Improvements for BSD platforms.
20753         - Add support for GNU/kFreeBSD.
20754         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
20755         - Speed up on OpenBSD.
20756         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
20757         (vma_iterate_bsd): New function.
20758         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
20759         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
20760         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
20761         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
20763 2017-09-23  Bruno Haible  <bruno@clisp.org>
20765         strfmon_l: New module.
20766         * modules/strfmon_l: New file.
20767         * lib/strfmon_l.c: New file.
20768         * m4/strfmon_l.m4: New file.
20769         * doc/posix-functions/strfmon_l.texi: Mention the new module.
20770         * modules/strfmon_l-tests: New file.
20771         * tests/test-strfmon_l.c: New file.
20773         monetary: New module.
20774         * modules/monetary: New file.
20775         * lib/monetary.in.h: New file.
20776         * m4/monetary_h.m4: New file.
20777         * doc/posix-headers/monetary.texi: Mention the new module.
20778         * modules/monetary-tests: New file.
20779         * tests/test-monetary.c: New file.
20780         * modules/monetary-c++-tests: New file.
20781         * tests/test-monetary-c++.cc: New file.
20782         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
20784 2017-09-23  Bruno Haible  <bruno@clisp.org>
20786         duplocale tests: Fix test crash on Linux/x86.
20787         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
20788         locale from the current thread before freeing it.
20790 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
20792         mktime: port to OpenVMS
20793         Problem reported by John E. Malmberg in:
20794         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
20795         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
20797 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
20799         manywarnings: port to GCC on 64-bit MS-Windows
20800         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
20801         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
20802         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
20804 2017-09-13  Bruno Haible  <bruno@clisp.org>
20806         all: Replace many more http URLs by https URLs. Update stale URLs.
20807         * users.txt: Remove mention of 'newts'.
20808         * lib/localename.c: Update comment about LANG_SOTHO.
20810 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20812         all: Replace many http URLs by https URLs.
20814 2017-09-12  Bruno Haible  <bruno@clisp.org>
20816         doc: Prefer https URLs where possible.
20817         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
20818         * doc/ld-output-def.texi: Remove unavailable URL.
20820 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20822         maintainer-makefile: FTP -> HTTPS
20823         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
20824         of FTP, which is planned to be decommissioned on 2017-11-01.
20826 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
20828         libc-config: Fix __GNUC_PREREQ macro.
20829         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
20830         __GNUC_MINOR.
20832 2017-09-09  Bruno Haible  <bruno@clisp.org>
20834         gnulib-tool: Simplify commit from 2015-08-20.
20835         * gnulib-tool (func_add_or_update): Remove local variable
20836         is_binary_file.
20838 2017-09-08  Bruno Haible  <bruno@clisp.org>
20840         stddef: Avoid conflict with system-defined max_align_t.
20841         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
20842         Reported by Werner Lemberg <wl@gnu.org> in
20843         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
20844         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
20845         (max_align_t): Define as a macro.
20846         (GNULIB_defined_max_align_t): New macro. Guards against multiple
20847         definitions of rpl_max_align_t in different copies of gnulib-generated
20848         <stddef.h>.
20850 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
20852         libc-config: port to MSVC
20853         Problems reported by Gisle Vanem in:
20854         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
20855         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
20856         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
20857         * m4/__inline.m4: New file.
20858         * modules/libc-config (Files): Add it.
20859         (Depends-on): Use it.
20861         glob: Use enum for __glob_pattern_type result
20862         From a patch proposed by Adhemerval Zanella in:
20863         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
20864         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
20865         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
20866         * lib/glob_internal.h (__glob_pattern_type):
20867         * lib/glob.c (glob):
20868         * lib/glob_pattern_p.c (__glob_pattern_p):
20869         Use them.
20871         glob: fix for use in glibc
20872         Problem reported by Adhemerval Zanella in:
20873         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
20874         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
20875         Do not redefine if _LIBC.
20877 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20879         glob: fix bugs with long login names
20880         Problem reported by Adhemerval Zanella in:
20881         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
20882         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
20883         (glob): Use the same scratch buffer for both getlogin_r and
20884         getpwnam_r.  Don’t require preallocation of the login name.  This
20885         simplifies storage allocation, and corrects the handling of
20886         long login names.
20888 2017-09-02  Bruno Haible  <bruno@clisp.org>
20890         dirent: Update doc.
20891         * doc/posix-headers/dirent.texi: More concrete list of platforms.
20893 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20895         glob: fix getpwnam_r errno typo
20896         * lib/glob.c (glob): Fix longstanding misuse of errno after
20897         getpwnam_r, which returns an error number rather than setting
20898         errno.
20900         glob: fix typo in recent change
20901         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
20902         Fix recently-introduced typo.
20904 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20906         glob: don't save and restore errno unnecessarily
20907         * lib/glob.c (glob): Don't save and restore errno
20908         merely because we have getpwnam_r.
20910         glob: don't assume getpwnam_r
20911         * lib/glob.c (glob): Port recent patches to platforms
20912         lacking getpwnam_r.
20914         scratch_buffer: don’t use private glibc API
20915         Suggested by Florian Weimer in:
20916         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
20917         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
20918         * lib/scratch_buffer_grow.c: Rename to
20919         lib/malloc/scratch_buffer_grow.c.
20920         * lib/scratch_buffer_grow_preserve.c: Rename to
20921         lib/malloc/scratch_buffer_grow_preserve.c.
20922         * lib/scratch_buffer_set_array_size.c: Rename to
20923         lib/malloc/scratch_buffer_set_array_size.c.
20924         * lib/scratch_buffer.h: New file.
20925         * modules/scratch_buffer (Files, Makefile.am):
20926         Adjust to source-file renaming.
20928 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20930         glob: use scratch_buffer instead of extend_alloca
20931         Much of the lib/glob.c part of this patch comes from a glibc patch
20932         proposed by Adhemerval Zanella in:
20933         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
20934         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
20935         included via glob.h, does this for us now.
20936         (__set_errno): Remove, as libc-config does this for us now.
20937         Include <scratch_buffer.h>.
20938         (GETPW_R_SIZE_MAX): Remove.
20939         (glob): Use struct scratch_buffer instead of extend_alloca.
20940         * lib/glob.in.h: Include libc-config.h rather than
20941         including <sys/cdefs.h> conditionally.
20942         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
20943         (__glibc_unlikely, __restrict, weak_alias):
20944         Remove, as libc-config does this for us now.
20945         * m4/glob.m4 (gl_PREREQ_GLOB):
20946         Remove sys/cdefs.h tests; no longer needed.
20947         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
20948         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
20950         scratch_buffer: new module
20951         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
20952         * lib/scratch_buffer_grow_preserve.c:
20953         * lib/scratch_buffer_set_array_size.c:
20954         New files, copied from glibc with very minor changes that can be
20955         copied back.
20956         * modules/scratch_buffer: New file.
20958         libc-config: new module
20959         * MODULES.html.sh: Add libc-config.
20960         * lib/cdefs.h: New file, copied from the GNU C Library with very
20961         minor changes that can be copied back.
20962         * lib/libc-config.h, modules/libc-config: New files.
20964 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
20966         glob: match dangling symlinks
20967         This fixes a bug I inadvertently introduced to Gnulib when I
20968         merged glibc glob back into gnulib on 2007-10-16.  This fix is
20969         inspired by a patch proposed for glibc by Adhemerval Zanella in:
20970         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
20971         * doc/posix-functions/glob.texi: Update list of affected platforms.
20972         * lib/glob.c (__lstat64): New macro.
20973         (is_dir): New function.
20974         (glob, glob_in_dir): Match symlinks even if they are dangling.
20975         (link_stat, link_exists_p): Remove.  All uses removed.
20976         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
20977         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
20978         * modules/glob-tests (Depends-on): Add symlink.
20979         * tests/test-glob.c: Include errno.h, unistd.h.
20980         (BASE): New macro.
20981         (main): Test dangling symlinks, if symlinks are supported.
20983         glob, backupfile: inode 0 is a valid inode number
20984         * doc/posix-functions/readdir.texi (readdir):
20985         * doc/posix-headers/dirent.texi (dirent.h):
20986         Document more readdir portability issues.
20987         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
20988         (numbered_backup): Don’t treat inode 0 any differently from
20989         other inode values.
20990         * lib/glob.c (struct readdir_result): Remove skip_entry member.
20991         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
20992         All uses removed.
20993         * modules/glob (Depends-on): Remove d-ino.
20995         glob: simplify symlink detection
20996         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
20997         uint8_t, as C99 does not require uint8_t.
20998         (struct readdir_result): Use it.  Do not define skip_entry unless
20999         it is needed; this saves a byte on platforms lacking d_ino.
21000         (readdir_result_type, readdir_result_skip_entry):
21001         New functions, replacing ...
21002         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
21003         ... these functions, which were removed.  This makes the callers
21004         easier to read.  All callers changed.
21005         (D_INO_TO_RESULT): Now empty if there is no d_ino.
21007 2017-08-30  Pádraig Brady  <P@draigBrady.com>
21009         fts-tests: tag as a longrunning-test so not included by default
21010         * modules/fts-tests: This test takes about 20s on current systems,
21011         and uses about 285M of space on ext4.
21013 2017-08-30  Pádraig Brady  <P@draigBrady.com>
21015         renameat2: fix compilation on alpine linux
21016         * m4/renameat.m4: Check for <linux/fs.h> presence.
21017         * lib/renameat2.h: Only include <linux/fs.h> if present.
21018         Reported by Assaf Gordon on Alpine Linux.
21020 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21022         glob: try to port recent changes to MS-Windows
21023         Problem reported by Bruno Haible in:
21024         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
21025         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
21026         * lib/glob.in.h (__glob_pattern_p): ... to here.
21028 2017-08-24  Eric Blake  <eblake@redhat.com>
21030         warnings: fix compilation with old autoconf
21031         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
21032         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
21033         AC_DEFUN.
21034         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
21035         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
21037 2017-08-24  Bruno Haible  <bruno@clisp.org>
21039         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
21040         * modules/glob (Depends-on): Add c99.
21042 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21044         glob: fix typo that broke platforms lacking d_ino
21045         This typo also hurt performance on GNU/Linux and similar hosts.
21046         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
21047         in previous change.
21049 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21051         glob: merge from glibc with Zanella glob changes
21052         Merge glob from glibc, with changes for glob proposed
21053         by Adhemerval Zanella in the thread starting here:
21054         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
21055         plus some fixes for this merge.
21056         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
21057         New files, ported from glibc.
21058         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
21059         with __restrict.
21060         (__size_t): Remove.  All uses replaced by size_t.
21061         (size_t): Define by defining __need_size_t and including <stddef.h>.
21062         This should work even in non-glibc platforms, where any name
21063         pollution is OK.
21064         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
21065         (struct stat64): Don’t worry about __GLOB_GNULIB.
21066         (glob, globfree, glob_pattern_p): Remove macros for
21067         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
21068         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
21069         but set errno.
21070         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
21071         removed since the glibc behavior works on null pointers.
21072         Do not include stdio.h; old SunOS is irrelevant now.
21073         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
21074         Include glob_internal.h.
21075         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
21076         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
21077         worked only coincidentally.
21078         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
21079         Remove macros; now done in glob.in.h.
21080         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
21081         (glob): Properly initialize glob structure with
21082         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
21083         Remove old code using SHELL since Bash no longer
21084         uses this.
21085         (glob, prefix_array): Separate MS code better.
21086         (glob, glob_in_dir): Use C99 decls before statements when glibc
21087         does.
21088         (glob_in_dir): Remove old Amiga and VMS code.
21089         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
21090         separate files.
21091         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
21092         (__glibc_unlikely):
21093         Move here from glob.c.
21094         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
21095         (weak_alias): New macro.
21096         (__size_t): Remove.  All uses replaced by size_t.
21097         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
21098         * modules/glob (Files): Add +lib/glob_internal.h,
21099         lib/glob_pattern_p.c, lib/globfree.c.
21100         (Depends-on): Remove snippet/arg-nonnull.
21102 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
21104         glob: port to clang's Undefined Sanitizer
21105         Problem reported by Tim Rühsen in:
21106         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
21107         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
21108         (glob_in_dir): Do not rely on undefined behavior in accessing
21109         struct members beyond their bounds.  Use a flexible array member
21110         instead.
21112 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
21114         vc-list-files: port to Solaris 10
21115         * build-aux/vc-list-files: Don't assume test -e works.
21117 2017-08-21  Karl Berry  <karl@freefriends.org>
21119         * doc/posix-functions/srandom.texi (srandom): typo }.
21121 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
21123         git-version-gen: port to Solaris 10
21124         Problem reported by Dagobert Michelsen in:
21125         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
21126         * build-aux/git-version-gen (v_from_git):
21127         Use expr instead of shell substitution.
21129 2017-08-19  Bruno Haible  <bruno@clisp.org>
21131         host-cpu-c-abi: Improve detection of MIPS ABI.
21132         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
21133         _MIPS_SIM.
21135 2017-08-17  Bruno Haible  <bruno@clisp.org>
21137         hypot tests: Fix test failure on FreeBSD 11.0/x86.
21138         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
21140 2017-08-17  Bruno Haible  <bruno@clisp.org>
21142         float: Fix LDBL_MIN value on FreeBSD/x86.
21143         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
21145 2017-08-17  Bruno Haible  <bruno@clisp.org>
21147         random: Fix test compilation failure on Cygwin 1.5.25.
21148         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
21149         HAVE_DECL_SETSTATE.
21150         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
21151         declared.
21152         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
21153         HAVE_DECL_SETSTATE.
21154         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
21155         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
21156         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
21157         * doc/posix-functions/random.texi: Likewise.
21158         * doc/posix-functions/setstate.texi: Likewise.
21159         * doc/posix-functions/srandom.texi: Likewise.
21161 2017-08-16  Bruno Haible  <bruno@clisp.org>
21163         stdnoreturn: Fix test compilation failure on Cygwin.
21164         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
21165         <stdnoreturn.h> replacement.
21166         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
21167         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
21169 2017-08-16  Bruno Haible  <bruno@clisp.org>
21171         thread: Fix conflict with pthread_sigmask module.
21172         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
21173         it's defined as a macro.
21174         * modules/thread (Depends-on): Add pthread_sigmask.
21176 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
21178         rename: port better to NetBSD
21179         * doc/posix-functions/rename.texi (rename): NetBSD 7
21180         does not have the link-count bug.
21181         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
21182         broken merely because rename ("a", "b") removes "a" when the two
21183         names are hard links to the same file.
21185 2017-08-16  Bruno Haible  <bruno@clisp.org>
21187         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
21188         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
21189         the target file names with '$(srcdir)/'.
21190         * modules/unicase/locale-language (Makefile.am): Likewise.
21191         * modules/unicase/special-casing (Makefile.am): Likewise.
21192         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
21193         * modules/unictype/category-byname (Makefile.am): Likewise.
21194         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
21195         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
21196         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
21197         * modules/unictype/property-byname (Makefile.am): Likewise.
21198         * modules/unictype/scripts (Makefile.am): Likewise.
21199         * modules/uninorm/composition (Makefile.am): Likewise.
21201 2017-08-16  Bruno Haible  <bruno@clisp.org>
21203         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
21204         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
21205         value for OpenBSD.
21207 2017-08-16  Bruno Haible  <bruno@clisp.org>
21209         rename, renameat: Update doc regarding NetBSD.
21210         * doc/posix-functions/rename.texi: Clarify that when using
21211         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
21212         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
21213         version.
21215 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
21217         renameat2: port better to macOS
21218         * lib/renameat2.c (renameat2): Use renameatx_np if available.
21220         futimens: don’t assume struct timespec layout
21221         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
21222         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
21223         * tests/test-fdutimensat.c (main):
21224         * tests/test-futimens.h (test_futimens):
21225         * tests/test-lutimens.h (test_lutimens):
21226         * tests/test-utimens.h (test_utimens):
21227         * tests/test-utimensat.c (main):
21228         Don’t assume that struct timespec is a two-member structure in
21229         tv_sec, tv_nsec order.  Although this is true on all platforms we
21230         know about, POSIX does not guarantee it.
21232         rename: document+test NetBSD rename
21233         Test failure reported by Bruno Haible in:
21234         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
21235         This is an area where NetBSD is better-behaved than POSIX,
21236         so allow the NetBSD behavior in tests.
21237         * doc/posix-functions/rename.texi:
21238         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
21239         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
21241 2017-08-15  Bruno Haible  <bruno@clisp.org>
21243         renameat: Ensure declaration in <stdio.h> on NetBSD.
21244         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
21245         * doc/posix-functions/renameat.texi: Mention this problem.
21247 2017-08-15  Bruno Haible  <bruno@clisp.org>
21249         duplocale: Work around NetBSD 7.0 bug.
21250         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
21251         * lib/duplocale.c: Add comment about NetBSD problem.
21252         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
21254 2017-08-15  Bruno Haible  <bruno@clisp.org>
21256         duplocale tests: Verify use with *_l functions.
21257         * modules/duplocale-tests (configure.ac): Test for uselocale and
21258         some *_l functions.
21259         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
21260         from main.
21261         (get_locale_dependent_values_from, test_with_locale_parameter): New
21262         functions.
21263         (main): Test both test_with_uselocale and test_with_locale_parameter.
21265 2017-08-15  Bruno Haible  <bruno@clisp.org>
21267         extensions: Enable NetBSD specific extensions.
21268         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
21270 2017-08-14  Bruno Haible  <bruno@clisp.org>
21272         open, openat: Update doc about O_CLOEXEC.
21273         * doc/posix-functions/open.texi: More concrete list of platforms.
21274         * doc/posix-functions/openat.texi: Likewise.
21276 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
21278         open: support O_CLOEXEC
21279         * NEWS, doc/posix-functions/open.texi:
21280         * doc/posix-functions/openat.texi: Document this.
21281         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
21282         (GNULIB_defined_O_CLOEXEC): New symbol.
21283         * lib/open.c: Include cloexec.h.
21284         (open): Support O_CLOEXEC.
21285         * lib/openat.c: Include cloexec.h.
21286         (rpl_openat): Support O_CLOEXEC.
21287         * lib/popen-safer.c: Do not include cloexec.h.
21288         (open_noinherit): Remove.
21289         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
21290         * lib/save-cwd.c: Do not include cloexec.h.
21291         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
21292         * m4/open-cloexec.m4: New file.
21293         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
21294         Replace 'open' if O_CLOEXEC is not present.
21295         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
21296         Replace 'openat' if O_CLOEXEC is not present.
21297         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
21298         * modules/open (Files): Add m4/open-cloexec.m4.
21299         (Depends-on): Depend on cloexec if replacing 'open'.
21300         * modules/openat (Files): Add m4/open-cloexec.m4.
21301         (Depends-on): Depend on cloexec if replacing openat.
21302         * modules/popen-safer (Depends-on): Remove cloexec.
21303         * modules/save-cwd (Depends-on): Remove cloexec, and add
21304         fd-safer-flag and 'open'.
21306 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
21308         reallocarray: minor fixes
21309         * doc/glibc-functions/reallocarray.texi: Update version numbers.
21310         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
21311         * modules/reallocarray (License): Change from GPL to LGPL.
21312         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
21313         Indent properly and don't use tabs.
21315 2017-08-13  Darshit Shah  <darnir@gnu.org>
21317         reallocarray: New module
21318         reallocarray is a new function in glibc 2.26 to safely allocate an array
21319         of memory locations with integer overflow protection.
21320         * MODULES.html.sh: Add reallocarray.
21321         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
21322         * lib/reallocarray.c: New file to implement module reallocarray.
21323         * lib/stdlib.in.h: Add function declarations for reallocarray.
21324         * m4/reallocarray.m4: New file.
21325         * m4/stdlib_h.m4: Declare reallocarray.
21326         * modules/reallocarray: New file.
21327         * modules/reallocarray-test: New file.
21328         * modules/stdlib: Coerce stdlib.h to export reallocarray.
21329         * tests/test-reallocarray.c: New test.
21331 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
21333         dirent-safer: fix cloexec race
21334         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
21335         (opendir_safer): Use F_DUPFD_CLOEXEC.
21336         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
21337         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
21338         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
21339         instead of dup_safer.
21341         fts: fix cloexec races
21342         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
21343         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
21344         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
21345         (fd_ring_check): Set cloexec flag on new file descriptors.
21346         (fts_build, fd_ring_check): While we’re at it, make sure the
21347         resulting file descriptor is not 0, 1, or 2, since that is easy.
21349 2017-08-11  Bruno Haible  <bruno@clisp.org>
21351         fts tests: Fix link error.
21352         Reported by Tom G. Christensen in
21353         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
21354         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
21356 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21358         fts: port recent changes to CentOS 6
21359         Problem reported by Tom G. Christensen in:
21360         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
21361         * lib/fts.c (fsword): New type.
21362         (struct dev_type, filesystem_type): Use it.
21363         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
21364         Also, check for f_type only if fstatfs and sys/vfs.h work.
21366 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
21368         tempname: do not depend on secure_getenv
21369         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
21370         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
21371         * modules/tempname (Depends-on): Remove secure_getenv.
21373 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
21375         extensions: add _OPENBSD_SOURCE
21376         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
21378 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
21379             Bruno Haible  <bruno@clisp.org>
21381         manywarnings: Add support for C++.
21382         * build-aux/g++-warning.spec: New file.
21383         * m4/manywarnings-c++.m4: New file.
21384         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
21385         redirects to manywarnings-c++.m4.
21386         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
21388 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
21390         git-version-gen: another fix for tags with "-"
21391         * build-aux/git-version-gen: Improve fix for tags containing "-".
21392         Suggested by Markus Armbruster in:
21393         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
21395 2017-08-06  Bruno Haible  <bruno@clisp.org>
21397         warnings, manywarnings: Add support for multiple languages, not just C.
21398         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
21399         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
21400         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
21401         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
21402         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
21403         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
21404         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
21405         of the current language. If C++ is the current language, modify
21406         WARN_CXXFLAGS instead of WARN_CFLAGS.
21407         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
21408         gl_MANYWARN_ALL_GCC.
21409         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
21411 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
21413         git-version-gen: Fix for tags containing '-'
21415         Really old versions of git-describe (before v1.5.0, Feb 2007)
21416         don't have the number of commits in their long format output,
21417         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
21418         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
21419         recognizes both patterns, and normalizes the old format to the new one.
21421         Unfortunately, this normalization code gets confused when the tag
21422         contains '-'.  Reproducer:
21424             $ git-tag -m test v0.2-rc1
21425             $ build-aux/git-version-gen .tarball-version; echo
21426             build-aux/git-version-gen: WARNING: git rev-list failed
21427             UNKNOWN
21429         We take exact tag "v0.2-rc1" for the old format, extract the presumed
21430         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
21431         commits since tha tag.  Fails, because tag "v0.2" does not exist.
21433         * git-version-gen: We could perhaps drop support for versions from
21434         more than a decade ago.  But tightening the pattern match is easy
21435         enough, so do that.  Still breaks when you use version tags ending in
21436         something matching -g????, but you arguably get what you deserve then.
21438 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
21440         valgrind-tests: use ls, and cache
21441         * m4/valgrind-tests.m4: Test ls, not bash.
21442         Problem reported by Reuben Thomas.
21443         Also, cache the result so that it can be overridden.
21445 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
21447         manywarnings: port to 64-bit GCC builds of Emacs
21448         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
21449         object size rather than hardwiring 2147483647.  This is needed to
21450         build GNU Emacs, which has one conditional (and used
21451         only-in-theory) call to malloc with a literal greater than
21452         2147483647.
21454 2017-08-04  Bruno Haible  <bruno@clisp.org>
21456         Relax the license of some modules with no runtime code.
21457         * modules/std-gnu11 (License): Set to 'unlimited'.
21458         * modules/c99 (License): Likewise.
21459         Reported by Reuben Thomas <rrt@sc3d.org>.
21460         * modules/d-ino (License): Set to 'LGPL'.
21461         * modules/host-os (License): Likewise.
21462         * modules/longlong (License): Likewise.
21464 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
21466         renameat2: port to RHEL 7 + NFS
21467         * lib/renameat2.c (renameat2) [SYS_renameat2]:
21468         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
21469         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
21471 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
21473         renameat2: port to non-renameat platforms
21474         Problem reported for MSVC-2015 by Gisle Vanem in:
21475         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
21476         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
21477         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
21479 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
21481         manywarnings: port to 32-bit GCC bug
21482         Problem reported by Pino Toscano in:
21483         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
21484         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
21485         not 2**63 - 1, to work around the following GCC bug:
21486         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
21488 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
21490         backupfile: new function to validate backup suffix
21491         * lib/backupfile.c (set_simple_backup_suffix): New function.
21492         (backupfile_internal): Use it.
21494         canonicalize: fix EOVERFLOW commentary
21495         Problem reported by Bruno Haible in:
21496         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
21497         * lib/canonicalize.c (canonicalize_filename_mode):
21498         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
21500         Don't interpret EOVERFLOW to mean nonexistence
21501         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
21502         may be EOVERFLOW; this is likely more useful than reporting the
21503         stat errno.
21504         * lib/glob.c (link_stat): Rename from link_exists2_p and
21505         return -1/0 instead of 0/1.  Caller changed.
21506         * lib/glob.c (link_exists_p):
21507         * lib/renameat2.c (rename_noreplace, renameat2):
21508         * lib/tempname.c (try_nocreate):
21509         If errno == EOVERFLOW then the directory entry exists, so do not
21510         act as if it does not exist.
21512         backup-rename: new module
21513         It is like backupfile, except it avoids some race conditions,
21514         and it does not output to stderr or exit.
21515         * MODULES.html.sh: Add backup-rename.
21516         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
21517         * modules/backup-rename: New files.
21518         * lib/backupfile.c: Turn this into an internals file, which
21519         contains code common to backupfile and backup_rename.  Include
21520         backupfile-internal.h instead of backupfile.h.  Do not include
21521         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
21522         renameat2.h and fcntl.h.
21523         (BACKUP_NOMEM): New constant.
21524         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
21525         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
21526         (backupfile_internal): Rename from find_backup_file_name.
21527         Support new arg RENAME.
21528         (backup_args, backup_types, get_version, xget_version):
21529         Move to lib/backup-find.c.
21530         * lib/backupfile.h (backup_file_rename): New decl.
21531         * modules/backupfile (Files): Add lib/backup-internal.h,
21532         lib/backup-find.c.
21533         (Depends-on): Add dirfd, fcntl, renameat2.
21534         (lib_SOURCES): Add backup-find.c.
21536         renameat2: port better to older Solaris
21537         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
21538         Add goto to use a label, to silence picky compilers.
21540         fts-tests: port to gcc -Wwrite-strings
21541         * tests/test-fts.c (base, base_d): New static vars.
21542         (argv, remove_tree, main): Use them.
21544 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
21546         relocatable-lib{,-lgpl}: improve documentation
21547         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
21548         Various other updates.
21550 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
21551             Bruno Haible  <bruno@clisp.org>
21553         relocatable-lib{,-lgpl}: add Valgrind suppressions
21554         * lib/relocatable.valgrind: New file.
21555         * modules/relocatable-lib (Files): Add relocatable.valgrind.
21556         * modules/relocatable-lib-lgpl: Likewise.
21558 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
21560         relocatable: Make the license on the sources the GPL.
21561         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
21562         LGPL, which was a special case so that the relocatable source files
21563         could be used without gnulib-tool, to GPL. They can still be used under
21564         the LGPL, using the --lgpl option to gnulib-tool.
21566 2017-07-30  Bruno Haible  <bruno@clisp.org>
21568         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
21569         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
21570         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
21571         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
21572         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
21574 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
21576         faccessat: document AT_SYMLINK_NOFOLLOW issue
21577         * doc/posix-functions/faccessat.texi: Modernize platform list.
21578         Document AT_SYMLINK_NOFOLLOW limitation.
21580         renameat2: port to Solaris 10
21581         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
21582         with AT_SYMLINK_NOFOLLOW (which is not portable).
21583         (renameat): Undef before using, to avoid endless recursion when
21584         the replacement renameat calls renameat2 which calls the
21585         replacement renameat.
21586         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
21587         * modules/renameat2 (Depends-on): Remove faccessat.
21588         * modules/renameat-tests (test_renameat_LDADD):
21589         * modules/renameat2-tests (test_renameat2_LDADD):
21590         Remove $(LIB_EACCESS).
21592         renameat2: new module
21593         Although the Linux syscall renameat2 is not in glibc (yet?), it is
21594         useful to have access to its RENAME_NOREPLACE flag.
21595         * MODULES.html.sh (func_all_modules): Add renameat2.
21596         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
21597         * modules/renameat2-tests, tests/test-renameat2.c: New files.
21598         * lib/renameat.c (renameat): Move most of the implementation
21599         to renameat2, and just call renameat2.
21600         * modules/renameat (Files): Remove lib/at-func2.c.
21601         (Depends-on): Depend only on renameat2.
21602         (Include): Remove <fcntl.h>.
21603         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
21604         since renameat (via renameat2) might use faccessat.
21606 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
21608         vc-list-files: Adjust the script to support git worktrees
21609         * build-aux/vc-list-files: Require existence, not directory.
21611 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
21613         doc: bring MODULES.html.sh up to date
21614         Somehow a few months ago we stopped updating MODULES.html.sh.
21615         I don’t recall explicitly deciding this, so I updated it now.
21616         Alternatively I suppose we could remove it.
21617         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
21618         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
21619         truncate, utime, utime-h, windows-stat-inodes,
21620         windows-stat-override, windows-stat-timespec, year2038.  Sort.
21622 2017-07-26  Jim Meyering  <meyering@fb.com>
21624         fprintftime: fix build-break caused by recent renaming
21625         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
21626         "strftime.c".
21627         * modules/fprintftime: Depend directly on nstrftime.
21629 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
21631         regex: work with GCC7's -Werror=implicit-fallthrough=
21632         * lib/regex_internal.h (FALLTHROUGH): New macro.
21633         * lib/regcomp.c (peek_token_bracket, parse_expression):
21634         * lib/regexec.c (check_node_accept): Use it.
21636 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
21638         fts: simplify fts_build
21639         * lib/fts.c (fts_build): Simplify, and be lazier about
21640         calling leaf_optimization.
21642         fts: three levels of leaf optimization
21643         * lib/fts.c (enum leaf_optimization): New type with three values.
21644         (S_MAGIC_AFS): New macro.  Sort them.
21645         (leaf_optimization): Rename from leaf_optimization_applies, and
21646         return enum leaf_optimization instead of bool.  All uses changed.
21647         Add cases for unknown type and for AFS.
21648         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
21650         fts: cache dirent_inode_sort_may_be_useful too
21651         * lib/fts.c (struct dev_type): New struct.
21652         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
21653         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
21654         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
21655         Now takes FTSENT const *, not int.  All uses changed.  Use
21656         filesystem_type to cache.
21657         (link_count_optimize_ok): Remove.  Caller changed to use
21658         leaf_optimization_applies, which now uses shared cache.
21660         fts: introduce MIN_DIR_NLINK
21661         * lib/fts.c (MIN_DIR_NLINK): New constant.
21662         Use it instead of 2, whenever we are talking about link counts.
21664         fts: nlink_t signedness fixups
21665         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
21666         so that root need not be a special case later.
21667         (fts_read): Remove now-redundant test for fts_level.
21668         Do not assume that nlink_t is signed.
21669         (fts_build): Remove useless decrement of nlinks.
21670         (fts_stat): Avoid unlikely signed integer overflow later, if
21671         nlink_t is signed.
21673         fts-tests: new module
21674         * modules/fts-tests, tests/test-fts.c: New files.
21676 2017-07-23  Bruno Haible  <bruno@clisp.org>
21678         Rename module 'strftime' to 'nstrftime'.
21679         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
21680         * lib/nstrftime.c: Renamed from lib/strftime.c.
21681         * modules/nstrftime: Renamed from modules/strftime.
21682         (Files, Makefile.am): Update.
21683         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
21684         Fix comment.
21685         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
21686         (Files, Makefile.am): Update.
21687         * modules/strftime: New file, an obsolete indirection.
21688         * doc/posix-functions/strftime.texi: Update reference.
21689         * config/srclist.txt: Update info.
21690         * NEWS: Mention the change.
21692 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
21694         malloca: Silence a warning from clang's memory sanitizer.
21695         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
21696         (freea): Use it.
21698 2017-07-18  Bruno Haible  <bruno@clisp.org>
21700         host-cpu-c-abi: Fix detection of MIPS ABI.
21701         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
21702         ABI, not the CPU instruction set.
21704 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
21706         explicit_bzero: new module
21707         The explicit_bzero function has been added to glibc.
21708         This module is intended to supports its use in GNU programs.
21709         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
21710         * m4/explicit_bzero.m4, modules/explicit_bzero:
21711         New files.
21712         * doc/gnulib.texi (Glibc string.h): Link to new doc.
21713         * lib/string.in.h (explicit_bzero): Declare.
21714         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
21715         * modules/string (string.h): Substitute its vars.
21717 2017-07-16  Bruno Haible  <bruno@clisp.org>
21719         threadlib: Support static linking.
21720         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
21721         set gl_cv_have_weak to 'no'.
21723 2017-07-16  Bruno Haible  <bruno@clisp.org>
21725         unicase/locale-language: Fix link dependencies.
21726         * modules/unicase/locale-language (Link): New section.
21727         * modules/unicase/locale-language-tests (Makefile.am): Link
21728         test-locale-language program with $(LIBTHREAD).
21730 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
21732         sys_socket: Add support for OpenVMS.
21733         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
21734         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
21736 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
21738         sys_resource: Add support for OpenVMS.
21739         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
21740         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
21742 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
21743             Bruno Haible  <bruno@clisp.org>
21745         math: Add support for OpenVMS.
21746         * lib/math.in.h [__VMS]: Include <fp.h>.
21747         * doc/posix-headers/math.texi: Mention OpenVMS issues.
21749 2017-07-15  Bruno Haible  <bruno@clisp.org>
21751         getdtablesize: Add minimal support for OpenVMS.
21752         Reported by John E. Malmberg <wb8tyw@qsl.net>.
21753         * modules/getdtablesize (Description): Fix.
21754         * lib/getdtablesize.c: Fix comment.
21755         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
21756         getdtablesize() function, even though the test fails.
21757         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
21758         limitation on OpenVMS.
21760 2017-07-13  Bruno Haible  <bruno@clisp.org>
21762         Revisit cross-compilation guesses.
21763         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
21765 2017-07-13  Bruno Haible  <bruno@clisp.org>
21767         Improve cross-compilation guesses for native Windows.
21768         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
21769         Windows.
21770         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
21771         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
21772         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
21773         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
21774         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
21775         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
21776         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
21777         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
21778         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
21779         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
21780         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21781         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
21782         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
21783         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
21784         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
21785         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
21786         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
21787         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
21788         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
21789         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
21790         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
21791         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
21792         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
21793         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
21794         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
21795         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
21796         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
21797         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
21798         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21799         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
21800         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21801         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
21802         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
21803         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
21804         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
21805         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
21806         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
21807         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
21808         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
21809         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21810         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21811         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21812         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
21813         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
21814         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
21815         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
21816         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
21817         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
21818         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
21819         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
21820         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
21821         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
21822         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
21823         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
21824         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
21825         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
21826         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
21827         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
21828         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
21829         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
21830         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
21831         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
21832         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
21833         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
21834         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
21835         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21836         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
21837         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
21838         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
21839         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
21840         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
21841         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
21842         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
21843         * m4/regex.m4 (gl_REGEX): Likewise.
21844         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
21845         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
21846         gl_FUNC_REMAINDERF_WORKS): Likewise.
21847         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
21848         gl_FUNC_REMAINDERL_WORKS): Likewise.
21849         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
21850         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21851         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
21852         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
21853         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
21854         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
21855         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
21856         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
21857         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
21858         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21859         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
21860         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
21861         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
21862         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
21863         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
21864         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
21865         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21866         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21867         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
21868         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
21869         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
21870         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
21871         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
21872         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
21873         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
21874         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21875         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
21876         Likewise.
21877         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21878         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
21879         Windows. Enable also on Autoconf 2.70.
21880         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21881         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21882         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
21883         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
21884         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
21885         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
21886         for native Windows.
21887         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
21888         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
21890 2017-07-13  Bruno Haible  <bruno@clisp.org>
21892         Improve cross-compilation guesses for native Windows.
21893         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
21894         Windows.
21895         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
21896         memchr.m4.
21897         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
21899 2017-07-13  Bruno Haible  <bruno@clisp.org>
21901         Improve cross-compilation guesses for native Windows.
21902         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
21903         native Windows.
21904         (gl_FUNC_FFLUSH): Update accordingly.
21905         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
21906         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
21908 2017-07-11  Bruno Haible  <bruno@clisp.org>
21910         More systematic m4 quoting and indentation.
21911         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
21912         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
21913         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
21914         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21915         * m4/host-os.m4 (gl_HOST_OS): Likewise.
21916         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
21917         gl_WINSIZE_IN_PTEM): Likewise.
21918         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
21919         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
21920         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
21921         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
21922         Correct indentation.
21923         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
21924         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
21925         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
21926         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21927         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
21928         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
21930 2017-07-10  Bruno Haible  <bruno@clisp.org>
21932         round, roundf: Avoid compiler warning in configure test.
21933         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
21934         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
21936 2017-07-10  Bruno Haible  <bruno@clisp.org>
21938         getlogin tests: Avoid #ifdefs when sharing code between modules.
21939         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
21940         * modules/getlogin-tests (Files): Likewise. Remove
21941         tests/test-getlogin_r.c.
21942         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
21943         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
21944         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
21945         getlogin().
21947 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
21949         getlogin: don’t assume one name per uid
21950         Problem reported by Wolfgang F. Muthmann (Bug#27640).
21951         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
21952         (ttyname): Remove test.
21953         * modules/getlogin_r-tests (ttyname): Remove test.
21954         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
21955         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
21956         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
21957         getlogin rather than getlogin_r.  This avoids code duplication.
21958         (main): Use isatty and fstat rather than ttyname and stat.
21959         Use getpwnam instead of getpwuid, to be portable to test platforms
21960         that have multiple login names for the same uid.
21962 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
21963             Bruno Haible  <bruno@clisp.org>
21965         glob: Fix more memory leaks.
21966         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
21967         returning.
21968         Reported by Tim Rühsen.
21970 2017-07-10  Bruno Haible  <bruno@clisp.org>
21972         Make sure $host and $host_os are defined when used.
21973         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
21974         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
21975         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
21976         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21977         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21978         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
21979         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
21980         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
21981         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
21982         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
21983         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
21984         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
21985         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
21986         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
21987         m4_ifdef block.
21989 2017-07-09  Bruno Haible  <bruno@clisp.org>
21991         *printf: Fix cross-compilation guess for Solaris.
21992         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
21993         2010-12-21.
21995 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
21996             Bruno Haible  <bruno@clisp.org>
21998         vasnprintf: port to macOS 10.13
21999         Problem reported by comex in:
22000         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
22001         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
22003 2017-07-06  Bruno Haible  <bruno@clisp.org>
22005         imaxdiv tests: Fix logic.
22006         * tests/test-imaxdiv.c (main): Use == instead of =.
22007         Reported by Coverity.
22009 2017-07-06  Bruno Haible  <bruno@clisp.org>
22011         uninorm/filter: Fix use-after-free bug.
22012         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
22013         sortbuf == filter->sortbuf invariant.
22014         Reported by Coverity.
22016 2017-07-06  Bruno Haible  <bruno@clisp.org>
22018         glob: Fix more memory leaks.
22019         * lib/glob.c (glob): Free dirname before returning.
22020         Reported by Coverity and Tim Rühsen.
22022 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
22024         parse-datetime: fix uninit var bug
22025         Reported by Bruno Haible in:
22026         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
22027         * lib/parse-datetime.y (parse_datetime2): Do not use
22028         uninitialized.
22030 2017-07-05  Bruno Haible  <bruno@clisp.org>
22032         doc: Update for MSVC 14.
22033         * doc/posix-headers/*.texi: Add info about MSVC 14.
22034         * doc/posix-functions/*.texi: Likewise.
22035         * doc/pastposix-functions/*.texi: Likewise.
22036         * doc/glibc-headers/*.texi: Likewise.
22037         * doc/glibc-functions/*.texi: Likewise.
22039 2017-07-05  Bruno Haible  <bruno@clisp.org>
22041         sched: Fix build failure on native Windows (regression from 2017-06-19).
22042         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
22044 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
22046         stdioext: Port to OpenVMS.
22047         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
22048         * lib/fpending.c (fpending): Remove non-working VMS specific code.
22049         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
22050         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
22051         * lib/fpurge.c (fpurge): Likewise.
22052         * lib/freadable.c (freadable): Likewise.
22053         * lib/freadahead.c (freadahead): Likewise.
22054         * lib/freading.c (freading): Likewise.
22055         * lib/freadptr.c (freadptr): Likewise.
22056         * lib/freadseek.c (freadseek): Likewise.
22057         * lib/fseeko.c (fseeko): Likewise.
22058         * lib/fseterr.c (fseterr): Likewise.
22059         * lib/fwritable.c (fwriteable): Likewise.
22060         * lib/fwriting.c (fwriting): Likewise.
22062 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
22064         glob: Declare variables at the very start of their scope.
22065         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
22066         its separate scope, so the functions will compile on Haiku.
22068 2017-07-01  Bruno Haible  <bruno@clisp.org>
22070         logbl: Work around a glibc bug on PowerPC64LE.
22071         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
22072         numbers.
22073         * doc/posix-functions/logbl.texi: Update.
22075 2017-06-29  Bruno Haible  <bruno@clisp.org>
22077         stat, fstat: Compile stat-w32.c only on platforms that need it.
22078         Suggested by Paul Eggert.
22079         * modules/stat (configure.ac): Request stat-w32.o only on native
22080         Windows.
22081         * modules/fstat (configure.ac): Likewise.
22083 2017-06-25  Bruno Haible  <bruno@clisp.org>
22085         stat: Improve last change.
22086         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
22088 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
22090         stat: port to xlc 12.01
22091         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
22092         12.01 complains "Compilation unit is empty."
22094 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
22096         xalloc-oversized: port to icc
22097         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
22098         __builtin_mul_overflow if ICC is defined, as this results in
22099         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
22100         20170213.
22102 2017-06-19  Bruno Haible  <bruno@clisp.org>
22104         classpath: Avoid including config.h twice, as it produces warnings.
22105         Reported by John E. Malmberg <wb8tyw@gmail.com>.
22106         * lib/classpath.h: Conditionalize the include of config.h.
22108 2017-06-19  Bruno Haible  <bruno@clisp.org>
22109             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
22111         sched: Fix compilation failure on OpenVMS.
22112         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
22113         test whether <pthread.h> exists and defines struct sched_param.
22114         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
22116 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
22118         diffseq: port to GCC 7 with --enable-gcc-warnings
22119         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
22120         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
22121         not complain about big_snake being defined but not used.
22123 2017-06-15  Bruno Haible  <bruno@clisp.org>
22125         gettext-h: Update theoretical condition for use of variable size arrays.
22126         Reported by Paul Eggert.
22127         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
22128         to include the theoretical condition for availability of variable size
22129         arrays, if we could trust the value of __STDC_VERSION__.
22131 2017-06-12  Bruno Haible  <bruno@clisp.org>
22133         Relicense some modules under LGPLv2+.
22134         Daiki Ueno's approval is in
22135         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
22136         * modules/uniwidth/base (License): Change to LGPLv2+.
22137         * modules/uniwidth/width (License): Likewise.
22139 2017-06-11  Bruno Haible  <bruno@clisp.org>
22141         localename: Fix test failure on DragonFly BSD.
22142         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
22143         like FreeBSD.
22145 2017-06-11  Bruno Haible  <bruno@clisp.org>
22147         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
22148         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
22149         * lib/float.in.h: Likewise.
22150         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
22152 2017-06-11  Bruno Haible  <bruno@clisp.org>
22154         gnulib-tool: Clean up after autotools.
22155         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
22156         useless directory left over by the Autotools.
22158 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
22160         getopt-posix: port to glibc 2.25.90
22161         Problem reported by Daniel P. Berrange in:
22162         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
22163         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
22164         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
22165         #undef if __GETOPT_PREFIX is defined.
22167 2017-06-11  Bruno Haible  <bruno@clisp.org>
22169         strtod-obsolete: Fix license.
22170         * modules/strtod-obsolete (License): Change to LGPL.
22172 2017-06-10  Jim Meyering  <meyering@fb.com>
22174         maint: update to work with GCC7's -Werror=implicit-fallthrough=
22175         * lib/savewd.c (FALLTHROUGH): Define.
22176         (savewd_save, savewd_restore): Use this, rather than a comment,
22177         whenever one switch case falls through into the next.
22179 2017-06-08  Bruno Haible  <bruno@clisp.org>
22181         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
22182         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
22183         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
22184         case.
22186 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
22188         doc: remove robots, add prereqs
22189         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
22190         builds.  Simon's robot site does not seem to be up, so remove
22191         mentions of it for now.
22193 2017-06-08  Bruno Haible  <bruno@clisp.org>
22195         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
22196         * gnulib-tool (func_symlink_target): New function, extracted from
22197         func_symlink.
22198         (func_symlink, func_symlink_if_changed): Use it.
22200 2017-06-08  Bruno Haible  <bruno@clisp.org>
22202         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
22203         * gnulib-tool (func_ln_s): Determine cp_src correctly.
22205 2017-06-07  Bruno Haible  <bruno@clisp.org>
22207         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
22208         Reported by John E. Malmberg <wb8tyw@gmail.com> in
22209         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
22210         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
22211         override, pass 2 arguments to getcwd, not 3.
22213 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
22215         same-inode: port better to VMS 8.2 and later
22216         Problem reported by John E. Malmberg in:
22217         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
22218         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
22219         Use the usual POSIX definition.
22220         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
22222 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
22224         error: fix POSIX violation for va_end
22225         Problem reported by Bruno Haible in:
22226         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
22227         * lib/error.c (error_tail): Do not call va_end here.
22228         (error, error_at_line): Call it here instead.
22230 2017-05-28  Bruno Haible  <bruno@clisp.org>
22232         c-strtod: Make it usable in C++ mode.
22233         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
22235 2017-05-25  Jim Meyering  <meyering@fb.com>
22237         quotearg: fix compilation failure due to FALLTHROUGH misuse
22238         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
22239         macro back to /* fall through */ comment.  The macro can apply only
22240         to a following case statement.  Reported by Assaf Gordon.
22242 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
22244         intprops: port to recent icc
22245         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
22246         but does not support __builtin_add_overflow etc.
22247         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
22248         Define to 0.
22250 2017-05-23  Karl Berry  <karl@freefriends.org>
22252         * config/srclist.txt (iconv.m4): sync broken, comment out
22253         until (hopefully) the next gettext release.
22255 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
22257         Remove repeated words in comments.
22259 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
22261         fallthrough: reinstate a FALLTHROUGH instance in quotearg
22262         quotearg.c: Reinstate this instance which is significant
22263         when the if branch is not taken.
22265 2017-05-21  Bruno Haible  <bruno@clisp.org>
22267         gnulib-tool: Add options to create hard links.
22268         * gnulib-tool (func_usage): Document options --hardlink,
22269         --local-hardlink, --more-hardlinks.
22270         (func_symlink): Renamed from func_ln.
22271         (func_symlink_if_changed): Renamed from func_ln_if_changed.
22272         (func_hardlink): New function.
22273         (copymode, lcopymode): New variables.
22274         (symbolic, lsymbolic): Remove variables.
22275         (Options): Implement options --hardlink, --local-hardlink,
22276         --more-hardlinks.
22277         (func_should_link): Renamed from func_should_symlink. Set copyaction.
22278         (func_add_file, func_update_file): Update invocation of
22279         func_should_link. Invoke func_hardlink when appropriate.
22280         (func_import): Update comments.
22281         (func_create_testdir): Update invocation of func_should_link. Invoke
22282         func_hardlink when appropriate.
22283         Finally, invoke 'git update-index --refresh' to mitigate the effects of
22284         the hard links on git.
22286 2017-05-20  Bruno Haible  <bruno@clisp.org>
22288         argp: Simplify bit manipulation.
22289         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
22290         on a signed integer type.
22292 2017-05-20  Bruno Haible  <bruno@clisp.org>
22294         Avoid wrong configure results with gcc -fsanitize=address.
22295         This completes the work done on 2016-02-06 on this topic.
22296         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
22297         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
22298         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22299         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22300         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
22301         returning.
22302         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
22303         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
22304         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22305         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
22306         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
22307         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
22308         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
22309         free allocated memory before returning.
22310         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22311         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
22312         objects before returning.
22313         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
22314         returning.
22316 2017-05-20  Bruno Haible  <bruno@clisp.org>
22318         gnulib-tool: Don't create hard links between gnulib and its testdirs.
22319         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
22321 2017-05-20  Bruno Haible  <bruno@clisp.org>
22323         argp, tsearch tests: Fix file list.
22324         * modules/argp-tests (Files): Add tests/macros.h.
22325         * modules/tsearch-tests (Files): Likewise.
22327 2017-05-20  Bruno Haible  <bruno@clisp.org>
22329         getopt-posix tests: Remove redundant include.
22330         * tests/test-getopt.h: Don't include "macros.h". It's already included
22331         by tests/test-getopt-main.h.
22333 2017-05-19  Jim Meyering  <meyering@fb.com>
22335         dfa: two small simplifications
22336         * lib/dfa.c (build_state): Avoid repeating longer expressions.
22338 2017-05-18  Jim Meyering  <meyering@fb.com>
22340         fallthrough: update for GCC 7/8
22341         * lib/quotearg.c (FALLTHROUGH): New macro.
22342         Use it whenever one switch case falls through into the next,
22343         replacing "/* Fall through */" comments.  This exposed one
22344         instance of an unwarranted "fall through" comment: unwarranted
22345         because it preceded a "goto" label not a case statement.
22346         * lib/freopen-safer.c (freopen_safer): Likewise.
22347         * lib/fts.c (leaf_optimization_applies): Likewise.
22348         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
22349         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
22350         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
22351         tests/macros.h for the definition.
22352         * tests/test-argp.c (group1_parser): Likewise.
22353         * tests/test-getopt.h (getopt_loop): Likewise.
22355 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
22357         argp: fix shift bug
22358         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
22359         behavior on shift overflow, caught by gcc -fsanitize=undefined.
22361         argp: fix pointer-subtraction bug
22362         * lib/argp-help.c (hol_append): Don’t subtract pointers to
22363         different arrays, as this can run afoul of -fcheck-pointer-bounds.
22364         See the thread containing Bruno Haible’s report in:
22365         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
22367 2017-05-19  Bruno Haible  <bruno@clisp.org>
22369         printf-posix tests: Avoid test failure with "gcc --coverage".
22370         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
22371         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
22372         than 5000000.
22373         * tests/test-fprintf-posix2.c (main): Likewise.
22375 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
22377         closeout: don’t close stderr when sanitizing
22378         * NEWS: Document this.
22379         * lib/closeout.c (__has_feature): New macro, if not already defined.
22380         (SANITIZE_ADDRESS): New constant.
22381         (close_stdout): Don’t close stderr if sanitizing addresses.
22383 2017-05-19  Bruno Haible  <bruno@clisp.org>
22385         get-rusage-data tests: Avoid failure on Linux/glibc.
22386         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
22387         on glibc systems.
22389 2017-05-18  Bruno Haible  <bruno@clisp.org>
22391         localename: Include necessary header files on Cygwin.
22392         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
22393         where NL_LOCALE_NAME is defined.
22395 2017-05-18  Bruno Haible  <bruno@clisp.org>
22397         gettext: Update macros from gettext git.
22398         * m4/intldir.m4: Require Autoconf >= 2.60.
22399         * m4/progtest.m4: Fix typos in copyright notice.
22401 2017-05-18  Bruno Haible  <bruno@clisp.org>
22403         copy-file tests: Fix link error (regression from 2017-05-01).
22404         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22405         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
22406         $(LIB_CLOCK_GETTIME).
22408 2017-05-18  Bruno Haible  <bruno@clisp.org>
22410         unicase/special-casing: Fix incompatibility with gperf-3.0.4
22411         (regression from 2017-02-13).
22412         * lib/unicase/special-casing.in.h: Renamed from
22413         lib/unicase/special-casing.h.
22414         * modules/unicase/special-casing (Files): Add
22415         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
22416         (Makefile.am): Add rule for generating unicase/special-casing.h.
22417         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
22418         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
22419         not "special-casing.h".
22420         * lib/unicase/u*.c: Likewise.
22422 2017-05-17  Bruno Haible  <bruno@clisp.org>
22424         README: Don't ask people to read a TeXinfo file.
22425         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
22426         * README: Tell people how to read the HTML formatted manual.
22428 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
22430         parse-datetime: Fix memleak
22431         * lib/parse-datetime.y (parse_datetime2): Cleanup on
22432         localtime_rz() failure.
22434 2017-05-16  Bruno Haible  <bruno@clisp.org>
22436         javacomp: Fix handle leak.
22437         Found by Coverity.
22438         * lib/javacomp.c (get_classfile_version): Close fd before returning.
22440 2017-05-16  Bruno Haible  <bruno@clisp.org>
22442         relocate: Make it easier to reclaim allocated memory.
22443         * lib/relocatable.h (relocate2): New declaration/macro.
22444         * lib/relocatable.c (relocate2): New function.
22445         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
22446         relocate2 function.
22447         * lib/localcharset.c (relocate2): Define fallback.
22448         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
22449         allocated memory.
22450         * lib/javaversion.c (relocate2): Define fallback.
22451         (javaexec_version): Invoke relocate2 instead of relocate. Free the
22452         allocated memory.
22454 2017-05-16  Bruno Haible  <bruno@clisp.org>
22456         relocate: Simplify EMX specific code.
22457         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
22458         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
22460 2017-05-16  Bruno Haible  <bruno@clisp.org>
22462         sigpipe tests: Fix file list.
22463         * modules/sigpipe-tests (Files): Add tests/macros.h.
22465 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
22467         manywarnings: update for GCC 7
22468         * build-aux/gcc-warning.spec:
22469         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
22470         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
22471         requires a non-comment fallthrough attribute.  This is a bit
22472         cleaner than the comment versions.
22473         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
22474         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
22475         Use it whenever one switch case falls through into the next.
22476         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
22477         Use FALLTHROUGH macro.
22479 2017-05-15  Bruno Haible  <bruno@clisp.org>
22481         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
22482         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
22483         @ALLOCA@, not @LTALLOCA@.
22485 2017-05-15  Bruno Haible  <bruno@clisp.org>
22487         sys_select: Avoid "was expanded before it was required" warning.
22488         * modules/sys_select (configure.ac): Require, not invoke,
22489         gl_HEADER_SYS_SELECT.
22491 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
22493         gnulib-tool: improve GNU Make debugging
22494         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
22495         Report autoconf diagnostics when it fails, in the output makefile.
22497 2017-05-14  Bruno Haible  <bruno@clisp.org>
22499         stat-time tests: Improve comment.
22500         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
22502 2017-05-14  Bruno Haible  <bruno@clisp.org>
22504         same-inode: Adapt for windows-stat-inodes.
22505         * lib/same-inode.h: Include <sys/types.h>.
22506         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
22507         * modules/same-inode (Depends-on): Add sys_types.
22509 2017-05-14  Bruno Haible  <bruno@clisp.org>
22511         windows-stat-inodes: New module.
22512         * m4/windows-stat-inodes.m4: New file.
22513         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
22514         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
22515         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
22516         (_GL_WINDOWS_STAT_INODES): New macro.
22517         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
22518         (GetFileInformationByHandleExFunc): New variable.
22519         (initialize): Initialize it.
22520         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
22521         st_ino appropriately.
22522         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
22523         a fallback, because it does not provide st_dev and st_ino values.
22524         * modules/fstat (Depends-on): Add 'verify'.
22525         * modules/windows-stat-inodes: New file.
22526         * doc/windows-stat-inodes.texi: New file.
22527         * doc/gnulib.texi: Include it.
22528         * doc/posix-headers/sys_stat.texi: Mention the new module.
22530 2017-05-14  Bruno Haible  <bruno@clisp.org>
22532         stat-time tests: Workaround for native Windows.
22533         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
22534         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
22535         New variables.
22536         (initialize_filenames): New function.
22537         (main): Invoke it.
22538         (cleanup, prepare_test): Update.
22540 2017-05-14  Bruno Haible  <bruno@clisp.org>
22542         stat-time: Adapt for windows-stat-timespec.
22543         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
22544         entire st_ctim field.
22546 2017-05-13  Jim Meyering  <meyering@fb.com>
22548         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
22549         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
22550         file that uses the assume macro, claiming that verify.h is unused.
22552 2017-05-13  Bruno Haible  <bruno@clisp.org>
22554         Use symbolic values for _WIN32_WINNT.
22555         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
22556         * lib/sethostname.c (_WIN32_WINNT): Likewise.
22558 2017-05-13  Bruno Haible  <bruno@clisp.org>
22560         year2038: New module.
22561         * m4/year2038.m4: New file.
22562         * modules/year2038: New file.
22563         * doc/year2038.texi: New file.
22564         * doc/gnulib.texi: Include it.
22566 2017-05-13  Bruno Haible  <bruno@clisp.org>
22568         largefile: Simplify.
22569         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
22570         of _GL_WINDOWS_64_BIT_ST_SIZE.
22572 2017-05-13  Bruno Haible  <bruno@clisp.org>
22574         largefile: Improve and document.
22575         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
22576         the mingw headers already define 'stat' appropriately.
22577         * modules/largefile (Description): Clarify.
22578         * doc/largefile.texi: New file.
22579         * doc/gnulib.texi: Include it.
22580         * doc/posix-headers/sys_types.texi: Update.
22582 2017-05-13  Bruno Haible  <bruno@clisp.org>
22584         truncate: New module.
22585         * lib/unistd.in.h (truncate): New declaration.
22586         * lib/truncate.c: New file.
22587         * m4/truncate.m4: New file.
22588         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
22589         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
22590         REPLACE_TRUNCATE.
22591         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
22592         HAVE_TRUNCATE, REPLACE_TRUNCATE.
22593         * modules/truncate: New file.
22594         * tests/test-unistd-c++.cc (truncate): Test signature.
22595         * doc/posix-functions/truncate.texi: Mention the new module.
22597         * tests/test-truncate.c: New file.
22598         * modules/truncate-tests: New file.
22600 2017-05-13  Bruno Haible  <bruno@clisp.org>
22602         windows-stat-timespec: New module.
22603         * modules/windows-stat-timespec: New file.
22604         * m4/windows-stat-timespec.m4: New file.
22605         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
22606         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
22607         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
22608         fields st_atim, st_mtim, st_ctim.
22609         (st_atime, st_mtime, st_ctime): Define as macros.
22610         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
22611         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
22612         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
22613         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
22614         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
22615         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
22616         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
22617         FILETIME to 'struct timespec', not 'time_t'.
22618         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
22619         FILETIME to 'struct timespec', not 'time_t'.
22620         * lib/stat-time.h (STAT_TIMESPEC): Define also if
22621         _GL_WINDOWS_STAT_TIMESPEC.
22622         * doc/windows-stat-timespec.texi: New file.
22623         * doc/gnulib.texi: Include it.
22625 2017-05-13  Bruno Haible  <bruno@clisp.org>
22627         windows-stat-override: New module.
22628         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
22629         definition. Define GNULIB_defined_struct_stat.
22630         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
22631         link error if this symbol is used and the corresponding module is not
22632         in use.
22633         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
22634         GNULIB_OVERRIDES_STRUCT_STAT.
22635         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
22636         GNULIB_OVERRIDES_STRUCT_STAT.
22637         * modules/sys_stat (Makefile.am): Substitute
22638         GNULIB_OVERRIDES_STRUCT_STAT.
22639         * modules/windows-stat-override: New file.
22641 2017-05-13  Bruno Haible  <bruno@clisp.org>
22643         fstat: Fix module dependency conditions.
22644         * modules/fstat (Depends-on): Fix typo.
22646 2017-05-13  Bruno Haible  <bruno@clisp.org>
22648         stat, fstat: Complete removal of old native Windows code.
22649         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
22650         * lib/fstat.c: Likewise.
22651         * lib/stat-w32.c: Likewise.
22653 2017-05-13  Bruno Haible  <bruno@clisp.org>
22655         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
22656         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
22658 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
22660         getopt-posix: port to mingw
22661         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
22662         Problem reported by Daniel P. Berrage in:
22663         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
22665 2017-05-11  Bruno Haible  <bruno@clisp.org>
22667         gettimeofday: Increase precision on mingw.
22668         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
22669         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
22670         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
22671         GetSystemTimePreciseAsFileTime based implementation always.
22672         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
22673         mingw.
22675 2017-05-11  Bruno Haible  <bruno@clisp.org>
22677         poll: Fix confusion between SOCKETs and FDs on native Windows.
22678         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
22679         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
22681 2017-05-11  Bruno Haible  <bruno@clisp.org>
22683         doc: Clarify doc about socket functions on native Windows.
22684         This reworks doc that was added on 2008-09-29.
22685         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
22686         clearer wording.
22687         * doc/posix-functions/accept.texi: Use clearer wording.
22688         * doc/posix-functions/bind.texi: Likewise.
22689         * doc/posix-functions/connect.texi: Likewise.
22690         * doc/posix-functions/getpeername.texi: Likewise.
22691         * doc/posix-functions/getsockname.texi: Likewise.
22692         * doc/posix-functions/getsockopt.texi: Likewise.
22693         * doc/posix-functions/ioctl.texi: Likewise.
22694         * doc/posix-functions/listen.texi: Likewise.
22695         * doc/posix-functions/recv.texi: Likewise.
22696         * doc/posix-functions/recvfrom.texi: Likewise.
22697         * doc/posix-functions/send.texi: Likewise.
22698         * doc/posix-functions/sendto.texi: Likewise.
22699         * doc/posix-functions/setsockopt.texi: Likewise.
22700         * doc/posix-functions/shutdown.texi: Likewise.
22701         * doc/posix-functions/socket.texi: Likewise.
22703 2017-05-10  Bruno Haible  <bruno@clisp.org>
22705         poll: Fix link error on native Windows.
22706         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
22708 2017-05-10  Bruno Haible  <bruno@clisp.org>
22710         time: Fix missing initialization of HAVE_TIMEZONE_T.
22711         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
22712         here...
22713         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
22714         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
22715         gl_HEADER_SYS_TIME_H_DEFAULTS.
22716         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
22717         (configure.ac): Remove useless quoting.
22719 2017-05-10  Bruno Haible  <bruno@clisp.org>
22721         Implement a way to opt out from MSVC support, part 2.
22722         * modules/msvc-inval (Include): Document recommended idiom.
22723         * modules/msvc-nothrow (Include): Likewise.
22725         Implement a way to opt out from MSVC support.
22726         This is useful for Emacs.
22727         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
22728         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
22729         * lib/error.c: Likewise.
22730         * lib/fcntl.c: Likewise.
22731         * lib/flock.c: Likewise.
22732         * lib/fstat.c: Likewise.
22733         * lib/fsync.c: Likewise.
22734         * lib/ioctl.c: Likewise.
22735         * lib/isapipe.c: Likewise.
22736         * lib/lseek.c: Likewise.
22737         * lib/nonblocking.c: Likewise.
22738         * lib/poll.c: Likewise.
22739         * lib/select.c: Likewise.
22740         * lib/sockets.h: Likewise.
22741         * lib/sockets.c: Likewise.
22742         * lib/stdio-read.c: Likewise.
22743         * lib/stdio-write.c: Likewise.
22744         * lib/utimens.c: Likewise.
22745         * lib/w32sock.h: Likewise.
22746         * lib/w32spawn.h: Likewise.
22747         * tests/test-cloexec.c: Likewise.
22748         * tests/test-dup-safer.c: Likewise.
22749         * tests/test-dup2.c: Likewise.
22750         * tests/test-dup3.c: Likewise.
22751         * tests/test-fcntl.c: Likewise.
22752         * tests/test-pipe.c: Likewise.
22753         * tests/test-pipe2.c: Likewise.
22754         * lib/ftruncate.c: Likewise.
22755         (chsize_nothrow): Renamed from chsize.
22756         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
22757         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
22758         * lib/close.c: Likewise.
22759         * lib/dup.c: Likewise.
22760         * lib/fclose.c: Likewise.
22761         * lib/raise.c: Likewise.
22762         * tests/test-fgetc.c: Likewise.
22763         * tests/test-fputc.c: Likewise.
22764         * tests/test-fread.c: Likewise.
22765         * tests/test-fwrite.c: Likewise.
22766         * lib/getdtablesize.c: Likewise.
22767         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
22768         * lib/isatty.c: Don't include msvc-inval.h if
22769         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
22770         Include <io.h> as an alternative to msvc-nothrow.h.
22771         * lib/read.c: Likewise.
22772         * lib/write.c: Likewise.
22773         * lib/dup2.c: Likewise.
22774         (dup2_nothrow): New function.
22775         (ms_windows_dup2): Use it.
22776         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
22777         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
22778         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
22779         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
22780         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
22781         * m4/read.m4 (gl_FUNC_READ): Likewise.
22782         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
22783         * doc/windows-without-msvc.texi: New file.
22784         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
22785         section.
22787 2017-05-10  Bruno Haible  <bruno@clisp.org>
22789         wait-process: Adjust native Windows support.
22790         * lib/wait-process.c: Use the usual condition for recognizing a native
22791         Windows platform.
22793 2017-05-10  Bruno Haible  <bruno@clisp.org>
22795         doc: New chapter "Native Windows Support".
22796         * doc/gnulib.texi (Native Windows Support): New chapter.
22797         * doc/windows-libtool.texi: Small wording changes.
22798         * doc/windows-sockets.texi: Small wording and formatting changes.
22800 2017-05-10  Bruno Haible  <bruno@clisp.org>
22802         doc: Move section "Library version handling".
22803         * doc/gnulib.texi: Move section "Library version handling"
22804         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
22806 2017-05-10  Bruno Haible  <bruno@clisp.org>
22808         doc: Move section "Running self-tests under valgrind".
22809         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
22810         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
22812 2017-05-10  Bruno Haible  <bruno@clisp.org>
22814         doc: New chapter "Build Infrastructure Modules".
22815         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
22817 2017-05-10  Bruno Haible  <bruno@clisp.org>
22819         Prepare for reordering sections in the manual.
22820         * doc/gnulib.texi: Move several sections to separate files. Include
22821         these files.
22822         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
22823         * doc/obsolete.texi: Likewise.
22824         * doc/extra-tests.texi: Likewise.
22825         * doc/transversal.texi: Likewise.
22826         * doc/namespace.texi: Likewise.
22827         * doc/check-version.texi: Likewise.
22828         * doc/windows-sockets.texi: Likewise.
22829         * doc/windows-libtool.texi: Likewise.
22830         * doc/licenses-texi.texi: Likewise.
22831         * doc/build-automation.texi: Likewise.
22832         * doc/c-locale.texi: Likewise.
22834 2017-05-10  Bruno Haible  <bruno@clisp.org>
22836         Fix instructions how to update manual on www.gnu.org.
22837         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
22839 2017-05-09  Bruno Haible  <bruno@clisp.org>
22841         tzset: Expand comment about TZ problem on native Windows.
22842         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
22843         Paul Eggert.
22844         * lib/ctime.c (rpl_ctime): Likewise.
22845         * lib/localtime.c (rpl_localtime): Likewise.
22846         * lib/mktime.c (mktime): Likewise.
22847         * lib/strftime-fixes.c (rpl_strftime): Likewise.
22848         * lib/wcsftime.c (rpl_wcsftime): Likewise.
22850 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
22852         intprops: don’t depend on ‘verify’
22853         Problem reported by Ævar Arnfjörð Bjarmason in:
22854         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
22855         * lib/intprops.h: Do not include verify.h, and move compile-time
22856         checks from here ...
22857         * tests/test-intprops.c (main): ... to here, if they’re not here
22858         already.  Check widths of other standard integer types.
22859         * modules/intprops (Depends-on): Remove ‘verify’.
22861 2017-05-07  Bruno Haible  <bruno@clisp.org>
22863         utimens: On native Windows, support 100ns resolution also if fd < 0.
22864         * lib/utime.in.h: Include <time.h>.
22865         (_gl_utimens_windows): New declaration.
22866         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
22867         (utime): Invoke it.
22868         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
22869         instead of utime.
22870         * modules/utime (Depends-on): Add 'time'.
22872 2017-05-07  Bruno Haible  <bruno@clisp.org>
22874         utimens: Improve error code on native Windows.
22875         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
22876         error code EACCES, not EINVAL.
22878 2017-05-07  Bruno Haible  <bruno@clisp.org>
22880         utime: Handle more Windows error codes.
22881         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
22882         Based on explanations by Billy O'Neal.
22884 2017-05-05  Bruno Haible  <bruno@clisp.org>
22886         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
22887         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
22888         union.
22889         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
22890         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
22891         value of cipher->IV.
22893 2017-05-05  Bruno Haible  <bruno@clisp.org>
22895         wctype-h-c++-tests: Update.
22896         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
22898 2017-05-05  Bruno Haible  <bruno@clisp.org>
22900         wchar-c++-tests: Update.
22901         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
22903 2017-05-05  Bruno Haible  <bruno@clisp.org>
22905         utime-h-c++-tests: New module.
22906         * tests/test-utime-h-c++.cc: New file.
22907         (utime): Declare, missing since 2017-04-30.
22908         * modules/utime-h-c++-tests: New file.
22910 2017-05-05  Bruno Haible  <bruno@clisp.org>
22912         unistd-c++-tests: Update.
22913         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
22914         (read): Declare, missing since 2011-04-15.
22915         (sethostname): Declare, missing since 2011-12-03.
22917 2017-05-05  Bruno Haible  <bruno@clisp.org>
22919         time-c++-tests: Update.
22920         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
22921         (localtime, gmtime): Declare, missing since 2017-04-30.
22922         (ctime): Declare, missing since 2017-04-30.
22923         (strftime): Declare, missing since 2017-04-30.
22924         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
22925         2015-07-24.
22927 2017-05-05  Bruno Haible  <bruno@clisp.org>
22929         sys_resource-c++-tests: New module.
22930         * tests/test-sys_resource-c++.cc: New file.
22931         (getrusage): Declare, missing since 2012-04-13.
22932         * modules/sys_resource-c++-tests: New file.
22934 2017-05-05  Bruno Haible  <bruno@clisp.org>
22936         strings-c++-tests: New module.
22937         * tests/test-strings-c++.cc: New file.
22938         (ffs): Declare, missing since 2011-07-12.
22939         * modules/strings-c++-tests: New file.
22941 2017-05-05  Bruno Haible  <bruno@clisp.org>
22943         string-c++-tests: Update.
22944         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
22945         (ffsll): Declare, missing since 2011-07-15.
22947 2017-05-05  Bruno Haible  <bruno@clisp.org>
22949         stdlib-c++-tests: Update.
22950         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
22951         2011-10-18.
22952         (ptsname_r): Declare, missing since 2011-11-07.
22953         (qsort_r): Declare, missing since 2014-08-29.
22954         (random, srandom, initstate, setstate): Declare, missing since
22955         2012-01-14.
22956         (secure_getenv): Declare, missing since 2013-02-05.
22958 2017-05-05  Bruno Haible  <bruno@clisp.org>
22960         stdio-c++-tests: Update.
22961         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
22963 2017-05-05  Bruno Haible  <bruno@clisp.org>
22965         signal-h-c++-tests: Update.
22966         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
22968 2017-05-05  Bruno Haible  <bruno@clisp.org>
22970         math-c++-tests: Update.
22971         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
22972         (fma): Declare, missing since 2011-10-17.
22973         (fmal): Declare, missing since 2011-10-17.
22975 2017-05-05  Bruno Haible  <bruno@clisp.org>
22977         locale-c++-tests: Update.
22978         * tests/test-locale-c++.cc (localeconv): Declare, missing since
22979         2012-03-25.
22981 2017-05-05  Bruno Haible  <bruno@clisp.org>
22983         inttypes-c++-tests: New module.
22984         * tests/test-inttypes-c++.cc: New file.
22985         (strtoimax): Declare, missing since 2012-01-05.
22986         (strtoumax): Declare, missing since 2012-01-05.
22987         * modules/inttypes-c++-tests: New file.
22989 2017-05-05  Bruno Haible  <bruno@clisp.org>
22991         dirent-c++-tests: Update.
22992         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
22993         (rewinddir): Declare, missing since 2011-09-13.
22994         (dirfd): Declare, missing since 2010-03-08.
22996 2017-05-04  Bruno Haible  <bruno@clisp.org>
22998         argp: Fix mistake in 2017-04-23 commit.
22999         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
23000         assume that strerror_r returns 'int', not 'char *'.
23002 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
23004         argp: Fix typo.
23005         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
23007 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
23009         utimens: port to Emacs + MS-Windows
23010         Skip the new MS-Windows-specific code if Emacs.
23011         * lib/utimens.c [EMACS_CONFIGUATION]:
23012         Avoid new MS-Windows-specific code.
23013         (USE_SETFILETIME): New macro.
23014         (fdutimens): Use it.
23016 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
23018         tzset: update doc for TZ problems on MS-Windows
23019         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
23020         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
23021         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
23022         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
23023         * doc/posix-functions/wcsftime.texi:
23024         Mention some issues with TZ under MS-Windows.
23026 2017-05-01  Bruno Haible  <bruno@clisp.org>
23028         copy-file: Fix build error on mingw.
23029         * modules/copy-file (Depends-on): Add 'close'.
23031 2017-05-01  Bruno Haible  <bruno@clisp.org>
23033         tzset: Work around TZ problem on native Windows.
23034         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
23035         Windows, set REPLACE_TZSET to 1.
23036         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
23037         invoke '_tzset' instead of 'tzset'.
23038         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
23040         * modules/time_rz (Depends-on): Add tzset.
23041         * lib/time_rz.c (tzset): Remove fallback definition.
23042         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
23044 2017-05-01  Bruno Haible  <bruno@clisp.org>
23046         mktime: Fix dependencies.
23047         * modules/mktime (Depends-on): Add 'time'.
23049 2017-05-01  Bruno Haible  <bruno@clisp.org>
23051         New module 'localtime-buffer', split off from module 'gettimeofday'.
23052         * lib/localtime-buffer.h: New file.
23053         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
23054         * lib/time.in.h (tzset): New declaration.
23055         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
23056         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
23057         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
23058         moved to lib/localtime-buffer.c or lib/tzset.c.
23059         * m4/localtime-buffer.m4: New file.
23060         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
23061         HAVE_TZSET, REPLACE_TZSET.
23062         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
23063         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
23064         gl_LOCALTIME_BUFFER_NEEDED.
23065         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
23066         since 2007-01-18.
23067         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
23068         tzset.
23069         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
23070         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
23071         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
23072         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
23073         * modules/localtime-buffer: New file.
23074         * modules/time (Depends-on): Remove 'gettimeofday'.
23075         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
23076         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
23077         * modules/tzset (Description): Enable hyperlink to POSIX spec.
23078         (Files): Add lib/tzset.c.
23079         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
23080         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
23081         gl_TIME_MODULE_INDICATOR.
23082         * modules/gettimeofday (Depends-on): Add localtime-buffer.
23084 2017-05-01  Bruno Haible  <bruno@clisp.org>
23086         copy-file: Preserve sub-second time stamps.
23087         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
23088         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
23089         transport the time stamps from the original file to the destination
23090         file.
23091         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
23092         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
23093         utime-h.
23095 2017-05-01  Bruno Haible  <bruno@clisp.org>
23097         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
23098         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
23099         also on MSVC.
23100         Reported by Eli Zaretskii <eliz@gnu.org>.
23102 2017-05-01  Bruno Haible  <bruno@clisp.org>
23104         wchar: Fix compilation error with the original mingw.org mingw.
23105         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
23106         <stddef.h> instead.
23107         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
23108         gl_WCTYPE_H.
23109         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
23110         gl_TYPE_WINT_T_PREREQ instead.
23111         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
23112         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
23113         Reported by Eli Zaretskii <eliz@gnu.org>.
23115 2017-04-30  Bruno Haible  <bruno@clisp.org>
23117         utimecmp: Add support for native Windows.
23118         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
23120 2017-04-30  Bruno Haible  <bruno@clisp.org>
23122         utimens: Add support for native Windows.
23123         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
23124         (fdutimens): Provide a native Windows implementation, like utime.c with
23125         added tv_nsec support.
23126         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
23127         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
23129 2017-04-30  Bruno Haible  <bruno@clisp.org>
23131         wcsftime: New module.
23132         * lib/wchar.in.h (wcsftime): New declaration.
23133         * lib/wcsftime.c: New file.
23134         * m4/wcsftime.m4: New file.
23135         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
23136         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
23137         HAVE_WCSFTIME, REPLACE_WCSFTIME.
23138         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
23139         HAVE_WCSFTIME, REPLACE_WCSFTIME.
23140         * modules/wcsftime: New file.
23141         * doc/posix-functions/wcsftime.texi: Mention the new module.
23143 2017-04-30  Bruno Haible  <bruno@clisp.org>
23145         strftime-fixes: New module.
23146         * lib/time.in.h (strftime): New declaration.
23147         * lib/strftime-fixes.c: New file.
23148         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
23149         (gl_FUNC_STRFTIME): Remove macro.
23150         * m4/strftime-fixes.m4: New file.
23151         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
23152         REPLACE_STRFTIME.
23153         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
23154         REPLACE_STRFTIME.
23155         * modules/strftime-fixes: New file.
23156         * doc/posix-functions/strftime.texi: Mention the new module.
23158 2017-04-30  Bruno Haible  <bruno@clisp.org>
23160         mktime: Work around TZ problem on native Windows.
23161         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
23162         from the native Windows workaround.
23163         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
23164         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
23165         'guessing no'.
23166         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
23167         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
23168         NEED_MKTIME_WINDOWS.
23169         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
23170         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
23171         NEED_MKTIME_INTERNAL.
23172         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
23173         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
23174         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
23175         not REPLACE_MKTIME.
23176         * doc/posix-functions/mktime.texi: Mention the native Windows
23177         workaround.
23179 2017-04-30  Bruno Haible  <bruno@clisp.org>
23181         localtime: New module.
23182         * lib/time.in.h (localtime): Declare also if requested by module
23183         'localtime'.
23184         * lib/localtime.c: New file.
23185         * m4/localtime.m4: New file.
23186         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
23187         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
23188         * modules/localtime: New file.
23189         * doc/posix-functions/localtime.texi: Mention the new module.
23191 2017-04-30  Bruno Haible  <bruno@clisp.org>
23193         ctime: New module.
23194         * lib/time.in.h (ctime): New declaration.
23195         * lib/ctime.c: New file.
23196         * m4/ctime.m4: New file.
23197         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
23198         REPLACE_CTIME.
23199         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
23200         * modules/ctime: New file.
23201         * doc/posix-functions/ctime.texi: Mention the new module.
23203 2017-04-30  Bruno Haible  <bruno@clisp.org>
23205         gettimeofday: Provide higher resolution on native Windows.
23206         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
23207         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
23208         (initialize): Initialize it.
23209         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
23210         'struct timeval'. Don't use _ftime().
23211         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
23212         <sys/timeb.h> and _ftime.
23214 2017-04-30  Bruno Haible  <bruno@clisp.org>
23216         Document the problem with the Cygwin environment variable TZ.
23217         * doc/posix-functions/tzset.texi: Add note about TZ.
23218         * doc/posix-functions/ctime.texi: Likewise.
23219         * doc/posix-functions/localtime.texi: Likewise.
23220         * doc/posix-functions/mktime.texi: Likewise.
23221         * doc/posix-functions/strftime.texi: Likewise.
23222         * doc/posix-functions/wcsftime.texi: Likewise.
23223         * doc/pastposix-functions/ftime.texi: Likewise.
23225 2017-04-30  Bruno Haible  <bruno@clisp.org>
23227         utime-tests: New module.
23228         * tests/test-utime.c: New file, based on tests/test-utimens.h.
23229         * tests/test-utimens-common.h: Include <sys/stat.h>.
23230         * modules/utime-tests: New file.
23232 2017-04-29  Bruno Haible  <bruno@clisp.org>
23234         utime: New module.
23235         * lib/utime.in.h: Add comment for snippets.
23236         (utime): New declaration.
23237         * lib/utime.c: New file.
23238         * m4/utime.m4: New file.
23239         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
23240         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
23241         REPLACE_UTIME.
23242         * modules/utime-h (Depends-on): Add snippets.
23243         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
23244         Insert snippets.
23245         * modules/utime: New file.
23246         * doc/posix-functions/utime.texi: Mention the new module.
23248 2017-04-29  Bruno Haible  <bruno@clisp.org>
23250         utime-h: Modernize handling of 'struct utimbuf'.
23251         * lib/utime.in.h: Include next <utime.h> if it exists.
23252         (utimbuf): Define to _utimbuf on native Windows.
23253         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
23254         Set UTIME_H on native Windows.
23255         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
23256         * modules/utime-h (Depends-on): Add include_next.
23257         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
23258         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
23260         * lib/utimens.c (utimbuf): Remove fallback definition.
23261         * m4/utimens.m4 (gl_UTIMENS): Don't require
23262         gl_CHECK_TYPE_STRUCT_UTIMBUF.
23263         * m4/utimbuf.m4: Remove file.
23264         * modules/utimens (Files): Remove m4/utimbuf.m4.
23266 2017-04-29  Bruno Haible  <bruno@clisp.org>
23268         Make use of module 'utime-h'.
23269         * modules/copy-file (Depends-on): Add utime-h.
23270         * lib/copy-file.c: Assume that <utime.h> exists.
23271         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
23273         * modules/utimens (Depends-on): Add utime-h.
23274         * lib/utimens.c: Assume that <utime.h> exists.
23276 2017-04-29  Bruno Haible  <bruno@clisp.org>
23278         utime-h: New module.
23279         * m4/utime_h.m4: New file.
23280         * lib/utime.in.h: New file.
23281         * modules/utime-h: New file.
23282         * doc/posix-headers/utime.texi: Mention the new module.
23284         * tests/test-utime-h.c: New file.
23285         * modules/utime-h-tests: New file.
23287 2017-04-30  Bruno Haible  <bruno@clisp.org>
23289         Fix a few typos.
23290         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
23291         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
23292         * doc/posix-functions/fstat.texi: Fix a plural typo.
23293         * doc/posix-functions/stat.texi: Likewise.
23294         * m4/include_next.m4: Update comments.
23296 2017-04-29  Bruno Haible  <bruno@clisp.org>
23298         error: Fix mistake in 2017-04-23 commit.
23299         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
23300         assume that strerror_r returns 'int', not 'char *'.
23302 2017-04-29  Bruno Haible  <bruno@clisp.org>
23304         stat: Fix time_t values and other problems on native Windows platforms.
23305         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
23306         implementations of stat().
23307         * lib/stat.c: Include filename.h instead of dosname.h. Include
23308         malloca.h, stat-w32.h.
23309         (is_unc_root): New function.
23310         (rpl_stat): New implementation for native Windows. Remove
23311         REPLACE_FUNC_STAT_DIR code.
23312         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
23313         Don't define REPLACE_FUNC_STAT_DIR.
23314         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
23315         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
23316         (Depends-on): Remove dosname. Add filename, malloca.
23317         (configure.ac): Also compile lib/stat-w32.c.
23319 2017-04-29  Bruno Haible  <bruno@clisp.org>
23321         fstat: Fix time_t values on native Windows platforms.
23322         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
23323         * lib/stat-w32.h: New file.
23324         * lib/stat-w32.c: New file.
23325         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
23326         stat-w32.h instead.
23327         (fstat_nothrow): Remove function.
23328         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
23329         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
23330         always.
23331         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
23332         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
23333         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
23334         (configure.ac): Also compile lib/stat-w32.c.
23336 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
23338         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
23339         Problem reported by Assaf Gordon and Gavin Smith in:
23340         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
23341         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
23342         #define this, too.
23344 2017-04-29  Bruno Haible  <bruno@clisp.org>
23346         strerror_r-posix: Fixes for MSVC 14.
23347         * lib/strerror_r.c: Include <stdarg.h>.
23348         (strerror_r): Provide error messages for errno values 100...140.
23349         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
23351 2017-04-28  Bruno Haible  <bruno@clisp.org>
23353         noreturn: New module.
23354         * lib/noreturn.h: New file.
23355         * modules/noreturn: New file.
23356         * tests/test-noreturn.c: New file.
23357         * modules/noreturn-tests: New file.
23358         * tests/test-noreturn-c++.cc: New file.
23359         * modules/noreturn-c++-tests: New file.
23361 2017-04-27  Bruno Haible  <bruno@clisp.org>
23363         wctype-h: Fix compilation error with the original mingw.org mingw.
23364         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
23365         HAVE_CRTDEFS_H.
23366         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
23367         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
23368         <stddef.h> instead.
23369         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
23371 2017-04-26  Pádraig Brady  <P@draigBrady.com>
23373         nap.h: Fix compilation on non windows platforms
23374         * tests/nap.h: Move misplaced endif.
23376 2017-04-26  Pádraig Brady  <P@draigBrady.com>
23377         and Paul Eggert  <eggert@cs.ucla.edu>
23379         time_rz: fix heap buffer overflow vulnerability
23380         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
23381         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
23382         whether there is enough buffer space available, thus avoiding
23383         the problematic promotion of signed to unsigned causing an invalid
23384         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
23385         the start of the buffer.
23386         * tests/test-parse-datetime.c (main): Add a test case written by
23387         Paul Eggert, which overwrites enough of the heap so that
23388         standard glibc will fail with "free(): invalid pointer"
23389         without the patch applied.
23391 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
23393         xalloc: add missing integer overflow check
23394         * lib/xalloc.h (x2nrealloc): Also check for multiplication
23395         overflow when P is null.
23397 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
23399         parse-datetime: make it standalone
23400         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
23401         (_GL_ATTRIBUTE_FORMAT): New macro.
23402         These are needed to get './gnulib-tool --test parse-datetime' to work.
23404 2017-04-23  Bruno Haible  <bruno@clisp.org>
23406         nap.h: Port to native Windows.
23407         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
23408         use nap_fd instead. On native Windows, close and reopen nap_fd.
23409         (nap_works): Don't compare the ctimes, because on native Windows, these
23410         are the creation times.
23411         (nap): Update.
23413 2017-04-23  Bruno Haible  <bruno@clisp.org>
23415         nap.h: Fix logic.
23416         * tests/nap.h (nap): Avoid signed integer overflow in loop.
23418 2017-04-23  Bruno Haible  <bruno@clisp.org>
23420         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
23421         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
23422         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
23423         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
23424         * lib/argp-help.c (__argp_failure): Likewise.
23426 2017-04-23  Bruno Haible  <bruno@clisp.org>
23428         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
23429         * m4/strerror_r.m4: Revert changes since 2016-10-16.
23430         * lib/strerror_r.c: Likewise.
23432 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
23434         Target a C99 subset, not a C89 subset
23435         For many years Gnulib has targeted C89 and has resisted using C99
23436         features, as some Gnulib-using programs still wanted to target
23437         C89.  As this no longer seems to be the case, relax the porting
23438         requirements to allow some C99 features.  This is merely a change
23439         to the documentation, to give other Gnulib developers a chance to
23440         weigh in on the topic.
23441         * doc/extern-inline.texi (extern inline):
23442         * doc/gnulib-readme.texi (Portability guidelines):
23443         * doc/gnulib-tool.texi (Initial import):
23444         * doc/gnulib.texi (Header files):
23445         Modernize to talk about C99 and C11 instead of C89 and C99.
23446         * doc/gnulib-readme.texi (Portability guidelines):
23447         Now a section, not merely a subsection, so that it
23448         can be split up.  Modernize a bit.
23449         (C language versions, C99 features assumed)
23450         (C99 features avoided):
23451         New sections.
23453 2017-04-23  Bruno Haible  <bruno@clisp.org>
23455         doc: New section "Modules that modify the way other modules work".
23456         * doc/gnulib.texi (Modules that modify the way other modules work): New
23457         section.
23459 2017-04-23  Bruno Haible  <bruno@clisp.org>
23461         stat-time: Update comments.
23462         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
23463         * tests/test-utimens-common.h: Add reference regarding st_ctime on
23464         Windows.
23466 2017-04-01  Bruno Haible  <bruno@clisp.org>
23468         glob: Fix more memory leaks.
23469         * lib/glob.c (glob): Free allocated memory before returning.
23470         Reported by Coverity via Tim Rühsen.
23472 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23474         poll: improve fast check for out-of-range NFD
23475         * lib/poll.c: Do not include intprops.h.
23476         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
23477         * modules/poll (Depends-on): Remove intprops.
23479         ftoastr: cite a newer paper
23480         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
23481         instead of Loitsch 2010.
23483 2017-04-22  Bruno Haible  <bruno@clisp.org>
23485         poll: Enable argument check also in the Windows implementation.
23486         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
23487         Reported by Paul Eggert.
23489 2017-04-22  Bruno Haible  <bruno@clisp.org>
23491         getlogin_r: Work around bug in Mac OS X 10.12.
23492         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
23493         bug.
23494         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
23495         given size minus 1, call getlogin_r a second time, on a larger buffer.
23496         * modules/getlogin_r (Depends-on): Add malloca.
23497         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
23499 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23501         parse-datetime: fix %z and prefer signed int
23502         %z problem reported by Pádraig Brady in:
23503         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
23504         While fixing it, I decided to prefer signed ints to size_t, as
23505         they are less error-prone (e.g., ubsan catches overflow).
23506         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
23507         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
23508         counts, since signed integers make for better debugging.
23509         (date): Don’t assume %z works in printf formats.
23510         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
23511         sizes of buffers known to be small, e.g., because we’re using snprintf.
23512         (parse_datetime2): Simplify call to debug_mktime_not_ok.
23514 2017-04-22  Bruno Haible  <bruno@clisp.org>
23516         *printf: Work around rounding bug on Mac OS X.
23517         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
23518         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
23519         Mac OS X and FreeBSD.
23520         * doc/glibc-functions/*printf.texi: Likewise.
23522 2017-04-22  Bruno Haible  <bruno@clisp.org>
23524         vasnprintf tests: Avoid warnings.
23525         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
23526         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
23527         test.
23529 2017-04-22  Bruno Haible  <bruno@clisp.org>
23531         sys_file tests: Avoid warning.
23532         * tests/test-sys_file.c (main): Add a default clause to the switch
23533         statement.
23535 2017-04-22  Bruno Haible  <bruno@clisp.org>
23537         sethostname: Update doc.
23538         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
23539         Mac OS X.
23541 2017-04-22  Bruno Haible  <bruno@clisp.org>
23543         quotearg tests: Avoid warnings.
23544         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
23545         false.
23547 2017-04-22  Bruno Haible  <bruno@clisp.org>
23549         poll: Enable argument check.
23550         * lib/poll.c: Include intprops.h.
23551         (poll): Check value of nfd correctly.
23552         * modules/poll (Depends-on): Add intprops.
23554 2017-04-22  Bruno Haible  <bruno@clisp.org>
23556         get-rusage-data: Avoid warnings on Mac OS X.
23557         * lib/get-rusage-data.c: On Mac OS X, don't define
23558         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
23559         (get_rusage_data) [Mac OS X]: Just return 0.
23561 2017-04-22  Bruno Haible  <bruno@clisp.org>
23563         xbinary-io: Fix build error.
23564         * modules/xbinary-io (Depends-on): Add gettext-h.
23565         * lib/xbinary-io.c: Include gettext.h and define _().
23566         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
23567         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
23569 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23571         parse-datetime: overflow and debug cleanups
23572         This long patch was triggered by this bug report from Ruediger Meier:
23573         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
23574         I fixed the bug he noted, then found some others nearby, and then
23575         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
23576         up some of the code to follow GNU standards while I was at it.
23577         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
23578         use c_isdigit.
23579         (EPOCH_YEAR): Remove; unused.
23580         (TM_YEAR_BASE): Now an enum rather than a macro.
23581         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
23582         time zone offset, since timezones now are in terms of seconds and
23583         not minutes.
23584         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
23585         appropriate.  Verify that intmax_t is wide enough.
23586         (time_overflow, time_zone_str): New functions, used to deal
23587         more reliably with overflow.
23588         (dbg_printf): Add printf attribute, to help catch integer width errors.
23589         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
23590         (%union, to_hour, yylex, parse_datetime2):
23591         Use intmax_t instead of long int and/or long_time_t.
23592         All uses changed.
23593         (DBGBUFSIZE): Move earlier.
23594         (relative_time, set_hhmmss, parser_control):
23595         Just use int for nanoseconds and for time zones; that’s wide enough.
23596         (parser_control): Use bool for members like year_seen that can
23597         be booleans instead of counters.  All uses changed.
23598         Remove debug_default_input_timezone; no longer needed.
23599         All uses removed.
23600         (apply_relative_time): Return a bool overflow flag.
23601         All uses changed to check for overflow.
23602         (apply_relative_time, zone, date, relunit, relunit_snumber)
23603         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
23604         Check for integer overflow portably.
23605         (str_days): Use just int for N, as it’s wide enough.
23606         Prefer 2D char arrays to arrays of char * when it looks like
23607         2D is a win on typical platforms.
23608         Prefer snprintf to strncpy/strncat, for simplicity;
23609         all buffers are smaller than INT_MAX so this is safe.
23610         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
23611         (debug_print_current_time): Don’t assume tv_nsec is of type long,
23612         as this is not true on x32.  Output "." before any nanoseconds.
23613         (debug_print_current_time, parse_datetime2):
23614         Output local zones using a more-consistent format.
23615         (debug_print_current_time, date, parse_datetime2):
23616         (main) [TEST]:
23617         Don’t assume time_t is the same width as long.
23618         (print_rel_part): New function, replacing ...
23619         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
23620         (debug_print_relative_time): Use bool for boolean.
23621         (local_zone): dsts_seen now counts only tDST instances.
23622         (date): Fix printf of size_t to use %z.  Do not assume numeric
23623         tokens have negative values merely because the context suggests
23624         a syntax with "-" separating tokens.
23625         (time_zone_hhmm): Return bool success indicator, which checks for
23626         overflow.  Store result into PC->time_zone instead.  All callers
23627         changed.
23628         (tm_year_str): New function.  Return a bool success indicator and
23629         store the result into a buffer.  All callers changed.  Output the
23630         numerically correct string even if adding 1900 to the year would
23631         overflow.
23632         (to_tm_year): New function, replacing the old to_year.  All
23633         callers changed.
23634         (tm_diff): Sync with glibc.
23635         (lookup_word): Use to_uchar instead of doing it by hand.
23636         (TZBUFSIZE): Now local to the only function that needs it.
23637         (debug_strfdatetime): Simplify now that time zones are int seconds.
23638         (debug_strfdate): Work even if tm_year + 1900 would overflow.
23639         (get_effective_timezone): Remove.  All uses removed.
23640         (parse_datetime2): Use fprintf in pieces instead of snprintfing
23641         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
23642         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
23643         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
23644         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
23645         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
23646         * modules/parse-datetime (Depends-on): Add inttypes.
23648 2017-04-21  Bruno Haible  <bruno@clisp.org>
23650         gettext-h: Avoid -Wundef warning.
23651         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
23652         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
23653         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
23655 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
23657         error: Avoid "function declaration isn't a prototype" warning.
23658         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
23660 2017-04-21  Bruno Haible  <bruno@clisp.org>
23662         vasnprintf: Fix for MSVC 14.
23663         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
23664         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
23665         of !HAVE_SNPRINTF_RETVAL_C99.
23667 2017-04-21  Bruno Haible  <bruno@clisp.org>
23669         mbrtowc tests: Fix test failures on MSVC 14.
23670         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
23671         behaviour for invalid input.
23673 2017-04-21  Bruno Haible  <bruno@clisp.org>
23675         mbsinit: Fix for MSVC 14.
23676         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
23677         implementation that is in sync with mbrtowc.c. On other platforms, use
23678         an adequate ad-hoc implementation.
23680 2017-04-21  Bruno Haible  <bruno@clisp.org>
23682         Fix test-mbrtowc5.sh failure on native Windows.
23683         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
23684         "C".
23686 2017-04-21  Bruno Haible  <bruno@clisp.org>
23688         Avoid accidental use of native Windows APIs on Cygwin.
23689         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
23690         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
23691         * lib/localename.c (WINDOWS_NATIVE): Likewise.
23693 2017-04-20  Bruno Haible  <bruno@clisp.org>
23695         Remove red warnings from the generated MODULES.html.
23696         * modules/fcntl (Description): Disambiguate function references.
23697         * modules/getcwd-lgpl (Description): Likewise.
23698         * modules/hostent (Description): Likewise.
23699         * modules/servent (Description): Likewise.
23700         * modules/tempname (Description): Likewise.
23702 2017-04-20  Bruno Haible  <bruno@clisp.org>
23704         verify tests: Fix spurious failure with parallel make.
23705         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
23706         EXTRA_PROGRAMS.
23707         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
23708         * tests/test-verify-try.c: New file.
23709         * modules/verify-tests (Files): Add it.
23710         (EXTRA_PROGRAMS): Add test-verify-try.
23711         (MOSTLYCLEANFILES): Update accordingly.
23712         Reported by Adam James Stewart <ajstewart@anl.gov>.
23714 2017-04-18  Bruno Haible  <bruno@clisp.org>
23716         vma-iter: Fix compilation error on Solaris 7.
23717         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
23718         like on IRIX, OSF/1.
23719         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23721 2017-04-18  Bruno Haible  <bruno@clisp.org>
23723         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
23724         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
23725         included.
23726         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
23727         <sys/procfs.h>.
23728         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
23729         <sys/procfs.h> cannot be included.
23730         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23732 2017-04-18  Bruno Haible  <bruno@clisp.org>
23734         getopt-gnu: Add comments.
23735         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
23736         * modules/getopt-gnu (configure.ac): Likewise.
23738 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
23740         regex: port better to Solaris 10
23741         Solaris 10 <locale.h> includes <libintl.h>, which #defines
23742         gettext, and this causes a double #define.
23743         Problem reported by Gavin Smith in:
23744         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
23745         * lib/regex_internal.h (gettext): #undef before #defining.
23747 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
23749         intprops: improve comments
23750         * lib/intprops.h: Improve and shorten commentary.
23751         For the record, if we ever run into a pedantic compiler that
23752         behaves differently from GCC when converting an out-of-range value
23753         to a signed integer, we can work around the problem with something
23754         like the following code, where UCT is the signed counterpart of T
23755         (UCT is sometimes narrower than UT) and all callers are changed
23756         accordingly:
23757         #if __SUNPRO_C <= 0x5120
23758         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
23759            ((t) ((ut) (a) op (ut) (b)))
23760         #else
23761         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
23762            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
23763             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
23764                + TYPE_MINIMUM (t)) \
23765             : (t) (uct) ((ut) (a) op (ut) (b)))
23766         #endif
23768 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
23770         intprops: try to avoid tickling similar bugs
23771         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
23772         needs to be the same width as T; it can be wider.
23773         Change callers so that UT is at least as wide as unsigned int,
23774         as I suspect that this is less likely to run into compiler bugs.
23776         intprops: port to Oracle Studio 12.3 x86
23777         Problem reported by Gavin Smith in:
23778         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
23779         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
23780         Convert unsigned to signed via the usual rather than the standard way,
23781         to avoid a compiler bug in Oracle Studio 12.3 x86.
23783 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
23785         getopt: prefer - to _ in new file names
23786         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
23787         * lib/getopt-core.h: Rename from lib/getopt_core.h.
23788         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
23789         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
23790         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
23791         All uses changed.
23793         getopt: port recent getopt changes to macOS
23794         Problem reported by Harald Maier (Bug#26398).
23795         The macOS C compiler uses __nonnull for its own purposes and that
23796         clashes with glibc's __nonnull.
23797         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
23798         * lib/getopt_cdefs.in.h (__nonnull): Remove.
23799         * lib/getopt_core.h (getopt):
23800         * lib/getopt_ext.h (getopt_long, getopt_long_only):
23801         Use _GL_ARG_NONNULL, not __nonnull.
23802         * lib/unistd.in.h: Move snippet hooks to before where the getopt
23803         .h files are included, so that _GL_ARG_NONNULL is defined in time.
23804         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
23805         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
23807 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
23809         getopt-gnu: omit some duplicate code
23810         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
23811         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
23812         gnulib-tool already does this.
23813         * modules/getopt-gnu (configure.ac): Omit code duplicated from
23814         getopt-posix, which we depend on.
23816         getopt-posix: use angle-bracket include
23817         * lib/getopt1.c: Include <config.h>, not "config.h".
23819 2017-04-06  Zack Weinberg  <zackw@panix.com>
23821         getopt: annotate files with relationship to glibc
23823         As the final act in this patchset, adjust the message at the top of
23824         each file to indicate which files are synced with glibc.  (This has
23825         already been done for most of the headers.)
23827         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
23828         Mention in top-of-file boilerplate that these files are shared
23829         between glibc and gnulib.
23832         getopt: split up getopt.in.h and eliminate __need_getopt
23834         Over in glibc, all of the __need macros are being phased out in favor
23835         of small headers that declare only the necessary components, as this
23836         is much simpler and less prone to bugs.  As getopt is shared with
23837         glibc, gnulib needs to do the same for __need_getopt.
23839         __need_getopt is misnamed; what it really means is "we want only the
23840         getopt features specified in POSIX, not the GNU extensions".  glibc
23841         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
23842         these files can be shared verbatim with gnulib.  The portability
23843         wrapper, on the other hand, they have renounced altogether; glibc's
23844         getopt.h will no longer be shared with gnulib at all.  In exchange,
23845         certain glibc-specific quirks (having to do with __posix_getopt) no
23846         longer need appear in gnulib's headers at all.
23848         This patch merges getopt_core.h and getopt_ext.h from glibc, and
23849         splits up the current gnulib-side portability wrapper into three
23850         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
23851         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
23852         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
23853         unistd.in.h just use them.  All new files are clearly marked with
23854         whether they are shared with glibc.
23856         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
23857         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
23858         with glibc, and ...
23859         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
23860         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
23861         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
23862         instead of defining __need_getopt and including the full getopt.h.
23864         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
23865         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
23866         * modules/getopt-posix (Files): Add new headers and sort list.
23867         (Depends-on): No longer need snippet/arg-nonnull.
23868         (Makefile.am): Generate getopt_cdefs.h.
23871         getopt: better handling of ambiguous options
23873         glibc's getopt uses alloca to construct a linked list of possibilities
23874         for an "ambiguous" long option.  In gnulib, malloc should be used
23875         instead.  Providing for both cases complicates things a fair bit.
23877         This patch rewrites ambiguous-option handling to use a boolean vector
23878         instead of a linked list.  There is then only one allocation that
23879         might need freeing; in glibc it can honor __libc_use_alloca as usual,
23880         and in gnulib we define __libc_use_alloca to always be false, so we
23881         don't need ifdefs in the middle of the function.  This should also be
23882         slightly more efficient in the normal case of long options being fully
23883         spelled out -- I think most people aren't even aware they _can_
23884         sometimes abbreviate long options.
23886         One interesting consequence is that the list of possibilities is now
23887         printed in exactly the order they appear in the list of long options,
23888         instead of the first possibility being shuffled to the end.
23890         (The patch looks bigger than it really is because there's a fair bit
23891         of reindentation and code rearrangement.)
23893         * lib/getopt.c: When used standalone, define __libc_use_alloca
23894         as always false and alloca to abort if called.
23895         (process_long_option): Rewrite handling of ambiguous long options
23896         to use a single boolean vector, not a linked list; use
23897         __libc_use_alloca to decide whether to allocate this using alloca.
23900         getopt: refactor long-option handling
23902         There were two copies of the bulk of the code to handle long options.
23903         Now there is only one.
23905         This change temporarily removes the logic to avoid using alloca when
23906         standalone; the next patch in the series will restore it.
23908         * lib/getopt.c (process_long_option): New function split out
23909         from _getopt_internal_r.
23910         (_getopt_internal_r): Replace both copies of the long-option
23911         processing code with calls to process_long_option.
23914         getopt: tidy up _getopt_initialize a bit
23916         _getopt_data.__posixly_correct is completely redundant to
23917         _getopt_data.__ordering, and some work that logically belongs in
23918         _getopt_initialize was being done by _getopt_internal_r, making the
23919         code harder to understand.
23921         As a side effect, getenv will no longer be called if the first
23922         character of the options string is '+' or '-', which is probably a
23923         Good Thing.  (Perhaps we should have a flag character that
23924         specifically asks for the permutation behavior?)
23926         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
23927         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
23928         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
23931         getopt: merge from glibc: repetition reduction
23933         The definitions of the entry point functions 'getopt' and
23934         '__posix_getopt' can be made substantially less repetitive with a
23935         helper macro.
23937         While I was merging the const-correctness changes from gnulib into
23938         glibc I noticed there are still some unnecessary casts in
23939         _getopt_internal_r.
23941         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
23942         a macro.  Consistently cast 'argv' to 'char **' when calling
23943         _getopt_internal.
23944         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
23947         getopt: clean up error reporting
23949         getopt can print a whole bunch of error messages, and when used
23950         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
23951         cancellation point and getopt isn't, and also applying fprintf to a
23952         stream in wide-character mode is not allowed.  So every single error
23953         reporting case has an #ifdef _LIBC block in which it calls internal
23954         libc functions instead.  The counterpart patch series in glibc makes
23955         it possible to simplify all of that down to a set of #defines at the
23956         top of the file; core code is written as if it is safe to just call
23957         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
23958         call any *other* stdio functions.)
23960         * lib/getopt.c: When _LIBC is defined, define fprintf to
23961         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
23962         to _IO_funlockfile.  When neither _LIBC nor
23963         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
23964         funlockfile as no-ops.
23965         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
23966         standalone error-printing code can now be used for libc as well.
23967         Add an flockfile/funlockfile pair around one case where the error
23968         message is printed in several chunks.  Don't use fputc.
23971         getopt: fix fencepost error in ambiguous-W-option handling
23973         getopt_long contains an undocumented (AFAICT) feature in which, if you
23974         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
23975         treated as equivalent to '--foo'.  This is implemented with a partial
23976         second copy of the code for handling long options, and that code
23977         increments optind one too many times when recovering from an ambiguous
23978         abbreviated option, which can cause the main loop to walk past the end
23979         of argv and crash.
23981         I discovered this while writing a test case that tries to exercise all
23982         of getopt's error reporting paths; I wouldn't be surprised to learn
23983         that this feature is never used by real applications.
23985         * lib/getopt.c (_getopt_internal_r): Don't increment
23986         d->optind a second time when reporting ambiguous -W options.
23989         getopt: clean up getopt.c and getopt1.c file headers
23991         In getopt.c, there is no need to include wchar.h at all, and it is
23992         safe nowadays to assume that stdlib.h does declare getenv (several
23993         other gnulib modules make this assumption).
23995         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
23996         by using "" inclusions consistently, and there is no actual need to
23997         include stdlib.h (except in the #ifdef TEST block, where it should be
23998         unconditional), nor to provide a backup definition of NULL at all.
24000         * lib/getopt1.c: Simplify #ifdeffage at top of file.
24001         Move inclusion of stdlib.h to #ifdef TEST block and make
24002         unconditional.  Do not define NULL.
24003         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
24004         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
24005         * modules/getopt-gnu, modules/getopt-posix: Don't call
24006         gl_PREREQ_GETENV.
24009         getopt: harmonize comments with glibc
24011         The comments explaining how the behavior of 'getopt' varies depending
24012         on whether it's the standalone version and whether there are special
24013         characters at the beginning of the options string were inconsistent
24014         between gnulib and glibc, and also out of sync with the code.
24016         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
24019         getopt: remove USE_NONOPTION_FLAGS
24021         getopt includes code to parse an environment variable named
24022         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
24023         in decimal); but all of it has been #ifdefed out since 2001, with no
24024         official way to turn it back on.
24026         According to commentary in glibc's config.h.in, bash version 2.0
24027         set this environment variable to indicate argv elements that were
24028         the result of glob expansion and therefore should not be treated
24029         as options, but the feature was "disabled later" because "it
24030         caused problems".  According to bash's CHANGES file, "later" was
24031         release 2.01; it gives no more detail about what the problems
24032         were.
24034         Version 2.0 of bash was released on the last day of 1996, and version
24035         2.01 in June of 1997.  Twenty years later, I think it is safe to
24036         assume that this environment variable isn't coming back.
24038         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
24039         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
24040         __libc_argc and __libc_argv externs, which were only used by
24041         #ifdef USE_NONOPTION_FLAGS blocks.
24044         getopt: tabify, in preparation for merge with glibc
24046         glibc sticks to the GNU default of indenting with a mix of
24047         8-column tabs and spaces; make the gnulib copy match.
24049         getopt.h is not included because it is *not* going to be merged in its
24050         present form.
24052         * getopt.c, getopt1.c, getopt_int.h: Tabify.
24054 2017-04-02  Bruno Haible  <bruno@clisp.org>
24056         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
24057         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
24058         like it was done in modules/relocatable-lib on 2011-05-21 and in
24059         modules/relocatable-prog on 2011-08-15.
24060         Reported by Reuben Thomas <rrt@sc3d.org>.
24062 2017-03-31  Bruno Haible  <bruno@clisp.org>
24064         glob: Fix invalid free() call.
24065         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
24066         static storage to home_dir.
24067         Reported by Coverity via Tim Rühsen.
24069 2017-03-31  Bruno Haible  <bruno@clisp.org>
24071         glob: Fix memory leaks.
24072         * lib/glob.c (glob): Free allocated memory before returning.
24073         Reported by Coverity via Tim Rühsen.
24075 2017-03-31  Bruno Haible  <bruno@clisp.org>
24077         md5, sha1, sha256, sha512: Add comments regarding correctness.
24078         * lib/md5.h (buflen): Add comments regarding range.
24079         * lib/sha1.h (buflen): Likewise.
24080         * lib/sha256.h (buflen): Likewise.
24081         * lib/sha512.h (buflen): Likewise.
24082         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
24083         * lib/sha1.c (sha1_process_bytes): Likewise.
24084         * lib/sha256.c (sha256_process_bytes): Likewise.
24085         * lib/sha512.c (sha512_process_bytes): Likewise.
24086         Reported by Coverity via Tim Rühsen.
24088 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
24090         getopt: merge from glibc
24091         This does not change anything substantial; it merely simplifies
24092         hypothetical merges back to glibc.
24093         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
24094         Change copyright notice to match what is in glibc.
24095         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
24096         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
24097         __open_memstream rather than open_memstream and __glibc_likely
24098         instead of __builtin_expect.
24099         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
24101 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
24103         dfa: make [0-9] faster in non-C locales
24104         Problem reported by John P. Linderman (Bug#26193).
24105         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
24106         If both ends of the range are ASCII digits, do not worry about
24107         multi-character collating sequences and the like.  Be consistent
24108         about using isalpha as a precondition for setbit_case_fold_c.
24110 2017-03-19  Bruno Haible  <bruno@clisp.org>
24112         lock: Fix compilation error with HP-UX IA64 cc.
24113         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
24114         weak on non-glibc platforms.
24116 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24118         stdalign: tweak version# and test for HP-UX IA64
24119         Problems reported by Bruno Haible in:
24120         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
24121         * lib/stdalign.in.h (_Alignas):
24122         * m4/stdalign.m4 (gl_STDALIGN_H):
24123         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
24124         used octal (as that is how they document it), but it is decimal in
24125         practice now and the ancient implementations no longer matter.
24126         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
24128 2017-03-19  Bruno Haible  <bruno@clisp.org>
24130         vma-iter: Add support for Solaris.
24131         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
24132         approach.
24133         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
24134         * lib/get-rusage-as.c: Update comment about Solaris.
24135         * lib/get-rusage-data.c: Likewise.
24137 2017-03-19  Bruno Haible  <bruno@clisp.org>
24139         vma-iter: Prefer HP-UX specific API on HP-UX.
24140         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
24141         * lib/vma-iter.h: Update.
24142         Just in case HP-UX ever implements mquery().
24144 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
24146         stdalign: restore previous behavior for HP-UX IA64
24147         See Bruno Haible's email in:
24148         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
24149         which cites p 150 of a manual saying that 'aligned' works on Itanium.
24150         * lib/stdalign.in.h (_Alignas):
24151         Assume the '061200' applies to Itanium, not to PA-RISC.
24152         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
24154 2017-03-17  Bruno Haible  <bruno@clisp.org>
24156         stat-time, timespec: Support use of the header files in C++ mode.
24157         * lib/stat-time.h: Add "C" linkage declaration.
24158         * lib/timespec.h: Likewise.
24160 2017-03-17  Bruno Haible  <bruno@clisp.org>
24162         stdalign: Make it work with HP-UX cc.
24163         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
24164         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
24165         for HP-UX cc.
24167 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
24169         flexmember: try to detect HP-UX 11.31 cc bug
24170         Problem reported by Bruno Haible in:
24171         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
24172         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
24173         Attempt to detect bug in HP-UX 11.31 cc.
24175 2017-03-16  Bruno Haible  <bruno@clisp.org>
24177         stdint: Fix test compilation failure with HP-UX 11 cc.
24178         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
24179         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
24180         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
24181         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
24183 2017-03-14  Bruno Haible  <bruno@clisp.org>
24185         gnulib-tool: Don't produce a tests directory with only snippet .h files.
24186         * gnulib-tool (func_modules_transitive_closure_separately): If
24187         testsrelated_modules ends up with no "real" modules, aside from
24188         modules with applicability 'all', set it to empty.
24190 2017-03-14  Bruno Haible  <bruno@clisp.org>
24192         vma-iter: Add support for HP-UX.
24193         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
24194         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
24195         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
24196         * lib/get-rusage-as.c: Update comment about HP-UX.
24197         * lib/get-rusage-data.c: Likewise.
24198         (get_rusage_data): Use get_rusage_data_via_setrlimit.
24200 2017-03-14  Bruno Haible  <bruno@clisp.org>
24202         limits-h: Make it work with HP-UX cc.
24203         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
24204         defined.
24206 2017-03-14  Bruno Haible  <bruno@clisp.org>
24208         Fix test failures on DragonFlyBSD.
24209         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
24210         * tests/test-select.h (test_bad_fd): Likewise.
24211         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
24213 2017-03-14  Bruno Haible  <bruno@clisp.org>
24215         freadahead: Silence warning on DragonFlyBSD.
24216         * lib/freadahead.c (__sreadahead): Declare ourselves.
24218 2017-03-14  Bruno Haible  <bruno@clisp.org>
24220         vma-iter: Add comment about AIX.
24221         * lib/vma-iter.c: Add comment about why this module is not implemented
24222         on AIX.
24224 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
24226         snippets: move unadjusted snippet sources to lib
24227         Problem reported by Michal Privoznik in:
24228         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
24229         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
24230         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
24231         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
24232         * lib/unused-parameter.h: Rename from
24233         build-aux/snippet/unused-parameter.h.
24234         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
24235         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
24236         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
24237         * modules/snippet/c++defs (Files:, CXXDEFS_H):
24238         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
24239         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
24240         Adjust to file renamings.
24242 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
24244         gnulib-tool: don't automatically distribute files from top/
24245         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
24246         not distribute top/README-release by default, don't distribute files
24247         from top/ unconditionally.
24248         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
24249         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
24251 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
24253         gnulib-tool: fix typo in comment output
24254         * gnulib-tool (func_import): Fix typo with previous change.
24256         snippets: work around GNU Make 3.82 VPATH
24257         When using 'gnulib-tool --gnu-make' on Emacs, and building
24258         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
24259         an out-of-source (VPATH) build failed because the sans-copyright
24260         snippet file was not built before the file that used it.
24261         Presumably this is some sort of VPATH thing.  Work around the
24262         problem by using the original snippet, i.e., don’t bother to
24263         remove its copyright notice.
24264         * modules/snippet/_Noreturn, modules/snippet/link-warning:
24265         Don’t assume Automake in comments.  Omit long-incorrect comment.
24266         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
24267         (MOSTLYCLEANFILES):
24268         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
24269         (MOSTLYCLEANFILES):
24270         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
24271         (MOSTLYCLEANFILES):
24272         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
24273         (MOSTLYCLEANFILES):
24274         Remove.
24275         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
24276         * modules/snippet/c++defs (CXXDEFS_H):
24277         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
24278         * modules/snippet/warn-on-use (WARN_ON_USE_H):
24279         Don’t bother to remove the copyright notice; just use the
24280         original snippet as-is.
24282 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
24284         gnulib-tool: minor --gnu-make fixups
24285         * gnulib-tool (func_emit_lib_Makefile_am):
24286         Remove useless code that was a blind alley during implementation.
24287         Problem reported by Thien-Thi Nguyen in:
24288         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
24289         (func_import): Note the "--gnu-make" option in the output comment.
24291 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
24293         gnulib-tool: new option --gnu-make
24294         This is for applications like GNU Emacs that use GNU Make
24295         features instead of Automake.
24296         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
24297         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
24298         Do not assume Automake.
24299         * gnulib-tool (func_determine_path_separator)
24300         (func_modules_transitive_closure, func_update_file)
24301         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
24302         (func_import): Add support for --gnu-make.
24304 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
24306         gnulib-common.m4: avoid aclocal.m4 bloat
24307         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
24308         Hide AM_PROG_AR from aclocal, so that aclocal does not
24309         install irrelevant macro definitions into aclocal.m4.
24311 2017-03-10  Bruno Haible  <bruno@clisp.org>
24313         vma-iter: Let callers know about error.
24314         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
24315         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
24317 2017-03-05  Bruno Haible  <bruno@clisp.org>
24319         Fix value of LD for 64-bit compilers on AIX.
24320         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
24321         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
24323 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
24325         dtotimespec: simplify
24326         * lib/dtotimespec.c (dtotimespec): Simplify.
24328 2017-03-04  Bruno Haible  <bruno@clisp.org>
24330         test-calloc-gnu: Reenable test also for GCC 7.
24331         * tests/test-calloc-gnu.c (eight): New function.
24332         (main): Don't skip test; use eight() instead.
24334 2017-03-04  Jim Meyering  <meyering@fb.com>
24336         test-calloc-gnu: port to GCC7
24337         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
24338         that attempts to calloc more than SIZE_MAX bytes, because GCC7
24339         and newer would detect that at compilation time.
24341 2017-03-04  Bruno Haible  <bruno@clisp.org>
24343         tests: Avoid compiler warning about uses of null_ptr.
24344         * tests/null-ptr.h: New file.
24345         * tests/test-canonicalize.c: Include null-ptr.h.
24346         (null_ptr): Remove function.
24347         * tests/test-canonicalize-lgpl.c: Likewise.
24348         * tests/test-memmem.c: Likewise.
24349         * tests/test-ptsname_r.c: Likewise.
24350         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
24351         * modules/canonicalize-lgpl-tests: Likewise.
24352         * modules/memmem-tests: Likewise.
24353         * modules/ptsname_r-tests: Likewise.
24354         Reported by Jim Meyering.
24356 2017-03-03  Bruno Haible  <bruno@clisp.org>
24358         doc: Mention Mac OS X deficiencies regarding semaphores.
24359         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
24360         * doc/posix-functions/sem_destroy.texi: Likewise.
24361         * doc/posix-functions/sem_getvalue.texi: Likewise.
24363 2017-03-03  Bruno Haible  <bruno@clisp.org>
24365         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
24366         Reported by Assaf Gordon <assafgordon@gmail.com> via
24367         Pádraig Brady <P@draigBrady.com>.
24368         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
24369         semaphores.
24370         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
24371         (atomic_int_semaphore): New macro.
24373 2017-02-28  Bruno Haible  <bruno@clisp.org>
24375         perror tests: Tweak for z/OS.
24376         Reported by Daniel Richard G. <skunk@iskunk.org>.
24377         * tests/test-perror.sh: Don't fail z/OS style perror output.
24379 2017-02-26  Bruno Haible  <bruno@clisp.org>
24381         nproc: Refactor large function.
24382         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
24383         from num_processors.
24384         (num_processors): In this function, only deal with OMP.
24386 2017-02-26  Pádraig Brady  <P@draigBrady.com>
24388         nproc: adjust handling of OpenMP environment variables
24389         to match the return value from omp_get_num_threads(), i.e.:
24390          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
24391          - Treat 0 as an invalid value and ignore
24392         Also remove the call to omp_get_num_threads() because
24393         it's ineffective without the omp pragmas in place.
24394         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
24395         so that it can be ignored.
24396         (num_processors): Honor OMP_THREAD_LIMIT even without
24397         OMP_NUM_THREADS being set.  Also fix a typo in the environment
24398         variable being checked, from the previous recent commit.
24400 2017-02-26  Pádraig Brady  <P@draigBrady.com>
24402         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
24403         * lib/nproc.c (parse_omp_threads): A new function refactored
24404         from num_processors() to support parsing both of the
24405         above environment variables.
24406         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
24407         to accurately reflect the current OpenMP nesting level.
24408         Also support the OMP_THREAD_LIMIT environment variable
24409         to limit the max value determined from OMP_NUM_THREADS.
24410         * modules/nproc: Depend on minmax header.
24411         Suggested by Oliver Heimlich.
24413 2017-02-25  Bruno Haible  <bruno@clisp.org>
24415         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
24416         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
24418 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24420         ftoastr: port to -Wdouble-promotion
24421         Work around -Wdouble-promotion false alarm in recent GCCs.
24422         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
24423         (ftoastr_snprintf, FTOASTR): Use it.
24425 2017-02-21  Bruno Haible  <bruno@clisp.org>
24427         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
24428         Reported by Rene Saavedra <rennes@openmailbox.org> in
24429         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
24430         * lib/glthread/lock.h: On glibc systems without
24431         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
24432         implementation of rwlocks.
24433         * lib/glthread/lock.c: Likewise.
24435 2017-02-20  Bruno Haible  <bruno@clisp.org>
24437         lock tests: Fix build failure on z/OS.
24438         Reported by Daniel Richard G. <skunk@iskunk.org>.
24439         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
24440         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
24441         exist.
24443 2017-02-19  Bruno Haible  <bruno@clisp.org>
24445         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
24446         This helps when CC=clang.
24447         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
24448         of /usr/bin/gcc.
24450         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
24451         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
24453 2017-02-19  Bruno Haible  <bruno@clisp.org>
24455         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
24456         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
24457         --with-tests --single-configure is specified.
24459 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
24461         users.txt: Update links, use HTTPS where possible
24462         * users.txt: Updated to HTTPS where possible,
24463         fixed some links to new locations.
24465 2017-02-16  Bruno Haible  <bruno@clisp.org>
24467         xbinary-io: Fix inlining.
24468         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
24470 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
24472         xbinary-io: rename from xsetmode
24473         This patch is taken from suggestions by Bruno Haible in:
24474         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
24475         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
24476         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
24477         not ENOTTY, when it is an inappropriate device.
24478         * lib/binary-io.h (SET_BINARY): Resurrect.
24479         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
24480         (xset_binary_mode_error): Rename from xsetmode_error.
24481         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
24482         (xset_binary_mode): Rename from xsetmode.
24483         All uses changed.
24484         * modules/xbinary-io: Rename from modules/xsetmode.
24485         Update file names.
24486         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
24487         * NEWS: Update to match revised behavior.
24489 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
24491         tests: Adjust to recent SET_BINARY change
24492         * tests/test-binary-io.c (main):
24493         * tests/test-binary-io.sh: Remove test for SET_BINARY.
24494         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
24495         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
24496         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
24498         xsetmode: new module
24499         This is to fix a problem noted by Eric Blake.
24500         Code was using xfreopen to change files to binary mode, but this
24501         fails for stdout when in append mode.  Such code should use
24502         xsetmode instead.
24503         * NEWS: Document incompatible changes to binary-io module.
24504         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
24505         New function.
24506         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
24507         (set_binary_mode): New function, which also checks for tty.
24508         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
24510 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
24512         headers: fix begin-end typos
24513         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
24514         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
24516         selinux-h: port to PGI 16.10
24517         * lib/se-selinux.in.h: Don't assume that include_next skips over
24518         duplicate -I DIR options.
24520         argp: port to PGI 16.10
24521         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
24523 2017-02-13  Darshit Shah  <darnir@gnu.org>
24525         unicase: Update function protoype to match definition.
24526         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
24527         uses 'size_t' as the datatype for the 'len' parameter in the functions
24528         it generates. Update the prototype specified here to match the newly
24529         generated function.
24531 2017-02-12  Bruno Haible  <bruno@clisp.org>
24533         times test: Avoid gcc warnings on Linux/x32.
24534         * tests/test-times.c (main): Really cast printf arguments from clock_t
24535         to 'long int'.
24537 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24539         glob: port better to emscripten
24540         Problem reported by Bruno Haible in:
24541         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
24542         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
24544 2017-02-11  Bruno Haible  <bruno@clisp.org>
24546         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
24547         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
24548         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
24549         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
24550         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
24551         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
24552         Distinguish hppa64 from hppa.
24554 2017-02-10  Bruno Haible  <bruno@clisp.org>
24556         search: Don't assume that tsearch() exists if 'VISIT' is defined.
24557         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
24558         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
24559         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
24561 2017-02-09  Bruno Haible  <bruno@clisp.org>
24563         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
24564         * doc/gnulib.texi (Libtool and Windows): Recommend
24565         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
24566         Reported by Reuben Thomas <rrt@sc3d.org>.
24568 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24570         stddef-tests: port to SIZE_MAX <= INT_MAX
24571         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
24572         Do not assume that INT_MAX < SIZE_MAX.
24574 2017-02-01  Bruno Haible  <bruno@clisp.org>
24576         lock tests: Fix link error.
24577         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
24578         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24580 2017-01-31  Bruno Haible  <bruno@clisp.org>
24582         lock: Fix link error (regression from 2017-01-05).
24583         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
24584         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
24585         pthread_rwlockattr_destroy weak.
24586         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24588 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
24590         Port to PGI 16.10 x86-64
24591         This patch fixes one real bug in gl_anylinked_list2.h, along with
24592         some minor glitches that are not bugs.  It does not silence PGI’s
24593         thousands of bogus warnings when compiling test-intprops.c.
24594         Fortunately, the warnings do not cause a failure.
24595         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
24596         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
24597         My goodness, PGI goes back a long ways - this predates C89!
24598         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
24599         For example, ASYNCSAFE (const void *) should expand to
24600         ‘const void *volatile’, not to ‘volatile const void *’.
24601         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
24602         * lib/verify.h (verify) [!__GNUC__]:
24603         Use shorter albeit meaningless string to bypass silly compiler limits.
24604         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
24605         * tests/nan.h (NaNf, NaNd, NaNl):
24606         Use static functions to avoid misguided compiler diagnostics.
24607         Is there some reason we don’t use static functions on all platforms?
24609 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
24611         parse-datetime: handle timezones reentrantly
24612         This API change was prompted by a report by Pádraig Brady in:
24613         https://bug.debian.org/851934#10
24614         To help fix the bug, make parse_datetime2 more reentrant.
24615         * NEWS: Document this incompatible change.
24616         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
24617         Add two arguments, the timezone and the timezone name.
24618         All callers changed.  If TZ="..." is specified, use it for
24619         calculating defaults.
24620         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
24621         this code should be usable in a library.
24622         (mktime_ok, get_effective_timezone):
24623         Accept timezone arg too.  All callers changed.
24624         (get_tz): Remove.
24625         (get_effective_timezone): Check for failures.
24627 2017-01-20  Eric Blake  <eblake@redhat.com>
24629         localename: port to cygwin 2.6
24630         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
24631         Cygwin.
24632         * modules/localename (Depends-on): Add extensions, since
24633         NL_LOCALE_NAME() is not visible without it.
24635 2017-01-17  Pádraig Brady  <P@draigBrady.com>
24637         parse-datetime: fix dependence on AC_PROG_SED
24638         * modules/parse-datetime: Use `sed` directly like all other modules.
24639         Reported by J William Piggott
24641 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
24643         intprops: update doc URLs
24644         * doc/intprops.texi (Integer Range Overflow): Update URLs.
24646 2017-01-16  Bruno Haible  <bruno@clisp.org>
24648         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
24649         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
24650         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
24651         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
24652         distinguish s390 and s390x.
24653         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
24654         * NEWS: Mention the change regarding 'armel'.
24656 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
24658         localeinfo: case_folded_counterparts and WEOF
24659         * NEWS: Document this.
24660         * lib/localeinfo.c (case_folded_counterparts):
24661         First arg is now wint_t, not wchar_t.  This generalizes the
24662         function to also work on WEOF, where it returns 0.
24664         dfa: port to gcc -fsanitize=undefined
24665         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
24666         as this runs afoul of gcc -fsanitize=undefined.
24668 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
24670         strftime: %z is -00 if unknown
24671         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
24672         the caller's responsibility to set 'negative_number'.  All uses changed.
24673         (__strftime_internal): Put '-' before a zero UTC offset if the time
24674         zone abbreviation starts with "-", which is the recently-introduced
24675         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
24676         * tests/test-strftime.c: Test for this.
24678 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
24680         dfa: port to older GCC
24681         Problem reported by Assaf Gordon in:
24682         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
24683         * modules/c99: New module.  This merely attempts to use the latest
24684         C version, which should be enough to solve this particular problem.
24685         The idea is to document which Gnulib modules assume C99 or later.
24686         * modules/dfa (Depends-on): Add it.
24688 2017-01-10  Bruno Haible  <bruno@clisp.org>
24690         Update DEPENDENCIES.
24691         * DEPENDENCIES: List only https URLs. Update recommended version for
24692         autoconf, automake, gperf.
24694 2017-01-10  Jim Meyering  <meyering@fb.com>
24696         maint.mk: enforce spelling of "timestamp" (i.e., no space)
24697         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
24698         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
24700 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
24702         dfa: minor simplification with emptyset
24703         * lib/dfa.c (build_state): Simplify by using emptyset.
24705 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24707         dfa: shrink constraints from 4 bits to 3
24708         * lib/dfa.c (newline_constraint, letter_constraint)
24709         (other_constraint, prev_newline_dependent)
24710         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
24711         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
24712         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
24713         Constraints need only 3 bits, not 4.  Using smaller integers
24714         shrinks the code a bit and makes grep a tad faster on x86-64.
24716         dfa: omit unnecessary ptrdiff_t check
24717         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
24718         overflow, since xnmalloc does that now.
24720         dfa: omit unnecessary allocation
24721         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
24722         an all-zero follow set works just fine.
24724         dfa: omit unused local
24725         * lib/dfa.c (build_state): Fix up recent change.
24727         maint: remove stray .texi files
24728         Although these were superseded by other files like
24729         doc/posix-functions/ctime.texi, the old files were not removed.
24730         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
24732 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
24734         getprogname: fix port to IRIX
24735         * lib/getprogname.c (getprogname) [__sgi]:
24736         Don't dump core if malloc returns NULL.
24738         dfa: fix reallocation bug when matching newlines
24739         Problem reported for sed by S. Gilles (Bug#25390).
24740         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
24741         (dfastate): Reallocate before moving any newline transition ...
24742         (build_state): ... instead of reallocating here, where it is too late.
24744 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
24746         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
24747         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
24749 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
24751         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
24752         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
24754 2017-01-07  Bruno Haible  <bruno@clisp.org>
24756         stdioext: Port to Minix 3.2 and newer.
24757         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
24758         * lib/fseeko.c (fseeko): Likewise.
24759         Reported by Nelson Beebe via Paul Eggert.
24761 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
24763         getprogname: port to IRIX
24764         * lib/getprogname.c (getprogname): Port to IRIX.
24765         Based on an idea by Bastien Roucariès at:
24766         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
24767         via code from Bruno Haible at:
24768         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
24770         localename-tests: port to NetBSD 7
24771         Problem reported by Nelson H. F. Beebe.
24772         * tests/test-localename.c:
24773         Test newlocale and uselocale only if both exist.
24775         glob, intprops, xalloc: work around Clang bug
24776         Work around LLVM bug 16404, which is still not fixed.
24777         https://llvm.org/bugs/show_bug.cgi?id=16404
24778         Problem reported by Nelson H. F. Beebe.
24779         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
24780         Remove.
24781         * lib/glob.c (size_add_wrapv):
24782         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
24783         * lib/xalloc-oversized.h (xalloc_oversized):
24784         Do not use overflow builtins if Clang.
24786         dfa: fix 'return' typo
24787         Problem reported by Nelson H. F. Beebe.
24788         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
24790 2017-01-05  Pádraig Brady  <P@draigBrady.com>
24792         parse-datetime: fix generated paths for coverage files
24793         * modules/parse-datetime: Adjust the paths for parse-datetime.y
24794         within parse-datetime.c, so that gcc generates appropriate .gcno
24795         files, allowing lcov to proceed without error.  Previously it
24796         would error trying to find "lib/lib/parse-datetime.y".
24798 2017-01-05  Pádraig Brady  <P@draigBrady.com>
24800         maint.mk: support parallel execution of coverage
24801         * top/maint.mk (coverage): Run dependencies serially,
24802         thus supporting parallel processing of each one,
24803         particularly build-coverage, which builds and runs tests.
24805 2017-01-05  Bruno Haible  <bruno@clisp.org>
24807         lock tests: Prefer semaphore over mutex.
24808         * tests/test-lock.c (USE_SEMAPHORE): New constant.
24809         (struct atomic_int, init_atomic_int, get_atomic_int_value,
24810         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
24811         Suggested by Torvald Riegel <triegel@redhat.com>.
24813 2017-01-05  Bruno Haible  <bruno@clisp.org>
24815         lock: Provide guarantee to avoid writer starvation for rwlocks.
24816         The rationale is: 1) Read-preferring read-write locks are prone to
24817         writer starvation if the number of reader threads multiplied by the
24818         percentage of time they have the lock held is too high. 2) Write-
24819         preferring read-write locks are the only reliable way to avoid this.
24820         3) There have been reports of 'test-lock' hanging on glibc systems
24821         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
24822         and glibc indeed implements read-preferring rwlocks by default, see
24823         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
24824         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
24825         * m4/pthread_rwlock_rdlock.m4: New file.
24826         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
24827         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
24828         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
24829         of rwlock initialization on glibc systems without
24830         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
24831         of rwlocks altogether on non-glibc systems without
24832         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
24833         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
24834         * lib/glthread/lock.c [USE_POSIX_THREADS]
24835         (glthread_rwlock_init_for_glibc): New function.
24836         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
24837         comment.
24838         [USE_PTH_THREADS]: New implementation of rwlocks.
24839         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
24840         readers.
24841         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
24842         (Depends-on): Add 'extensions'.
24843         * tests/test-rwlock1.c: New file.
24844         * lock-tests (Files): Add it.
24845         (Depends-on): Add usleep.
24846         (Makefile.am): Add test-rwlock1 to the tests.
24848 2017-01-05  Bruno Haible  <bruno@clisp.org>
24850         thread: Fix pth port.
24851         * lib/glthread/thread.h (pth_init): Declare weak.
24852         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
24853         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
24854         function.
24856 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
24858         parse-datetime: fix debug message on lone year number
24859         Input dates such as
24860           date -d "Apr 11 22:59:00 2011"
24861         are parsed as date (Apr 11, with default year 2016), then time, then a
24862         number (2011). Based on the combination of previously seen tokens,
24863         'digits_to_date_time' determines 2011 to be a year value.
24864         This fixes the debug messages to correctly show the updated year.
24865         Before:
24866             $ date --debug -d 'Apr 11 22:59:00 2011'
24867             date: parsed date part: (Y-M-D) 2016-04-11
24868             date: parsed time part: 22:59:00
24869             date: parsed number part: today/this/now
24870         After:
24871             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
24872             date: parsed date part: (Y-M-D) 2016-04-11
24873             date: parsed time part: 22:59:00
24874             date: parsed number part: year: 2011
24875         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
24876         'debug_year_seen' member fields.
24877         (digits_to_date_time): Update 'year_seen' as needed.
24878         (debug_print_current_time): Inform about year updates.
24879         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
24881         parse-datetime: fix local timezone debug messages
24882         "Local timezones" are strings that affect only DST relative to the
24883         default timezone. The debug messages in parse-datetime.y printed
24884         wrong information when encountering local timezones.
24885         Examples:
24886         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
24887              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
24888              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
24889         When the default timezone relates to the zone strings, EET/EEST are
24890         parsed as local timezones (tLOCAL_ZONE), and only change the DST
24891         value (0/1, respectively):
24892              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
24893              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
24894         * lib/parse-datetime.y (debug_print_current_time): If local timezone
24895         was seen, inform about DST change, don't print actual timezone.
24896         (debug_strfdatetime): If local timezone was seen, use default timezone
24897         (and adjust as needed) instead of using incorrect timezone.
24898         (parse_datetime2): Use correct time-zone source string, and adjust
24899         default timezone as needed.
24901         parse-datetime: add debug warning about DST changes
24902         Incorrect date arithmetic due to daylight saving time (DST) are a
24903         common (false) bug report in coreutils.
24904         Detect two such cases and print a warning:
24905         1. year/month/day adjustments (performed on 'struct tm'),
24906            where 'mktime' returns a different isdst value.
24907         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
24908            where the result of 'localtime(3)' on the value will return a
24909            different isdst value.
24910         Note: DST changes could be harmless or unnoticeable.
24911         Examples (with 'TZ=America/New_York'):
24912         Unnoticeable: result is 2016-Dec-14
24913            $ date -d '2016-06-15 EDT + 6 months' +%b
24914            Dec
24915         Unnoticeable: result is 2016-Dec-15 11:00:00
24916            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
24917            2016-12-15
24918         This is unexpected:
24919            $ date -d '2016-06-01 EDT + 6 months' +%F
24920            2016-11-30
24921         The new debug warnings will show:
24922            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
24923            ...
24924            date: warning: daylight saving time changed after date adjustment
24925            ...
24926         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
24927         print an appropriate warning message.
24929         parse-datetime: add debug warning about date arithmetic
24930         Date arithmetic are done directly on the fields of 'struct tm',
24931         which can result in invalid dates. Normalization with 'mktime(3)'
24932         will then produce a different date - which might cause unexpected
24933         results.
24934         Examples:
24935           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
24936           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
24937         Note that date normalization is not inherently wrong and not rejected,
24938         as it has legitimate uses:
24939           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
24940         If the user asked to adjust months but 'mday' changed,
24941         or user asked to adjust years but 'month' changed - warn about it.
24942             $ ./src/date --debug -d '2016-10-31 - 1 month'
24943             ...
24944             date: warning: when adding relative months/years, \
24945                            it is recommended to specify the 15th of the month
24946             ...
24947             date: warning: month/year adjustment resulted in shifted dates:
24948             date:      adjusted Y M D: 2016 09 31
24949             date:    normalized Y M D: 2010 10 01
24950             ...
24951         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
24952         a warning message. Improve recommendation of when to use 15 of the
24953         month or noon for date arithmetic.
24955         parse-datetime: fix debug message of relative part after timezone
24956         Relative part (e.g '+8 days') after a timezone string was not
24957         reported (was only reported after a timezone number). Due to the
24958         parser's structure, timezone strings with numbers were handled
24959         separately.
24960         before:
24961              # Timezone number + relative part: OK
24962              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
24963              ...
24964              date: parsed relative part: -8 day(s)
24965              # Timezone string + relative part: missing
24966              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
24967              [ missing message ]
24968         After: messages are printed in both cases.
24969         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
24971         parse-datetime: fix incorrect debug message on lone number
24972         A lone number is an absolute value, not a relative time part.
24973         before:
24974            $ date --debug -d '20130101'
24975            date: parsed number part: today/this/now
24976         After:
24977            $ ./src/date --debug -d '20130101'
24978            date: parsed number part: (Y-M-D) 2013-01-01
24979         * lib/parse-datetime.y ('item'/'number' tokens): Call
24980         'debug_print_current_time' instead of 'debug_print_relative_time'.
24982 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
24984         doc: modernize for C11 etc.
24985         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
24986         for C11, MinGW, etc.  This responds to Paul Smith's question in:
24987         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
24989         dfa: prefer functions to FETCH_WC macro
24990         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
24991         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
24992         wint_t result into DFA->lex.wctok instead of to a separate arg.
24993         All callers changed.  Move more local decls closer to where
24994         they're used.
24996         dfa: narrow more local var scopes
24997         * lib/dfa.c: Move more local decls to be more local.
24999         dfa: remove duplicate assignment
25000         Problem reported by Bruno Haible in:
25001         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
25002         * lib/dfa.c (parse_bracket_exp): Simplify.
25004 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25006         dfa: simplify constraint-dependency checking
25007         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
25008         (prev_other_constraint): Remove.
25009         (prev_newline_dependent, prev_letter_dependent):
25010         Simplify, to avoid an unnecessary bitwise AND operation.
25012         dfa: prefer functions and constants to macros
25013         * lib/dfa.c: Prefer constants to macros where either will do.
25014         (streq, isasciidigit, newline_constraint)
25015         (letter_constraint, other_constraint, succeeds_in_context)
25016         (prev_newline_constraint, prev_letter_constraint)
25017         (prev_other_constraint, prev_newline_dependent)
25018         (prev_letter_dependent, accepting, accepts_in_context):
25019         Now static functions instead of function-like macros.
25020         Use lower-case names accordingly.  All uses changed.
25022         dfa: narrow more local var scopes
25023         * lib/dfa.c: Move some more local decls down to nearer where
25024         they're needed.
25026 2016-12-31  Jim Meyering  <meyering@fb.com>
25028         dfa: narrow the scope of many local variables
25029         * lib/dfa.c: Now that we are no longer constrained to c89, move
25030         declarations of many variables (often indices) "down" into the
25031         scope(s) where used or to the point of definition.  This is a
25032         no-semantic-change diff.
25034 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25036         version-etc: new year
25037         * build-aux/gendocs.sh (version):
25038         * doc/gendocs_template:
25039         * doc/gendocs_template_min:
25040         * doc/gnulib.texi:
25041         * lib/version-etc.c (COPYRIGHT_YEAR):
25042         Update copyright dates by hand in templates and the like.
25043         * all files: Run 'make update-copyright'.
25045 2016-12-31  Eric Blake  <eblake@redhat.com>
25047         do-release-commit-and-tag: avoid shell syntax error
25048         * build-aux/do-release-commit-and-tag (curr_br): $branch can
25049         contain spaces when rebasing.
25051         maint.mk: hoist gnulib_dir definition earlier
25052         * top/maint.mk (gnulib_dir): Move near top of file.
25054 2016-12-31  Jim Meyering  <meyering@fb.com>
25056         maint.mk: do not always evaluate intprops-related shell
25057         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
25058         using gnulib_dir undefined (gnulib_dir is defined later in the
25059         file, which will be fixed separately), and besides, there is no
25060         need to incur the cost of this shell invocation for every single
25061         use of this .mk file.  Reported by Eric Blake in
25062         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
25064 2016-12-30  Jim Meyering  <meyering@fb.com>
25066         maint.mk: improve sc_prohibit_intprops_without_use
25067         * top/maint.mk (_intprops_names): Don't hard-code the list of
25068         symbol names.  Instead, derive it on the fly.
25070 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
25072         dfa: shorten sbit, success
25073         * lib/dfa.c (struct regex_syntax.sbit):
25074         (struct dfa.success): Use char, not int, for array elements, since
25075         they are all in the range 0..7.
25077         dfa: simplify multibyte_prop etc.
25078         This follows up on a change made when dfa.c was in grep, namely grep
25079         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
25080         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
25081         That earlier simplification allows for some more simplification
25082         and trimming down here.
25083         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
25084         (struct lexer_state): New mamber brack.
25085         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
25086         since they must be in the range 0..3 now.
25087         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
25088         the brack member now supersedes them.
25089         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
25090         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
25091         (dfaparse): Remove unnecessary initializations of already-0 storage.
25092         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
25093         (dfassbuild): No need to clear sup->mbcsets.
25095         dfa: minor performance tweak
25096         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
25098         dfa: wrap charclass inside a struct
25099         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
25100         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
25101         about 5% faster, where list.txt is generated by 'aspell dump
25102         master | head -n 100000 >list.txt'.  See Bug#22239.
25103         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
25104         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
25105         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
25106         Adjust to this, e.g., by using charclass * rather than charclass.
25107         All callers changed as needed.
25108         (copyset): Remove.  All uses changed to simple assignment.
25109         (parse_bracket_exp): Use zeroset instead of memset.
25111 2016-12-30  Jim Meyering  <meyering@fb.com>
25113         maint.mk: update list of intprops.h symbol names
25114         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
25115         This avoids a false failure of the sc_prohibit_intprops_without_use
25116         rule in grep.
25118 2016-12-29  Eric Blake  <eblake@redhat.com>
25120         getopt: fix parallel test failure
25121         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
25122         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
25123         * tests/test-getopt-main.h (main): Use different file names
25124         in case test-getopt-gnu and test-getopt-posix run in parallel.
25126 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25128         xalloc: x2nrealloc check for ptrdiff_t overflow
25129         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
25130         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
25132 2016-12-24  Bruno Haible  <bruno@clisp.org>
25134         lock test: Fix performance problem on multi-core machines.
25135         * tests/test-lock.c (USE_VOLATILE): New macro.
25136         (struct atomic_int): New type.
25137         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
25138         functions.
25139         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
25140         as 'struct atomic_int'.
25141         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
25142         reclock_checker_thread, test_recursive_lock): Use the new functions.
25143         Reported by Eric Blake in
25144         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
25145         and by Pádraig Brady in
25146         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
25148 2016-12-19  Bruno Haible  <bruno@clisp.org>
25150         vma-iter: Fix endless loop on 64-bit Windows.
25151         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
25152         'unsigned long'.
25154 2016-12-19  Bruno Haible  <bruno@clisp.org>
25156         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
25157         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
25158         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
25159         Invoke gt_TYPE_WINT_T instead.
25160         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
25161         * modules/stdint (Files): Add m4/wint_t.m4.
25162         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
25163         * modules/wctype-h (Makefile.am): Likewise.
25164         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
25165         not only on MSVC.
25166         * lib/wctype.in.h (wint_t): Likewise.
25168 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
25170         getopt-posix-tests: fix Makefile typo
25171         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
25172         Fix typo: the last ‘_’ was missing in the name.
25173         I suspect that the typo explains this build failure:
25174         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
25175         although I can’t reproduce the problem on Solaris 10 sparc.
25177 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
25179         dfa: improve worst-case 'replace' performance
25180         See my note in Bug#22357#71.
25181         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
25182         (merge_constrained): New function, which is like
25183         the old 'merge' function, except with a new argument C2.
25184         Simplify the body by avoiding the need for different sections
25185         of code depending on whether one input is exhausted.
25186         (merge): Use the new function.
25187         (delete): Return the constraint of the deleted position,
25188         not the entire position.  Caller changed.
25189         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
25191 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
25193         dfa: performance improvement for removal of epsilon closure
25194         See Bug#22357#32.
25195         * lib/dfa.c (delete): Use binary search to find deleted index.
25196         (replace): New function.  It replaces a position with the followed set.
25197         (epsclosure): Replace it with a new algorithm.  Update caller.
25199 2016-12-18  Bruno Haible  <bruno@clisp.org>
25201         Split tests for getopt-posix and getopt-gnu.
25202         * tests/test-getopt-posix.c: New file.
25203         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
25204         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
25205         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
25206         GNULIB_TEST_GETOPT_GNU.
25207         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
25208         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
25209         (Makefile.am): Test test-getopt-posix instead of test-getopt.
25210         * modules/getopt-gnu-tests: New file.
25211         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
25213 2016-12-18  Bruno Haible  <bruno@clisp.org>
25215         posix-modules: Add options for specific platforms.
25216         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
25217         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
25218         Invoke func_tmpdir. Filter out the excludes.
25220 2016-12-18  Bruno Haible  <bruno@clisp.org>
25222         getopt: Fix link error for users of getopt() in <unistd.h>.
25223         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
25224         __need_getopt is defined. Undefine all macros before defining them.
25225         * modules/getopt (Include): Clarify that including <unistd.h> is also
25226         OK.
25227         * tests/test-getopt.c: Add comment.
25229 2016-12-17  Bruno Haible  <bruno@clisp.org>
25231         getaddrinfo tests: Avoid compilation error on MSVC.
25232         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
25233         getaddrinfo on native Windows.
25235 2016-12-17  Bruno Haible  <bruno@clisp.org>
25237         getlogin, getlogin_r: Fix link errors on MSVC.
25238         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
25239         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
25240         (Link): New section.
25241         * modules/getlogin_r (Files): Add m4/getlogin.m4.
25242         (configure.ac): Require gl_LIB_GETLOGIN.
25243         (Link): New section.
25244         * NEWS: Mention the new link requirements.
25245         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
25246         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
25248 2016-12-17  Bruno Haible  <bruno@clisp.org>
25250         Un-deprecate the 'progname' module.
25251         * NEWS: Describe the appropriate use-cases of 'progname' versus
25252         'getprogname'. Based on discussion summary at
25253         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
25255 2016-12-17  Bruno Haible  <bruno@clisp.org>
25257         Reorganize NEWS a bit.
25258         * NEWS: Move some not so important changes away from section
25259         "Important Notes".
25261 2016-12-17  Bruno Haible  <bruno@clisp.org>
25263         tanhf: Avoid redefinition error on MSVC.
25264         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
25265         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
25266         may be defined as an inline function.
25267         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
25268         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
25270 2016-12-17  Bruno Haible  <bruno@clisp.org>
25272         tanf: Avoid redefinition error on MSVC.
25273         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
25274         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
25275         may be defined as an inline function.
25276         * modules/math (Makefile.am): Substitute REPLACE_TANF.
25277         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
25279 2016-12-17  Bruno Haible  <bruno@clisp.org>
25281         sqrtf: Avoid redefinition error on MSVC.
25282         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
25283         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
25284         may be defined as an inline function.
25285         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
25286         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
25288 2016-12-17  Bruno Haible  <bruno@clisp.org>
25290         sinhf: Avoid redefinition error on MSVC.
25291         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
25292         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
25293         may be defined as an inline function.
25294         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
25295         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
25297 2016-12-17  Bruno Haible  <bruno@clisp.org>
25299         sinf: Avoid redefinition error on MSVC.
25300         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
25301         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
25302         may be defined as an inline function.
25303         * modules/math (Makefile.am): Substitute REPLACE_SINF.
25304         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
25306 2016-12-17  Bruno Haible  <bruno@clisp.org>
25308         logf: Avoid redefinition error on MSVC.
25309         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
25310         may be defined as an inline function.
25312 2016-12-17  Bruno Haible  <bruno@clisp.org>
25314         log10l: Avoid redefinition error on MSVC.
25315         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
25316         may be defined as an inline function.
25318 2016-12-17  Bruno Haible  <bruno@clisp.org>
25320         log10f: Avoid redefinition error on MSVC.
25321         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
25322         may be defined as an inline function.
25324 2016-12-17  Bruno Haible  <bruno@clisp.org>
25326         hypotl: Avoid redefinition error on MSVC.
25327         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
25328         may be defined as an inline function.
25330 2016-12-17  Bruno Haible  <bruno@clisp.org>
25332         hypotf: Avoid redefinition error on MSVC.
25333         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
25334         may be defined as an inline function.
25336 2016-12-17  Bruno Haible  <bruno@clisp.org>
25338         fmodl: Avoid redefinition error on MSVC.
25339         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
25340         may be defined as an inline function.
25342 2016-12-17  Bruno Haible  <bruno@clisp.org>
25344         fmodf: Avoid redefinition error on MSVC.
25345         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
25346         may be defined as an inline function.
25348 2016-12-17  Bruno Haible  <bruno@clisp.org>
25350         expf: Avoid redefinition error on MSVC.
25351         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
25352         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
25353         may be defined as an inline function.
25354         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
25355         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
25357 2016-12-17  Bruno Haible  <bruno@clisp.org>
25359         coshf: Avoid redefinition error on MSVC.
25360         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
25361         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
25362         may be defined as an inline function.
25363         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
25364         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
25366 2016-12-17  Bruno Haible  <bruno@clisp.org>
25368         cosf: Avoid redefinition error on MSVC.
25369         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
25370         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
25371         may be defined as an inline function.
25372         * modules/math (Makefile.am): Substitute REPLACE_COSF.
25373         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
25375 2016-12-17  Bruno Haible  <bruno@clisp.org>
25377         atan2f: Avoid redefinition error on MSVC.
25378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
25379         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
25380         may be defined as an inline function.
25381         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
25382         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
25384 2016-12-17  Bruno Haible  <bruno@clisp.org>
25386         atanf: Avoid redefinition error on MSVC.
25387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
25388         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
25389         may be defined as an inline function.
25390         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
25391         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
25393 2016-12-17  Bruno Haible  <bruno@clisp.org>
25395         asinf: Avoid redefinition error on MSVC.
25396         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
25397         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
25398         may be defined as an inline function.
25399         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
25400         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
25402 2016-12-17  Bruno Haible  <bruno@clisp.org>
25404         acosf: Avoid redefinition error on MSVC.
25405         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
25406         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
25407         may be defined as an inline function.
25408         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
25409         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
25411 2016-12-17  Bruno Haible  <bruno@clisp.org>
25413         Avoid redefinition errors on MSVC.
25414         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
25415         the function may be defined as an inline function.
25416         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
25417         the function may be defined as an inline function.
25419 2016-12-17  Bruno Haible  <bruno@clisp.org>
25421         Avoid redefinition errors on MSVC.
25422         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
25423         * lib/unistd.in.h: Include <stdio.h> when necessary.
25425 2016-12-17  Bruno Haible  <bruno@clisp.org>
25427         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
25428         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
25429         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
25430         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
25431         WINT_MAX.
25433 2016-12-17  Bruno Haible  <bruno@clisp.org>
25435         Avoid autoconf warning.
25436         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
25437         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
25439 2016-12-17  Bruno Haible  <bruno@clisp.org>
25441         fpending: Revert workaround against Emacs bug.
25442         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
25443         The Emacs bug is fixed by Eli Zaretskii in
25444         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
25446 2016-12-17  Bruno Haible  <bruno@clisp.org>
25448         getlogin_r tests: Port to mingw.
25449         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
25450         regression introduced on 2014-05-19.
25452 2016-12-17  Bruno Haible  <bruno@clisp.org>
25454         getlogin: Port to newer mingw.
25455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
25456         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
25457         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
25458         HAVE_GETLOGIN.
25459         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
25460         HAVE_GETLOGIN.
25461         * doc/posix-functions/getlogin.texi: Mention the issue.
25462         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
25463         regression introduced on 2014-05-14.
25465 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
25467         builtin-expect: improve port to IBM XL C
25468         Problem reported for z/OS by Daniel Richard G. in:
25469         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
25470         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
25471         Test for <builtins.h> directly.
25473         builtin-expect: port to IBM XL C
25474         Problem reported for z/OS by Daniel Richard G. in:
25475         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
25476         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
25477         Also allow __builtin_expect defined via a standard include file.
25479         regex: fix dependency
25480         Problem reported by Bruno Haible in:
25481         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
25482         * modules/regex: Depend on builtin-expect.
25484         builtin-expect: new module
25485         Fix fnmatch to use it.
25486         Problem reported for z/OS by Daniel Richard G.
25487         * lib/fnmatch.c (__builtin_expect):
25488         * lib/glob.c (__builtin_expect):
25489         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
25490         * lib/memmem.c (__builtin_expect) [!_LIBC]:
25491         * lib/scandir.c (__builtin_expect):
25492         * lib/strstr.c (__builtin_expect) [!_LIBC]:
25493         Remove macro; config.h now does this.
25494         * lib/gl_anytreehash_list1.h (add_to_bucket):
25495         * lib/regex_internal.h (BE):
25496         Assume __builtin_expect.
25497         * m4/builtin-expect.m4, modules/builtin-expect: New files.
25498         * modules/avltreehash-list, modules/fnmatch, modules/glob:
25499         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
25500         * modules/scandir, modules/strstr-simple:
25501         Depend on builtin-expect.
25503 2016-12-15  Bruno Haible  <bruno@clisp.org>
25505         init.sh: Add possibility to not delete temporary files.
25506         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
25507         to yes, don't erase the temporary directory.
25509 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
25511         regex: fix integer-overflow bug in never-used code
25512         Problem reported by Clément Pit–Claudel in:
25513         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
25514         * lib/regex_internal.h: Include intprops.h.
25515         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
25516         behavior on integer overflow.
25517         * modules/regex (Depends-on): Add intprops.
25519         fpending: fix port to MinGW on Emacs
25520         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
25521         Problem reported by Eli Zaretskii in:
25522         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
25523         Is Plan 9 still a valid porting target, anyway?
25525 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
25527         safe-alloc: use xalloc-oversized
25528         * lib/safe-alloc.c: Include xalloc-oversized.h.
25529         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
25530         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
25532         xalloc: do not exceed PTRDIFF_MAX
25533         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
25534         xalloc_oversized check, since objects larger than PTRDIFF_MAX
25535         bytes have pointer-subtraction problems.
25537         malloca: do not exceed PTRDIFF_MAX
25538         * lib/malloca.h: Include xalloc-oversized.
25539         (nmalloca): Use xalloc_oversized instead of rolling our own.
25540         * modules/malloca (Depends-on):
25541         * modules/relocatable-prog-wrapper (Depends-on):
25542         Add xalloc-oversized.
25544         quotearg: pacify GCC better
25545         * modules/quotearg (Depends-on): Add minmax, stdint.
25546         * lib/quotearg.c: Include minmax.h, stdint.h.
25547         (nslots): Now int, as there seems little point to going to extra
25548         work merely to support the INT_MAX slot, which nobody ever uses.
25549         (quotearg_n_options): Redo size-overflow checks to pacify GCC
25550         and to catch (mostly-theoretical) ptrdiff_t problems too.
25551         This can be done via one comparison.
25553 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
25555         xalloc-oversized: check for PTRDIFF_MAX too
25556         This avoids undefined behavior when subtracting pointers to
25557         objects containing more than PTRDIFF_MAX bytes.
25558         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
25559         Also return 1 if the result would exceed PTRDIFF_MAX>
25560         * modules/xalloc-oversized (Depends-on):
25561         Add stdint.
25563         dfa: fix glitches in previous commit
25564         Sorry, I don't know how I managed to commit the wrong version.
25565         * lib/dfa.c (MIN): Move up.
25566         (xpalloc): Now static.
25568         dfa: fix some unlikely integer overflows
25569         I found these while reviewing the recent Coverity-related fix.
25570         This patch changes part of dfa.c to prefer ptrdiff_t instead of
25571         size_t for object counts.  Using ptrdiff_t is the style typically
25572         used in Emacs; although it wastes a sign bit as sizes can never be
25573         negative, it makes -fsanitize=undefined more likely to catch
25574         integer overflows in index calculation, and nowadays the upside is
25575         typically more important than the downside.  Although perhaps the
25576         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
25577         of dfa.c already does, since it uses state_num which is signed),
25578         that is a bigger change and is not needed to fix the bugs I found.
25579         * lib/dfa.c: Include stdint.h and intprops.h.
25580         (TOKEN_MAX): New macro.
25581         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
25582         (charclass_index, parse_bracket_exp, addtok, insert, merge)
25583         (realloc_trans_if_necessary, free_mbdata):
25584         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
25585         This is safe because xpalloc checks that the sizes do not exceed
25586         either SIZE_MAX or PTRDIFF_MAX.
25587         (xpalloc): New function, mostly taken from Emacs.
25588         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
25589         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
25590         (charclass_index): Check for integer overflow in computing
25591         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
25592         added to it later.
25593         (alloc_position_set): Check for integer overflow.  On typical
25594         platforms this check has zero overhead, since the constant
25595         expression is false.
25596         (realloc_trans_if_necessary):
25597         Remove assertion, which I hope Coverity no longer needs.
25599         * modules/dfa (Depends-on): Add intprops, stdint.
25601 2016-12-12  Jim Meyering  <meyering@fb.com>
25603         dfa: add an assertion to avoid coverity false positive
25604         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
25605         warned that "newalloc1 - 2" could overflow.
25607 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
25609         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
25610         * dfa.h (DFA_CASE_FOLD): Remove.
25611         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
25613 2016-12-13  John W. Eaton  <gnu@jweaton.org>
25615         link: fix test to declare use of rename()
25616         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
25617         -Werror=implicit-function-declaration
25619 2016-12-12  Bruno Haible  <bruno@clisp.org>
25621         fpending: Port to native Windows with MSVC.
25622         * lib/fpending.c: Include stdio-impl.h.
25623         (__fpending): Include all known implementations. Err out if it's not
25624         ported.
25625         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
25626         * modules/fpending (Files): Add lib/stdio-impl.h.
25627         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
25629 2016-12-12  Bruno Haible  <bruno@clisp.org>
25631         stdioext: Port to native Windows with MSVC.
25632         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
25633         (struct _gl_real_FILE): New type.
25634         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
25635         Windows.
25636         * lib/fbufmode.c (fbufmode): Add code for native Windows.
25637         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
25638         other SystemV derived implementations.
25639         * lib/fpurge.c (fpurge): Likewise.
25640         * lib/freadable.c (freadable): Likewise.
25641         * lib/freadahead.c (freadahead): Likewise.
25642         * lib/freading.c (freading): Likewise.
25643         * lib/freadptr.c (freadptr): Likewise.
25644         * lib/freadseek.c (freadptrinc): Likewise.
25645         * lib/fseeko.c (fseeko): Likewise.
25646         * lib/fseterr.c (fseterr): Likewise.
25647         * lib/fwritable.c (fwritable): Likewise.
25648         * lib/fwriting.c (fwriting): Likewise.
25649         Reported by Gisle Vanem <gvanem@yahoo.no>.
25651 2016-12-11  Jim Meyering  <meyering@fb.com>
25653         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
25654         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
25655         to work with most shells, but not with the one provided by many
25656         Solaris 10 systems, so running configure with such a /bin/sh evokes
25657         e.g., "./configure: syntax error at line 33602: `(' unexpected".
25658         Reported by Assaf Gordon in
25659         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
25661 2016-12-10  Bruno Haible  <bruno@clisp.org>
25663         threadlib: Optimize out runtime test on Solaris >= 10.
25664         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
25665         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
25666         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
25668 2016-12-10  Bruno Haible  <bruno@clisp.org>
25670         stdint: Update doc about Solaris 9.
25671         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
25673 2016-12-09  Bruno Haible  <bruno@clisp.org>
25675         c-ctype tests: Fix link error on Solaris 9.
25676         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
25677         Reported at <https://savannah.gnu.org/bugs/?46827>.
25679 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
25681         dfa: fix performance bug that recomputes trans
25682         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
25683         25 on-demand changes.  The bug caused build_state to reset all
25684         d->trans elements to -2 even when d->trans was already non-null.
25685         Use C99 style decls after statements in this function.
25687         same-inode: port to MinGW
25688         Here st_ino is always 0, so change the definition of SAME_INODE so
25689         that 1 means the two files are the same, 0 with st_ino != 0 means
25690         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
25691         reported by Bruno Haible (Bug#25146).
25692         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
25693         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
25695 2016-12-04  Bruno Haible  <bruno@clisp.org>
25697         javacomp-script: Support Java 7 and 8.
25698         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
25699         target-version 1.7, 1.8.
25701 2016-12-02  Daiki Ueno  <ueno@gnu.org>
25703         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
25704         GPLv2" rewriting.
25706 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
25708         * gnulib-tool (func_import): Adhere to the license guideline when
25709         rewriting the license text to "LGPLv3+ or GPLv2":
25710         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
25712 2016-12-02  Bruno Haible  <bruno@clisp.org>
25714         localcharset: Avoid theoretical buffer overrun.
25715         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
25716         return value from setlocale if it would lead to a buffer overrun.
25718 2016-12-01  Bruno Haible  <bruno@clisp.org>
25720         Relicense some modules under LGPLv2+.
25721         Kevin Cernekee's approval is in
25722         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
25723         * modules/fseterr (License): Change to LGPLv2+.
25724         * modules/mbchar (License): Likewise.
25725         * modules/mbiter (License): Likewise.
25726         * modules/mbsnlen (License): Likewise.
25727         * modules/wcwidth (License): Likewise.
25729 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25731         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
25732         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
25733         OS/2 kLIBC.
25735 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25737         alphasort, scandir: Port to OS/2 kLIBC
25738         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
25739         declaration.
25740         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
25742 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25744         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
25745         * lib/relocatable.c (relocate): Do not touch pathname if it is started
25746         with '/@unixroot'.
25748 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25750         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
25751         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
25752         OS/2 kLIBC unless TCPV40HDRS is defined.
25754 2016-11-29  Jim Meyering  <meyering@fb.com>
25756         dfa: avoid new infinite loop
25757         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
25758         * lib/dfa.c (dfastate): When constructing a new state table, we could
25759         initially declare that we had found a match, and later find that
25760         constraints eliminate that possibility, yet continue to use the
25761         now stale "matched" indicator.  That would lead to an infinite loop.
25762         The solution is to update "matched" when necessary.
25763         Introduced by commit v0.1-983-g403adf1.
25765 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
25767         dfa: avoid match middle in multibyte character
25768         * lib/dfa.c (transit_state): If fails in matching single byte characters
25769         on a state including period expression in non-UTF8 multibyte locales,
25770         skip trailing bytes.
25771         (dfa_supported): Revert previous change.
25773 2016-11-27  Jim Meyering  <meyering@fb.com>
25775         dfa: avoid false match in non-UTF8 multibyte locales
25776         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
25777         as "not supported" so that callers will resort to using regex-based
25778         matcher.  This will surely hurt performance, but correctness trumps
25779         performance here, and the affected locales are less and less relevant,
25780         these days.  See grep's bug report https://bugs.gnu.org/24975.
25782 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
25784         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
25785         * lib/ptsname_r.c: Include the appropriate headers.
25786         [__sun]: Delete sys/sysmacros.h include.
25787         [_AIX || __osf__]: Likewise.
25788         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
25790 2016-11-27  Pádraig Brady  <P@draigBrady.com>
25792         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
25793         * lib/md4.c (md4_process_bytes): The existing define is made internal
25794         in recent versions of glibc, so also use this new public define.
25795         * lib/md5.c (md5_process_bytes): Likewise.
25796         * lib/sha1.c (sha1_process_bytes): Likewise.
25797         * lib/sha256.c (sha256_process_bytes): Likewise.
25798         * lib/sha512.c (sha512_process_bytes): Likewise.
25800 2016-11-27  Pádraig Brady  <P@draigBrady.com>
25802         maint: use a more standard return from mbrtowc test
25803         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
25804         from the test program as this often indicates an
25805         unhandled case in the test program.
25806         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
25807         (gl_MBRTOWC_SANITYCHECK): Likewise.
25808         (gl_MBRTOWC_NULL_ARG2): Likewise.
25809         (gl_MBRTOWC_NUL_RETVAL): Likewise.
25811 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
25813         freopen: work around glibc bug with closed fd
25814         Work around glibc bug#15589, where freopen mishandles the case
25815         where stdin etc. are already closed.
25816         * doc/posix-functions/freopen.texi (freopen): Document the bug.
25817         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
25818         instead of __need_FILE, as the latter does not work with glibc.
25819         Include <fcntl.h>, for open flags.
25820         (rpl_freopen): Work around glibc bug.
25821         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
25822         * modules/freopen (Depends-on): Add fcntl-h.
25823         * tests/test-freopen.c (main): Test for bug.
25825 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
25827         fnmatch: fix typo introduced on 2016-08-17
25828         This fixes the port to non-GCC compilers that lack __builtin_expect.
25829         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
25831         dfa: simplify with new function fillset
25832         * lib/dfa.c (fillset): New function.
25833         Use it for clarity when applicable.
25835         dfa: fix glitches with on-demand states
25836         Also, adjust commentary to better match new code.
25837         Some of these glitches predate the recent change.
25838         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
25839         only non-initial states.
25840         (dfastate): Rename locals to better match new roles.
25841         Move them into nested scopes if this is easy.
25842         Omit unnecessary calls to zeroset.
25843         Simplify test for whether to throw in the positions of state 0.
25844         Omit C99-ism (decl after statement) since Gawk still wants C89.
25845         (build_state): Omit unnecessary test and assignment.
25846         Fix some confusion that counted transition tables inaccurately
25847         and could cause a memory leak.
25848         (dfaexec_main): Redo to make it clearer to the compiler that
25849         -1 and -2 are the only negative state numbers here.
25851 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
25853         dfa: addition of new state on demand
25854         * src/dfa.c (dfastate): Add argument UC, the current input character.
25855         Fill only a group including the character in transition table.
25856         (realloc_trans_if_necessary): Add the dummy state which means that a
25857         transition table is assigned but the next state is not assigned.
25858         (build_state): Return the next state.  All callers updated.
25859         (transit_state_singlebyte): If we get the dummy state,
25860         fill the transition table.
25861         (dfaexec_main): Handle the dummy state.
25862         (free_mbdata, dfafree): Consider the dummy state.
25864 2016-11-24  Daiki Ueno  <ueno@gnu.org>
25866         srclist: sync with released gettext
25867         * config/srclist.txt: Set "release" option to the files under
25868         $GETTEXT.
25870 2016-11-24  Daiki Ueno  <ueno@gnu.org>
25872         srclist: add "release" option
25873         * config/srclist.txt: Change the format so that the first column
25874         of each line points to the top-level directory of the source
25875         archive.
25876         * config/srclist-update: Accept "release" option that checks files
25877         from the most recently tagged revision in the source archive.
25879 2016-11-21  Bruno Haible  <bruno@clisp.org>
25881         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
25882         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
25883         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
25884         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
25885         Inline and remove member function 'rpl ()' of the wrapper struct.
25887 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
25889         dfa: fix logic typo
25890         Problem reported by Stephane Chazelas (Bug#24973).
25891         * lib/dfa.c (using_simple_locale): Fix typo that caused some
25892         non-simple locales like fr_FR to be treated as simple.
25894 2016-11-20  Jim Meyering  <meyering@fb.com>
25896         fix test driver leaks: exclude, malloc, realloc
25897         * tests/test-exclude.c (main): Fix trivial leak.
25898         * tests/test-malloc-gnu.c (main): Likewise.
25899         * tests/test-realloc-gnu.c (main): Likewise.
25900         With these changes, grep's tests are now leak free.
25901         I.e., running them with ASAN elicits no failure:
25902           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
25903             AM_LDFLAGS='-fsanitize=address -static-libasan' check
25905 2016-11-11  Bruno Haible  <bruno@clisp.org>
25907         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
25908         * modules/libunistring: (License): Change from LGPL to
25909         "LGPLv3+ or GPLv2".
25910         * modules/libunistring-optional: Likewise.
25911         * modules/unicase/*: Likewise.
25912         * modules/uniconv/*: Likewise.
25913         * modules/unictype/*: Likewise.
25914         * modules/unigbrk/*: Likewise.
25915         * modules/unilbrk/*: Likewise.
25916         * modules/uniname/*: Likewise.
25917         * modules/uninorm/*: Likewise.
25918         * modules/unistdio/*: Likewise.
25919         * modules/unistr/*: Likewise.
25920         * modules/uniwbrk/*: Likewise.
25921         * modules/uniwidth/*: Likewise.
25923 2016-11-12  Bruno Haible  <bruno@clisp.org>
25925         Relicense some modules under LGPLv2+.
25926         Paul Eggert's approval is in
25927         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
25928         Eric Blake's approval is in
25929         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
25930         Ludovic Courtès's approval is in
25931         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
25932         * modules/isnand-nolibm (License): Change to LGPLv2+.
25933         * modules/isnanf-nolibm (License): Likewise.
25934         * modules/isnanl-nolibm (License): Likewise.
25936 2016-11-19  Bruno Haible  <bruno@clisp.org>
25938         Relicense some modules under LGPLv2+.
25939         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
25940         modules/vasnprintf.
25941         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
25942         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
25943         All other significant changes to the files in lib/ of these modules
25944         are from me.
25945         * modules/memcmp2 (License): Change to LGPLv2+.
25946         * modules/amemxfrm (License): Likewise.
25947         * modules/fpieee (License): Likewise.
25948         * modules/fpucw (License): Likewise.
25949         * modules/frexp-nolibm (License): Likewise.
25950         * modules/frexpl-nolibm (License): Likewise.
25951         * modules/printf-frexp (License): Likewise.
25952         * modules/printf-frexpl (License): Likewise.
25953         * modules/printf-safe (License): Likewise.
25954         * modules/signbit (License): Likewise.
25956 2016-11-17  Bruno Haible  <bruno@clisp.org>
25958         Enable Unicode decoder safety unconditionally.
25959         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
25960         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
25961         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
25962         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
25963         * lib/unistr/u8-prev.c (u8_prev): Likewise.
25964         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
25965         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
25966         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
25967         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
25968         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
25969         * lib/unistr/u16-prev.c (u16_prev): Likewise.
25970         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
25971         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
25972         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
25973         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
25974         * lib/unistr/u32-prev.c (u32_prev): Likewise.
25975         * lib/unistr/u32-next.c (u32_next): Likewise.
25976         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
25977         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
25978         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
25979         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
25980         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
25981         CONFIG_UNICODE_SAFETY tests unconditionally.
25982         * tests/unistr/test-u32-mblen.c (main): Likewise.
25983         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
25984         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
25985         * tests/unistr/test-u32-next.c (main): Likewise.
25986         * tests/unistr/test-u32-strmblen.c (main): Likewise.
25987         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
25988         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
25989         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
25990         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
25991         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
25992         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
25993         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
25994         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
25995         * lib/unistr/u16-check.c (u16_check): Update comment.
25996         * NEWS: Mention the changes that callers should be aware of.
25998 2016-11-19  Bruno Haible  <bruno@clisp.org>
26000         relocatable-prog-wrapper: Fix breakage on Cygwin.
26001         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
26002         (Depends-on): Remove intprops.
26003         * lib/relocwrapper.c: Update dependency tree.
26004         (strerror): Undefine.
26005         * build-aux/install-reloc (func_create_wrapper): Do not compile
26006         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
26008 2016-11-19  Bruno Haible  <bruno@clisp.org>
26010         strerror: Make it compile in C++ mode.
26011         * lib/strerror.c (strerror): Ignore the return value of memcpy().
26013 2016-11-15  Pedro Alves  <palves@redhat.com>
26015         sys_time: add gnulib::timeval for C++
26016         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
26017         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
26018         timeval macro.
26020 2016-11-14  Pedro Alves  <palves@redhat.com>
26022         snippet/c++defs: fix real-floating arg functions in C++ mode
26023         Also, define isfinite, isinf, isnan, signbit in the gnulib
26024         namespace instead of in the global namespace.
26025         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
26026         (_GL_END_NAMESPACE): New.
26027         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
26028         (isfinite, isinf, isnan, signbit) [__cplusplus &&
26029         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
26030         instead of in the global namespace.
26031         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
26032         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
26033         of in the global namespace.
26035 2016-11-13  Jim Meyering  <meyering@fb.com>
26037         strftime: don't use __THROW
26038         Each use of __THROW would provoke this from gcc-7-to-be:
26040           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
26041             on unit local functions [-Wattributes]
26042           static int iso_week_days (int, int) __THROW;
26043           ^~~~~~
26044         * lib/strftime.c (__THROW): Don't define.
26045         Remove each use of __THROW.
26046         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
26047         (tm_diff, iso_week_days, __strftime_internal): Likewise.
26049 2016-11-14  Paul Eggert  <eggert@union>
26051         obstack: port to gcc -fcheck-pointer-bounds
26052         Problem found by 'make check' failure on bleeding-edge coreutils
26053         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
26054         6.2.0-5ubuntu12), configured via "./configure
26055         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
26056         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
26057         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
26058         New macro, copied from fts_.h.
26059         (struct _obstack_chunk.contents): Use it.
26061 2016-11-14  Eric Blake  <eblake@redhat.com>
26063         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
26064         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
26065         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
26067 2016-11-14  Pádraig Brady  <P@draigBrady.com>
26069         strptime: fix compile error in recent change
26070         * lib/strptime.c (__strptime_internal): Fix ported code.
26072 2016-11-11  Bruno Haible  <bruno@clisp.org>
26074         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
26075         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
26076         (func_import): Extend determination of license_incompatibilities.
26077         (func_create_testdir): Extend table of license compatibility. Handle
26078         also the licenses GPLv3+, GPL, LGPLv3+.
26080 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
26082         strftime: tune %q
26083         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
26085         Merge strftime.c changes from glibc
26086         This incorporates:
26087         2007-10-16 [BZ #5184] Add tzset_called argument
26088         2008-06-13 [BZ #6612] pass reference to tzset_called around
26089         2009-10-30 Implement Burmese language locale for Myanmar
26090         2010-01-09 Add support for XPG7 testing
26091         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
26092         2015-10-20 Convert miscellaneous function definitions to prototype style
26093         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
26094         it anyway and this lessens the difference between gnulib and glibc.
26095         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
26096         (__THROW): Define if standard headers do not.
26097         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
26098         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
26099         Declare with __THROW.
26100         (__strftime_internal): Rename from strftime_case_. Add arg for
26101         whether tzset is called.  All uses changed.  Call tzset at most
26102         once.  Allow %OC, for Burmese.
26103         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
26104         Don't assume values are in range.
26106 2016-11-12  Eric Blake  <eblake@redhat.com>
26108         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
26109         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
26110         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
26111         different value.
26113 2006-11-12  Pedro Alves  <palves@redhat.com>
26115         Fix gnulib C++ namespace support and std::frexp
26116         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
26117         _GL_CXXALIASWARN.
26119 2006-11-12  Pedro Alves  <palves@redhat.com>
26121         GNULIB_NAMESPACE::func need not pull in rpl_func
26122         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
26123         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
26124         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
26125         struct instead of a function pointer.
26127 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
26129         manywarnings: fix -Wno-missing-field-initializers detection
26130         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
26131         to be independent of -Wunused-variable.  I.E. ensure the latter
26132         warning doesn't occur so that detection of the former is accurate.
26134 2016-11-05  Pádraig Brady  <pbrady@fb.com>
26136         strftime,strptime: support %q to represent the quarter
26137         * lib/strftime.c (strftime_case_): Add %q case.
26138         * lib/strptime.c (__strptime_internal): Likewise.
26139         * tests/test-strftime.c (quarter_test): A new test case.
26141 2016-11-03  Eric Blake  <eblake@redhat.com>
26143         bootstrap: Fix get_version() for AIX 5.3
26144         * build-aux/bootstrap (get_version): Factor out sed script, since
26145         indented comments choke AIX 5.3 sed.
26146         Reported-by: Michael Felt <aixtools@gmail.com>
26148 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
26150         intprops: port to older XL C
26151         Problem reported by Alexander Samoilov in:
26152         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
26153         http://savannah.nongnu.org/bugs/?49448
26154         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
26155         Define to 1 only for XL C 12.1 or later, since this bug
26156         occurs in XL C for AIX 6.0 but not in 12.1.
26158 2016-11-02  Pádraig Brady  <P@draigBrady.com>
26160         backupfile: initialize default suffix within the implementation
26161         * lib/backupfile.c (find_backup_file_name): Initialize the
26162         global variable here, to simplify usage, and to only call
26163         getenv() when needed.
26165 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
26167         futimens: remove FIXME for old Linux kernels
26168         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
26169         this in 2012" FIXME, like that for utimensat.
26171         utimensat: remove FIXME for old Linux kernels
26172         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
26173         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
26174         this in 2012" FIXME, by assuming the file system bug is absent
26175         unless demonstrated to be present.  We no longer need to worry
26176         about Linux kernel 2.6.32 when building with newer kernels.
26178 2016-10-16  Bruno Haible  <bruno@clisp.org>
26180         qsort_r: Fix macrology for platforms that lack the function.
26181         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
26182         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
26183         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
26184         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
26185         not exist.
26186         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
26187         the function exists.
26188         * modules/qsort_r: Add comments.
26190 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
26192         sys_types: fix Texinfo typos
26193         * doc/glibc-functions/gnu_dev_major.texi:
26194         * doc/glibc-functions/gnu_dev_makedev.texi:
26195         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
26197 2016-10-26  John David Anglin  <dave.anglin@bell.net>
26199         getprogname: port to HP-UX
26200         See Bug#24805.
26201         * lib/getprogname.c (getprogname) [__hpux]: Port.
26202         * tests/test-getprogname.c (STREQ) [__hpux]:
26203         Special-case for HP-UX limitations on program name length.
26205 2016-10-20  Bruno Haible  <bruno@clisp.org>
26207         Update doc about target platforms.
26208         * doc/gnulib-intro.texi (Target Platforms): Update list.
26210 2016-10-15  Bruno Haible  <bruno@clisp.org>
26212         opendir, readdir, closedir: Relicense under LGPLv2+.
26213         * modules/opendir (License): Change to LGPLv2+.
26214         * modules/readdir (License): Likewise.
26215         * modules/closedir (License): Likewise.
26217 2016-10-16  Bruno Haible  <bruno@clisp.org>
26219         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
26220         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
26221         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
26222         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
26223         HAVE_DECL_STRERROR_R.
26225 2016-10-16  Bruno Haible  <bruno@clisp.org>
26227         Make the 'argp' module work without the 'error' module.
26228         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
26230 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
26232         diffseq: restore TOO_EXPENSIVE heuristic
26233         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
26234         (Bug#24715).  The simplest solution is to restore the
26235         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
26236         using a higher threshold to avoid Bug#16848 on smaller files.
26237         * lib/diffseq.h (struct context): Restore member too_expensive.
26238         (struct partition): Restore members lo_minimal, hi_minimal.
26239         (diag, compareseq): Restore arg find_minimal.  All uses changed.
26240         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
26241         1993 to make 'diff' run faster (but not as well) on large inputs,
26242         but use a threshold of 4096 instead of the old 256.
26243         * lib/fstrcmp.c (strcmp_bounded):
26244         * lib/git-merge-changelog.c (compute_differences):
26245         Adjust to diffseq.h changes.
26247 2016-10-22  Bruno Haible  <bruno@clisp.org>
26249         iconv: Avoid compilation error when bootstrapping GNU libiconv.
26250         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
26251         declaration yet, define ICONV_CONST to empty.
26253 2016-10-15  Bruno Haible  <bruno@clisp.org>
26255         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
26256         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
26257         module.
26259 2016-10-16  Bruno Haible  <bruno@clisp.org>
26261         system-quote tests: Avoid compiler warning on AIX.
26262         * tests/test-system-quote-child.c (fopen): Redefine like the system's
26263         <stdio.h> does.
26265 2016-10-16  Bruno Haible  <bruno@clisp.org>
26267         Fix some "gcc -Wall" warnings.
26268         * tests/test-ffsl.c (main): Use variable x, not i.
26269         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
26270         freopen.
26271         * tests/test-sethostname1.c (main): Explicitly ignore the return value
26272         of sethostname.
26274 2016-10-16  Bruno Haible  <bruno@clisp.org>
26276         gnulib-tool: Make --create-testdir on all modules work again.
26277         * gnulib-tool (func_create_testdir): Don't include the
26278         non-recursive-gnulib-prefix-hack module.
26280 2016-10-21  Daiki Ueno  <ueno@gnu.org>
26282         libunistring: change the maintainer to 'all'
26283         * modules/gen-uni-tables, modules/libunistring:
26284         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
26285         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
26286         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
26287         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
26288         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
26289         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
26290         * modules/uniwidth/*: Change the maintainer to 'all'.
26292 2016-10-16  Bruno Haible  <bruno@clisp.org>
26294         Simplify "configure: checking ..." messages.
26295         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
26296         AC_MSG_NOTICE.
26297         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
26299 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
26301         quotearg-tests: pacify gcc -Wall
26302         Problem reported by Bruno Haible in:
26303         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
26304         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
26305         * tests/test-quotearg.h: ... from here.
26307 2016-10-20  Pádraig Brady  <P@draigBrady.com>
26309         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
26310         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
26311         Needed on Centos <= 4.
26313 2016-10-20  Jim Meyering  <meyering@fb.com>
26315         printf.m4: fix a bug in detecting printf %j support
26316         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
26317         uintmax_t is defined in neither stdint.h nor inttypes.h.
26318         Before, this macro might have mistakenly set
26319         gl_cv_func_printf_sizes_c99=yes on such a system.
26320         Spotted by Zev Weiss.
26322 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
26324         sched: substitute HAVE_SYS_CDEFS_H too
26325         Problem reported by Tom G. Christensen in:
26326         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
26327         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
26328         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
26330 2016-10-19  Pádraig Brady  <P@draigBrady.com>
26332         quotearg: never write beyond the returned length
26333         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
26334         scan of the string when we initially encounter a single quote when
26335         shell quoting, so that if we then switch to a more concise quoting method
26336         we will not have written beyond that returned length.
26337         This is significant for sh-quote, which has separate routines
26338         to determine the length and do the actual quoting.
26339         * tests/test-quotearg.h: Reinstate the buffer bounds checking
26340         now that we never write more than the returned length.
26342 2016-10-18  Bruno Haible  <bruno@clisp.org>
26344         getprogname tests: Avoid failure in packages that use libtool.
26345         * tests/test-getprogname.c (main): Strip "lt-" prefix.
26346         Based on a patch by Jim Meyering.
26348 2016-10-16  Bruno Haible  <bruno@clisp.org>
26350         getprogname: Fix test failure on Cygwin. Comments.
26351         * lib/getprogname.h: Add comments.
26352         * lib/getprogname.c: Add comments. Fix #elif indentation.
26353         * tests/test-getprogname.c (main): On Cygwin, expect a result without
26354         ".exe" suffix.
26356 2016-10-16  Bruno Haible  <bruno@clisp.org>
26358         Make sure the libunistring detection rejects older versions with a
26359         known bug.
26360         * modules/unistr/u8-strtok (configure.ac): Bump required version.
26361         * modules/unistr/u16-strtok (configure.ac): Likewise.
26362         * modules/unistr/u32-strtok (configure.ac): Likewise.
26364 2016-10-18  Bruno Haible  <bruno@clisp.org>
26366         sh-quote, system-quote: revert regression of unit test.
26367         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
26368         * tests/test-system-quote-main.c (check_one): Likewise.
26370 2016-10-16  Pádraig Brady  <P@draigBrady.com>
26372         quotearg: fix stale tests
26373         * tests/test-quotearg.c [locale_results]: Add the missing str7
26374         entries to the expected results.
26375         * tests/test-system-quote-main.c (check_one): Don't enforce that we
26376         don't write beyond the returned length, since that's no longer the
26377         case if we switch to a more concise quoting style.
26378         * tests/test-sh-quote.c (check_one): Likewise.
26379         (main): Adjust for the new more concise quoting style.
26380         Reported by Bruno Haible.
26382 2016-10-16  Jim Meyering  <meyering@fb.com>
26384         non-recursive-gnulib-prefix-hack: fix inconsequential typo
26385         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
26386         to "$1".  This macro is always invoked with $1 == lib.
26387         Spotted by Bruno Haible
26389 2016-10-16  Bruno Haible  <bruno@clisp.org>
26391         Fix a test crash.
26392         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
26393         fails.
26395 2016-10-16  Pádraig Brady  <P@draigBrady.com>
26397         test-limits-h: suppress -Woverlength-strings
26398         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
26400 2016-10-15  Bruno Haible  <bruno@clisp.org>
26402         gettime, timespec, utimens: Relicense under LGPL.
26403         * modules/gettime (License): Change to LGPL.
26404         * modules/timespec (License): Likewise.
26405         * modules/utimens (License): Likewise.
26407 2016-10-14  Bruno Haible  <bruno@clisp.org>
26408             Pádraig Brady  <P@draigBrady.com>
26410         canonicalize-lgpl: Support the case path_max > INT_MAX.
26411         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
26412         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
26414 2016-10-13  Jim Meyering  <meyering@fb.com>
26416         getprogname: IBM z/OS: avoid NULL-dereference
26417         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
26418         upon strdup failure.
26420 2016-10-12  Jim Meyering  <meyering@fb.com>
26422         test-stdint: use _GL_VERIFY rather than "verify" for some tests
26423         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
26424         and an abbreviated diagnostic rather than verify with the full one,
26425         because the full-length strings would evoke warnings from gcc with
26426         -Woverlength-strings.
26428 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
26430         stdint: port SIZE_MAX to glibc s390
26431         Problem reported by Eric Blake in:
26432         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
26433         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
26434         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
26435         correct type, if possible.
26437 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
26439         getprogname: port to IBM z/OS
26440         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
26442 2016-10-11  Jim Meyering  <meyering@fb.com>
26444         maint: remove stray space after "." in AC_DEFINE comment.
26445         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
26446         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
26448 2016-10-05  Jim Meyering  <meyering@fb.com>
26450         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
26451         * lib/long-options.c (parse_long_options): Add a break statement
26452         to avoid this new warning/failure:
26453         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
26454           --create-testdir --dir=/t/x --with-tests --test long-options
26455         ../../gllib/long-options.c: In function 'parse_long_options':
26456         ../../gllib/long-options.c:66:12: error: this statement may \
26457           fall through [-Werror=implicit-fallthrough]
26458                    (*usage_func) (EXIT_SUCCESS);
26459                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
26461 2016-10-05  Jim Meyering  <meyering@fb.com>
26463         utimecmp: avoid new GCC 7 warning from -Wbool-operation
26464         Testing this module would fail when using GCC 7 like this:
26465         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
26466           --dir=/tmp/x --with-tests --test utimecmp
26467         ../../gllib/utimecmp.c: In function ‘utimecmp’:
26468         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
26469           [-Werror=bool-operation]
26470                          time_t s = src_s & ~ (res == 2 * BILLION);
26471                                             ^
26472         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
26473           [-Werror=bool-operation]
26474                src_s &= ~ (res == 2 * BILLION);
26475                         ^
26476         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
26477         Instead, make it explicit that we intend to apply it to 0 or 1.
26479 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26481         dfa: save memory for states
26482         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
26483         states if dfa has a lot of caches.
26485 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
26487         wchar, wctype-h: fix for MinGW 3.22.2
26488         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
26489         special invocation, to fix issues with MinGW 3.22.2 wchar.h
26490         when included from <string.h>.
26491         * lib/wctype.in.h [__MINGW32__]: Add special invocation
26492         convention for MinGW 3.22.2, to solve issues with their
26493         wctype.h when included from <ctype.h>.
26495 2016-10-05  Jim Meyering  <meyering@fb.com>
26497         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
26498         * lib/long-options.c (parse_long_options): Add a break statement
26499         to avoid this new warning/failure:
26500         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
26501           --create-testdir --dir=/t/x --with-tests --test long-options
26502         ../../gllib/long-options.c: In function ‘parse_long_options’:
26503         ../../gllib/long-options.c:66:12: error: this statement may \
26504           fall through [-Werror=implicit-fallthrough]
26505                    (*usage_func) (EXIT_SUCCESS);
26506                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
26508         utimecmp: avoid new GCC 7 warning from -Wbool-operation
26509         Testing this module would fail when using GCC 7 like this:
26510         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
26511           --dir=/tmp/x --with-tests --test utimecmp
26512         ../../gllib/utimecmp.c: In function ‘utimecmp’:
26513         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
26514           [-Werror=bool-operation]
26515                          time_t s = src_s & ~ (res == 2 * BILLION);
26516                                             ^
26517         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
26518           [-Werror=bool-operation]
26519                src_s &= ~ (res == 2 * BILLION);
26520                         ^
26521         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
26522         Instead, make it explicit that we intend to apply it to 0 or 1.
26524 2016-10-03  Pádraig Brady  <P@draigBrady.com>
26526         quotearg: minimize shell quoting using double quotes
26527         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
26528         quote in encountered then use double quotes (c style quoting)
26529         when possible, as it simplifies the quoting.
26530         * tests/test-quotearg-simple.c: Add test cases.
26531         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
26532         for the fact we now may write beyond the returned length.
26534 2016-10-02  Jim Meyering  <meyering@fb.com>
26536         vasnprintf.c: avoid spurious warning from GCC 7
26537         The presence of cpp directives renders this "FALLTHROUGH" comment
26538         ineffective, so does not suppress the -Wimplicit-fallthrough warning
26539         from GCC 7 built from git on 2016-10-02.
26540         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
26541         directives, so that it takes effect once again.  This is clearly
26542         not a proper change, and I will revert it once this bug is fixed:
26543         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
26545 2016-10-01  Jim Meyering  <meyering@fb.com>
26547         getprogname: correct the test for a __progname variable
26548         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
26549         and AC_LINK_IFELSE to check for a global __progname.  If found,
26550         define HAVE_VAR___PROGNAME.
26551         * lib/getprogname.c (getprogname): Reflect the new name of the
26552         feature- checked preprocessor symbol:
26553         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
26555 2016-09-28  Jim Meyering  <meyering@fb.com>
26557         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
26558         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
26559         fall-through case with a /* fallthrough */ comment.
26561         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
26562         * lib/dfa.c (dfassbuild): Mark the end of this case with a
26563         /* fallthrough */ comment.
26565         getprogname: avoid __progname vs program_invocation_short_name pitfall
26566         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
26567         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
26568         not with Fedora 24's glibc-2.23.1-10.
26569         * lib/getprogname.c (__progname): Move this declaration down...
26570         (getprogname): ... into the #elif block where used, and make it
26571         explicitly "extern".
26573         getprogname: port to OpenBSD 5.1
26574         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
26575         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
26576         * modules/getprogname (configure.ac): Move most of this code...
26577         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
26578         increment serial number, and add a test for __progname.
26579         https://bugs.gnu.org/24562
26580         Reported by Nelson H. F. Beebe.
26582 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
26584         sched: port to GCC 6.2.1 on macOS Sierra
26585         Problem reported by Denis Davydov in:
26586         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
26587         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
26588         Include <sys/cdefs.h> before <sched.h>.
26589         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
26590         so that we needn’t worry about the sched.h include bug here.
26591         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
26592         and include it before <sched.h> if it exists, when
26593         checking for <sched.h>.
26595         tests/init.sh: port Alpine fix to AIX 7.1
26596         * tests/init.sh (compare_): When attempting to use diff -U3,
26597         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
26598         diff -u not outputting a space after leading '+', as the users
26599         of 'compare' should not be that picky about its output format.
26600         In the AIX 7.1 case, return with diff exit status (or with 2 if
26601         trouble), instead of some random nonzero exit status.
26602         * tests/test-init.sh (test_compare): Remove space after leading
26603         '+', so that AIX 7.1 'diff' passes the test.
26605 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26607         nl_langinfo: pacify GCC
26608         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
26609         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
26611         stdint: also set GL_GENERATE_LIMITS_H
26612         Problem reported by Jim Meyering in:
26613         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
26614         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
26616         limits-h, stdint: Don't assume extensions, fix typo
26617         * m4/limits-h.m4 (gl_LIMITS_H):
26618         * m4/stdint.m4 (gl_STDINT_H):
26619         Don't assume AC_USE_SYSTEM_EXTENSIONS.
26620         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
26621         reported by Jim Meyering in:
26622         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
26624 2016-09-21  Jim Meyering  <meyering@fb.com>
26626         getprogname: port to AIX
26627         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
26628         and strdup to obtain a short program name string.  Using code from
26629         Bruno Haible and an idea from Bastien ROUCARIÈS, in
26630         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
26631         Assaf Gordon reported that this new file would fail to compile on
26632         AIX-7.1 32bit.
26634 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
26636         extensions: fix typo in comment
26637         * m4/extensions.m4: Sync from Autoconf master.
26639         stdint: support new _WIDTH macros
26640         * doc/posix-headers/stdint.texi: Document this.
26641         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
26642         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
26643         support for INTMAX_WIDTH, etc. as well as for support for just C99.
26644         * modules/stdint (Depends-on): Add limits-h.
26645         (Makefile.am): Substitute HAVE_C99_STDINT_H.
26646         * modules/stdint-tests (Depends-on): Add extensions, so that
26647         INTMAX_MAX etc. are defined.
26648         * tests/test-stdint.c: Verify the new macros.
26650         limits-h: new module
26651         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
26652         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
26653         * doc/posix-headers/limits.texi: Document new module.
26654         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
26655         * modules/limit-h-tests, tests/test-limits-h.c: New files.
26657         stdio: don't redefine __USE_MINGW_ANSI_STDIO
26658         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
26659         if it is already defined.  Apparently GNU Emacs relies on this.  See:
26660         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
26662 2016-09-15  Eric Blake  <eblake@redhat.com>
26664         sys_types: avoid glibc 2.25 warnings about major()
26665         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
26666         older autoconf.
26667         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
26668         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
26669         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
26670         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
26672         mountlist: include sysmacros.h for glibc
26673         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
26674         AC_HEADER_MAJOR.
26675         * lib/mountlist.c (includes): Use correct headers.
26677 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
26679         extensions: port to more ISO C TSes
26680         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
26681         master, to add support for more recent ISO C TRs and TSes.
26683 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26685         intprops: new macro TYPE_WIDTH
26686         * lib/intprops.h (TYPE_WIDTH): New macro.
26687         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
26688         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
26689         * lib/parse-datetime.y (parse_datetime2):
26690         Use it.
26692         extensions: port to recent ISO C TRs
26693         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
26694         Sync from Autoconf master, to add support for recent ISO C TRs.
26695         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
26696         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
26697         the MinGW option is not an extension.
26699 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
26701         dfa: port to Solaris 9
26702         Problems reported by Tom G. Christensen in:
26703         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
26704         * modules/dfa (Depends-on): Add isblank.
26705         * modules/dfa-tests (dfa_match_aux_LDADD):
26706         Rename from test_stat_LDADD, to fix typo.
26707         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
26709 2016-09-10  Jim Meyering  <meyering@fb.com>
26711         strverscmp: avoid link failure on OS X
26712         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
26713         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
26715 2016-08-16  Jim Meyering  <meyering@fb.com>
26717         dfa: new module, importing grep's DFA matcher
26718         Since grep's DFA matcher is now being used by two gnulib-enabled
26719         projects, grep and sed, it makes sense to version-control its
26720         sources and unit tests in one place: here.
26721         * modules/dfa: New module.
26722         * modules/dfa-tests: New file.
26723         * lib/dfa.c: New file, from grep.
26724         * lib/dfa.h: Likewise.
26725         * lib/localeinfo.c: Likewise.
26726         * lib/localeinfo.h: Likewise.
26727         * tests/dfa-match-aux.c: Likewise.
26728         * tests/dfa-invalid-char-class.sh: Likewise.
26729         * tests/dfa-match.sh: Likewise, with minor changes.
26730         * MODULES.html.sh (Misc): Add "dfa" to this list.
26732 2016-09-09  Jim Meyering  <meyering@fb.com>
26734         getprogname-tests: don't depend on assert-h
26735         * modules/getprogname-tests (Depends-on): Remove assert-h.
26736         It was not needed, and in fact would cause build failure for
26737         coreutils on some systems.  Reported by Assaf Gordon in https:
26738         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
26740 2016-09-07  Jim Meyering  <meyering@fb.com>
26742         getprogname-tests: work also when EXEEXT is nonempty
26743         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
26744         * tests/test-getprogname.c (main): Use it.
26745         Suggested by Gisle Vanem.
26747 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
26749         getprogname: fix errors in previous change
26750         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
26751         s/program_invocation_name/base/
26752         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
26754 2016-09-08  Pádraig Brady  <P@draigBrady.com>
26756         parse-datetime: restrict debug output to input string
26757         * lib/parse-datetime.y (parse_datetime2): If we parse
26758         all of the input but determine it's invalid, ensure
26759         we don't output the now invalid input pointer.
26760         This issue was seen with `date -d 'now +1'`.
26762 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
26764         flexmember: new macro FLEXALIGNOF
26765         * lib/flexmember.h: Include <stddef.h>, for offsetof.
26766         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
26767         this macro.  Update comments.
26769 2016-09-07  Jim Meyering  <meyering@fb.com>
26771         getprogname: port to systems with __argv (mingw, msvc)
26772         * lib/getprogname.c (getprogname): Include "dirname.h" and use
26773         last_component: more general than open coding it with hard-coded "/".
26774         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
26775         * modules/getprogname (Depends-on): Add dirname-lgpl.
26776         (configure.ac): Check for __argv in <stdlib.h>.
26777         * modules/getprogname-tests: New file.
26778         * tests/test-getprogname.c: New file.
26779         Suggested by Gisle Vanem in
26780         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
26782 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
26784         flexmember: port better to GCC + valgrind
26785         With a char[] flexible array member in a struct with nontrivial
26786         alignment, GCC-generated code can access past the end of the
26787         array, because GCC assumes there are padding bytes to get the
26788         struct aligned.  So the common idiom of malloc (offsetof (struct
26789         s, m), n) does not properly allocate an n-byte trailing member, as
26790         malloc’s argument should be the next multiple of alignof (struct s).
26791         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
26792         Although C11 apparently permits this GCC optimization (i.e., there
26793         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
26794         See the thread containing:
26795         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
26796         * lib/flexmember.h: New file.
26797         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
26798         * lib/localename.c, lib/time_rz.c:
26799         Include flexmember.h.
26800         * lib/fnmatch_loop.c (struct patternlist):
26801         * lib/localename.c (struct hash_node):
26802         Use FLEXIBLE_ARRAY_MEMBER.
26803         * lib/fnmatch_loop.c (EXT):
26804         * lib/fts.c (fts_alloc):
26805         * lib/glob.c (glob_in_dir):
26806         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
26807         * lib/localename.c (gl_lock_define_initialized):
26808         * lib/time_rz.c (tzalloc):
26809         Use FLEXSIZEOF instead of offsetof.
26810         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
26811         Check that the size of the struct can be taken.
26812         * modules/flexmember (Files): Add lib/flexmember.h.
26813         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
26814         Add flexmember.
26816 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
26818         getprogname: port to Solaris 10
26819         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
26820         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
26821         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
26823         stdalign: correct mistake in alignof doc
26824         Problem reported by Joseph Myers in:
26825         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
26826         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
26827         alignof(S) where S is a structure containing a flexible array
26828         member.  The Gnulib substitute does not support this, but C11 does.
26830 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
26832         main.mk: remove sc_program_name, since there is no more need to
26833         use set_program_name in tools (getprogname is enough for most
26834         of the cases).
26835         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
26836         * top/maint.mk (sc_program_name): Remove.
26838 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
26840         Port tests away from progname, since modules that need the
26841         program name already depend on getprogname.
26842         * modules/acl-tests (Depends-on): Remove progname.
26843         * modules/argmatch (Depends-on): Likewise.
26844         * modules/argmatch-tests (Depends-on): Likewise.
26845         * modules/argp-tests (Depends-on): Likewise.
26846         * modules/argp-version-etc-tests (Depends-on): Likewise.
26847         * modules/array-list-tests (Depends-on): Likewise.
26848         * modules/array-oset-tests (Depends-on): Likewise.
26849         * modules/avltree-list-tests (Depends-on): Likewise.
26850         * modules/avltree-oset-tests (Depends-on): Likewise.
26851         * modules/avltreehash-list-tests (Depends-on): Likewise.
26852         * modules/carray-list-tests (Depends-on): Likewise.
26853         * modules/copy-file-tests (Depends-on): Likewise.
26854         * modules/exclude-tests (Depends-on): Likewise.
26855         * modules/fchownat-tests (Depends-on): Likewise.
26856         * modules/fdopendir-tests (Depends-on): Likewise.
26857         * modules/filenamecat-tests (Depends-on): Likewise.
26858         * modules/fstatat-tests (Depends-on): Likewise.
26859         * modules/fstrcmp-tests (Depends-on): Likewise.
26860         * modules/linked-list-tests (Depends-on): Likewise.
26861         * modules/linkedhash-list-tests (Depends-on): Likewise.
26862         * modules/mkdirat-tests (Depends-on): Likewise.
26863         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
26864         * modules/nonblocking-socket-tests (Depends-on): Likewise.
26865         * modules/obstack-printf-tests (Depends-on): Likewise.
26866         * modules/openat-tests (Depends-on): Likewise.
26867         * modules/parse-datetime-tests (Depends-on): Likewise.
26868         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
26869         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
26870         * modules/quotearg-simple-tests (Depends-on): Likewise.
26871         * modules/quotearg-tests (Depends-on): Likewise.
26872         * modules/rbtree-list-tests (Depends-on): Likewise.
26873         * modules/rbtree-oset-tests (Depends-on): Likewise.
26874         * modules/rbtreehash-list-tests (Depends-on): Likewise.
26875         * modules/spawn-pipe-tests (Depends-on): Likewise.
26876         * modules/system-quote-tests (Depends-on): Likewise.
26877         * modules/uniname/uniname-tests (Depends-on): Likewise.
26878         * modules/uninorm/nfc-tests (Depends-on): Likewise.
26879         * modules/uninorm/nfd-tests (Depends-on): Likewise.
26880         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
26881         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
26882         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
26883         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
26884         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
26885         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
26886         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
26887         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
26888         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
26889         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
26890         * modules/unlinkat-tests (Depends-on): Likewise.
26891         * modules/version-etc-tests (Depends-on): Likewise.
26892         * modules/xalloc-die-tests (Depends-on): Likewise.
26893         * modules/xmemdup0-tests (Depends-on): Likewise.
26894         * modules/xprintf-posix-tests (Depends-on): Likewise.
26895         * modules/xvasprintf-tests (Depends-on): Likewise.
26896         * tests/test-argmatch.c: Do not include progname.h.
26897         (main) Stop calling set_program_name.
26898         * tests/test-argp-version-etc.c: Likewise.
26899         * tests/test-argp.c: Likewise.
26900         * tests/test-argv-iter.c: Likewise.
26901         * tests/test-array_list.c: Likewise.
26902         * tests/test-array_oset.c: Likewise.
26903         * tests/test-avltree_list.c: Likewise.
26904         * tests/test-avltree_oset.c: Likewise.
26905         * tests/test-avltreehash_list.c: Likewise.
26906         * tests/test-carray_list.c: Likewise.
26907         * tests/test-copy-acl.c: Likewise.
26908         * tests/test-copy-file.c: Likewise.
26909         * tests/test-exclude.c: Likewise.
26910         * tests/test-fchownat.c: Likewise.
26911         * tests/test-fdopendir.c: Likewise.
26912         * tests/test-filenamecat.c: Likewise.
26913         * tests/test-fstatat.c: Likewise.
26914         * tests/test-fstrcmp.c: Likewise.
26915         * tests/test-linked_list.c: Likewise.
26916         * tests/test-linkedhash_list.c: Likewise.
26917         * tests/test-mkdirat.c: Likewise.
26918         * tests/test-nonblocking-pipe-main.c: Likewise.
26919         * tests/test-nonblocking-socket-main.c: Likewise.
26920         * tests/test-obstack-printf.c: Likewise.
26921         * tests/test-openat.c: Likewise.
26922         * tests/test-parse-datetime.c: Likewise.
26923         * tests/test-pipe-filter-gi1.c: Likewise.
26924         * tests/test-pipe-filter-gi2-main.c: Likewise.
26925         * tests/test-pipe-filter-ii1.c: Likewise.
26926         * tests/test-pipe-filter-ii2-main.c: Likewise.
26927         * tests/test-quotearg-simple.c: Likewise.
26928         * tests/test-quotearg.c: Likewise.
26929         * tests/test-rbtree_list.c: Likewise.
26930         * tests/test-rbtree_oset.c: Likewise.
26931         * tests/test-rbtreehash_list.c: Likewise.
26932         * tests/test-sameacls.c: Likewise.
26933         * tests/test-set-mode-acl.c: Likewise.
26934         * tests/test-spawn-pipe-main.c: Likewise.
26935         * tests/test-system-quote-main.c: Likewise.
26936         * tests/test-unlinkat.c: Likewise.
26937         * tests/test-version-etc.c: Likewise.
26938         * tests/test-xalloc-die.c: Likewise.
26939         * tests/test-xfprintf-posix.c: Likewise.
26940         * tests/test-xmemdup0.c: Likewise.
26941         * tests/test-xprintf-posix.c: Likewise.
26942         * tests/test-xvasprintf.c: Likewise.
26943         * tests/uniname/test-uninames.c: Likewise.
26944         * tests/uninorm/test-u32-nfc-big.c: Likewise.
26945         * tests/uninorm/test-u32-nfd-big.c: Likewise.
26946         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
26947         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
26948         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
26949         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
26950         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
26951         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
26952         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
26953         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
26954         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
26955         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
26956         * tests/test-c-stack.c: (program_name): Do not define.
26957         (main): Do not set program_name.
26958         * tests/test-closein.c: Likewise.
26959         * tests/test-xstrtol.c: Likewise.
26960         * tests/test-yesno.c: Likewise.
26962 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
26964         Port modules to use getprogname explicitly, instead of requiring
26965         progname to be used (or program_name to be provided).
26966         * lib/argmatch.c: Do not include progname.h.
26967         [TEST] (program_name): Do not define.
26968         [TEST] (main): Call getprogname instead of using program_name.
26969         * lib/c-stack.c: Do not include progname.h.
26970         (program_name): Do not define.
26971         (die): Call getprogname instead of using program_name.
26972         * lib/chdir-long.c: Do not include progname.h.
26973         [TEST_CHDIR] (main): Do not set program_name.
26974         * lib/error.c [!_LIBC]: Include progname.h.
26975         [!_LIBC] (program_name): Define using getprogname.
26976         * lib/euidaccess.c: Do not include progname.h.
26977         [TEST] (main): Do not set program_name.
26978         * lib/git-merge-changelog.c: Include getprogname.h instead of
26979         progname.h.
26980         (usage): Call getprogname instead of using program_name.
26981         (main): Likewise.  Stop calling set_program_name.
26982         * lib/group-member.c: Do not include progname.h.
26983         [TEST] (main): Do not set program_name.
26984         * modules/argmatch (Depends-on): Add getprogname.
26985         * modules/c-stack (Depends-on): Likewise.
26986         * modules/error (Depends-on): Likewise.
26987         * modules/git-merge-changelog (Depends-on): Likewise.
26988         Also remove progname.
26990 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
26992         * NEWS: Document the deprecation of the 'progname' module.
26994 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
26996         getprogname: new module
26997         This provides a LGPL module for getting the name of the current
26998         program, using the same API found on *BSD systems.
26999         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
27000         * modules/getprogname: New files.
27001         * MODULES.html.sh (Misc): Add getprogname.
27003 2016-09-02  Jim Meyering  <meyering@fb.com>
27005         manywarnings: add -fno-common
27006         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
27007         to the list.  Quoting the manual, "Compiling with -fno-common is
27008         useful on targets for which it provides better performance, or if
27009         you wish to verify that the program will work on other systems that
27010         always treat uninitialized variable declarations this way [putting
27011         it in the data section]."  If diffutils had been using this sooner,
27012         it would have prevented this duplicate declaration issue:
27013         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
27015 2016-08-31  Simon Josefsson  <simon@josefsson.org>
27017         parse-datetime: Fix typo.
27018         * lib/parse-datetime.y (parse_datetime2): Fix typo.
27020 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
27022         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
27023         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
27024         GCC 5 and 6 that have __builtin_sub_overflow but not
27025         __builtin_sub_overflow_p.  With the recent changes, these
27026         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
27027         implementation than with INT_SUBTRACT_OVERFLOW implementation,
27028         since the former needs just one runtime comparison whereas the
27029         latter needs two.
27031         strverscmp: sync with glibc
27032         Although this doesn't exactly synchronize with glibc
27033         byte-for-byte, it makes the code behave the same as glibc.
27034         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
27035         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
27036         difference shouldn't matter in practical use.  All uses changed
27037         back to isdigit.
27038         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
27039         (next_state): Now unsigned char array; redo elements.
27040         (result_type): Now signed char array; redo elements.
27041         (__strverscmp): Fix glibc bug 9913 by using new states.
27042         * tests/test-strverscmp.c (main): Test glibc bug 9913.
27044 2016-08-29  Jim Meyering  <meyering@fb.com>
27046         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
27047         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
27048         similarly to how it was done to intprops.h.
27050 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
27052         intprops.h: port recent changes to GCC 6.2.0
27053         * lib/intprops.h (__has_builtin): Move earlier.
27054         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
27055         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
27056         the last argument can be null.  All uses changed.
27057         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
27058         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
27059         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
27060         and it's not clear which GCC versions it works for.
27061         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
27062         its definiens.
27064         intprops.h: use __typeof__ with GCC 7
27065         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
27066         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
27067         This avoids computing the expression's value (which might overflow!).
27069 2016-08-29  Jim Meyering  <meyering@fb.com>
27071         intprops.h, xalloc-oversized.h: work with gcc 7
27072         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
27073         __builtin_mul_overflow each accept a NULL pointer as the third
27074         argument.  However in gcc 7, that is no longer accepted.
27075         Instead, one must use the "_p"-suffixed names, with which, the
27076         third parameter is no longer a pointer.
27077         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
27078         the definition: not true for gcc 7 and subsequent.
27079         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
27080         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
27081         Provide new definitions for gcc 7 and subsequent.
27082         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
27083         that works with gcc-7.
27085         intprops.h: fix missing-backslash problems
27086         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
27087         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
27089 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27091         intprops: fix paren typo on old platforms
27092         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
27093         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
27094         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
27095         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
27096         && !defined LLONG_MAX]:
27097         Remove stray paren.
27099         intprops: port to OpenVMS
27100         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
27101         * doc/posix-headers/limits.texi: Document the problem.
27102         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
27103         Define if not already defined.
27105 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
27107         parse-datetime: improve debug implementation
27108         Follow-up to commit 12ad79069 ("add optional debug printing").
27109         Improve parse-datetime's debug implementation: remove macros,
27110         replace global debug flag variable with a function parameter,
27111         use nstrftime for formatting.
27112         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
27113         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
27114         (parse_datetime2): New function, accepts 'flags' parameter, supporting
27115         debug flag. Existing interface 'parse_datetime' left unmodified.
27116         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
27117         (struct parser_control): add 'parse_datetime_debug' member variable.
27118         (parse_datetime): Call new function 'parse_datetime2' without debug.
27119         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
27120         pc.parse_datetime_debug variable as needed.
27121         (to_year): Accept new flags parameter, instead of using global variable.
27122         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
27123         use struct 'debug' variable instead of global variable.
27124         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
27125         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
27126         correspnding functions directly instead of using macros.
27127         * modules/parse-datetime: Add gnulib's strftime module.
27129 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
27131         c-strcase-tests: port to EBCDIC
27132         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
27133         which assume ASCII encoding semantics to run only in ASCII
27134         mode, as they fail in EBCDIC.
27136         sigpipe-tests: fix typo
27137         * tests/test-sigpipe.sh: C, not B.
27139 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
27141         canonicalize-lgpl: fix errno after malloca fails
27142         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
27143         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
27144         * lib/canonicalize-lgpl.c (__realpath):
27145         Don't assume malloca sets errno on failure.
27147 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27149         strtod: port errno handling to z/OS
27150         * lib/strtod.c (strtod): Save and restore errno more reliably.
27152 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
27154         strtod: port to z/OS
27155         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
27156         implementation.
27158 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27160         strtod: port to z/OS
27161         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
27162         implementation.
27164         regex, string: rename to avoid '__string'
27165         * lib/regex.h, lib/string.in.h: Do not use the identifier
27166         '__string', as it is effectively reserved by string.h on z/OS.
27168         c-strcase-tests, wcwidth-tests: depend on c-ctype
27169         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
27170         Add c-ctype.
27172 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
27174         thread: port to z/OS
27175         * lib/glthread/thread.c, lib/glthread/thread.h:
27176         Rudimentary gl_thread support for z/OS.
27178         maint: port tests to z/OS errno behavior
27179         * tests/test-nonblocking-reader.h:
27180         * tests/test-nonblocking-writer.h:
27181         Accommodate z/OS errno code preferences. (I believe this should
27182         still be within spec; IBM is good at following the letter if not
27183         the spirit of such things.)
27185         maint: preprocessor changes to support z/OS
27186         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
27187         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
27188         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
27189         * tests/test-nonblocking-pipe.h:
27191         fclose, strstr-simple, wchar: port to z/OS
27192         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
27193         Changes to the Autoconf M4 code to support z/OS.  Note that
27194         fclose() is broken in a different way on z/OS than it is on other
27195         systems, thus the special-case in fclose.m4.
27197         iconv_open-utf-tests, iconv-tests: port to EBCDIC
27198         * tests/test-iconv-utf.c, tests/test-iconv.c:
27199         Added appropriately conditional #pragmas so that the test strings
27200         in test-iconv-utf.c are correctly interpreted in ASCII instead of
27201         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
27202         addressed in a more portable way by simply rewriting all the ASCII
27203         literal characters as octal escapes, but then you would lose the
27204         partial readability that the strings have now. Also, iconv_open()
27205         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
27207         c-strcase-tests, wcwidth-tests: port to EBCDIC
27208         * tests/test-c-strcasecmp.c: Include c-ctype.h.
27209         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
27210         * tests/test-wcwidth.c: Likewise.
27212 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27214         stdbool: don't require _Bool for C++
27215         Problem reported by David Seifert in:
27216         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
27217         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
27218         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
27219         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
27220         stricter about checking that bool and _Bool are compatible in C.
27222 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
27224         getdelim: remove dependency on realloc-posix
27225         * lib/canonicalize-lgpl.c (alloc_failed)
27226         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
27227         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
27228         Use __set_errno where needed, for consistency.
27229         * lib/getdelim.c (alloc_failed): New function.
27230         (getdelim): Use it.
27232 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
27234         parse-datetime: add optional debug printing
27235         Print parsing information, warnings, and errors to stderr.
27236         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
27237         * lib/parse-datetime.y:
27238         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
27239         (PROGRESS*): Same as DEBUG, for progress reporting.
27240         (dbg_printf): Print message to stderr, with 'date' prefix.
27241         (struct parser_control): Add 'debug_*_seen' variables.
27242         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
27243         (debug_print_current_time, debug_print_relateive_time): Prints the
27244         current/relative date/time value of parser_control.
27245         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
27246         (to_year): Warn about 2-digit year parsing.
27247         (yylex):   Warn about unrecognized words.
27248         (get_effective_timezone): Returns current timezone in minutes.
27249         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
27250         clearly and unambigiously as possible.
27251         (debug_mktime_not_ok): Print detailed information about failed
27252         date/time values.
27253         (parse_datetime): Add DEBUG messages for failures, warnings. Add
27254         PROGRESS messages for status messages.
27255         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
27257 2016-08-06  Jim Meyering  <meyering@fb.com>
27259         tests/init.sh: exclude dash with bad "local" semantics
27260         * tests/init.sh (gl_shell_test_script_): Add a function to
27261         eliminate a shell like "dash" (unlike bash, zsh) that has
27262         surprising/risky "local var='...'" semantics.  Inspired by
27263         the problem and discussion in https://bugs.gnu.org/24116#11.
27265 2016-08-02  Ján Tomko  <jtomko@redhat.com>
27267         maint.mk: expand the prohibit_doubled_word regex
27268         This check has a static list of words that are checked for
27269         repetitions.  Expand it before running the perl script to
27270         avoid using expensive captures.  This decreases the cost
27271         for libvirt from 1.66s to 0.66s.
27272         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
27273         (sc_prohibit_doubled_word): Use it.
27275 2016-07-26  Ján Tomko  <jtomko@redhat.com>
27277         useless-if-before-free: skip non-matching lines early
27278         * build-aux/useless-if-before-free: First match each line with the
27279         simple/quick /\bif\b/ and reject if there is no match. This often
27280         saves the cost of the much more involved regular expression.
27281         For libvirt, this decreases the cost from 1.44s to 1.02s.
27283 2016-07-26  Ján Tomko  <jtomko@redhat.com>
27285         maint.mk: speed up sc_po_check
27286         sc_po_check would skip files based on their names, or on the
27287         existence of files with derived names. Rewrite it to use perl
27288         instead of shell to make the check faster.
27289         * top/maint.mk (perl_translatable_files_list_): Define.
27290         (sc_po_check): Use it.
27292 2016-07-30  Ján Tomko  <jtomko@redhat.com>
27294         maint.mk: speed up require_config_h_first
27295         Instead of spawning three processes per file,
27296         rewrite the check in perl and run it once for all the files.
27297         * top/maint.mk (perl_config_h_first_): Define.
27298         (sc_require_config_h_first): Use it in place of shell code.
27300 2016-07-26  Ján Tomko  <jtomko@redhat.com>
27302         maint.mk: speed up sc_po_check
27303         sc_po_check would skip files based on their names, or on the
27304         existence of files with derived names. Rewrite it to use perl
27305         instead of shell to make the check faster.
27306         * top/maint.mk (perl_translatable_files_list_): Define.
27307         (sc_po_check): Use it.
27309 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
27311         obstack: pacify GCC 6 with -Wnull-dereference
27312         Problem reported by Assaf Gordon in:
27313         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
27314         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
27315         Declare with __attribute_noreturn__.
27316         * lib/obstack.h (__attribute_noreturn__): New macro.
27318 2016-07-13  Eric Blake  <eblake@redhat.com>
27320         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
27321         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
27322         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
27324 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
27326         doc: mention glibc SSIZE_MAX buglet
27327         * doc/posix-headers/limits.texi (limits.h): Document the bug.
27329 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
27331         printf-posix: Fix mingw build
27332         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
27333         expression for detecting C symbol prefixes but forgot to qoute square
27334         brackets in the command line arguments for grep.  That way when
27335         building with mingw the condition was false although it ought to be
27336         true instead.  In particular scenarios this led to the following
27337         compile error:
27339             Cannot export rpl_printf: symbol not found
27340             Cannot export rpl_scanf: symbol not found
27341             collect2: error: ld returned 1 exit status
27343         Fix this by properly quoting square brackets.
27345 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
27347         mktime: call tzset as per POSIX
27348         Problem reported by Ludovic Courtès in:
27349         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
27350         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
27351         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
27353 2016-06-26  Pádraig Brady  <P@draigBrady.com>
27355         fts: handle readdir() errors
27356         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
27357         but also upon error when it will also set errno.  Therefore
27358         flag the error case from readdir().  We treat the case where
27359         no items are read the same as if the dir can't be accessed,
27360         i.e. by setting fts_errno to FTS_DNR.
27362 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
27364         intprops: port better to GCC 7
27365         GCC 7 __builtin_add_overflow supports a new usage form, where the
27366         last argument is a null pointer, and which merely returns 1 if an
27367         overflow would occur.  This is a constant expression if all
27368         arguments are constants, and should generate faster code when code
27369         needs to be generated.
27370         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
27371         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
27372         Use builtin operations if available.
27373         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
27374         operations are available, as it's almost surely faster.
27376 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
27378         intprops-test: port to GCC 6
27379         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
27380         since the bug is not fixed in GCC 6.1.
27382 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
27384         xalloc-oversized: port to GCC 7; fewer warnings
27385         GCC 7 will have a better way to deal with integer overflow.
27386         Plus, fix a warnings problem reported by Tim Ruehsen in:
27387         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
27388         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
27389         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
27390         For GCC 5, use __xalloc_oversized if both args are constants,
27391         or if pedantic.
27393 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
27395         regex: port to Sun C
27396         Reported by Daiki Ueno.
27397         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
27398         __restrict, in prototype.  This fixes a problem I introduced in
27399         the 2016-02-19 merge from glibc.
27401 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
27403         stdbool: Restore __bool_true_false_are_defined check
27404         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
27405         __bool_true_false_are_defined is still defined, even with C++11.
27407 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
27409         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
27410         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
27412 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
27414         Use GCC_LINT, not lint
27415         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
27416         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
27417         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
27418         Document problem with lint and _Noreturn.
27419         * lib/diffseq.h (IF_LINT, IF_LINT2):
27420         * lib/fts.c (sccsid):
27421         * lib/getndelim2.c (IF_LINT):
27422         * lib/gl_anylinked_list2.h (gl_linked_iterator)
27423         (gl_linked_iterator_from_to):
27424         * lib/gl_anytree_list2.h (gl_tree_iterator)
27425         (gl_tree_iterator_from_to):
27426         * lib/gl_anytree_oset.h (gl_tree_iterator):
27427         * lib/gl_array_list.c (gl_array_iterator)
27428         (gl_array_iterator_from_to):
27429         * lib/gl_array_oset.c (gl_array_iterator):
27430         * lib/gl_carray_list.c (gl_carray_iterator)
27431         (gl_carray_iterator_from_to):
27432         * lib/idcache.c:
27433         * lib/inet_ntop.c (IF_LINT):
27434         * lib/regcomp.c (build_charclass_op, create_tree):
27435         * lib/regex_internal.c (re_acquire_state)
27436         (re_acquire_state_context):
27437         * lib/trigl.c (rcsid):
27438         * lib/trim.c (IF_LINT):
27439         * lib/vasnprintf.c (IF_LINT):
27440         * lib/verify.h (assume):
27441         Treat GCC_LINT like lint.
27443 2016-05-29  Bruno Haible  <bruno@clisp.org>
27445         secure_getenv: Port to many more platforms.
27446         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
27447         functions.
27448         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
27449         for non-BSD Unix platforms and for native Windows.
27450         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
27451         Prompted by a request from Nikos Mavrogiannopoulos.
27453 2016-05-27  Eric Blake  <eblake@redhat.com>
27455         canonicalize: Fix broken probe for realpath.
27456         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
27457         in logic introduced in 54615b95.
27459 2016-05-26  Eric Blake  <eblake@redhat.com>
27461         unsetenv: relax to LGPLv2+
27462         * modules/unsetenv (License): Match setenv license.
27464 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
27466         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
27467         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
27468         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
27469         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
27470         (commonarg, dirargs, dirs, infoarg, generate_ascii)
27471         (generate_html, generate_info, generate_tex, outdir)
27472         (source_extra, split, srcfile, texarg): Move above 'version'.
27473         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
27475 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
27477         manywarnings: update for GCC 6.1
27478         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
27479         Add GCC 6.1 options that apply to C.
27480         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
27481         do not apply to C, are obsolescent, etc.
27483 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
27485         glob: size_t overflow checks
27486         * lib/glob.c (__has_builtin): New macro.
27487         (size_add_wrapv, glob_use_alloca): New static functions.
27488         (glob, glob_in_dir): Check for size_t overflow in several places,
27489         and fix some size_t checks that were not quite right.
27491         glob: don't assume INT_MAX < SIZE_MAX
27492         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
27493         latter is not portable to (probably theoretical) hosts where
27494         SIZE_MAX <= INT_MAX.
27496 2016-05-09  Bruno Haible  <bruno@clisp.org>
27498         Fix undefined behaviour in gettext.h.
27499         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
27500         pointer's value after the storage it points to has been freed.
27501         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
27502         Spotted by Coverity.
27504 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
27506         git-version-gen: avoid undefined shift
27507         Problem reported by Mosè Giordano in:
27508         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
27509         * build-aux/git-version-gen: Avoid undefined behavior if invoked
27510         with --prefix or --fallback but without a later argument.  While
27511         we're at it, omit unnecessary quotes.
27513 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
27515         glob: merge glibc changes into lib/glob.c
27516         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
27517         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
27518         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
27519           struct dirent [BZ #19779]
27520         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
27521           callback gl_readdir
27522         2015-10-20 Convert miscellaneous function definitions to prototype style
27523         2015-10-20 Convert 113 more function definitions to prototype style
27524           (files with assertions)
27525         2015-06-12 Fix getlogin_r namespace (bug 18527).
27526         2014-02-10 Use glibc_likely instead __builtin_expect.
27527         2013-10-20 When glob pattern contains a trailing slash match only
27528           directories. Fixes bug 10278.
27529         2013-09-04 glob: silence -Wattribute warnings
27530         2013-06-07 Avoid use of "register" as optimization hint.
27531         2012-09-25 Use size_t instead of int for internal variables in glob
27532           (bug 14621)
27533         2011-07-20 Check for overflows in expressions
27534         2011-05-28 Remove unused variable
27535         2011-05-22 Add a few more alloca size checks
27536         2010-03-27 Whitespace fixes
27537         2010-03-27 Fix one more issue with the glob patch
27538         2010-03-24 Fix glob with empty pattern
27539         2008-05-27 Remove useless more "if" tests before "free"
27540         * modules/glob (Depends-on): Add stdint.
27542 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
27544         mktime: port to stricter signed overflow checking
27545         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
27546         (long_int): Require width for INT_MAX * 3 * (seconds per year),
27547         instead of merely for INT_MAX * 2.  In practice platforms that
27548         do the latter also do the former.
27549         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
27550         (shr): New static function, replacing SHR.  All uses changed.
27551         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
27552         and TIME_T_MAX.  All uses changed.
27553         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
27554         Use long_int, not time_t.
27555         (long_int_avg): New static function, replacing time_t_avg.
27556         All uses changed.  Round toward positive infinity, as that
27557         generates slightly better code.
27558         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
27559         by INT_ADD_WRAPV.
27560         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
27561         (convert_time): New static function.
27562         (ranged_convert): Use it
27563         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
27564         Use simpler test for loop exit.
27565         (__mktime_internal): Store negative of guessed offset, to simplify
27566         overflow checking.  Remove no-longer-needed test for small time_t
27567         overflows.
27569         mktime: speed up DEBUG_MKTIME benchmarks
27570         Call tzset just once, at the start, rather than for every test
27571         case.  This lets us measure the CPU cost of mktime as opposed to
27572         that of tzset.  This is relevant when TZ is not set and glibc is
27573         being used.  This speeds up tests by a factor of 40 on my Fedora
27574         23 x86-64 platform.
27575         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
27576         to call tzset and as a sanity check.  Later on, use localtime_r
27577         instead of localtime.
27579         mktime: resurrect DEBUG_MKTIME testing
27580         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
27581         Include <string.h>, for strcmp.
27583         mktime: simplify DEBUG_MKTIME
27584         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
27585         Simplify later usage accordingly.
27587         Port mktime_internal offset to unsigned time_t
27588         This avoids some assumptions about wraparound arithmetic on
27589         signed integer overflow.
27590         * lib/mktime-internal.h (mktime_offset_t): New type.
27591         (mktime_internal): Use it in decl.
27592         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
27594         * lib/mktime.c (__mktime_internal, localtime_offset):
27595         * lib/timegm.c (timegm): Use it.
27596         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
27597         (gl_FUNC_MKTIME): Require it.
27599 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
27601         xstrtol: prohibit monstrosities like "1bB"
27602         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
27603         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
27604         "B" only if the first suffix needs a base.
27605         * tests/test-xstrtol.sh: Test this.
27607 2016-04-21  Pádraig Brady  <P@draigBrady.com>
27609         xstrtod: reinstate setting of *result upon ERANGE
27610         * lib/xstrtod.c (XSTRTOD): The user may decide to use
27611         the returned limits upon ERANGE, so allow and document that.
27613 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
27615         xstrtod: modify *result only if no errors
27616         * lib/xstrtod.c (XSTRTOD).
27618 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
27620         btowc: document problems in C locale
27621         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
27622         with mbrtowc.  See: http://bugs.gnu.org/23269#32
27624 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
27626         mktime: improve integer overflow checking
27627         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
27628         (WRAPV): Remove; no longer needed.
27629         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
27630         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
27631         Remove.  Use intprops.h defns instead.
27632         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
27633         Use bool for Boolean, for clarity.
27634         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
27635         detect integer overflow.
27636         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
27638         intprops: check two's complement assumption
27639         Suggested by Eric Blake in:
27640         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
27641         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
27642         short, int, long, and (if available) long long are two's complement.
27643         * modules/intprops (Depends-on): Add 'verify'.
27645         intprops, mktime, strtol: assume two's complement
27646         These macros were not portable to every conforming C11 ones'
27647         complement platform.  It's not worth the hassle of porting to some
27648         platforms that use ones' complement or signed magnitude, as such
27649         platforms are almost purely theoretical nowadays and porting even
27650         to some of them makes the code harder to review for little
27651         practical benefit.  Problem reported by Florian Weimer in:
27652         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
27653         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
27654         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
27655         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
27656         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
27657         (TYPE_SIGNED_MAGNITUDE):
27658         Remove.  All uses rewritten to assume two's complement, which is
27659         all we can reasonably test nowadays anyway.
27660         * top/maint.mk (_intprops_names): Remove the removed macros.
27662 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
27664         stdint: port to strict C11 left shift
27665         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
27666         Pacify clang -Wshift-negative-value, which should be an issue only
27667         on clang setups where stdint.h does not conform to C11 or to C++11.
27668         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
27670 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
27672         mbrtowc: work around glibc bug#19932
27673         Fix mbrtowc so that it never returns -1 in the C locale,
27674         as this conflicts with a future version of POSIX
27675         http://austingroupbugs.net/view.php?id=663#c2738
27676         and causes problems with GNU grep: http://bugs.gnu.org/23234
27677         See glibc bug 19932:
27678         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
27679         * doc/posix-functions/mbrlen.texi (mbrlen):
27680         * doc/posix-functions/mbrtowc.texi (mbrtowc):
27681         Document the glibc bug.
27682         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
27683         Include hard-locale.h, locale.h.
27684         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
27685         if the bug is possible.
27686         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
27687         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
27688         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
27689         * modules/mbrtowc (Depends-on): Add hard-locale.
27690         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
27691         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
27692         * tests/test-mbrtowc5.sh: New file.
27694 2016-04-03  Pedro Alves  <palves@redhat.com>
27696         stdint: detect good enough pre-C++11 stdint.h in C++ mode
27697         When gnulib is configured in C++ mode for a system with a working C99
27698         implementation of stdint.h that predates C++11, gnulib ends up
27699         substituting stdint.h anyway.  This works on most targets, but on e.g.,
27700         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
27701         MinGW is LLP64.  Instead of trying to detect the right types, detect
27702         good-enough-pre-C++11 stdint.h and in such case define
27703         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
27704         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
27705         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
27706         conforms to C99.  If it does, check whether it hides symbols
27707         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
27708         does, define those macros in config.h.
27710 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
27712         argp: merge changes from glibc
27713         Among other things, this should fix problems found by a Coverity
27714         scan and reported by Andrei Borzenkov:
27715         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
27716         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
27717         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
27718         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
27719         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
27720         * lib/argp.h:
27721         Merge changes from glibc.
27722         * tests/test-argp-2.sh: Adjust to match new behavior.
27724 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
27726         stddef: support configuring with g++
27727         Problem reported by Ángel González in:
27728         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
27729         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
27730         Do not define if _GCC_MAX_ALIGN_T is defined.
27732 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
27734         test-framework-sh: minor cleanups
27735         * tests/init.sh (testdir_prefix_): Output a trailing newline,
27736         since strictly speaking POSIX requires this.
27737         (setup_): Do not use the variable 'fail', as that makes the
27738         trace output harder to read ('fail' is typically used by
27739         tests to mean the test failed).  Treat // portably.
27740         Check that new directory is not merely a sibling of the tmp dir.
27741         Avoid unnecessary invocation of tr.
27743         test-framework-sh: revert port to NetBSD 7.0
27744         It was a false alarm; I misinterpreted Assaf Gordon's report.
27745         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
27746         Restore.
27747         (test_dir_): Adjust to mktempd_ change.
27748         (mktempd_): Restore 2nd arg.  Use -t again.
27749         (base_template_, template_, nx_): Resurrect old code.
27751         Port better to Alpine Linux
27752         Its diff implementation does not support -c, but does support -U3.
27753         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
27754         * tests/init.sh (diff_opt_): New var.
27755         (compare_): Prefer diff -U3 to diff -c to plain diff.
27757 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
27759         test-framework-sh: port to NetBSD 7.0
27760         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
27761         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
27762         Remove.  All uses removed.
27763         (test_dir_): Adjust to mktempd_ change.
27764         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
27765         (base_template_, template_, nx_): Simplify by hardcoding.
27767 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
27769         gitlog-to-changelog: suppress ignored chatter
27770         * build-aux/gitlog-to-changelog: Do not warn about skipping
27771         an SHA if it would have been ignored anyway.
27773 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
27775         setlocale: add "sv" to Windows language table
27776         * lib/setlocale.c (language_table) [W32]: Add "sv".
27777         Reported in <https://savannah.gnu.org/bugs/?44588>.
27779 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
27781         sys_select: port to new Cygwin
27782         Problem reported by Ken Brown in:
27783         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
27784         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
27785         diagnostics.
27787 2016-03-17  Jim Meyering  <meyering@fb.com>
27789         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
27790         * tests/test-userspec.c (main): Remove unnecessary braces and fix
27791         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
27792           test-userspec.c:176:9: error: statement is indented as if it were \
27793             guarded by... [-Werror=misleading-indentation]
27794                    {
27795                    ^
27796           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
27797                  if (!diag && !T[i].result)
27798                  ^~
27800 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
27802         time_rz: port to clang -Wunused-const-variable
27803         * lib/time_rz.c (TZ): Remove.  All uses removed.
27805         std-gnu11: improve clang support
27806         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
27807         2016-03-15 Also try clang
27808         2016-03-15 Port C11 and C++11 testing to clang
27810         select: port more to Intel 2016.1.150 compiler
27811         Problem reported by Balázs Hajgató in:
27812         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
27813         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
27815 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
27817         select: try to port to 2016.1.150 compiler
27818         Problem reported by Balázs Hajgató in:
27819         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
27820         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
27821         POSIX specifies 'restrict'.
27823 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
27825         localename-tests: memory allocation fixes
27826         * tests/test-localename.c (test_locale_name)
27827         (test_locale_name_thread): Don't call freelocale on a locale
27828         that was the base of a successful newlocale, as that
27829         results in a double free.  Problem reported by Assaf Gordon.
27830         (test_locale_name_thread): Free saved names after use, to pacify
27831         gcc -fsanitize=address.
27833 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
27835         intprops: make .h file license match module
27836         * lib/intprops.h: Change the license wording to match glibc format.
27837         This is what is in modules/intprops anyway.  See:
27838         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
27840 2016-03-08  Eric Blake  <eblake@redhat.com>
27842         acl: fix missing return on Cygwin
27843         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
27844         fall off end of function. Fixes http://bugs.gnu.org/22949
27846 2016-03-05  Bruno Haible  <bruno@clisp.org>
27848         extern-inline: port to PGI CC
27849         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
27850         keyword 'inline'.
27851         Reported by Adam James Stewart in:
27852         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
27854 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27856         signbit: port back to pre-C++11 GCC
27857         * lib/math.in.h (signbit): Do previous change only if
27858         __cplusplus < 201103.  See Jonathan Wakely in:
27859         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
27861 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
27863         mountlist: recognize autofs-mounted remote file systems, too
27864         Originally reported at: https://bugzilla.redhat.com/1309247
27865         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
27866         "-hosts" because it is used by autofs to mount remote file systems.
27868 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
27870         signbit: port to C++ with GCC 6
27871         * lib/math.in.h (signbit) [__cplusplus]:
27872         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
27873         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
27875         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
27877         regex: make it closer to libc
27878         Make Idx a signed type, rather than possibly unsigned.
27879         The unsignedness was not really buying us anything, since the code
27880         overflows for other reasons before getting to PTRDIFF_MAX.  Making
27881         it signed allows us to use -1 and -2 with abandon, like libc does,
27882         thus lessening the number of differences between gnulib and libc.
27883         Also, it should help avoid gratuitous warnings like the one
27884         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
27885         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
27888         regex: merge patches from libc
27890         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
27891         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
27892         Convert miscellaneous function definitions to prototype style.
27893         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
27894         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
27895         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
27896         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
27897         (re_search_internal):
27898         Convert to prototype-style function definition.
27899         Use internal_function for internal functions.
27901 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
27903         stdalign: port to older HP and IBM cc
27904         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
27905         C compilers, by checking their version numbers.  These version
27906         numbers appear in MariaDB and in Qt code that dates way back and
27907         that conditiionally uses the 'aligned' attribute.
27909 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
27911         stdalign: port to clang 3.7.0
27912         Problem reported by Herbert J. Skuhra in:
27913         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
27914         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
27915         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
27916         https://llvm.org/bugs/show_bug.cgi?id=26547
27918 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
27920         readdir_r: now obsolescent
27921         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
27922         * lib/mountlist.c (read_file_system_list): Add a FIXME.
27924 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
27926         misc: port better to gcc -fsanitize=address
27927         Without these patches, ./configure CFLAGS='-fsanitize=address'
27928         would compute incorrect values.  This patch fixes some (but not all)
27929         test failures with recent glibc, with this configuration.
27930         * m4/acl.m4 (gl_ACL_GET_FILE):
27931         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
27932         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
27933         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
27934         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
27935         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
27936         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
27937         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
27938         * m4/getline.m4 (gl_FUNC_GETLINE):
27939         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
27940         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
27941         * m4/regex.m4 (gl_REGEX):
27942         * m4/strndup.m4 (gl_FUNC_STRNDUP):
27943         * tests/test-calloc-gnu.c (main):
27944         * tests/test-duplocale.c (main):
27945         * tests/test-getgroups.c (main):
27946         * tests/test-getline.c (main):
27947         * tests/test-inttostr.c (main):
27948         * tests/test-localename.c (test_locale_name)
27949         (test_locale_name_thread, test_locale_name_environ)
27950         (test_locale_name_default):
27951         * tests/test-regex.c (main):
27952         * tests/test-setlocale1.c (main):
27953         * tests/test-stat.h (test_stat_func):
27954         Free heap-allocated storage before exiting.
27955         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
27956         Don't match *_foo symbols inserted by AddressSanitizer.
27957         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
27959 2016-02-02  Jim Meyering  <meyering@fb.com>
27961         verify-tests: also remove stray test-verify.Tpo
27962         * modules/verify-tests (Makefile.am): Arrange for "make clean"
27963         to remove the test-verify.Tpo file that is left behind by
27964         the automake-generated rule upon compilation failure.
27965         Otherwise, that .Tpo file would cause a failed "make distcheck"
27966         at least for grep.
27968 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
27970         std-gnu11: new module
27971         This makes it easier for applications to prefer C11 and C++11
27972         to older variants, when compiling C and C++ code.
27973         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
27974         a nontrivial chunk of GPLed Autoconf source code.
27975         * COPYING: Mention the m4/*.m4 copyright situation.
27976         * MODULES.html.sh (std-gnu11): New module.
27977         * m4/std-gnu11.m4, modules/std-gnu11: New files.
27979 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27981         get-permissions, strftime: fix grammar in comments
27982         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
27983         some grammar fixes Alan Mackenzie made to GNU Emacs.
27985 2016-01-25  Daiki Ueno  <ueno@gnu.org>
27987         gettext: mark as obsolete
27988         Suggested by Paul Eggert in:
27989         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
27990         * modules/gettext (Status): Mark as obsolete.
27991         (Notice): Suggest to use 'gettext-h' instead.
27992         * modules/gettext-h (Description): Suggest GNU gettext, instead of
27993         the 'gettext' module.
27995 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
27997         gnulib-tool: don't give up on ln -s so easily
27998         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
27999         because an earlier one failed.  The targets could be on different
28000         file systems.  Problem reported by KO Myung-Hun in:
28001         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
28003         closedir: fix OS/2-related typos
28004         Problem reported by KO Myung-Hun in:
28005         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
28006         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
28007         in the last couple of changes.
28009 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
28011         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
28012         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
28013         copying a directory.
28015 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
28017         regex: treat [x] as x if x is a unibyte encoding error
28018         Problem reported by Aharon Robbins in:
28019         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
28020         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
28021         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
28023         closedir, dirfd, opendir: port to OpenSolaris 5.10
28024         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
28025         * m4/dirfd.m4 (gl_FUNC_DIRFD):
28026         * m4/opendir.m4 (gl_FUNC_OPENDIR):
28027         Don't use ${word##pat} substitution, as it doesn't work in
28028         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
28029         http://bugs.gnu.org/22443#11
28031 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28033         bootstrap: use American spelling
28034         * build-aux/bootstrap: Honor American spelling.
28036 2016-01-22  Karl Berry  <karl@freefriends.org>
28038         * doc/posix-functions/localtime.texi,
28039         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
28041 2016-01-21  Bruno Haible  <bruno@clisp.org>
28043         hash-pjw-bare: fix comment
28044         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
28046         wcwidth: Replace also on OpenBSD 5.8
28047         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
28048         * doc/posix-functions/wcwidth.texi: Update.
28050 2016-01-20  Pádraig Brady  <P@draigBrady.com>
28052         gnu-web-doc-update: fix addition of new files
28053         If there were already added (emnpty) dirs,
28054         then cvs aborts the add with the message:
28055           cvs [add aborted]: there is a version in <./dirname> already
28056         * build-aux/gnu-web-doc-update: Add directories separately
28057         to the addition of files, to avoid the above issue
28058         impacting the addition of files.
28060 2016-01-19  Daiki Ueno  <ueno@gnu.org>
28062         utimens-tests: avoid pulling gettext .m4 files
28063         Although this is not the right fix to the original problem:
28064         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
28065         it makes it possible again for consumer projects to use arbitrary
28066         version of gettext, through the steps described at:
28067         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
28068         See here for details:
28069         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
28070         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
28071         'gettext'.
28072         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
28073         'gettext'.
28075 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
28077         regex: pacify static checkers
28078         Problem and draft fix reported by Aharon Robbins in:
28079         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
28080         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
28081         Clear memory to pacify static checkers.
28083         regex: fix [ diagnostic
28084         Problem and fix reported by Aharon Robbins in:
28085         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
28086         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
28088         regex: fix memory leaks
28089         Problem and draft fix reported by Aharon Robbins in:
28090         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
28091         * lib/regcomp.c (build_range_exp, build_charclass_op)
28092         * lib/regex_internal.c (re_dfa_add_node):
28093         Fix memory leak on failure.
28095 2016-01-18  Pádraig Brady  <P@draigBrady.com>
28097         fts: don't unconditionally use leaf optimization for NFS
28098         NFS st_nlink are not accurate on all implementations,
28099         leading to aborts() if that assumption is made.
28100         See <https://bugzilla.redhat.com/1299169>
28101         * lib/fts.c (leaf_optimization_applies): Remove NFS from
28102         the white list, and document the issue.
28104 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
28105             KO Myung-Hun  <komh@chollian.net>
28107         gnulib-tool: don't assume ln -s works
28108         * gnulib-tool (func_ln_s): New function.
28109         (func_ln): Use it.
28111 2016-01-15  KO Myung-Hun  <komh@chollian.net>
28113         utimes: detect utimes() correctly on OS/2 kLIBC
28114         utimes() of OS/2 kLIBC has some limitations.
28115         1. OS/2 itself supports a file date since 1980 year in local time.
28116         2. OS/2 itself supports only even seconds for a file time.
28117         3. utimes() of OS/2 kLIBC does not work on an opened file.
28118         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
28119         * doc/posix-functions/utimes.texi: Document the above limitations of
28120         utimes() on OS/2 kLIBC.
28122 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
28123             KO Myung-Hun  <komh@chollian.net>
28125         openat_proc_name: port to OS/2 kLIBC
28126         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
28127         instead of /proc/self/fd.
28128         * lib/openat-proc.c (openat_proc_name):
28129         Don't assume file name length is less than INT_MAX.
28130         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
28132 2016-01-14  KO Myung-Hun  <komh@chollian.net>
28134         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
28135         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
28136         definitions of intptr_t and uintptr_t (which use int and unsigned)
28137         to avoid clashes with declarations of system functions like sbrk.
28138         * lib/stdint.in.h (intptr_t, uintptr_t): Check
28139         _INTPTR_T_DECLARED before defining them.
28141         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
28142         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
28143         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
28144         Declare on kLIBC.
28145         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
28146         fd associated with dirp.
28147         (_gl_register_dirp_fd): New. Register fd associated with dirp to
28148         dirp_fd_list.
28149         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
28150         (dirfd): Implemented for kLIBC.
28151         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
28152         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
28153         succeeds.
28154         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
28155         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28156         (REPLACE_DIRFD): Define to 1 if replaced.
28157         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
28158         * modules/closedir (Depends-on): Add dirfd.
28159         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
28160         condition.
28161         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
28162         * modules/opendir (Depends-on): Add dirfd.
28164         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
28165         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
28166         * lib/dup.c (dup_nothrow): New.
28167         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
28168         (klibc_dup2): New.
28169         * lib/fcntl.c (klibc_fcntl): New.
28170         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
28171         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
28172         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
28173         fd.
28175         pipe_filter_ii_execute: port to OS/2 kLIBC
28176         Pipes on kLIBC do not support O_NONBLOCK like Win32.
28177         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
28178         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
28179         Reuse Win32 code on OS/2 kLIBC.
28180         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
28181         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
28183         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
28184         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
28185         static inline function.  The implementation of wcwidth in wcwidth.c
28186         causes a "conflicting types" error.
28187         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
28189         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
28190         spawn() on OS/2 kLIBC is not silly like one on Windows
28191         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
28192         empty string on OS/2 kLIBC.
28194         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
28195         On OS/2 kLIBC, select() works only on sockets.
28196         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
28198         binary-io: don't put fd in binary mode if it is a console on EMX
28199         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
28200         a console on EMX.
28202 2016-01-15  Pádraig Brady  <P@draigBrady.com>
28204         doc: mention unfixed issues with unsupported localtime() values
28205         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
28206         returns nonsense for localtime(2^56).
28207         * doc/posix-functions/localtime_r.texi: Likewise.
28209 2016-01-14  Pádraig Brady  <P@draigBrady.com>
28211         doc: mention setlocale() issues on OpenBSD
28212         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
28213         never fails, and the need to check categories individually.
28215 2016-01-14  Pádraig Brady  <P@draigBrady.com>
28217         sig2str: list all signals on FreeBSD >= 7
28218         FreeBSD >= 7 is contravening POSIX by not defining NSIG
28219         to the maximal statically defined signal value.
28220         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
28221         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
28222         where available, even when NSIG is defined.
28224 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
28226         acl-permissions: port to USE_ACL==0 platforms
28227         I ran into this problem when building bleeding-edge GNU Emacs
28228         with gcc -fsanitize=address on Fedora 23.  On this platform
28229         the ACL library does not pass the 'configure' test and Emacs
28230         then does not build due in part to what appear to be typos in the
28231         ACL part of Gnulib.
28232         * lib/acl-internal.c (free_permission_context):
28233         * lib/acl-internal.h (struct permission_context):
28234         Test whether USE_ACL is nonzero, not whether it is defined.
28236 2016-01-12  Martin Sebor  <msebor@redhat.com>
28238         mktime: rename macro to avoid glibc clash
28239         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
28240         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
28242 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
28244         Port "$@" to OpenIndiana ksh93
28245         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
28246         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
28247         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
28248         bug long-dead shells, so remove the workaround.
28249         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
28250         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
28251         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
28252         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
28253         Use "$@" instead of ${1+"$@"}.
28255         Port Universal Time settings to strict POSIX
28256         * build-aux/announce-gen, build-aux/bootstrap:
28257         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
28258         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
28259         * build-aux/gnupload, build-aux/mkinstalldirs:
28260         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
28261         * build-aux/update-copyright, build-aux/useless-if-before-free:
28262         * build-aux/vc-list-files, tests/test-strftime.c:
28263         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
28264         but POSIX says the behavior of TZ="UTC" is undefined.
28266 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
28268         msvc-inval: fix problem with unset shell var
28269         Problem reported by Karl Berry in:
28270         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
28271         * modules/msvc-inval (Depends-on):
28272         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
28273         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
28275 2016-01-01  Pádraig Brady  <P@draigBrady.com>
28277         tests: for compare_(), use cmp -s where available
28278         * tests/init.sh (compare_): Only fall back to cmp without
28279         the POSIX defined -s option, where this is not available.
28281 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
28283         version-etc: new year
28284         * build-aux/gendocs.sh (version):
28285         * doc/gendocs_template:
28286         * doc/gendocs_template_min:
28287         * doc/gnulib.texi:
28288         * lib/version-etc.c (COPYRIGHT_YEAR):
28289         Update copyright dates by hand in templates and the like.
28290         * all files: Run 'make update-copyright'.
28292 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
28294         human: fix output buffer overrun by 1
28295         * lib/human.c (human_readable): Fix off-by-one typo in buffer
28296         calculation that could lead to a one-byte buffer overrun.
28298 2015-12-28  Daiki Ueno  <ueno@gnu.org>
28300         maint: fix operator precedence in mbrtowc test
28301         This is a fix for test breakage introduced by commit 45228d96; the
28302         equality expression must be parenthesized when negated with '!',
28303         otherwise we always get:
28305           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
28307         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
28308         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
28310 2015-12-23  James Youngman  <jay@gnu.org>
28312         regexprops-generic: update from regex.h
28313         * doc/regexprops-generic.texi: update by running the regexprops binary
28314         from findutils (the command line is 'regexprops "Regular Expressions"
28315         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
28316         gnulib with GNU grep had made this document out-of-date.
28318 2015-12-23  Pádraig Brady  <P@draigBrady.com>
28320         strftime-tests: avoid false failure on OS X
28321         * tests/test-strftime.c (struct localtime_rz_test): Add an
28322         ahistorical member which is used to warn rather than fail
28323         when tm_isdst isn't set for such entries.  This is the case for
28324         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
28326 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
28328         fts: ensure leaf optimization is used for NFS
28329         NFS provides usable dirent.d_type but not necessarily for all entries
28330         of large directories.  See <https://bugzilla.redhat.com/1252549>
28331         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
28333 2015-12-20  Pádraig Brady  <P@draigBrady.com>
28335         fts: enable leaf optimization for XFS
28336         XFS provides usable dirent.d_type only for DT_DIR,
28337         but the noleaf optimization still applies.
28338         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
28340 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
28342         intprops: comment fix
28343         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
28344         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
28346         intprops-test: work around GCC bug 68971
28347         Problem reported by Pádraig Brady in:
28348         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
28349         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
28350         (main): Add a case that better tests 64-bit long in this area.
28352 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
28354         gnulib-tool: allow multiple --local-dir usage
28355         * gnulib-tool: Use --local-dir to construct compound
28356         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
28357         PATH_SEPARATOR early.
28358         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
28359         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
28360         func_determine_path_separator because that needs to be detected
28361         earlier now.
28362         (func_determine_path_separator): New function.
28363         (func_path_foreach, func_path_foreach_inner): New functions.
28364         (func_path_prepend, func_path_append): Likewise.
28365         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
28366         (func_lookup_file, func_all_modules): Use new functions to work
28367         with local_gnulib_path.
28368         (func_modules_in_dir, func_exists_module): New callbacks for
28369         func_path_foreach.
28370         (func_exists_module, func_get_tests_module): Likewise.
28371         (func_is_local_file, func_should_symlink): New helper methods.
28372         (func_add_file, func_update_file): Use new func_should_symlink
28373         instead, DRY.
28374         (func_reconstruct_cached_local_gnulib_path): New helper.
28375         (func_reconstruct_cached_dir): New callback.
28376         (func_import): The cached_local_gnulib_dir renamed to
28377         cached_local_gnulib_path similarly to local_gnulib_dir.
28378         Use new func_reconstruct_cached_local_gnulib_path.
28379         (func_count_relative_local_gnulib_path): New sub-method.
28380         (func_create_testdir): Use func_should_symlink, DRY.
28381         (func_create_megatestdir): Use new functions to work with
28382         local_gnulib_path correctly.
28383         (func_append_local_dir): New helper.
28385 2015-12-08  Pádraig Brady  <P@draigBrady.com>
28387         fix freadptr to work with ungetc on all uClibc configs
28388         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
28389         where GNU coreutils cut(1) generates invalid output on uClibc
28390         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
28391         * lib/freadptr.c (freadptr): Return NULL if there are
28392         ungotten chars.  In this case freadseek() will iterate
28393         again to process the ungotten character.
28395 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
28397         xalloc-oversized: improve performance with GCC 5
28398         * lib/xalloc-oversized.h (xalloc_oversized):
28399         Improve performance with GCC 5 by using __builtin_mul_overflow.
28401 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28403         intprops: new public macro EXPR_SIGNED
28404         Emacs can use this macro, so make it public.
28405         * doc/intprops.texi (Arithmetic Type Properties): Rename from
28406         'Integer Type Determination', since some of these macros apply
28407         to non-integer types.  Clarify what kinds of constant expressions
28408         these macros return.  Say when the arguments can be non-integers.
28409         Mention newly published macro EXPR_SIGNED.
28410         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
28411         make it public.  All uses changed.
28413         intprops: fix typo in clang port
28414         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
28415         '__builtin_add_overflow' that is not caught by compiler.
28417 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
28419         test-timespec: fix typo in previous change
28420         * tests/test-timespec.c (main): Fix typo that reduced test quality.
28422         timespec-sub: fix overflow bug; add tests
28423         * lib/timespec-add.c (timespec_add):
28424         * lib/timespec-sub.c (timespec_sub):
28425         Work even if time_t is narrower than int (a theoretical
28426         possibility).  Redo code for a bit more clarity.
28427         * lib/timespec-sub.c (timespec_sub):
28428         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
28429         * modules/timespec-tests, tests/test-timespec.c: New files.
28431         intprops-test: suppress -Woverlength-strings
28432         Problem reported by Pádraig Brady in:
28433         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
28434         It is not worth the hassle to port this test to compilers that
28435         cannot handle long strings in diagnostics.
28436         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
28438 2015-11-03  Pádraig Brady  <P@draigBrady.com>
28440         quotearg: add quotearg_n_style_colon()
28441         This quotes with default options of the specified style,
28442         but with quoting enabled for instances of ':'.
28443         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
28444         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
28446 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
28448         intprops: revise _WRAPV macros, revert _OVERFLOW
28449         The incompatible changes to the _OVERFLOW macros were too much of
28450         a hassle in practice, so revert them.  Instead, change the new
28451         _WRAPV macros to make them closer in behavior to GCC 5's new
28452         builtin_add_overflow etc. functions.  No other software was using
28453         these newly-added macros yet, so this should be OK.
28454         * NEWS: Revert previous change, since the incompatible change
28455         has been reverted, and nobody used the incompatible version.
28456         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
28457         Document revised behavior.
28458         (Integer Range Overflow): Adjust example to match above revisions.
28459         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
28460         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
28461         these can be used in integer constant expressions again.
28462         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
28463         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
28464         needed.
28465         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
28466         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
28467         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
28468         Remove, as they did not seem that useful.
28469         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
28470         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
28471         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
28472         Support new semantics.
28473         (__has_builtin): New macro, if not alreay defined.
28474         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
28475         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
28476         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
28477         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
28478         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
28479         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
28480         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
28481         New macros.
28482         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
28484 2015-11-03  Jim Meyering  <meyering@fb.com>
28486         intprops: add parentheses for when OP has precedence lower than "-"
28487         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
28488         "a OP b" must be parenthesized for when OP is like "<<", which has
28489         lower precedence than the following "-". Reported by Pádraig Brady.
28491 2015-11-03  Pádraig Brady  <P@draigBrady.com>
28493         quotearg: constify get_quoting_style parameters
28494         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
28495         * lib/quotearg.c (get_quoting_style): Likewise.
28497 2015-11-02  Pádraig Brady  <P@draigBrady.com>
28499         quotearg: add support for $'' shell escaping
28500         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
28501         items and descriptions.
28502         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
28503         above types by quoting like "shell", but using $'...' syntax
28504         for non printable characters, which should provide unambiguous
28505         printable output for any input.
28506         * tests/test-quotearg-simple.c: Update accordingly.
28508 2015-11-02  Pádraig Brady  <P@draigBrady.com>
28510         maint: use a more standard return from mbrtowc test
28511         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
28512         from the test program as this is non standard and often
28513         indicates an unhandled case in the test program.
28514         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
28516 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
28518         intprops: add WRAPV and const flavors for GCC 5
28519         If available, use GCC 5's builtin functions for efficient integer
28520         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
28521         and safely compute the low-order bits of the correct answer.
28522         A downside of these efficient functions is that they cannot be
28523         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
28524         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
28525         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
28526         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
28527         Document the changes.
28528         (Wraparound Arithmetic): New section.
28529         (Integer Range Overflow):
28530         Put this subsection last, since it's least useful.
28531         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
28532         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
28533         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
28534         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
28535         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
28536         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
28537         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
28538         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
28539         New macros.
28540         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
28541         Generate calls to GCC builtins if available, for speed.
28542         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
28543         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
28544         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
28545         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
28546         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
28547         (CHECK_QUOTIENT, CHECK_REMAINDER):
28548         Test WRAPV and CONST flavors (when available) too.
28550 2015-10-30  Pádraig Brady  <P@draigBrady.com>
28552         doc: use extended timezone format in iso-8601 example
28553         * doc/parse-datetime.texi: The standard states that extended format
28554         is to be used consistently throughout.
28555         Note that lib/parse-datetime.y can handle either tz format.
28557 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
28559         stdalign: port to Sun C 5.9
28560         * doc/posix-headers/stdalign.texi: Document this.
28561         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
28562         __attribute__ ((__aligned__ (...))).
28564 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
28566         time_rz: fix comment about tzalloc
28567         * lib/time_rz.c (tzalloc): Fix comment.
28569 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
28571         stdalign: work around pre-4.9 GCC x86 bug
28572         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
28573         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
28574         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
28576 2015-10-18  Pádraig Brady  <P@draigBrady.com>
28578         maint.mk: sc_tight_scope: remove extraneous expressions
28579         * top/maint.mk (tight_scope): This is not really required since
28580         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
28581         that matches all nm entries.  But it does remove extraneous entries
28582         that may be confusing or cause issue in future maintenance.
28584 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
28586         time_rz: return NULL if localtime_r fails
28587         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
28588         while still attempting to pacify bleeding-edge GCC.
28590         fts: port to C11 alignof
28591         * doc/posix-headers/stdalign.texi (stdalign.h):
28592         Document the C11 restriction.
28593         * lib/fts.c: Include stddef.h, for max_align_t.
28594         (fts_alloc): Align using max_align_t, not FTSENT.
28595         * modules/fts (Depends-on): Add stddef.
28597 2015-10-18  Jim Meyering  <meyering@fb.com>
28599         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
28600         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
28601         would see this:
28603         lib/time_rz.c: In function 'localtime_rz':
28604         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
28605           [-Werror=nonnull]
28606                    if (tm && !save_abbr (tz, tm))
28607                        ^
28609         That was complaining about "tm" because it is a parameter that was
28610         declared with the __nonnull__ attribute.
28611         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
28612         result of localtime_r.
28614 2015-10-17  Jim Meyering  <meyering@fb.com>
28616         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
28617         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
28618         name-extraction regexp mistakenly used \S+, and would mistakenly
28619         extract "*F" from "extern int *F()" rather than the desired "F".
28620         Use \w+ instead.
28622 2015-10-17  Jim Meyering  <meyering@fb.com>
28624         maint.mk: sc_tight_scope: factor and support OS X
28625         * top/maint.mk (_gl_tight_scope): Address three issues:
28626         - factor out four instances of code that wraps a string in "^...$"
28627         - allow nm-reported symbol names to have an optional leading "_"
28628         - add "main" to the list of ignored variable names, because on os x,
28629         "main" has nm-reported type "S" in the variable-checking section.
28631 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
28633         safe-alloc-tests: fix typo in license header
28634         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
28636 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
28638         copy-file: fix mem leak in error case
28639         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
28640         upon error opening or performing I/O to the src and dest files.
28642 2015-10-15  Mike Frysinger  <vapier@chromium.org>
28644         localename: control langinfo.h inclusion
28645         This header is only used to work around buggy behavior in old
28646         versions of glibc, so do not include it all the time.  Otherwise
28647         we get build failures on systems that do not provide langinfo.h.
28648         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
28649         in the source later on.
28650         The patch was originally submitted to gettext as:
28651         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
28653 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28655         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
28656         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
28657         * lib/u64.c, lib/unistd.c:
28658         Append 'typedef int dummy;', to pacify compilers that are picky
28659         about empty translation units.
28661 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
28663         accept4-tests: fix to avoid non portable flags
28664         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
28665         as they are the only documented ones, and passing others may trigger
28666         EINVAL (seen on FreeBSD 10.1-RELEASE).
28667         * doc/glibc-functions/accept4.texi: Mention that we don't provide
28668         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
28670 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
28672         gnulib-tool: fix tests of 'extensions' module
28673         This complements f8fe25fab60e3c687a124 commit.
28674         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
28675         emitting of initial gl_EARLY macros.
28676         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
28677         replaced with func_emit_pre_early_macros call.
28679 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
28681         unicase/locale-language: fix typo in utf-8 cookie
28682         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
28683         Problem reported by Zbigniew Jędrzejewski-Szmek.
28685 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
28687         xalloc: do not worry about GCC 5 warning on 32 bit
28688         * lib/xalloc.h: Revert previous change.
28689         I found a better way to fix this in coreutils.
28691 2015-10-02  Pádraig Brady  <P@draigBrady.com>
28693         xalloc: avoid GCC 5.1 warning on 32 bit
28694         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
28695         xalloc_oversized(), which was seen to give this warning
28696         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
28697         when simplifying conditional".
28699 2015-10-02  Daiki Ueno  <ueno@gnu.org>
28701         uniname/uniname-tests: avoid compiler warnings
28702         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
28703         unused local variables.
28704         (test_alias_lookup): Fix alias name display in failure cases.
28706 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
28708         c-ctype: do not worry about EBCDIC + char signed
28709         Drop support for EBCDIC with char being signed, as this breaks too
28710         many programs.  Problem reported by Ben Pfaff in:
28711         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
28712         * lib/c-ctype.h: Verify that we are not using EBCDIC with
28713         char being signed.
28714         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
28715         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
28716         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
28717         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
28718         * tests/test-c-ctype.c (test_all):
28719         Simplify by assuming standard char values cannot be negative.
28720         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
28722 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28724         c-ctype: port better to z/OS EBCDIC
28725         Problems reported by Daniel Richard G. in:
28726         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
28727         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
28728         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
28729         (_C_CTYPE_OTHER_CNTRL): New macro.
28730         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
28731         from SCHAR_MIN, as the functions are defined only from values
28732         promoted from char or from unsigned char, not necessarily from
28733         signed char.
28735 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
28737         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
28739         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
28740         and ARFLAGS variables.  Doing this unconditionally could break
28741         later Automake's AM_PROG_AR invocation (at least it's
28742         AC_CHECK_TOOLS call to detect correct 'ar' binary).
28744         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
28745         Amsterdam Compiler Kit, so make the previous code to have effects
28746         only on ACK, and rather automatically call the Automake's
28747         AM_PROG_AR as soon as possible to decide other cases.
28749         References:
28750         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
28752         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
28753         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
28754         is possible, keep setting AR/ARFLAGS to reasonable defaults.
28755         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
28756         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
28757         'extensions' module is used.
28758         * modules/extensions (configure.ac-early): Remove as this snippet
28759         is added to gnulib-comp.m4 earlier anyway.
28761 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28763         sockets: MS Windows initalization fixes
28764         Problem reported by Test User in:
28765         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
28766         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
28767         Correct the endianness.
28768         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
28769         number mismatch, not just on <.  Cleanup before any such failure.
28771 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
28773         gc: fix detection of installed libgcrypt version
28774         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
28775         at least as recent as 1.4.4.  The previously used macro is not
28776         available now, since modules were removed in version 1.6.0.
28778 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28780         c-ctype: rewrite to use inline functions
28781         This simplifies maintenance, since it makes for just one
28782         implementation of each function, letting the compiler have the fun
28783         of optimization.  In practice this works well nowadays with GCC.
28784         E.g., c_isascii might need only three instructions even though the
28785         source code lists every ASCII character individually in a large
28786         switch statement.
28787         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
28788         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
28789         * NEWS: Document the API change.
28790         * lib/c-ctype.c: Drastically simplify, since this now just expands
28791         inline functions.
28792         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28793         (C_CTYPE_INLINE): New macro.
28794         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
28795         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
28796         Verify that either ASCII or EBCDIC is being used.
28797         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
28798         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
28799         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
28800         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
28801         New private macros.
28802         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
28803         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
28804         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
28805         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
28806         (c_tolower, c_toupper): When converting, return the unsigned char,
28807         as that is what z/OS does.
28808         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
28809         of some c-ctype.h macros.
28810         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
28811         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
28812         c_tolower promotion to be compatible with z/OS.
28814 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
28816         gitlog-to-changelog: trim only trailing whitespaces
28817         This is fix for --format regression introduced by commit
28818         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
28819         doubled %n string) had no effect anymore.  This format
28820         specification has been used e.g. by GNU paxuitils (commit
28821         edfd8bcc3).
28823         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
28824         newlines in commmit messages.
28826 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
28828         Test that c_iscntrl agrees with iscntrl, etc.
28829         Suggested by Daniel Richard G. in:
28830         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
28831         * modules/c-ctype-tests (Depends-on): Add ctype.
28832         * tests/test-c-ctype.c: Include <ctype.h>.
28833         (NCHARS): New constant.
28834         (test_agree_with_C_locale): New function.
28835         (main): Use it.
28836         (test_all): Use named constants.
28838         c-ctype: improve c_isascii testing
28839         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
28840         Add a test to count the number of ASCII characters.
28842 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28844         savewd: remove SAVEWD_CHDIR_READABLE
28845         It was problematic in the light of file systems that ignore umask.
28846         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
28847         * NEWS: Document this.
28848         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
28849         successful, -1 (setting errno) on failure, rather than something
28850         more complicated than that.
28851         * lib/mkdir-p.c (make_dir_parents):
28852         Do not use SAVEWD_CHDIR_READABLE.
28853         * lib/savewd.c (savewd_chdir):
28854         Remove support for SAVEWD_CHDIR_READABLE.
28855         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
28857         c-ctype: port better to EBCDIC
28858         Problems reported by Daniel Richard G. in
28859         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
28860         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
28861         Include "verify.h".
28862         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
28863         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
28864         Define as enum constants with value false, if not defined, so that
28865         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
28866         code more portable, as both branches of the 'if' are compiled on
28867         all platforms.
28868         (C_CTYPE_EBCDIC): New constant.
28869         Verify that the character set is either ASCII or EBCDIC.
28870         (to_char): New static function.
28871         (c_isascii, c_iscntrl):
28872         Assume standard control-character assignments for EBCDIC.
28873         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
28874         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
28875         Rewrite to use 'if' instead of 'ifdef'.
28876         Use to_char if non-ASCII.  Prefer <= to >=.
28877         Prefer true and false to 1 and 0, for booleans.
28878         (c_iscntrl): Use 'if', not 'ifdef'.
28879         * modules/c-ctype (Depends-on): Add verify.
28880         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
28881         (to_char): New function.
28882         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
28884 2015-09-21  Pádraig Brady  <P@draigBrady.com>
28886         nanosleep: fix return code for interrupted replacement
28887         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
28888         that we return -1 in the case the call is interrupted by a signal,
28889         rather than the current value of 1.
28890         Diagnosed and tested by Daniel Richard G.
28892 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
28894         Diagnose ERE '()|\1'
28895         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
28896         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
28897         track of the set of previously-completed subexpressions available
28898         before the first alternative, and restore this set just before
28899         parsing each subsequent alternative.  This lets us diagnose the
28900         invalid back-reference in the ERE '()|\1'.
28902         regex: merge patches from libc
28904         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
28905         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
28906         * lib/regex_internal.h:
28907         Include <libc-lock.h> instead of <bits/libc-lock.h>.
28909         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
28910         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
28911         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
28912         wcscoll.
28913         * lib/regexec.c (check_node_accept_bytes): Likewise.
28915         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
28916         Fix regex wcrtomb namespace (bug 18496).
28917         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
28918         instead of wcrtomb.
28920         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
28921         Fix regex wctype namespace (bug 18495).
28922         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
28923         instead of towlower.
28924         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
28925         instead of iswlower.  Call __towupper instead of towupper.
28926         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
28927         instead of iswalnum.
28929         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
28930         * lib/regcomp.c (parse_bracket_exp): Initialize type to
28931         COLL_SYM in a couple of places to avoid uninitialized variable
28932         wanings on tilegx gcc 4.8.2.
28934         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
28935         * lib/regex_internal.h: Remove NOT_IN_libc.
28937         2014-11-17  Andreas Schwab  <schwab@suse.de>
28938         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
28940         2014-09-11  Roland McGrath  <roland@hack.frob.com>
28941         Move findidx nested functions to top-level.
28942         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
28943         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
28944         Pass new arguments to findidx.
28945         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
28946         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
28947         Don't #include it inside the function.  Pass new arguments to findidx.
28948         * lib/regex_internal.h:
28949         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
28950         (re_string_elem_size_at): Don't #include it inside the function.
28951         Pass new arguments to findidx.
28953         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28954         Check if DEBUG is defined in regex_internal.c
28955         * lib/regex_internal.c: Check if DEBUG is defined and is set.
28957 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
28959         ceill: detect buggy OpenBSD implementation
28960         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
28961         which returns zero for small values.  Discussed here:
28962         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
28964 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
28966         mountlist: add me_mntroot field on Linux machines
28967         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
28968         mount_entry so Linux machines based on /proc/self/mountinfo can
28969         distinguish between bind mounts and original mounts.  In reality bind
28970         mounts aren't treated differently than mountroot=/ mounts by the
28971         kernel, but the user often wants these bind mounts distinguished.
28972         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
28973         More details at https://pad.lv/1432871
28975 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
28977         doc: Describe to use multiple instances of gnulib
28978         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
28979         instances of gnulib with different modules can be used, for example one
28980         for a lib and another one for associated tools.
28982 2015-09-01  Pádraig Brady  <P@draigBrady.com>
28984         base32: mark function as __attribute__ const
28985         * lib/base32.h (isbase32): Mark __attribute__ const as
28986         suggested by GCC, and consistent with the base64 module.
28988 2015-08-20  Daiki Ueno  <ueno@gnu.org>
28990         gnulib-tool: don't transform binary files with sed
28991         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
28992         .mo and .class files.
28993         Reported by Denis Denisov.
28995 2015-08-10  Daiki Ueno  <ueno@gnu.org>
28997         gperf: respect silent rules
28998         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
28999         V_GPERF_0 for silent rules.
29000         * modules/iconv_open (Makefile.am): Use V_GPERF.
29001         * modules/unicase/locale-language (Makefile.am): Likewise.
29002         * modules/unicase/special-casing (Makefile.am): Likewise.
29003         * modules/unictype/category-byname (Makefile.am): Likewise.
29004         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
29005         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
29006         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
29007         * modules/unictype/property-byname (Makefile.am): Likewise.
29008         * modules/unictype/scripts (Makefile.am): Likewise.
29009         * modules/uninorm/composition (Makefile.am): Likewise.
29011 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
29013         Improve port of stdalign to C++11
29014         Problem reported by Sundaram in:
29015         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
29016         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
29017         (__alignas_is_defined): Define if C++11 or newer.
29019 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
29021         pmccabe2html: fix gawk regex escaping
29022         * build-aux/pmccabe2html: Add one more backslash to properly
29023         escape the gsub replacement value.  Fixes this error:
29024         gawk: ./build-aux/pmccabe2html:425: \
29025         warning: escape sequence `\&' treated as plain `&'
29027 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
29029         time_rz: port to pedantic memcpy
29030         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
29031         that reject memcpy (..., NULL, 0).
29033 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
29035         time_rz: port better to MinGW
29036         Don't change tzname, as this makes MinGW dump core (Bug#21020).
29037         Instead, store the tzname copy in the struct tm_zone object.
29038         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
29039         * lib/strftime.c [!_LIBC]:
29040         * lib/time_rz.c: Include time-internal.h.
29041         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
29042         name from *TZ rather than from TZNAME, doable because *TZ now has
29043         a tzname_copy member.
29044         * lib/time-internal.h: New file, with contents taken from
29045         lib/time_rz.c.  It's separate because strftime.c now accesses
29046         struct tm_zone members.
29047         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
29048         New member tzname_copy.
29049         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
29050         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
29051         Initialize tzname_copy member.
29052         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
29053         in tzname_copy member.
29054         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
29055         (restore_tzname): Remove; no longer needed.  All calls removed.
29056         * modules/time_rz (Files): Add lib/time-internal.h.
29058         time: port __need_time_t to MinGW
29059         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
29060         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
29062 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
29064         strftime: fix newly-introduced bug on Solaris
29065         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
29066         consistently at the start, rather than doing some of the setup at
29067         the start and some in the %Z format spec.  This is cleaner, and
29068         works better with time_rz on platforms like Solaris where struct
29069         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
29070         mktime_z and localtime_rz can mess up the tzname cache.
29072         test-strftime: test for Solaris bug
29073         * modules/strftime-tests (Depends-on): Add strerror.
29074         * tests/test-strftime.c: Include <errno.h>.
29075         (posixtm_test): New function, containing the old 'main'.
29076         (struct tzalloc_test, struct localtime_rz_test): New types.
29077         (TZ, LT): New static vars.
29078         (tzalloc_test): New function.
29079         (main): Rewrite in terms of posixtm_test and tzalloc_test.
29081         time_rz: port to Solaris etc.
29082         Works around a tzname problem on platforms like Solaris that have
29083         tzname but not tm_zone, by setting tzname at the appropriate time
29084         and restoring it later.
29085         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
29086         New static vars.
29087         (save_abbr) [HAVE_TZNAME]: Set them.
29088         (revert_tz) [HAVE_TZNAME]: Clear or use them.
29089         (restore_tzname): New function.
29090         (localtime_rz, mktime_z): Use it.
29092         time_rz: now LGPL
29093         * modules/time_rz (License): Now LGPL, because strftime depends on it.
29095         time_rz: make a constant 'const'
29096         * lib/time_rz.c (local_tz): Now const.
29098         time_rz: fix off-by-one typo
29099         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
29101 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
29103         fprintftime, strftime: use timezone_t args
29104         * NEWS: Document the change.
29105         * lib/fprintftime.h (fprintftime):
29106         * lib/strftime.c (extra_args) [my_strftime]:
29107         * lib/strftime.h (nstrftime):
29108         Time zone arg is now of type timezone_t, not int.
29109         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
29110         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
29111         (my_strftime) [emacs && !my_strftime]:
29112         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
29113         Remove; Emacs doesn't need this any more.
29114         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
29115         fprintftime and nstrftime to call tzset.
29116         (ut) [!my_strftime]: Remove, replacing with ...
29117         (tz) [!my_stftime]: ... this new macro.  All uses changed.
29118         (strftime_case_): Use localtime_rz and mktime_z instead
29119         of localtime_r and mktime.
29120         * modules/fprintftime (Depends-on): Add time_rz.
29121         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
29122         * tests/test-strftime.c (main): Adjust to new nstrftime API.
29124         time_rz: new module
29125         * MODULES.html.sh: Add time_rz.
29126         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
29127         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
29128         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
29129         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
29130         New var HAVE_TIMEZONE_T (default 0).
29131         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
29132         New var GNULIB_TIME_RZ (default 0).
29133         * modules/time (time.h): Substitute the new vars.
29135         flexmember: license is now unlimited
29136         * modules/flexmember (License): Change to unlimited,
29137         since its only source file gives an unlimited license.
29139 2015-07-15  Eric Blake  <eblake@redhat.com>
29141         maint: update copyright paper procedures
29142         * config/srclist.txt: Drop outdated files.
29143         * doc/Copyright/conditions.txt: Update to latest.
29144         * doc/Copyright/assign.changes.manual: Delete.
29145         * doc/Copyright/assign.future.manual: Likewise.
29146         * doc/Copyright/assign.manual: Likewise.
29147         * doc/Copyright/assign.translation.manual: Likewise.
29148         * doc/Copyright/disclaim.changes.manual: Likewise.
29149         * doc/Copyright/disclaim.manual: Likewise.
29150         * doc/Copyright/disclaim.program: Likewise.
29152 2015-07-07  Daiki Ueno  <ueno@gnu.org>
29154         localename: fix link error on Illumos
29155         Illumos defines __sun, but does not have getlocalename_l nor the
29156         equivalent.  This partially reverts commit 387c214.
29157         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
29158         available, as well as uselocale.
29159         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
29160         use getlocalename_l if it is not available.
29162 2015-07-07  Daiki Ueno  <ueno@gnu.org>
29164         unistr/uN-strtok-tests: avoid a trivial leak
29165         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
29166         input and delim after the multibyte delimiter tests.
29168 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
29170         file-has-acl, acl-permissions: fix HP-UX typos
29171         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
29172         * lib/file-has-acl.c (file_has_acl):
29173         * lib/set-permissions.c (context_acl_from_mode)
29174         (context_aclv_from_mode, set_acls):
29175         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
29176         They were introduced by the recent ACL changes.
29178         regex: match current GNU grep behavior
29179         These symbols have not matched GNU grep behavior for quite some time.
29180         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
29181         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
29182         Change to match current GNU behavior.
29183         Simplify by expressing it as differences from POSIX BREs and EREs.
29184         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
29186 2015-07-03  Jim Meyering  <meyering@fb.com>
29188         set-permissions.c: adjust acl_from_mode's cpp guard
29189         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
29190         directives identical to those guarding the sole use.
29191         Otherwise, on some systems, we'd get a warning about
29192         the function being defined but not used.
29193         Also, filter through cppi to correct misleading indentation
29194         of cpp directives.
29196 2015-07-03  Pádraig Brady  <P@draigBrady.com>
29198         tests: restrict shells to those that support 'local'
29199         The local keyword is very widely supported and used
29200         in tests in coreutils and grep at least.  Therefore
29201         restrict to testing with shells that support it.
29202         This mainly excludes /bin/sh on Solaris.
29203         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
29205 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
29206         and Daiki Ueno  <ueno@gnu.org>
29208         unistr/uN-strtok: handle multibyte delimiters
29209         Previously, uN_strtok moved PTR to the next unit to the token end.
29210         When DELIM contained a multibyte character, the new position could
29211         be a middle of a multibyte character.
29212         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
29213         after the token.
29214         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
29215         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
29216         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
29217         * modules/unistr/u8-strtok (Depends-on): Depend on
29218         unistr/u8-strmblen.
29219         * modules/unistr/u16-strtok (Depends-on): Depend on
29220         unistr/u16-strmblen.
29221         * modules/unistr/u32-strtok (Depends-on): Depend on
29222         unistr/u32-strmblen.
29223         * tests/unistr/test-u-strtok.h: New file.
29224         * tests/unistr/test-u8-strtok.c: New file.
29225         * tests/unistr/test-u16-strtok.c: New file.
29226         * tests/unistr/test-u32-strtok.c: New file.
29227         * modules/unistr/u8-strtok-tests: New file.
29228         * modules/unistr/u32-strtok-tests: New file.
29229         * modules/unistr/u16-strtok-tests: New file.
29231 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
29233         update-copyright: fix test failure with perl >= 5.22 (trivial)
29234         * build-aux/update-copyright: Escape a literal left curly bracket,
29235         required with perl >= 5.22
29237 2015-07-02  Daiki Ueno  <ueno@gnu.org>
29239         u{16,32}-strstr-tests: relax timeout condition
29240         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
29241         tests can take longer than 5 seconds to complete.
29242         Reported by Dagobert Michelsen in:
29243         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
29244         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
29245         seconds to 10 seconds.
29246         * tests/unistr/test-u32-strstr.c (main): Likewise.
29248 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
29250         gnulib-common.m4: change the ARFLAGS default to 'cr'
29251         In some GNU/Linux distributions people started to compile 'ar'
29252         binary with --enable-deterministic-archives (binutils project).
29253         That, however, in combination with previous autotools long time
29254         working default AR{_,}FLAGS=cru causes warnings on such
29255         installations:
29256         ar: `u' modifier ignored since `D' is the default (see `U')
29257         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
29258         set already.
29260 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
29262         selinux-h: avoid double free after *getfilecon()
29263         Originally reported by Ben Shelton on bug-tar:
29264         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
29265         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
29266         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
29267         param should be freed by freecon(3) (regardless the return value).
29269 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
29271         fix pty related tests issues on Windows (trivial)
29272         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
29273         however it's still present in tests/ subdirectory of the final project.
29274         Therefore avoid it to pass `make check`.
29275         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
29276         will just return -ENOSYS, so avoid this non applicable test allowing
29277         the build to proceed.
29279 2015-07-01  Pádraig Brady  <P@draigBrady.com>
29281         acl: fix definition of acl_from_mode on FreeBSD
29282         This was causing basic coreutils copy operations to fail
29283         with ENOTSUP or ENOENT error messages.
29284         * lib/acl-internal.h (acl_from_mode): Only define when
29285         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
29286         of acl_from_mode() defined in lib/set-permissions.c to
29287         be used on FreeBSD at least.
29288         * lib/set-permissions.c: Fix up comment spelling,
29289         and a redundant variable assignment; noticed in passing.
29291 2015-06-30  Pádraig Brady  <P@draigBrady.com>
29293         readutmp: port to FreeBSD >= 9
29294         * lib/readutmp.h: Map utmpxname() to setutxdb().
29295         With that coreutils who(1) and pinky(1) tests pass.
29297 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
29299         mgetgroups: port to strict OS X
29300         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
29301         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
29302         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
29303         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
29305 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
29307         mgetgroups: port to strict OS X
29308         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
29309         Document the getgrouplist problem.
29310         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
29311         New macro.
29312         (mgetgroups): Use it.
29313         * m4/mgetgroups.m4 (gl_MGETGROUPS):
29314         Check for OS X signature for getgrouplist.
29316 2015-06-29  Jim Meyering  <meyering@fb.com>
29318         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
29319         It started like this when building coreutils' latest on OS X,
29320         invoking ./configure with a nonempty --cache=.cache:
29322           lib/linkat.c:46:42: error: operator '||' has no right operand
29323           lib/linkat.c: In function 'rpl_linkat':
29324           lib/linkat.c:330:27: error: #if with no expression
29326         Here's linkat.c's line 46:
29328           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
29330         Here's some context:
29332           $ grep linkat_nofoll .cache
29333           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
29334           $ grep LINKAT_SYM lib/config.h
29335           #define LINKAT_SYMLINK_NOTSUP
29337         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
29338         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
29339         but that violates a tenet of AC_CACHE_CHECK: it must
29340         have no side effect other than setting its cache variable.
29342         What happens is that when the cache is set, we'd skip the
29343         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
29344         defined to whatever value it happened to have in configure's
29345         environment.  In my case, it was not defined, so this later code:
29347           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
29348             [Define to 1 if linkat can create hardlinks to symlinks])
29350         would emit code with an empty RHS.
29352         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
29353         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
29355 2015-06-28  Jim Meyering  <meyering@fb.com>
29357         mountlist: avoid an unused-label warning on OS X
29358         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
29359         Building on OS X, I saw a warning about the "free_then_fail" label
29360         being unused.  Give it the _GL_UNUSED_LABEL attribute.
29362         error.c: correct printf-style format: %d -> %u
29363         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
29364         rather than %d, to match the type of "line_number", unsigned int.
29366 2015-06-25  Pádraig Brady  <P@draigBrady.com>
29368         fts: avoid reading beyond the heap allocation
29369         GCC 5.1.1 with -O2 and -fsanitize=address reports
29370         a read of size 4 from a heap object of size 3 is indeed invalid,
29371         though this may be due to incorrect padding assumptions by GCC, see:
29372         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
29373         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
29374         * modules/fts: Depend on stdalign.
29376 2015-06-24  Pádraig Brady  <P@draigBrady.com>
29378         savedir: avoid undefined behavior in qsort call
29379         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
29380         "runtime error: null pointer passed as argument 1,
29381          which is declared to never be null"
29382         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
29384 2015-06-24  Pádraig Brady  <P@draigBrady.com>
29386         userspec: avoid undefined behavior in gettext call
29387         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
29388         "runtime error: null pointer passed as argument 2,
29389          which is declared to never be null"
29390         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
29392 2015-06-20  Glenn Morris  <rgm@gnu.org>
29394         gitlog-to-changelog: improve gitmerge.el commits
29395         Let the Emacs ChangeLog generation process exclude "skipped"
29396         messages from merge commits (Bug#20717).
29397         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
29399 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
29401         wchar: fix MinGW compilation warnings
29402         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
29403         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
29404         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
29406 2015-06-20  Daiki Ueno  <ueno@gnu.org>
29408         uniname/uniname-tests: use pristine data files
29409         For copyright and maintenance reasons, use the data files from UCD
29410         without modification.
29411         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
29412         (getfield): Remove.
29413         (aliases_count): New global variable.
29414         (fill_names): Skip comments and empty lines in the input.  Don't
29415         use getfield.
29416         (fill_aliases): Likewise.
29417         (main): Change the expected command line arguments to:
29418         NAMES... ["--" ALIASES...].
29419         * tests/uniname/test-uninames.sh: Adjust to the change in
29420         test-uninames.c.
29421         * tests/uniname/UnicodeDataNames.txt: Remove.
29422         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
29423         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
29424         file from Unicode 8.0.0.
29426 2015-06-19  Pádraig Brady  <P@draigBrady.com>
29428         linked-list, linkedhash-list: avoid compiler warnings
29429         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
29430         -Werror=suggest-attribute=pure (from GCC 5.1.1).
29432 2015-06-19  Daiki Ueno  <ueno@gnu.org>
29434         libunistring: bump minimum version to 0.9.6
29435         * all modules depending on updated Unicode data: Regenerate.
29436         The modules are listed by a script that does:
29437         - for each file listed by: git show --oneline --name-only 705f4efc
29438           - deduce the containing modules, based on "Files:"
29439         - deduce the modules which depend on the containing modules, based
29440           on "Depends-on:"
29442 2015-06-18  Daiki Ueno  <ueno@gnu.org>
29444         uniname/uniname: update to Unicode 8.0.0
29445         * lib/uniname/uninames.h: Regenerate.
29446         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
29447         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
29449 2015-06-18  Daiki Ueno  <ueno@gnu.org>
29451         libunistring: update to Unicode 8.0.0
29452         * lib/gen-uni-tables.c (SIZEOF): New macro.
29453         (output_numeric): Increase the maximum number of fractions from
29454         128 to 160.  Increase the level3 value width from 7 bits to 8
29455         bits.  Use SIZEOF instead of a hard-coded integer.
29456         (output_blocks): Decrease the cut-off threshold from 0x30000 to
29457         0x28000.
29458         (fill_blocks): Increase the maximum number of blocks from 256 to
29459         384.  Use SIZEOF instead of a hard-coded integer.
29460         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
29461         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
29462         value width.
29463         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
29464         a new case added to LBP22.
29465         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
29466         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
29467         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
29468         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
29469         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
29470         * tests/uniwidth/test-uc_width2.sh: Same updates as in
29471         lib/uniwidth/width.c.
29472         * all generated files under lib/uni* and tests/uni*: Regenerate.
29474 2015-06-16  Pádraig Brady  <P@draigBrady.com>
29476         gnu-web-doc-update: add --mirror to remove stale files
29477         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
29478         out of date files from the CVS server.  Since this is usually
29479         appropriate, a prompt is given when the option is not specified,
29480         along with the `cvs remove` command that would be run.
29482 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
29484         acl-permissions: pacify -Wsuggest-attribute=const
29485         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
29486         * lib/acl-internal.h (free_permission_context):
29487         Declare with attribute const if ! (defined USE_ACL &&
29488         (HAVE_ACL_GET_FILE || defined GETACL)).
29490         fsync: document AIX misbehavior
29491         * doc/posix-functions/fsync.texi (fsync):
29492         Document failure on AIX with read-only file descriptor.
29494 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
29496         stdio: Don't redefine gets when using C++
29497         * lib/stdio.in.h (gets): Disable warning on C++.
29499 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
29501         acl-permissions: port to AIX, C89 HP-UX
29502         Problems reported by Michael Felt.
29503         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
29504         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
29505         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
29506         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
29507         Add cast for AIX, whose system calls are declared to accept
29508         char * even though the arguments are really char const *.
29509         * lib/get-permissions.c (get_permissions):
29510         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
29511         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
29512         that broke a build.
29513         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
29514         Rework types to pacify xlc.
29516 2015-06-03  Pádraig Brady  <P@draigBrady.com>
29518         vasprintf-posix: avoid compiling vasnprintf where possible
29519         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
29520         module where not required.  For example on a GNU/Linux system
29521         when gnulib-tool is run with the --conditional-dependencies option.
29523 2015-06-02  Pádraig Brady  <P@draigBrady.com>
29525         file-has-acl: fix build on Mac OS X 10
29526         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
29527         which has an incompatible 6 parameter getxattr() call.
29528         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
29529         call on Mac OS X >= 10.4.
29530         * doc/glibc-functions/fgetxattr.texi: Likewise.
29531         * lib/file-has-acl.c: Revert to more complete combined check.
29532         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
29533         Reported by Jack Howarth.
29535 2015-06-02  Pádraig Brady  <P@draigBrady.com>
29537         prefix-gnulib-mk: remove no longer needed special case
29538         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
29539         continued lib_SOURCES lines are no longer present,
29540         so special case handling of such entries is not required.
29542 2015-06-01  Pádraig Brady  <P@draigBrady.com>
29544         acl: don't depend on the deprecated qacl module
29545         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
29547 2015-06-01  Pádraig Brady  <P@draigBrady.com>
29549         gnulib-tool: concatenate lib_SOURCES to a single line
29550         * gnulib-tool: Refactor the line merging sed logic,
29551         and use that to output a single lib_SOURCES line for each module.
29552         gnulib using projects often postprocess this output to prepend
29553         subdir paths to each item, and having a single line simplifies this
29554         processing allowing better decoupling from the gnulib-tool output.
29556 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
29558         pthread_sigmask: discount system version if a simple macro (trivial)
29559         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
29560         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
29561         function to ensure it's available.
29563 2015-05-31  Pádraig Brady  <P@draigBrady.com>
29565         readlinkat: avoid OS X 10.10 trailing slash bug
29566         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
29567         has this bug.
29568         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
29569         that OS X 10.10 has this function.
29570         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
29571         as done for readlink().
29572         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
29573         trailing slash bug, and assume readlinkat() has the same issue.
29574         Also fix a typo where $gl_cv_decl_readlink_works was tested,
29575         rather than the correct $gl_cv_decl_readlinkat_works.
29577 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
29579         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
29580         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
29581         module rewrite.
29583         acl-permissions: Fix build on Solaris and Cygwin
29584         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
29585         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
29586         ace_entries variables have moved into struct permission_context but
29587         they were still accessed as local variables here.
29589 2015-05-29  Pádraig Brady  <P@draigBrady.com>
29591         linkat: avoid OS X 10.10 trailing slash with symlink bug
29592         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
29593         causes the symlink to be dereferenced, and if it points
29594         to a non existent file, that file will be created as
29595         a hard link to "path1".
29596         This fixes a test failure in test-linkat.c.
29597         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
29598         this case.  The existing workaround in linkat.c for
29599         trailing slash issues, suffices for this case.
29600         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
29601         the list of platforms with trailing slash issues.
29603 2015-05-28  Pádraig Brady  <P@draigBrady.com>
29605         unlinkat: handle ignoring of ".." on Darwin 14
29606         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
29607         on Mac OS X 10.10, where it ignores paths with a trailing "..",
29608         so handle in the same manner.
29609         * m4/unlinkat.m4: Comment on this Darwin issue.
29610         * doc/posix-functions/unlink.texi: Update the latest version
29611         where the issue was seen.
29612         * doc/posix-functions/unlinkat.texi: Mention this issue.
29613         Fixes a test failure in test-unlinkat.c.
29615 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
29617         qacl: split into qcopy-acl and qset-acl
29618         Emacs needs the former, but not the latter.
29619         * modules/acl-permissions: New file, containing most of the old qacl.
29620         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
29621         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
29622         * modules/qcopy-acl, modules/qset-acl: New files.
29623         * MODULES.html.sh (File system functions):
29624         Mention the new modules, and mention qacl while we're at it.
29626 2015-05-27  Glenn Morris  <rgm@gnu.org>
29628         gitlog-to-changelog: new option --ignore-line
29629         (This patch is imported from the GNU Emacs master.)
29630         This option ignores individual commit lines matching a pattern.
29631         * build-aux/gitlog-to-changelog: Add --ignore-line option.
29633 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
29635         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
29636         Implement get_permissions and set_permissions primitives for getting all
29637         the permissions of a file, storing them, and later setting them. (In the
29638         minimal case, the permissions consist only of a file mode.) Reimplement
29639         qset_acl and qcopy_acl based on these new primitives: this avoids code
29640         duplication and makes error handling more consistent.
29641         The Solaris and Cygwin code still uses duplicate code paths for setting
29642         a file mode while making sure that no acls exist and setting an explicit
29643         acl; this is no worse than before, but could be cleaned up.  The AIX
29644         code still doesn't read ACLs, it only makes sure that acls don't get in
29645         the way when setting a file mode.
29646         * lib/acl-internal.h (struct permission_context): New data structure.
29647         (get_permissions, set_permissions, free_permission_context): Declare.
29648         * lib/acl-internal.c (free_permission_context): New helper function.
29649         * lib/get-permissions.c (get_permissions): New helper function split off
29650         from qcopy_acl.
29651         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
29652         AIX, set a file's permissions based only on a file mode.
29653         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
29654         other platforms construct a temporary acl from the file mode and set
29655         that acl in the same way as setting an acl read from the source file.
29656         This should help avoid code duplication and inconsistent / buggy
29657         behavior.
29658         (set_acls): New helper function Split off from qcopy_acl.
29659         (chmod_or_fchmod): Moved here from qset-acl.c.
29660         (set_permissions): New helper function.
29661         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
29662         set_permissions.
29663         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
29664         * modules/qacl: Add get-permissions.c and set-permissions.c.
29666         file-has-acl: Split feature tests again (Bug#20667)
29667         * lib/file-has-acl.c: Instead of testing for
29668         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
29669         define them when needed.
29670         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
29671         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
29673 2015-05-27  Pádraig Brady  <P@draigBrady.com>
29675         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
29676         This avoids a conflict with "FORTIFY_SOURCE" variants
29677         of the string functions when they're replaced on NetBSD-6.0.1
29678         and Darwin-14.3.0 at least.
29679         * lib/string.in.h: Avoid including our "lib/string.h" while
29680         including the system <string.h>.
29682 2015-05-26  Eric Blake  <eblake@redhat.com>
29684         stdio: limit __gnu_printf__ witness to gcc 4.4+
29685         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
29686         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
29688         error: use correct printf attributes on mingw
29689         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
29691         inttypes: force correct mingw PRIdMAX even without <stdio.h>
29692         * modules/inttypes (Depends-on): Require extensions, so that mingw
29693         always uses GNU style inttypes.
29694         * lib/inttypes.in.h: On mingw, include <stdio.h>.
29696         stdio: fix probe on mingw under gcc 5.1
29697         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
29698         around new gcc preprocessor rules.
29700 2015-05-07  Glenn Morris  <rgm@gnu.org>
29702         gitlog-to-changelog: parse "Tiny-change"
29703         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
29704         "Copyright-paperwork-exempt".  (Bug#20324)
29706 2015-05-06  Pádraig Brady  <P@draigBrady.com>
29708         doc: document glibc posix_fallocate() issues
29709         * doc/posix-functions/posix_fallocate.texi: Mention the
29710         glibc efficiency problems and issues with NFS.
29712 2015-05-05  Karl Berry  <karl@freefriends.org>
29714         * build-aux/gendocs.sh (usage): document new css default
29715         for HTML (--htmlarg).
29717 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
29719         extern-inline: no need for workaround in GCC 5.1
29720         * doc/extern-inline.texi (extern inline):
29721         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
29722         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
29723         around these bugs in GCC 5.1 and later.  Maybe in a decade or
29724         two we can remove these workarounds.
29726 2015-04-28  Pádraig Brady  <P@draigBrady.com>
29728         eealloc, pagealign_alloc, xalloc: avoid clang warnings
29729         Avoid [-Wunknown-attributes] warnings like:
29730         warning: unknown attribute '__alloc_size__' ignored
29731         * lib/xalloc.h: Don't use the __alloc_size__  attribute
29732         with clang, as support has been fully removed as of clang 3.5:
29733         https://github.com/llvm-mirror/clang/commit/c047507a
29734         * lib/eealloc.h: Likewise.
29735         * lib/pagealign_alloc.h: Likewise.
29737 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
29739         tests: pacify GCC 5.1's stricter printf checking
29740         * tests/test-dirname.c (main):
29741         * tests/test-getaddrinfo.c (simple):
29742         * tests/test-getlogin.c (main):
29743         * tests/test-getndelim2.c (main):
29744         * tests/test-inttostr.c (CK):
29745         * tests/test-md5.c (main):
29746         * tests/test-read-file.c (main):
29747         * tests/test-sha1.c (main):
29748         Fix mismatches between printf format and value signedness.
29749         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
29750         Remove, as CAST_VAL always returned a value of type uintmax_t.
29752         fts: port to GCC 5.1 with --enable-gcc-warnings
29753         Without this fix, GCC 5.1 (correctly) warns about a subscript
29754         error on the fts_name component of FTSENT.  It's actually a
29755         flexible member, so define it that way on C99 or later hosts.
29756         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
29757         structure that now has a flexible array member.
29758         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
29759         (FTSENT): fts_name is now flexible on C99-or-later platforms.
29760         * modules/fts (Depends-on): Add flexmember.
29762 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
29764         file-has-acl: port to CentOS 6
29765         Problem reported by Tom G. Christensen in:
29766         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
29767         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
29768         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
29769         HAVE_GETXATTR.
29770         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
29771         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
29772         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
29773         file-has-acl.c actually needs.
29775 2015-04-26  Pádraig Brady  <P@draigBrady.com>
29777         file-has-acl: always return false when ACLs aren't supported
29778         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
29779         change the GNU/Linux getxattr path, to transform "not supported"
29780         errors to a false return rather than an error.  This is handled
29781         within file_has_acl() due to the platform specific tests to
29782         determine if ACLs are not supported.
29784 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
29786         gettext: propagate po/Makefile.in.in too
29787         * build-aux/po/Makefile.in.in: Copy from latest gettext.
29788         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
29789         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
29790         between Makefile.in.in and the gettext-runtime m4 files.
29792 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
29794         file-has-acl: new module, split from acl
29795         And add a new module file-has-acl-tests to match.
29796         I ran into a problem with the recent changes to the acl module,
29797         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
29798         When using the fixed version with Emacs, I discovered that
29799         file-has-acl wasn't separated out well enough for Emacs (e.g., it
29800         had multiple libraries, but needed only one), so I fixed that too.
29801         * NEWS: Document this incompatible change.
29802         * modules/file-has-acl, modules/file-has-acl-tests: New files.
29803         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
29804         Initialize gl_need_lib_has_acl.
29805         (gl_FUNC_ACL): Require it.
29806         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
29807         Move the file-has-acl.c-relevant stuff to ...
29808         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
29809         use_xattrs = 0' typo, and omit some needless work.  Set
29810         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
29811         when gl_FUNC_ACL is called.
29812         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
29813         (Link): Remove $(LIB_HAS_ACL).
29814         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
29815         (check_PROGRAMS): Move stuff relevant to file-has-acl to
29816         modules/file-has-acl-tests.
29817         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
29819         manywarnings: add GCC 5.1 warnings
29820         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
29821         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
29822         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
29823         -Wsuggest-override, -Wuse-without-only.  Change
29824         -Wnormalized=... operands to match 5.1.
29825         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
29826         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
29827         -Wdiscarded-qualifiers, -Wformat-signedness,
29828         -Wincompatible-pointer-types, -Wint-conversion,
29829         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
29830         -Wshift-count-negative, -Wshift-count-overflow,
29831         -Wsizeof-array-argument, -Wsuggest-final-methods,
29832         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
29833         and add -Warray-bounds=2 as a special case.
29835 2015-04-21  Simon Josefsson  <simon@josefsson.org>
29837         doc: update FDL template to match FDL examples.
29838         * doc/alloca-opt.texi:
29839         * doc/alloca.texi:
29840         * doc/c-ctype.texi:
29841         * doc/c-strcase.texi:
29842         * doc/c-strcaseeq.texi:
29843         * doc/c-strcasestr.texi:
29844         * doc/c-strstr.texi:
29845         * doc/c-strtod.texi:
29846         * doc/c-strtold.texi:
29847         * doc/ctime.texi:
29848         * doc/error.texi:
29849         * doc/gcd.texi:
29850         * doc/gnulib-tool.texi:
29851         * doc/inet_ntoa.texi:
29852         * doc/intprops.texi:
29853         * doc/lib-symbol-visibility.texi:
29854         * doc/maintain.texi:
29855         * doc/parse-datetime.texi:
29856         * doc/quote.texi:
29857         * doc/regexprops-generic.texi:
29858         * doc/standards.texi: Remove spurious 'with' in FDL license
29859         template.
29861 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
29863         lstat: fix cross-compilation 'ln -s' problem
29864         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
29865         Have the test program call 'symlink' rather than a separate
29866         script run 'ln -s'; this is more likely to work in
29867         cross-compilation environments.  Reported by Pavel Fedin in:
29868         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
29870 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
29872         gendocs.sh: default to a common CSS style sheet for HTML output
29873         * build-aux/gendocs.sh (htmlarg): Change default value.
29875 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
29877         gnulib-tool: output bold attribute more portably
29878         * gnulib-tool (func_show_module_list): Change hexadecimal
29879         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
29880         encoded numbers as arguments to `printf' is not portable,
29881         and is not claimed by POSIX.  This is the case with FreeBSD.
29883 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
29885         qacl: Simplify HP-UX acl_nontrivial check
29886         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
29887         acl_nontrivial. Check if the acl has at most three entries instead (it must
29888         have exactly three entries according to the HP-UX documentation). Ignore
29889         uids and gids as long as an entry is either for a user (i.e., the owner),
29890         a group (i.e., the owning group), or others.
29891         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
29892         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
29894 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
29896         acl: On Linux, check for acls without libacl
29897         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
29898         library function to check for the presence of acls, avoiding a library.
29899         * lib/file-has-acl.c: Include xattr headers if we have them.
29900         (file_has_acl): On Linux, use getxattr().
29901         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
29902         file_has_acl(). Check for xattr headers and getxattr().
29904 2015-04-14  Ángel González  <keisial@gmail.com>
29906         tempname: avoid unused parameter warnings (trivial)
29907         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
29908         (try_nocreate): Likewise.
29910 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
29912         fseeko: fix build failure on NetBSD >= 6 (trivial)
29913         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
29914         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
29916 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
29918         gitlog-to-changelog: port to MS-Windows
29919         * build-aux/gitlog-to-changelog (git_dir_option):
29920         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
29921         MS-Windows Perl.  Reported by Eli Zaretskii in:
29922         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
29924 2015-04-07  Karl Berry  <karl@gnu.org>
29926         gendocs: new option --tex for passing args to texi2dvi.
29927         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
29928         (TEXI2DVI): cut to just command name.
29929         (usage): mention new option, and update copyright.
29930         <generate_tex>: use it.
29932 2015-04-07  Karl Berry  <karl@gnu.org>
29934         * config/srclistvars.sh (GETTEXT): new definition.
29935         * config/srclist.txt: use it for gettext .m4 files.
29936         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
29937         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
29938         and continuing into April.
29940 2015-04-07  Daiki Ueno  <ueno@gnu.org>
29942         uniname/uniname-tests: fix failure due to alias
29943         Reported by Jack Howarth in:
29944         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
29945         * tests/uniname/test-uninames.c (name_has_alias): New function.
29946         (test_inverse_lookup): Exclude character name with valid alias,
29947         from randomly generated character names.
29948         (main): Fill unicode_aliases before calling test functions.
29950 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
29952         hash: remove deprecated hash_insert0 function
29953         * lib/hash.h (hash_insert0): Remove deprecated function.
29954         * lib/hash.c (hash_insert0): Likewise.
29956 2015-04-02  Pádraig Brady  <P@draigBrady.com>
29958         mountlist: remove dependency on libmount
29959         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
29960         directly, rather than depending on libmount, which has many
29961         dependencies due to its dependence on libselinux, as detailed at:
29962         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
29963         Note we restrict this to __linux__ as that's probably where this
29964         interface will remain.  If ever porting, it would be best
29965         to first pull the makedev() wrapper from coreutils to a gnulib module.
29966         Note also we don't add a getline dependency to the mountlist module,
29967         as all Linux versions are sufficient.
29969 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
29971         stddef: port to pre-C11 GCC on x86
29972         On this platform, max_align_t should have an alignment of 8 even
29973         though the storage alignments of double, long, etc. max out at 4.
29974         Inspired by a comment of Andreas Schwab's here:
29975         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
29976         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
29977         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
29978         * tests/test-stddef.c: Test __alignof__ too, if available.
29980 2015-03-24  Pádraig Brady  <P@draigBrady.com>
29982         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
29983         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
29985 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
29987         yesno: make EOL optional in ENABLE_NLS case also (trival)
29988         * lib/yesno.c (yesno): Check for EOL before replacing.
29989         * tests/test-yesno.sh: Add a test case (test along with gettext).
29991 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
29993         fdopendir-tests: test it does not close its arg
29994         * tests/test-fdopendir.c (main): Test that fdopendir does not
29995         close its argument.  From a suggestion by David Grayson in:
29996         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
29998 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
30000         gitlog-to-changelog: trim trailing white space
30001         * build-aux/gitlog-to-changelog (main):
30002         Trim trailing white space from commit message lines.
30003         This is helpful for processing the GNU Emacs repository,
30004         which dates back to 1985 and contains a lot of such lines.
30006         gitlog-to-changelog: new option --ignore-matching
30007         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
30008         Support new option --ignore-matching=PAT, which ignores all
30009         commit messages whose first line matches PAT.
30011 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
30013         fdopendir: port better to MinGW
30014         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
30015         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
30016         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
30017         * modules/fdopendir (Depends-on): Add dirfd.
30019 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
30021         fdopendir: fix typo in comment
30022         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
30024 2015-03-09  Eric Blake  <eblake@redhat.com>
30026         error: document all entry points provided
30027         * doc/glibc-functions/error_print_progname.texi
30028         (error_print_progname): Mention the error module.
30029         * doc/glibc-functions/error_at_line.texi (error_at_line):
30030         Likewise.
30031         * doc/glibc-functions/error_message_count.texi
30032         (error_message_count): Likewise.
30033         * doc/glibc-functions/error_one_per_line.texi
30034         (error_one_per_line): Likewise.
30036 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
30038         vasnprintf: pacify clang 3.5.0
30039         Problem reported by Werner Lemberg in:
30040         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
30041         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
30042         The casts aren't needed, since the characters in question are ASCII.
30044 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
30046         glob, etc.: port to MSVC v18 on MS-Windows 8.1
30047         * lib/dirent--.h (GNULIB_defined_opendir):
30048         * lib/dirent.in.h (GNULIB_defined_opendir)
30049         (GNULIB_defined_closedir):
30050         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
30051         #undef only if Gnulib defined it.
30053         poll: port to MSVC v18 on MS-Windows 8.1
30054         Problem reported by Gisle Vanem in:
30055         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
30056         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
30057         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
30058         Add sys_socket.
30060 2015-02-24  Pádraig Brady  <P@draigBrady.com>
30062         tests: support stderr verification with returns_()
30063         * tests/init.sh (returns_): Disable tracing for this wrapper
30064         function, so that stderr of the wrapped command is unchanged,
30065         allowing for verification of the contents.
30067 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
30069         passfd: avoid valgrind uninitalised data warning
30070         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
30071         to include just the fd we've initialized, rather than including
30072         the extra space used for alignment.
30074 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
30076         uniwbrk/u32-wordbreaks-tests: fix copyright
30077         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
30079         dup2: doc and test for Android bug
30080         Reported by Kevin Cernekee in:
30081         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
30082         * doc/posix-functions/dup2.texi (dup2): Document the bug.
30083         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
30085 2015-02-23  Kevin Cernekee  <cernekee@google.com>
30087         Replace dup2() on Android
30088         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
30089         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
30090         fails.  Using rpl_dup2() fixes this because it has an explicit test
30091         for this condition.
30093 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
30095         Android doesn't define RLIM_SAVED_*
30096         Portability problem reported by Kevin Cernekee in:
30097         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
30098         * doc/posix-headers/sys_resource.texi (sys/resource.h):
30099         Mention the portability problem.
30100         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
30101         Define if not defined.
30102         * m4/dup2.m4 (gl_FUNC_DUP2):
30103         * m4/fcntl.m4 (gl_FUNC_FCNTL):
30104         Likewise.
30106 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
30108         vasnprintf-posix-tests: use consistent test
30109         * tests/test-vasnprintf-posix.c (test_function):
30110         Use "<" in assert instead of "<=", for consistency with other tests.
30112 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
30114         printf, isinf, etc.: noncanonical != NaN
30115         Do not require that isinf, printf, etc. treat noncanonical
30116         values as NaNs.  Instead, require only that they do not crash.
30117         Problem reported by Joseph Myers in:
30118         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
30119         * doc/posix-functions/dprintf.texi (dprintf):
30120         * doc/posix-functions/fprintf.texi (fprintf):
30121         * doc/posix-functions/isfinite.texi (isfinite):
30122         * doc/posix-functions/isinf.texi (isinf):
30123         * doc/posix-functions/isnan.texi (isnan):
30124         * doc/posix-functions/printf.texi (printf):
30125         * doc/posix-functions/snprintf.texi (snprintf):
30126         * doc/posix-functions/sprintf.texi (sprintf):
30127         * doc/posix-functions/vdprintf.texi (vdprintf):
30128         * doc/posix-functions/vfprintf.texi (vfprintf):
30129         * doc/posix-functions/vprintf.texi (vprintf):
30130         * doc/posix-functions/vsnprintf.texi (vsnprintf):
30131         * doc/posix-functions/vsprintf.texi (vsprintf):
30132         Document this.
30133         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
30134         * m4/isinf.m4 (gl_ISINFL_WORKS):
30135         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
30136         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
30137         * tests/test-isfinite.c (test_isfinitel):
30138         * tests/test-isinf.c (test_isinfl):
30139         * tests/test-isnan.c (test_long_double):
30140         * tests/test-isnanl.h (main):
30141         * tests/test-snprintf-posix.h (test_function):
30142         * tests/test-sprintf-posix.h (test_function):
30143         * tests/test-vasnprintf-posix.c (test_function):
30144         * tests/test-vasprintf-posix.c (test_function):
30145         Test only that noncanonical values do not cause crashes, not that
30146         they are treated as NaNs.  In some cases this means a larger
30147         output buffer is needed.
30149 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
30151         fts: remove redundant close() (trivial)
30152         * lib/fts.c (fts_read): Remove redundant call to close().
30153         Spotted by coverity.
30155 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
30157         getdtablesize: port better for Android
30158         Problem reported by Kevin Cernekee in:
30159         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
30160         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
30161         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
30162         Instead, just use getrlimit, taking care to avoid Cygwin bug.
30164         poll: fixes for large fds
30165         * lib/poll.c (poll): Don't check directly for NFD too large.
30166         Don't rely on undefined behavior in FD_SET when an arg exceeds
30167         FD_SETSIZE.  Always set revents afterwards, even if to zero.
30168         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
30169         as that makes the test a bit stricter.
30171 2015-02-19  Kevin Cernekee  <cernekee@google.com>
30173         fcntl: Fix cross compiling
30174         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
30175         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
30177 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
30179         dup2, fcntl: cross-compile better for Android
30180         Problem reported by Kevin Cernekee in:
30181         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
30182         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
30183         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
30184         there's little need to cross-compile for older kernels nowadays.
30185         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
30186         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
30188 2015-02-18  Pádraig Brady  <P@draigBrady.com>
30190         getopt: don't crash on memory exhaustion
30191         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
30192         memory exhaustion.  In the _LIBC case we use alloca() as is
30193         already done in glibc, so we don't need to consider the separate
30194         error path in that awkward case.  Also fix a memory leak when
30195         ambiguous options are present.
30196         Reported by Tobias Stoeckmann
30198 2015-02-17  Mike Miller  <mtmiller@ieee.org>
30200         tempname: allow compilation with C++ (trivial)
30201         * lib/tempname.h [C++]: Specify extern "C" linkage.
30202         * lib/tempname.h (try_tempname):
30203         * lib/tempname.c (__try_tempname, __gen_tempname):
30204         Rename 'try' to 'tryfunc'.
30206 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
30208         dup2, fcntl: port to AIX
30209         * m4/dup2.m4 (gl_FUNC_DUP2):
30210         * m4/fcntl.m4 (gl_FUNC_FCNTL):
30211         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
30212         The former works on AIX 7.1 but the latter does not.
30213         Also, this may work better with Android; see:
30214         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
30216 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
30218         getdtablesize, dup2, fcntl: port to Android
30219         Problem reported by Kevin Cernekee in:
30220         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
30221         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
30222         Mention that getdtablesize doesn't work on Android.
30223         * lib/getdtablesize.c: Use getrlimit substitute only if
30224         getdtablesize is declared.  This should suffice for Cygwin
30225         while not breaking Android.
30226         * m4/dup2.m4 (gl_FUNC_DUP2):
30227         * m4/fcntl.m4 (gl_FUNC_FCNTL):
30228         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
30229         standardized but the latter is not, and sysconf works on Android.
30230         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
30231         Also check that getdtablesize is declared.
30232         This removes the need for a special case for Android.
30234 2015-02-16  Kevin Cernekee  <cernekee@google.com>
30236         localename: Implement gl_locale_name_thread_unsafe for Android
30237         * lib/localename.c: Android API level >= 21 supports two hardcoded
30238         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
30239         the internal __locale_t struct.
30241 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
30243         fts: avoid crash when a cycle is added while traversing
30244         This could be triggered by auto-mounting a recursive bind mount.
30245         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
30246         * lib/fts.c (fts_read): Avoid removing the original hash table item
30247         when leaving a directory that caused a cycle, and preserve the FTS_DC
30248         flag.
30250 2015-02-16  Daiki Ueno  <ueno@gnu.org>
30252         uniname/uniname: support character alias
30253         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
30254         Generate one-way mapping from aliases to codepoints in the
30255         generated tables.  Special case variation selectors to reduce
30256         table size.
30257         * lib/uniname/uniname.c (unicode_character_name): Special case
30258         variation selectors.
30259         (unicode_name_character): Special case variation selectors and
30260         their aliases.
30261         * lib/uniname/uninames.h: Regenerate.
30262         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
30263         * modules/uniname/uniname-tests (Files): Add
30264         tests/uniname/NameAliases.txt.
30265         * tests/uniname/test-uninames.c: Mark as static.
30266         (ALIASLEN): Define.
30267         (struct unicode_alias): New struct.
30268         (unicode_aliases): New variable.
30269         (fill_aliases): New function.
30270         (test_alias_lookup): New test function.
30271         (main): Run the 'test_alias_lookup' test if the second argument is
30272         given.
30273         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
30274         second argument.
30276 2015-02-11  Kevin Cernekee  <cernekee@google.com>
30278         Fix FILE struct compatibility with Android API level >= 21
30279         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
30280         __sferror.  Recent versions of Bionic's stdio.h no longer define
30281         __sferror.
30282         * lib/fbufmode.c: Likewise.
30283         * lib/fflush.c: Likewise.
30284         * lib/fpurge.c: Likewise.
30285         * lib/freadable.c: Likewise.
30286         * lib/freadahead.c: Likewise.
30287         * lib/freading.c: Likewise.
30288         * lib/freadptr.c: Likewise.
30289         * lib/freadseek.c: Likewise.
30290         * lib/fseeko.c: Likewise.
30291         * lib/fseterr.c: Likewise.
30292         * lib/fwritable.c: Likewise.
30294         Assume unbroken ungetc() on Android
30295         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
30296         test case passed when running on an Android host, and the code
30297         hasn't really changed since 2009.
30299         getdtablesize: Fix Android build
30300         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
30301         versions have this symbol in the .so library (at least 32-bit
30302         platforms) but are missing the declaration in the header file,
30303         causing the m4 logic to guess incorrectly.
30305         localename: Fix Android build
30306         * modules/localename (Depends-on): Add langinfo.
30308         getugroups: Fix Android build
30309         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
30310         functions.
30312         euidaccess: Fix Android build
30313         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
30314         AT_EACCESS gets declared.
30316         linkat_nofollow: Add fallback case for cross compiling
30317         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
30319         net_if: Handle content-free <net/if.h> system headers
30320         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
30321         struct if_nameindex.  If not, enable the replacement header.
30323         signal_h: Fix Android build
30324         * lib/signal.in.h: Add Android to the list of platforms that declare
30325         pthread_sigmask() in <pthread.h> instead of <signal.h>.
30327         duplocale: Fix Android build of duplocale-tests
30328         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
30329         is included by test-duplocale.c (but not by duplocale.c).
30330         * modules/duplocale-tests (configure.ac): Check for monetary.h.
30331         * tests/test-duplocale.c: Skip test if monetary.h is absent.
30332         * doc/posix-headers/monetary.texi: Add Android to the list of
30333         platforms missing monetary.h.
30335 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30337         tests: avoid recent -Werror=unused-variable regression in test-locale
30338         * tests/test-locale.c (main): Reference the variable to avoid the
30339         "unused variable" warning.
30341 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30343         maint: various whitespace cleanups in tempname
30344         * lib/tempname.c: Normalize spacing and line length.
30345         * lib/tempname.h: Likewise.
30346         * modules/tempname: Likewise.
30348 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30350         tests: provide returns_() to simplify exit status checking
30351         * tests/init.sh (returns_): A new function for use in tests,
30352         to allow for easier checking of return values, where you expect
30353         a command to exit with failure status.  By checking for a particular
30354         exit code, you don't hide any crashes for example.
30356 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30358         mountlist: only use libmount when specified
30359         There are currently many shared libs dependencies introduced by
30360         libmount with associated runtime and virt mem overhead.
30361         Therefore don't enable by default.
30362         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
30364 2015-02-08  Daiki Ueno  <ueno@gnu.org>
30366         uniname/unimame-tests: don't link with -lunistring
30367         * modules/uniname/uniname-tests (Makefile.am): Don't link against
30368         $(LIBUNISTRING).  Document the rationale why we need to
30369         conditionalize the test.
30371 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
30373         fstrcmp: don't assume strlen < INT_MAX
30374         * lib/fstrcmp.c: Include stddef.h and stdint.h.
30375         (uintptr_t): Remove, as we're now assuming stdint.
30376         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
30377         Prefer ptrdiff_t to int when the value could exceed INT_MAX
30378         if the input string is long.
30379         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
30380         uintptr_t to size_t when the underlying value is a pointer casted
30381         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
30382         * modules/fstrcmp (Depends-on): Add stdint.
30384         diffseq: prefer ptrdiff_t to ssize_t
30385         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
30386         ptrdiff_t is the natural type for signed indexes.
30387         On a few older platforms, ssize_t is narrower than size_t.
30389         xalloc: fix typo that suppressed warnings
30390         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
30391         This typo, introduced a couple of years ago, mistakenly suppressed
30392         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
30393         -Wmissing-declarations warnings.
30395         full-read: fix license notice typo
30396         * lib/full-read.h: Remove a stray line in the license notice.
30397         Reported by Sam Ellis in: http://bugs.gnu.org/19808
30399         crypto/gc: fix a -Wswitch warning
30400         Reported by Bruce Korb in:
30401         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
30402         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
30404 2015-02-03  Pádraig Brady  <P@draigBrady.com>
30406         gnulib-tool: fix handling of patch(1) diagnostics
30407         * gnulib-tool: Send diagnostics from patch(1) to stderr,
30408         as otherwise gnulib-tool will reparse that output and attempt
30409         to lookup modules.
30411 2015-02-03  Pádraig Brady  <P@draigBrady.com>
30413         bootstrap: exit immediately upon gnulib-tool failure
30414         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
30415         This was noticed when gnulib-tool exited early due to failure
30416         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
30417         but various confusing errors were then given as the build proceeded.
30419 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
30421         symlinkat: include all required header files
30422         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
30423         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
30424         Reported at https://savannah.gnu.org/bugs/index.php?44151
30425         and by Jack Howarth.
30427 2015-01-29  Pádraig Brady  <P@draigBrady.com>
30429         localename: support Solaris 12 and illumos
30430         * lib/localename.c (gl_locale_name_thread_unsafe): call
30431         getlocalename_l() on newer __sun platforms.
30432         Reported by Alexander Pyhalov.
30433         Fix suggested by Rich Burridge.
30435 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
30437         locale: fix tests on illumos (trivial)
30438         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
30439         so move from global scope to main().
30441 2015-01-24  Daiki Ueno  <ueno@gnu.org>
30443         unictype: avoid undefined left-shift behavior
30444         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
30445         gcc's -fsanitize=shift and running its tests triggered:
30446           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
30447             places cannot be represented in type 'int'
30448         Cast LHS to 'unsigned int' after integer promotion.
30449         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
30450         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
30452 2015-01-20  Daiki Ueno  <ueno@gnu.org>
30454         libunistring: bump version of unitypes dependants
30455         Due to the header file search order, all the headers which depend
30456         on unitypes.h need to be generated, when the preinstalled
30457         libunistring is older.
30458         * modules/unicase/base (configure.ac): Bump minimum version to
30459         0.9.4.
30460         * modules/uniconv/base (configure.ac): Likewise.
30461         * modules/unilbrk/base (configure.ac): Likewise.
30462         * modules/uninorm/base (configure.ac): Likewise.
30463         * modules/unistdio/base (configure.ac): Likewise.
30464         * modules/unistr/base (configure.ac): Likewise.
30465         * modules/uniwbrk/base (configure.ac): Likewise.
30466         * modules/uniwidth/base (configure.ac): Likewise.
30468 2015-01-20  Daiki Ueno  <ueno@gnu.org>
30470         unictype/category-none: fix link with libunistring
30471         Since _UC_CATEGORY_NONE is not a public symbol, it will be
30472         prefixed with "libstring_" when compiled as part of libunistring.
30473         To avoid undefined symbol at link time, increase the minimum
30474         version when the dependant modules are updated.
30475         * modules/unictype/category-none (configure.ac): Bump minimum
30476         version to 0.9.5.
30478 2015-01-20  Daiki Ueno  <ueno@gnu.org>
30480         unitypes: fix build with installed libunistring
30481         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
30482         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
30483         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
30485 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
30487         time: port to MinGW32 3.21
30488         Problem reported by Eli Zaretskii in:
30489         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
30490         * lib/time.in.h:
30491         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
30492         * modules/time (Depends-on):
30493         Fall back on unistd.h if the other include files don't define
30494         struct timespec.
30496         update-copyright: apply to self
30497         * build-aux/update-copyright: Fix copyright date.  How ironic!
30499 2015-01-15  Daiki Ueno  <ueno@gnu.org>
30501         libunistring: update to Unicode 7.0.0
30502         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
30503         Manichaean names.
30504         * lib/unictype/joininggroup_name.h: Likewise.
30505         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
30506         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
30507         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
30508         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
30509         (fill_arabicshaping, joining_group_as_c_identifier): Support those
30510         enum values.
30511         (is_property_alphabetic): Accept newly added characters to
30512         cuneiform numeric signs.
30513         (is_property_default_ignorable_code_point): Reject U+0605.
30514         (FIELDLEN): Increase from 120 to 160.
30515         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
30516         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
30517         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
30518         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
30519         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
30520         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
30521         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
30522         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
30523         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
30524         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
30525         U+1E8D0..U+1E8D6.
30526         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
30527         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30528         lib/uniwidth/width.c.
30529         * all generated files under lib/uni* and tests/uni*: Regenerate.
30531 2015-01-14  Daiki Ueno  <ueno@gnu.org>
30533         libunistring: update to Unicode 6.3.0
30534         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
30535         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
30536         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
30537         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
30538         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
30539         Update WB5, WB9, WB10, WB13a, and WB13b.
30540         * tests/uniwbrk/test-uc-wordbreaks.c
30541         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
30542         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
30543         (UC_BIDI_PDI): New enumeration values.
30544         (bidi_category_byname): Support those enum values.
30545         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
30546         dedicated property assigned.
30547         (is_property_case_ignorable): Check 0x0027.
30548         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
30549         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
30550         (output_wbp): Support those enum values.
30551         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
30552         (UC_BIDI_PDI): New enumeration values.
30553         * lib/unictype/bidi_byname.gperf: Add those property names.
30554         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
30555         U+180E, U+1A1B, and U+2066..U+2069.
30556         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30557         lib/uniwidth/width.c.
30558         * all generated files under lib/uni* and tests/uni*: Regenerate.
30560 2015-01-14  Daiki Ueno  <ueno@gnu.org>
30562         libunistring: update to Unicode 6.2.0
30563         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
30564         (unilbrk_table): Adjust table size.
30565         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
30566         for LBP_RI.
30567         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
30568         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
30569         Normalize table index skipping ignored properties.
30570         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
30571         WBP_EXTEND and WBP_FORMAT, which are now computed without using
30572         the table.
30573         * lib/uniwbrk/wbrktable.h: Adjust table size.
30574         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
30575         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
30576         Support rule GB8a.
30577         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
30578         * tests/unigbrk/test-uc-is-grapheme-break.c
30579         (graphemebreakproperty_to_string): Support GBP_RI.
30580         * tests/uniwbrk/test-uc-wordbreaks.c
30581         (wordbreakproperty_to_string): Support WBP_RI.
30582         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
30583         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
30584         (output_lbp): Support LBP_RI.  Adjust some characters changed from
30585         LBP_AL to LBP_ID.
30586         (output_lbp): Support LBP_RI.
30587         (WBP_RI): New enumeration value.
30588         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
30589         (output_wbp): Support WBP_RI.
30590         (GBP_RI): New enumeration value.
30591         (output_gbp_test, fill_org_gbp): Support GBP_RI.
30592         * all generated files under lib/uni* and tests/uni*: Regenerate.
30594 2015-01-14  Daiki Ueno  <ueno@gnu.org>
30596         libunistring: update to Unicode 6.1.0
30597         * lib/gen-uni-tables.c (output_joining_group): Switch to
30598         3-level table to accommodate joining groups defined with higher
30599         codepoint value.  Since there are only 88 groups defined in
30600         Unicode 7.0.0, use 7-bit packed format for level3 entries.
30601         (get_lbp): Update for Unicode 6.1.0.
30602         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
30603         3-level table.
30604         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
30605         joining group name.
30606         * lib/unictype/joininggroup_name.h: Likewise.
30607         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
30608         (unilbrk_table): Adjust table size.
30609         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
30610         for LBP_HL.
30611         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
30612         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
30613         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
30614         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
30615         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
30616         U+302E..U+302F.
30617         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30618         lib/uniwidth/width.c.
30619         * all generated files under lib/uni* and tests/uni*: Regenerate.
30620         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
30622 2015-01-15  Daiki Ueno  <ueno@gnu.org>
30624         uniwbrk/u32-wordbreaks-tests: add conformance test
30625         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
30626         tests/uniwbrk/test-uc-wordbreaks.c,
30627         tests/uniwbrk/test-uc-wordbreaks.sh, and
30628         tests/uniwbrk/WordBreakTest.txt.
30629         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
30630         test-uc-wordbreaks to $(check_PROGRAMS), and define
30631         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
30632         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
30633         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
30635 2015-01-15  Daiki Ueno  <ueno@gnu.org>
30637         uniwbrk: ignore Extended/Format characters at BOL not BOS
30638         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
30639         characters if the previous character property is one of
30640         WBP_NEWLINE, WBP_CR, and WBP_LF.
30642 2015-01-11  Jim Meyering  <meyering@fb.com>
30644         test-strstr.c: avoid a trivial leak
30645         * tests/test-strstr.c (main): Free haystack.
30647         update-copyright: recognize groff's \(co marker
30648         * build-aux/update-copyright (circle_c_re): Also accept
30649         uses of \(co, as found in gzip.1.
30651 2015-01-08  Pádraig Brady  <P@draigBrady.com>
30653         maint.mk: fix compatibility with OS X nm
30654         * top/maint.mk (_gl_tight_scope): Use the -g option to
30655         show exported items rather than the -e option which is
30656         ignored on all platforms except OS X where it gives an error.
30657         Reported by Assaf Gordon.
30659 2015-01-07  KO Myung-Hun  <komh@chollian.net>
30661         localcharset: improve charset detection on OS/2
30662         Use system codepage when appropriate.  Map OS/2 codepages to
30663         GNU canonical charset names if possible.
30664         * lib/config.charset: Don't output aliases if "$os" is os2*.
30665         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
30666         result for OS/2.
30667         (locale_charset) [OS2]: Use system codepage if codeset is omitted
30668         from the locale name which is neither "C" nor "POSIX".
30670 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
30672         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
30673         This reverts the last patch but one, as it shouldn't be needed now
30674         that the typo is fixed.
30675         * lib/count-leading-zeros.h (count_leading_zeros_ll):
30676         * lib/count-trailing-zeros.h:
30677         * lib/count-one-bits.h:
30678         Go back to using 64-bit intrinsics.
30680         count-leading-zeros: fix pragma typos
30681         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
30682         Fix typos in declaration of intrinsics when _MSC_VER.
30684 2015-01-06  Pádraig Brady  <P@draigBrady.com>
30686         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
30687         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
30688         intrinsics in this case.
30689         * lib/count-trailing-zeros.h: Likewise.
30690         * lib/count-one-bits.h: Likewise.
30692 2015-01-06  Daiki Ueno  <ueno@gnu.org>
30694         uniname/uniname: update to Unicode 7.0.0
30695         To accommodate new characters added since Unicode 5.1.0, this
30696         changes the internal representation of codepoint ranges.
30697         Previously, we grouped codepoint ranges by manually assigned 4-bit
30698         tag, which only allowed 16 groups.  This removes the limitation by
30699         switching to binary search on a table.  For the detail rationale
30700         and the benchmark results, see:
30701         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
30702         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
30703         to INDEX, as it no longer represents a codepoint.
30704         (range): New struct.
30705         (main): Switch to intervals list from a bit-pattern based
30706         classification.
30707         * lib/uniname/uninames.h: Regenerate.
30708         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
30709         * modules/uniname/base (configure.ac): Bump minimum version to
30710         0.9.5.
30711         * modules/uniname/uniname (configure.ac): Bump minimum version to
30712         0.9.5.
30714 2015-01-05  Eric Blake  <eblake@redhat.com>
30716         doc: update INSTALL from autoconf
30717         * doc/install.texi: Resync from autoconf.
30718         * doc/INSTALL: Reflect recent autoconf update.
30719         * doc/INSTALL.ISO: Likewise.
30720         * doc/INSTALL.UTF-8: Likewise.
30722         stdio: fix use of PRIdMAX on modern mingw
30723         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
30724         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
30725         to work with modern mingw.
30727 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
30729         pthread: detect git mingw builds with only partial pollution
30730         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
30731         pollution, as seen temporarily in Fedora 21.
30733 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
30735         lib-symbol-versions: cache script check
30736         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
30737         Cache the check for linker version scripts.
30738         From a suggestion by Christophe Curis in:
30739         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
30741 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
30743         maint: fix grammar nits in propername (trivial change)
30744         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
30745         and use an adequate verb and tense.
30747 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
30749         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
30750         * module/gendocs: Add 'doc/gendocs_template_min'.
30752         * build-aux/gendocs.sh: Change email addresses and upstream URLs
30753         from to Gnulib's.
30754         (scripturl, templateurl): Adjust accordingly.
30756 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
30758         gendocs: copyright date and version fix
30759         Reported by Karl Berry in:
30760         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
30761         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
30762         Fix copyright date.
30763         * build-aux/gendocs.sh (scriptversion): Update.
30765 2015-01-01  Karl Berry  <karl@gnu.org>
30767         * doc/install.texi,
30768         * build-aux/mdate-sh,
30769         * build-aux/depcomp,
30770         * build-aux/config.guess,
30771         * build-aux/config.sub,
30772         * build-aux/ar-lib,
30773         * build-aux/compile: revert copyright updates (some from last
30774         year) in slaved files.
30776 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
30778         version-etc: new year
30779         * doc/gnulib.texi:
30780         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
30781         * all files: Run 'make update-copyright'.
30783 2014-12-30  Pádraig Brady  <P@draigBrady.com>
30785         xstrtol: ensure errno is reset
30786         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
30787         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
30789         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
30791 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
30793         utimens: fix dependency typo
30794         * modules/utimens (Depends-on): Remove 'assure'.
30795         This bug was introduced in the recent 'assure' patch.
30797 2014-12-22  Eric Blake  <eblake@redhat.com>
30799         docs: mention why libgen.h is bad
30800         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
30802 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
30804         assure: new module
30805         This works better than 'assert' when compiling with -DNDEBUG,
30806         as it avoids some compiler diagnostics in that case.
30807         Reported by Norihiro Tanaka in:
30808         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
30809         * MODULES.html.sh (func_all_modules): Add 'assure'.
30810         * lib/assure.h, modules/assure: New files.
30811         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
30812         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
30813         Prefer 'assure' to 'assert'.
30814         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
30815         * modules/chdir-long, modules/cycle-check, modules/fchdir:
30816         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
30817         Depend on 'assure'.
30819 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
30821         stdalign: port better to HP compilers
30822         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
30823         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
30825         stdalign: work around Apple GCC 4.0 bug
30826         Reported by David Fang in:
30827         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
30828         * lib/stdalign.in.h (_Alignas):
30829         * m4/stdalign.m4 (gl_STDALIGN_H):
30830         Do not use aligned attribute with GCC 4.0 on Apple.
30832 2014-12-16  Pádraig Brady  <P@draigBrady.com>
30834         getcwd: fix test failure on OS X 10.9
30835         * m4/getcwd-path-max.m4: Avoid the replacement if it
30836         won't be effective due to the PATH_MAX limitation of lstat().
30837         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
30838         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
30839         for this case for use in tests, and also exclude this
30840         case when setting REPLACE_GETCWD.
30841         * tests/test-getcwd.c (test_long_name): Restrict the
30842         tested path length so that lstat() will not be passed
30843         a path greater than PATH_MAX.
30844         Also key a test condition on HAVE_OPENAT_SUPPORT rather
30845         than AT_FDCWD, since the latter is set unconditionally
30846         since Sep 2009 in commit 52c658e9.
30848 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
30850         parse-datetime: avoid a compiler warning with byacc (trivial)
30851         * lib/parse-datetime.y (yylex): Use the same prototype in the
30852         function definition as the declaration, to avoid a -Wstrict-prototypes
30853         warning seen when using byacc.
30855 2014-12-12  Daiki Ueno  <ueno@gnu.org>
30857         unicase/locale-language-tests: fix LOCALE_FR test
30858         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
30859         a French locale with traditional encoding.
30860         Reported by umerqayam in:
30861         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
30863 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
30865         stddef: support C11's max_align_t
30866         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
30867         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
30868         Do not undef, as that might cause max_align_t to be defined twice.
30869         Instead, change use to check for _GL_STDDEF_WINT_T too.
30870         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
30871         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
30872         Check for max_align_t.
30873         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
30874         * modules/stddef-tests (Depends-on): Add stdalign.
30875         * tests/test-stddef.c: Test max_align_t.
30877 2014-12-11  Daiki Ueno  <ueno@gnu.org>
30879         unistd: fix iOS check conditional
30880         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
30881         as 0 or 1 in <TargetConditionals.h>, and the previous check always
30882         yielded true on non-iOS environment.
30883         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
30884         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
30885         they are defined.
30887 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
30889         posixtm: avoid compiler warning in a better way
30890         * lib/posixtm.c (IF_LINT): Remove.
30891         (year, posix_time_parse):
30892         Return true (not 0) if successful.  All callers changed.
30893         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
30895 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
30897         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
30898         started with '/' on EMX.
30900 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
30902         freopen: workaround freopen() on OS/2 kLIBC
30903         * lib/freopen.c (rpl_freopen): Workaround.
30904         * m4/freopen.m4: Add os2* case.
30906         get_shared_library_fullname: port to EMX
30907         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
30908         on EMX, respectively.
30909         (_DLL_InitTerm): New on EMX.
30910         (get_shared_library_fullname): Implement on EMX.
30912         find_executable: port to EMX
30913         * lib/progreloc.c (find_executable): Implement on EMX.
30915         sched: check struct sched_param in spawn.h as well
30916         * lib/sched.in.h: Include spawn.h on kLIBC.
30917         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
30919 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
30921         bootstrap: Allow perl modules in $buildreq
30922         * build-aux/bootstrap: Add case for perl modules.
30924 2014-12-08  Pádraig Brady  <P@draigBrady.com>
30926         apply _GL_ATTRIBUTE_PURE to some inline functions
30927         clang 3.4.2 flagged these inline functions as pure
30928         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
30929         * lib/sig-handler.h (get_handler): Likewise.
30930         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
30931         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
30933 2014-12-06  Pádraig Brady  <P@draigBrady.com>
30935         vasnprintf: fix potential use after free
30936         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
30937         flagged by clang-analyzer 3.4.2.
30939 2014-12-05  Pádraig Brady  <P@draigBrady.com>
30941         filevercmp, posixtm: avoid compiler warnings with -O3
30942         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
30943         * lib/posixtm.c: (IF_LINT): Define.
30944         (posix_time_parse): Use it to void a "may be used uninitialized"
30945         warning, seen only with -O3.
30947 2014-12-05  Bruno Haible  <bruno@clisp.org>
30949         Fix LDBL80_WORDS macro on big endian platforms.
30950         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
30951         LDBL80_WORDS macro.
30952         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
30953         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30954         * tests/test-isfinite.c (test_isfinitel): Likewise.
30955         * tests/test-isinf.c (test_isinfl): Likewise.
30956         * tests/test-isnan.c (test_long_double): Likewise.
30957         * tests/test-isnanl.h (main): Likewise.
30958         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
30959         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
30960         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
30961         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
30962         Reported by Pádraig Brady.
30964 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
30966         git-version-gen: do not print new line characters
30967         * build-aux/git-version-gen: Use printf instead of echo and tr.
30969         gnulib-tool: recognize x:* as an absolute path
30970         * gnulib-tool (func_gnulib_dir): Add ?:* case.
30971         (func_relconcat): Likewise.
30973 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
30975         argp: avoid extraneous translation and mem leak with empty pre doc
30976         * lib/argp-help.c (argp_doc): Never translate the empty string,
30977         when "\v" is the first or last character of the string, as that
30978         has a reserved meaning to return the header info from a po file.
30979         This also fixes a small memory leak in the !post case.
30980         The issue can be seen with this command for example:
30981         LC_MESSAGES=en_US grub2-mknetdir --help
30983 2014-11-27  Daiki Ueno  <ueno@gnu.org>
30985         uniname/uniname-tests: skip if system's libunistring is used
30986         * modules/uniname/uniname-tests (Makefile.am): Skip test if
30987         uniname/uniname module is not compiled.
30989 2014-11-27  Pádraig Brady  <P@draigBrady.com>
30991         printf: fix configure check on big endian systems
30992         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
30994 2014-11-22  Daiki Ueno  <ueno@gnu.org>
30996         pipe-filter-gi, pipe-filter-ii: port to AIX
30997         On AIX 7.1, 'select' is defined as static and cannot be referred
30998         to from inline function.
30999         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
31000         the definition...
31001         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
31002         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
31004 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
31006         gitlog-to-changelog: add --until
31007         * build-aux/gitlog-to-changelog: Support new --until option.
31008         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
31010 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
31012         extern-inline: update commentary about GCC bugs
31013         * m4/extern-inline.m4: Add another GCC bug number to comments.
31015 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31017         gen-uni-tables: untabify
31018         * lib/gen-uni-tables.c: Untabify.
31020 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31022         gen-uni-tables: check out-of-range values added to 3-level tables
31023         * lib/gen-uni-tables.c (output_category, output_bidi_category)
31024         (output_joining_type, output_ident_category): Check out-of-range
31025         values added to 3-level tables.
31027 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31029         gen-uni-tables: utilize 'assert'
31030         * lib/gen-uni-tables.c: Include <assert.h>.
31031         (output_category, output_combclass, output_decimal_digit_test)
31032         (output_decimal_digit, output_digit_test, output_digit)
31033         (output_numeric, get_mirror_value, fill_properties)
31034         (fill_property30, is_property_alphabetic)
31035         (is_property_default_ignorable_code_point)
31036         (is_property_uppercase, is_property_lowercase)
31037         (is_property_cased, is_property_case_ignorable)
31038         (is_property_changes_when_lowercased, is_property_iso_control)
31039         (is_property_math, fill_arabicshaping, output_joining_group)
31040         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
31041         (output_wbp, fill_org_gbp, get_decomposition)
31042         (output_decomposition, fill_composition_exclusions)
31043         (debug_output_composition_tables, output_composition_tables)
31044         (redistribute_casefolding_rules, output_casing_rules): Use
31045         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
31046         reporting.
31048 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31050         gen-uni-tables: cosmetic improvements
31051         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
31052         variables specification.
31053         (is_outdigit): Remove unused function.
31055 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
31057         fcntl-h-tests: port to PA-RISC GNU/Linux
31058         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
31060 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
31062         fts: port to C89
31063         Problem reported for MSVC 16 by Gisle Vanem in:
31064         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
31065         * lib/fts.c (fts_build): Avoid declaration before statement.
31067 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
31069         unistd: port to iOS
31070         Problem reported by André Klitzing in:
31071         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
31072         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
31074 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
31076         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
31077         Problem reported by Alan Modra in:
31078         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
31079         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
31080         Always cast the function arg, reverting this part of the previous
31081         change.
31083 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
31085         obstack: avoid potentially-nonportable function casts
31086         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
31087         Remove, replacing with ...
31088         (call_chunkfun, call_freefun): New static functions.
31089         All uses changed.  Avoid potentially-nonportable casts.
31090         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
31091         (_obstack_begin_worker): Omit last two args, since they
31092         rely on potentially-nonportable casts.  All callers changed.
31093         * lib/obstack.h (_OBSTACK_CAST): New macro.
31094         Use it everywhere the old API used a potentially-nonportable cast.
31095         The new API doesn't cast.
31096         (struct obstack): Use unions rather than requiring
31097         potentially-nonportable casts.
31098         (obstack_chunkfun, obstack_freefun): Return void.
31100 2014-11-03  Alan Modra  <amodra@gmail.com>
31102         obstack: fix macro return values
31103         * lib/obstack.h (obstack_next_free): Return void *.
31104         (obstack_1grow_fast, obstack_blank_fast): Return void.
31105         For __GNUC__ macros:
31106         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
31107         For !__GNUC__ macros:
31108         (obstack_make_room, obstack_grow, obstack_grow0)
31109         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
31111 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
31113         obstack: do not assume system-supplied obstack is size_t safe
31114         * m4/obstack.m4: New file.
31115         * modules/obstack (Files): Add it.
31117         obstack: port to platforms that #define __alignof__
31118         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
31119         not if !_LIBC.  We don't know of any platforms that #define
31120         __alignof__, but it might be useful in tests.  Conversely,
31121         glibc assumes GCC.
31123 2014-11-03  Pádraig Brady  <P@draigBrady.com>
31125         linkat: don't unconditionally replace on GNU/Linux
31126         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
31127         was redundant for a few reasons.  It was present to support compiling
31128         on new systems but running on the old narrow window of Linux 2.6.1[67].
31129         It setup and cleaned up test files which weren't actually used.
31130         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
31131         implicit in the following check.
31133 2014-11-03  Pádraig Brady  <P@draigBrady.com>
31135         linkat: wrap to handle symlinks on OS X 10.10
31136         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
31137         but not usable because it doesn't support creating hardlinks
31138         to symlinks.  Therefore add a generic test for this capability
31139         and fallback to our emulation if linkat() fails with ENOTSUP.
31141 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
31143         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
31144         * doc/posix-functions/open.texi (open):
31145         * doc/posix-functions/openat.texi (openat):
31146         Document that these functions do not set errno to ELOOP when
31147         a symlink is opened with O_NOFOLLOW.
31149 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
31151         obstack: add NEWS entry for recent incompatible changes
31152         * NEWS: Describe recent changes.
31154 2014-10-30  Pádraig Brady  <P@draigBrady.com>
31156         mountlist: don't use libmount to decide on dummy/remote
31157         * lib/mountlist.c (read_file_system_list): Don't use the libmount
31158         routines to determine whether a file system is dummy or remote,
31159         as they're not currently compatible.  For example the remoteness
31160         is determined on file system type (for which the list seems incomplete),
31161         rather than simply checking for a ':' in the device name.
31162         Also libmount currently determines that 'tmpfs' is a dummy file system
31163         even though it has associated storage.
31165 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
31167         obstack: prefer __alignof__ to alignof
31168         This is for portability to pre-4.7 GCC when compiling glibc.
31169         See Joseph S. Myers in:
31170         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
31171         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
31172         New macro, defined by including and using <alignof.h>.
31173         (MAX): New macro.
31174         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
31175         Do not use enums as they are not portable to some broken compilers.
31176         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
31178         obstack: prefer alignof to calculating alignments by hand
31179         * lib/obstack.c: Include <stdalign.h>.
31180         (struct fooalign): Remove.
31181         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
31182         * modules/obstack (Depends-on): Add stdalign.
31184 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
31186         obstack: use size_t alignments and check for overflow
31187         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
31188         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
31189         * lib/obstack.h (struct obstack.alignment_mask):
31190         Use _OBSTACK_SIZE_T, not int, for alignments.
31191         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
31192         overflows, e.g., when adding the alignment.
31194 2014-10-29  Alan Modra  <amodra@gmail.com>
31196         obstack: 64-bit obstack support, part 3
31197         This finally enables full 64-bit obstack support.  The glibc
31198         shared library specific code is removed from obstack.c too, and
31199         the error handling code conditionally compiled under control of
31200         another macro, _OBSTACK_NO_ERROR_HANDLER.
31201         * lib/obstack.h: Include string.h earlier.
31202         (_OBSTACK_INTERFACE_VERSION): Define.
31203         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
31204         * lib/obstack.c: Don't include shlib-compat.h.
31205         (OBSTACK_INTERFACE_VERSION): Delete.
31206         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
31207         glibc code is compatible with version 2.  Don't include stdio.h for
31208         __GNU_LIBRARY.
31209         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
31210         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
31211         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
31212         glibc shared library specific source.
31214         obstack: 64-bit obstack support, part 2
31215         This gets us 4G obstack support, without changing ABI
31216         compatibility, apart from possibly introducing some
31217         signed/unsigned comparison warnings in code that uses obstack.h.
31218         a) Replace "int" size parameters, return values, and macro local vars
31219            with _OBSTACK_SIZE_T, an "unsigned int" for now.
31220         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
31221         c) Make all obstack macros checking available room use obstack_room.
31222            "next_free + desired > chunk_limit" may wrap the lhs for chunks
31223            allocated near the top of memory.
31224         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
31225         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
31226         in place of "int" size parameters, return values and local vars.
31227         (_CHUNK_SIZE_T): Define.
31228         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
31229         union use an _OBSTACK_SIZE_T integer type.
31230         For __GNUC__ versions of the following macros...
31231         (obstack_room): Rename local var.
31232         (obstack_make_room): Use obstack_room.
31233         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
31234         obstack_int_grow, obstack_blank): Likewise.
31235         (obstack_finish): Use unsigned comparison when comparing aligned
31236         next_free against chunk_limit.
31237         (obstack_free): Cast OBJ to remove possible const qualifier.
31238         For !__GNUC__ versions of the following macros...
31239         (obstack_make_room): Use obstack_room.
31240         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
31241         obstack_int_grow, obstack_blank): Likewise.
31242         (obstack_finish): Use unsigned comparision when comparing aligned
31243         next_free against chunk_limit.
31244         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
31245         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
31246         _OBSTACK_SIZE_T.
31247         (_obstack_begin, _obstack_begin_1): Likewise.
31248         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
31249         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
31251         obstack: 64-bit obstack support, part 1
31252         a) Correct calls to alloc function, to use a size_t arg.  "long" is
31253            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
31254            and "size_t" 64 bits.
31255         b) Consolidate _obstack_begin and _obstack_begin1 code.
31256         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
31257         use "size_t" rather than "long".
31258         (_obstack_begin, _obstack_begin1): Likewise.
31259         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
31260         obstack_chunkfun): Update alloc function casts.
31261         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
31262         (chunkfun_type, freefun_type): New typdefs.
31263         (_obstack_begin_worker): Split out from ..
31264         (_obstack_begin, _obstack_begin_1): ..here.
31266         obstack: tidy part 2
31267         a) Don't be concerned about "not polluting the namespace with stddef.h
31268            symbols" in obstack.h, since gnulib string.h includes stddef.h
31269            anyway, and it seems unlikely that anyone would care.
31270         b) Don't roll our own slow memcpy in _obstack_newchunk.
31271         c) Rename obstack_free to _obstack_free.  This makes the naming
31272            consistent with other obstack functions and obviates the need for
31273            __obstack_free.  Ancient obstack.c defined both obstack_free and
31274            _obstack_free.  We continue to do that for _LIBC via an alias.
31275         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
31276            is clever, but nowadays gcc warns on undefined macros.  You'll get
31277            an undefined macro warning if simulating an old gcc with -U__GNUC__
31278            -U__GNUC_MINOR__ -D__GNUC__=1.
31279         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
31280         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
31281         (__obstack_free): Delete, update refs.
31282         (_obstack_free): Rename from obstack_free.
31283         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
31284         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
31285         * lib/obstack.c: Don't include stddef.h.
31286         (COPYING_UNIT): Delete.
31287         (_obstack_begin): Formatting fix.
31288         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
31289         (_obstack_free): Rename from __obstack_free, update alias.  Move
31290         undef of obstack_free to where it is needed.
31292         obstack: tidy part 1
31293         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
31294            to me, and result in overlong lines after later patches.
31295         b) Move error handling code, to avoid a forward declaration and to
31296            simplify later patches in this series.
31297         * lib/obstack.h (struct obstack <temp>): Rename fields of union
31298         and update all uses.
31299         * lib/obstack.c: Include stdlib.h earlier.
31300         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
31301         in file.
31302         (print_and_abort): Remove now redundant forward declaration.
31304 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
31306         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
31307         Without this change, in bleeding-edge fileutils Autoconf complains
31308         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
31309         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
31310         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
31311         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
31313 2014-10-24  Daiki Ueno  <ueno@gnu.org>
31315         iconv: avoid false detection of non-working iconv
31316         The INBUF arguments of iconv can be either 'const char **'
31317         or 'char **'.  If CC is g++, the difference causes a compile error
31318         and thus leads to a false detection of non-working iconv.
31319         Reported by Eli Zaretskii and Werner LEMBERG in:
31320         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
31321         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
31322         iconv.  Bump serial number.
31324 2014-10-23  Pádraig Brady  <P@draigBrady.com>
31326         bootstrap: print more diagnostics for missing programs
31327         * build-aux/bootstrap: only suppress stderr when checking for
31328         alternative program names.  This supports programs issuing non
31329         standard error messages.
31331 2014-10-23  Pádraig Brady  <P@draigBrady.com>
31333         bootstrap: only update the gnulib submodule
31334         * build-aux/bootstrap: Restrict the "submodule update" command
31335         to the gnulib path.
31337 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
31339         symlinkat: port to AIX 7.1
31340         * doc/posix-functions/symlinkat.texi (symlinkat):
31341         Mention AIX porting problem.
31342         * lib/symlinkat.c: Always include errno.h.
31343         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
31344         * lib/unistd.in.h (symlinkat): Add replacement machinery.
31345         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
31346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
31347         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
31348         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
31349         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
31351         readlinkat: port to AIX 7.1
31352         * doc/posix-functions/readlink.texi (readlink):
31353         * doc/posix-functions/readlinkat.texi (readlinkat):
31354         Mention AIX porting problem.
31355         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
31356         New function.
31357         * lib/unistd.in.h (readlinkat): Add replacement machinery.
31358         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
31359         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
31360         * modules/readlinkat (configure.ac): Also compile replacement
31361         if REPLACE_READLINKAT.
31362         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
31364 2014-10-12  Karl Berry  <karl@gnu.org>
31366         * doc/posix-functions/dirname.texi: remove spurious {.
31368 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
31370         basename, dirname: Improve documentation.
31371         * doc/posix-functions/basename.texi: Mention dirname module and
31372         base_name() function.
31373         * doc/posix-functions/dirname.texi: Mention dir_name() and
31374         mdir_name() functions.
31375         Suggested by Werner LEMBERG <wl@gnu.org>.
31377 2014-09-24  Jim Meyering  <meyering@fb.com>
31379         exclude: declare exclude_patopts static
31380         * lib/exclude.c (exclude_patopts): Declare static,
31381         to avoid triggering a -Wmissing-prototypes warning.
31382         The alternative (declaring it in the .h file) would
31383         require publicizing the private "struct patopts".
31385 2014-09-21  Werner Lemberg  <wl@gnu.org>
31387         dirname: support compilation with C++
31388         * lib/dirname.h: Add necessary C linkage declarations.
31390 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
31392         qsort_r: include <config.h>
31393         Problem reported by Tom G. Christensen in:
31394         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
31395         * lib/qsort.c [!_LIBC]: Include <config.h> first.
31397 2014-09-16  Dylan Cali  <calid1984@gmail.com>
31399         avltree-list: avoid compiler warnings (trivial)
31400         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
31401         -Werror=suggest-attribute=pure.
31402         * lib/gl_array_list.c: Likewise.
31403         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
31404         declaration to avoid -Werror=missing-prototypes.  This is not added
31405         to a header as only exported for tests.  Add (void) to the
31406         check_invariants() call to indicate we're discarding the result
31407         in this context which avoids -Werror=unused-value.  Note we don't
31408         use ignore_value here to avoid a dependency as we know we'll not
31409         be adding __attribute__((warn_unused_result)) to check_invariants().
31410         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
31412 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
31414         qsort_r: new module, for GNU-style qsort_r
31415         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
31417 2014-09-15  Werner LEMBERG  <wl@gnu.org>
31419         strerror_r-posix: support compilation with C++
31420         * lib/strerror_r.c: Add necessary C linkage declarations.
31422 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
31424         fcntl-h: fix compilation with Intel C++ compiler (trivial)
31425         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
31427 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
31429         mountlist: use /proc/self/mountinfo when available
31430         Use libmount to propagate device IDs provided by Linux in
31431         /proc/self/mountinfo.  This will give more accurate output when
31432         using df in chroot'ed environments as the device IDs are not
31433         determined by stat() which may be inaccurate within the chroot.
31434         * lib/mountlist.c (read_file_system_list): Use the libmount routines
31435         from util-linux to parse "/proc/self/mountinfo" or fall back to
31436         standard getmntent() processing.
31437         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
31438         getmntent() is used, as is the case on GNU/Linux.
31440 2014-09-07  Eric Wong  <normalperson@yhbt.net>
31442         users.txt: add cmogstored
31443         cmogstored has used gnulib since the beginning in 2012 to support
31444         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
31446 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
31448         Trivial change.
31449         * gnulib-tool: Use same options as build-aux/bootstrap to download
31450         PO files.
31452 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
31454         Trivial change.
31455         * gnulib-tool: Fallback to wget when rsync of PO files fails.
31457 2014-09-04  Eric Blake  <eblake@redhat.com>
31459         maintainer-makefile: add syntax check for useless ';;'
31460         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
31462 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
31464         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
31465         Problem reported by Assaf Gordon in:
31466         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
31467         Apparently Ubuntu is doing some fancy link-time optimization
31468         that doesn't work with -lpthread but does work with -pthread.
31469         Work around the bug by preferring -pthread to -lpthread.
31470         * m4/pthread.m4 (gl_PTHREAD_CHECK):
31471         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
31472         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
31473         Treat -pthread like -lpthread.
31475 2014-09-04  Eric Blake  <eblake@redhat.com>
31477         error: drop spurious semicolon
31478         * lib/error.c (__error_at_line): Fix ';;'.
31480 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
31482         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
31483         * m4/gnulib-common.m4 (AC_C_RESTRICT):
31484         Override AC_C_RESTRICT unconditionally.
31485         Update from autoconf, incorporating:
31486         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
31487         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
31489 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31491         manywarnings: add GCC 4.9 warnings
31492         Also, make it easier to maintain this in the future.
31493         * build-aux/gcc-warning.spec: Add -Wabi-tag,
31494         -Wconditionally-supported, -Wdelete-incomplete,
31495         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
31496         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
31497         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
31498         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
31499         only for older GCC versions that need them.  Handle
31500         -Wnormalized=nfc specially, so that the 'comm' command used
31501         for maintenance doesn't get confused.
31503 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31505         vasnprintf: fix bugs in width computation
31506         * lib/vasnprintf.c (VASNPRINTF):
31507         Rework previous change, which introduced a bug,
31508         to avoid the warning in a different way.
31509         Avoid undefined behavior if the width arg is less than -INT_MAX.
31510         Avoid unnecessary use of HAS_WIDTH local.
31512 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
31514         vasnprintf: Avoid signed/unsigned comparison warning.
31515         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
31516         compare end addr of generated string w/ maximum end addr.
31518 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
31520         parse-datetime: Avoid pointer difference.
31521         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
31522         instead of calculating difference of pointers.  This removes an
31523         annoying warning, devoid of any use.
31525 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
31527         qsort_r: new module, for GNU-style qsort_r
31528         This works even on FreeBSD, which has an incompatible qsort_r API.
31529         * MODULES.html.sh: Add it.
31530         * doc/glibc-functions/qsort_r.texi: It's now supported.
31531         * lib/qsort.c: New file, taken from glibc with minor changes
31532         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
31533         removed.
31534         * lib/qsort_r.c: New file, compiled only on FreeBSD.
31535         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
31536         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
31537         * modules/qsort_r, modules/qsort_r-tests: New files.
31538         * modules/stdlib (Makefile): Set up its defaults.
31539         * tests/test-qsort_r.c: New file.
31541 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
31543         vla: new module
31544         GNU RCS can use this, mostly for documentation I expect.  See:
31545         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
31546         * MODULES.html.sh: Add vla.
31547         * lib/vla.h, modules/vla: New files.
31549 2014-08-07  Daiki Ueno  <ueno@gnu.org>
31551         localename: make gl_locale_name_thread really thread-safe on Windows
31552         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
31553         "glthread/lock.h".
31554         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
31555         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
31557 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
31559         getpass: don't assume struct termios
31560         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
31561         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
31562         * lib/getpass.c (getpass): Port to systems lacking struct termios.
31564         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
31565         Problem reported by Jonas 'Sortie' Termansen in:
31566         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
31567         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
31568         Implement via sysconf for platforms that lack getdtablesize.
31570         vararrays: modernize AC_C_VARARRAYS for C11
31571         This backports a change I recently made to Autoconf.
31572         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
31573         VLAs are not supported, as this is what C11 does.  The old macro
31574         HAVE_C_VARARRAYS is still defined if they are supported, but is
31575         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
31577 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
31579         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
31580         * build-aux/install-reloc (func_create_wrapper): Also wrap
31581         strerror-override, stat, stat.
31583 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
31585         sys_select: fix FD_ZERO problem on Solaris 10
31586         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
31587         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
31588         to expand to an expression that invoked memset without necessarily
31589         including <string.h>.  The problem was that the first include
31590         defined _SYS_TIME_H, causing the second include to short-circuit.
31591         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
31592         Also, fix what appears to be a cut-and-paste typo, by replacing
31593         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
31594         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
31596         accept: document Solaris 10 type glitch
31597         * doc/posix-functions/accept.texi (accept): Mention that
31598         Solaris 10 'accept' takes void * last arg, not socklen_t *.
31600 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
31602         extern-inline: port to FreeBSD, DragonFly
31603         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
31604         is present if either __DragonFly__ or __FreeBSD__ is defined.
31605         FreeBSD problem reported by Andrey Borzenkov in:
31606         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
31607         Also, worry about __APPLE__ only if __MACH__ is also defined,
31608         as this is more consistent with the rest of gnulib.
31609         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
31610         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
31612 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
31614         regex: Make #if/#ifdef usage consistent for DEBUG
31615         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
31616         of the inconsistent usage of #if and #ifdef as that works with
31617         both Glibc and Gnulib's style.
31619 2014-07-31  Eric Blake  <eblake@redhat.com>
31621         openat-die: use _Noreturn markup
31622         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
31623         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
31624         _Noreturn.
31626 2014-07-30  Eric Blake  <eblake@redhat.com>
31628         test-open: port to cygwin, which lacks Fortify
31629         * tests/test-open.h (ALWAYS_INLINE): New macro.
31630         (__always_inline): Don't abuse internal symbol on non-glibc.
31632 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
31634         localename: Enforce declarations before statements.
31635         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
31636         first statement.
31638 2014-07-18  Jim Meyering  <meyering@fb.com>
31640         test-userspec: don't look up numeric user names
31641         * tests/test-userspec.c: I found a system for which getpwnam("0")
31642         returned a pointer to a non-root user's entry, and that made the
31643         test fail.
31644         (T): Prefix each numeric input with "+", to inhibit lookup.
31646 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
31648         localcharset, localename: MS-Windows support for non-default locales
31649         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
31650         falling back on the default system codepage, try extracting
31651         the codepage from what 'setlocale' returns.  This allows to
31652         take into account changes of the codeset due to non-default
31653         locale set by a previous call to 'setlocale'.
31654         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
31655         Define if not already defined.
31656         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
31657         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
31658         current locale by calling 'setlocale', then converting the
31659         locale name into LCID by calling 'get_lcid'.  This allows to
31660         take into account changes in the current locale from the
31661         default one, in contrast to GetThreadLocale.
31663 2014-07-14  Daiki Ueno  <ueno@gnu.org>
31665         announce-gen: avoid failure when Digest::SHA is installed
31666         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
31667         Digest::SHA1->new in print_checksums fails.
31668         * build-aux/announce-gen (digest_classes): New associative array
31669         for available message digest implementations.
31670         (print_locations): Use it.
31672 2014-07-13  Pádraig Brady  <P@draigBrady.com>
31674         gettext: revert "update macros to version 0.19"
31675         This reverts commit 9b9370ca, as it currently requires that
31676         developers of any project that explicitly uses the gettext module
31677         or implicitly uses it through the utimens-tests or
31678         futimens-tests modules, use gettext >= 0.19.
31679         However there are some stability and availablity issues with
31680         that version at present.  We can reinstate this soon, when stability
31681         is addressed and packages are more readily available.
31683 2014-07-12  Jim Meyering  <meyering@fb.com>
31685         regex: don't deref NULL upon heap allocation failure
31686         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
31687         failure in one more place.
31688         To trigger the segfault, configure grep -with-included-regex,
31689         build it, and run these commands:
31690         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
31691         I discovered this while replying to a private report from
31692         Jens Schleusener about excessive memory consumption by grep
31693         when using a regular expression like the one above.
31695 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
31697         regex: fix memory leak in compiler
31698         Fix by Andreas Schwab in:
31699         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
31700         * lib/regcomp.c (parse_reg_exp): Deallocate partially
31701         constructed tree before returning error.
31703 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
31705         announce-gen: avoid perl warnings
31706         * build-aux/announce-gen: add two minor checks to avoid
31707         "use of uninitialized value" warnings when command-line parameters are
31708         missing.
31710 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
31712         localename: avoid -Wsuggest-attribute={const,pure} warnings
31713         * lib/localename.c (string_has): Tag internal function as pure.
31714         * lib/localename.h (gl_locale_name_default): Tag extern declaration
31715         as const when appropriate.
31717 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
31719         nl_langinfo: Fix last change.
31720         * lib/nl_langinfo.c (includes): Drop redundant include.
31722 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
31724         error: Fix -Wundef warnings in glibc
31725         * lib/error.c [_LIBC]: Define default macros for
31726         glibc.
31727         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
31728         Check _LIBC before STRERROR_R_CHAR_P.
31730         error: Sync from glibc master
31731         * lib/error.c [_LIBC]: Remove INTUSE usage.
31732         (error_tail): Remove unused macro ALLOCA_LIMIT.
31733         Fix potential buffer overflow.  Fix potential NULL dereference
31734         in strcmp.
31736 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
31738         nl_langinfo: fix build under mingw
31739         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
31741 2014-07-09  Andrew D Warshall  <warshall@99main.com>
31743         mountlist: do not classify a bind-mounted dir entry as "dummy"
31744         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
31745         1-argument getmntent() (instead of assuming absence).
31747 2014-07-08  Eric Blake  <eblake@redhat.com>
31749         maint.mk: less syntax-check noise when SIGPIPE is ignored
31750         * top/maint.mk (_sc_header_without_use)
31751         (sc_require_config_h_first): Parse full list.
31753 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
31754             Paul Eggert  <eggert@cs.ucla.edu>
31756         nl_langinfo: CODESET on MS-Windows and more items from localeconv
31757         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
31758         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
31759         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
31760         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
31761         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
31762         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
31763         Include <stdio.h> if Microsoft Windows.
31764         Include <time.h> if !REPLACE_NL_LANGINFO.
31765         (ctype_codeset): New function, taken from rpl_nl_langinfo,
31766         and with improvements for Microsoft Windows.
31767         (rpl_nl_langinfo): Use it.
31768         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
31769         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
31770         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
31771         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
31772         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
31773         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
31774         corresponding values returned by 'localeconv'.  Compute the values
31775         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
31776         'strftime' with a suitable struct tm value.
31778 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
31780         Bruno Haible has stepped down as maintainer.
31781         See Karl Berry in:
31782         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
31783         Daiki Ueno has volunteered to maintain libunistring; see:
31784         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
31785         * modules/gen-uni-tables, modules/libunistring:
31786         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
31787         * modules/unicase/base, modules/unicase/cased:
31788         * modules/unicase/empty-prefix-context:
31789         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
31790         * modules/unicase/locale-language, modules/unicase/special-casing:
31791         * modules/unicase/tocasefold, modules/unicase/tolower:
31792         * modules/unicase/totitle, modules/unicase/toupper:
31793         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
31794         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
31795         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
31796         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
31797         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
31798         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
31799         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
31800         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
31801         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
31802         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
31803         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
31804         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
31805         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
31806         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
31807         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
31808         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
31809         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
31810         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
31811         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
31812         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
31813         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
31814         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
31815         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
31816         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
31817         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
31818         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
31819         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
31820         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
31821         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
31822         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
31823         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
31824         * modules/unicase/ulc-casexfrm, modules/unicodeio:
31825         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
31826         * modules/uniconv/u16-conv-to-enc:
31827         * modules/uniconv/u16-strconv-from-enc:
31828         * modules/uniconv/u16-strconv-from-locale:
31829         * modules/uniconv/u16-strconv-to-enc:
31830         * modules/uniconv/u16-strconv-to-locale:
31831         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
31832         * modules/uniconv/u32-strconv-from-enc:
31833         * modules/uniconv/u32-strconv-from-locale:
31834         * modules/uniconv/u32-strconv-to-enc:
31835         * modules/uniconv/u32-strconv-to-locale:
31836         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
31837         * modules/uniconv/u8-strconv-from-enc:
31838         * modules/uniconv/u8-strconv-from-locale:
31839         * modules/uniconv/u8-strconv-to-enc:
31840         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
31841         * modules/unictype/bidicategory-all:
31842         * modules/unictype/bidicategory-byname:
31843         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
31844         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
31845         * modules/unictype/bidiclass-byname:
31846         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
31847         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
31848         * modules/unictype/block-all, modules/unictype/block-list:
31849         * modules/unictype/block-of, modules/unictype/block-test:
31850         * modules/unictype/category-C, modules/unictype/category-Cc:
31851         * modules/unictype/category-Cf, modules/unictype/category-Cn:
31852         * modules/unictype/category-Co, modules/unictype/category-Cs:
31853         * modules/unictype/category-L, modules/unictype/category-LC:
31854         * modules/unictype/category-Ll, modules/unictype/category-Lm:
31855         * modules/unictype/category-Lo, modules/unictype/category-Lt:
31856         * modules/unictype/category-Lu, modules/unictype/category-M:
31857         * modules/unictype/category-Mc, modules/unictype/category-Me:
31858         * modules/unictype/category-Mn, modules/unictype/category-N:
31859         * modules/unictype/category-Nd, modules/unictype/category-Nl:
31860         * modules/unictype/category-No, modules/unictype/category-P:
31861         * modules/unictype/category-Pc, modules/unictype/category-Pd:
31862         * modules/unictype/category-Pe, modules/unictype/category-Pf:
31863         * modules/unictype/category-Pi, modules/unictype/category-Po:
31864         * modules/unictype/category-Ps, modules/unictype/category-S:
31865         * modules/unictype/category-Sc, modules/unictype/category-Sk:
31866         * modules/unictype/category-Sm, modules/unictype/category-So:
31867         * modules/unictype/category-Z, modules/unictype/category-Zl:
31868         * modules/unictype/category-Zp, modules/unictype/category-Zs:
31869         * modules/unictype/category-all, modules/unictype/category-and:
31870         * modules/unictype/category-and-not, modules/unictype/category-byname:
31871         * modules/unictype/category-longname, modules/unictype/category-name:
31872         * modules/unictype/category-none, modules/unictype/category-of:
31873         * modules/unictype/category-or, modules/unictype/category-test:
31874         * modules/unictype/category-test-withtable:
31875         * modules/unictype/combining-class:
31876         * modules/unictype/combining-class-all:
31877         * modules/unictype/combining-class-byname:
31878         * modules/unictype/combining-class-longname:
31879         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
31880         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
31881         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
31882         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
31883         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
31884         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
31885         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
31886         * modules/unictype/digit, modules/unictype/joininggroup-all:
31887         * modules/unictype/joininggroup-byname:
31888         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
31889         * modules/unictype/joiningtype-all:
31890         * modules/unictype/joiningtype-byname:
31891         * modules/unictype/joiningtype-longname:
31892         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
31893         * modules/unictype/mirror, modules/unictype/numeric:
31894         * modules/unictype/property-all, modules/unictype/property-alphabetic:
31895         * modules/unictype/property-ascii-hex-digit:
31896         * modules/unictype/property-bidi-arabic-digit:
31897         * modules/unictype/property-bidi-arabic-right-to-left:
31898         * modules/unictype/property-bidi-block-separator:
31899         * modules/unictype/property-bidi-boundary-neutral:
31900         * modules/unictype/property-bidi-common-separator:
31901         * modules/unictype/property-bidi-control:
31902         * modules/unictype/property-bidi-embedding-or-override:
31903         * modules/unictype/property-bidi-eur-num-separator:
31904         * modules/unictype/property-bidi-eur-num-terminator:
31905         * modules/unictype/property-bidi-european-digit:
31906         * modules/unictype/property-bidi-hebrew-right-to-left:
31907         * modules/unictype/property-bidi-left-to-right:
31908         * modules/unictype/property-bidi-non-spacing-mark:
31909         * modules/unictype/property-bidi-other-neutral:
31910         * modules/unictype/property-bidi-pdf:
31911         * modules/unictype/property-bidi-segment-separator:
31912         * modules/unictype/property-bidi-whitespace:
31913         * modules/unictype/property-byname:
31914         * modules/unictype/property-case-ignorable:
31915         * modules/unictype/property-cased:
31916         * modules/unictype/property-changes-when-casefolded:
31917         * modules/unictype/property-changes-when-casemapped:
31918         * modules/unictype/property-changes-when-lowercased:
31919         * modules/unictype/property-changes-when-titlecased:
31920         * modules/unictype/property-changes-when-uppercased:
31921         * modules/unictype/property-combining:
31922         * modules/unictype/property-composite:
31923         * modules/unictype/property-currency-symbol:
31924         * modules/unictype/property-dash:
31925         * modules/unictype/property-decimal-digit:
31926         * modules/unictype/property-default-ignorable-code-point:
31927         * modules/unictype/property-deprecated:
31928         * modules/unictype/property-diacritic:
31929         * modules/unictype/property-extender:
31930         * modules/unictype/property-format-control:
31931         * modules/unictype/property-grapheme-base:
31932         * modules/unictype/property-grapheme-extend:
31933         * modules/unictype/property-grapheme-link:
31934         * modules/unictype/property-hex-digit:
31935         * modules/unictype/property-hyphen:
31936         * modules/unictype/property-id-continue:
31937         * modules/unictype/property-id-start:
31938         * modules/unictype/property-ideographic:
31939         * modules/unictype/property-ids-binary-operator:
31940         * modules/unictype/property-ids-trinary-operator:
31941         * modules/unictype/property-ignorable-control:
31942         * modules/unictype/property-iso-control:
31943         * modules/unictype/property-join-control:
31944         * modules/unictype/property-left-of-pair:
31945         * modules/unictype/property-line-separator:
31946         * modules/unictype/property-logical-order-exception:
31947         * modules/unictype/property-lowercase, modules/unictype/property-math:
31948         * modules/unictype/property-non-break:
31949         * modules/unictype/property-not-a-character:
31950         * modules/unictype/property-numeric:
31951         * modules/unictype/property-other-alphabetic:
31952         * modules/unictype/property-other-default-ignorable-code-point:
31953         * modules/unictype/property-other-grapheme-extend:
31954         * modules/unictype/property-other-id-continue:
31955         * modules/unictype/property-other-id-start:
31956         * modules/unictype/property-other-lowercase:
31957         * modules/unictype/property-other-math:
31958         * modules/unictype/property-other-uppercase:
31959         * modules/unictype/property-paired-punctuation:
31960         * modules/unictype/property-paragraph-separator:
31961         * modules/unictype/property-pattern-syntax:
31962         * modules/unictype/property-pattern-white-space:
31963         * modules/unictype/property-private-use:
31964         * modules/unictype/property-punctuation:
31965         * modules/unictype/property-quotation-mark:
31966         * modules/unictype/property-radical:
31967         * modules/unictype/property-sentence-terminal:
31968         * modules/unictype/property-soft-dotted:
31969         * modules/unictype/property-space:
31970         * modules/unictype/property-terminal-punctuation:
31971         * modules/unictype/property-test, modules/unictype/property-titlecase:
31972         * modules/unictype/property-unassigned-code-value:
31973         * modules/unictype/property-unified-ideograph:
31974         * modules/unictype/property-uppercase:
31975         * modules/unictype/property-variation-selector:
31976         * modules/unictype/property-white-space:
31977         * modules/unictype/property-xid-continue:
31978         * modules/unictype/property-xid-start:
31979         * modules/unictype/property-zero-width, modules/unictype/scripts:
31980         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
31981         * modules/unictype/syntax-c-whitespace:
31982         * modules/unictype/syntax-java-ident:
31983         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
31984         * modules/unigbrk/u16-grapheme-breaks:
31985         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
31986         * modules/unigbrk/u32-grapheme-breaks:
31987         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
31988         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
31989         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
31990         * modules/unigbrk/uc-is-grapheme-break:
31991         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
31992         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
31993         * modules/unilbrk/u16-width-linebreaks:
31994         * modules/unilbrk/u32-possible-linebreaks:
31995         * modules/unilbrk/u32-width-linebreaks:
31996         * modules/unilbrk/u8-possible-linebreaks:
31997         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
31998         * modules/unilbrk/ulc-possible-linebreaks:
31999         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
32000         * modules/uniname/uniname, modules/uninorm/base:
32001         * modules/uninorm/canonical-decomposition:
32002         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
32003         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
32004         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
32005         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
32006         * modules/uninorm/nfkc, modules/uninorm/nfkd:
32007         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
32008         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
32009         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
32010         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
32011         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
32012         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
32013         * modules/unistdio/base, modules/unistdio/u-printf-args:
32014         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
32015         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
32016         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
32017         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
32018         * modules/unistdio/u16-u16-sprintf:
32019         * modules/unistdio/u16-u16-vasnprintf:
32020         * modules/unistdio/u16-u16-vasprintf:
32021         * modules/unistdio/u16-u16-vsnprintf:
32022         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
32023         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
32024         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
32025         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
32026         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
32027         * modules/unistdio/u32-u32-asnprintf:
32028         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
32029         * modules/unistdio/u32-u32-sprintf:
32030         * modules/unistdio/u32-u32-vasnprintf:
32031         * modules/unistdio/u32-u32-vasprintf:
32032         * modules/unistdio/u32-u32-vsnprintf:
32033         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
32034         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
32035         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
32036         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
32037         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
32038         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
32039         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
32040         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
32041         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
32042         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
32043         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
32044         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
32045         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
32046         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
32047         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
32048         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
32049         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
32050         * modules/unistr/u16-check, modules/unistr/u16-chr:
32051         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
32052         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
32053         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
32054         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
32055         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
32056         * modules/unistr/u16-move, modules/unistr/u16-next:
32057         * modules/unistr/u16-prev, modules/unistr/u16-set:
32058         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
32059         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
32060         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
32061         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
32062         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
32063         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
32064         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
32065         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
32066         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
32067         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
32068         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
32069         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
32070         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
32071         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
32072         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
32073         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
32074         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
32075         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
32076         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
32077         * modules/unistr/u32-next, modules/unistr/u32-prev:
32078         * modules/unistr/u32-set, modules/unistr/u32-startswith:
32079         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
32080         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
32081         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
32082         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
32083         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
32084         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
32085         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
32086         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
32087         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
32088         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
32089         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
32090         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
32091         * modules/unistr/u8-check, modules/unistr/u8-chr:
32092         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
32093         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
32094         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
32095         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
32096         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
32097         * modules/unistr/u8-next, modules/unistr/u8-prev:
32098         * modules/unistr/u8-set, modules/unistr/u8-startswith:
32099         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
32100         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
32101         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
32102         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
32103         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
32104         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
32105         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
32106         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
32107         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
32108         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
32109         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
32110         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
32111         * modules/uniwbrk/base, modules/uniwbrk/table:
32112         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
32113         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
32114         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
32115         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
32116         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
32117         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
32118         * modules/uniwidth/width, modules/utf16-ucs4:
32119         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
32120         * modules/utf8-ucs4-unsafe:
32121         Change maintainer from Bruno Haible to Daiki Ueno.
32122         This is my guess at the libunistring modules; please feel free
32123         to fix if I guessed incorrectly.
32124         * modules/accept4, modules/acl, modules/acos, modules/acosf:
32125         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
32126         * modules/areadlink, modules/array-list, modules/array-mergesort:
32127         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
32128         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
32129         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
32130         * modules/binary-io, modules/bison-i18n, modules/btowc:
32131         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
32132         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
32133         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
32134         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
32135         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
32136         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
32137         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
32138         * modules/closedir, modules/concat-filename, modules/copy-file:
32139         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
32140         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
32141         * modules/csharpcomp-script, modules/csharpexec:
32142         * modules/csharpexec-script, modules/ctype, modules/diffseq:
32143         * modules/dprintf, modules/dprintf-posix, modules/dup:
32144         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
32145         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
32146         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
32147         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
32148         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
32149         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
32150         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
32151         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
32152         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
32153         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
32154         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
32155         * modules/findprog, modules/findprog-lgpl, modules/floor:
32156         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
32157         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
32158         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
32159         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
32160         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
32161         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
32162         * modules/freadable, modules/freadahead, modules/freadptr:
32163         * modules/freadseek, modules/freopen, modules/frexp:
32164         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
32165         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
32166         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
32167         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
32168         * modules/ftello, modules/full-read, modules/full-write:
32169         * modules/fwritable, modules/fwriteerror, modules/gcd:
32170         * modules/get-rusage-as, modules/get-rusage-data:
32171         * modules/getdtablesize, modules/getrusage, modules/gettext:
32172         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
32173         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
32174         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
32175         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
32176         * modules/iconv, modules/iconv-h, modules/iconv_open:
32177         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
32178         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
32179         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
32180         * modules/integer_length_ll, modules/ioctl, modules/isatty:
32181         * modules/isblank, modules/isnand, modules/isnand-nolibm:
32182         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
32183         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
32184         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
32185         * modules/javaexec, modules/javaexec-script, modules/javaversion:
32186         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
32187         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
32188         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
32189         * modules/lib-symbol-visibility, modules/libsigsegv:
32190         * modules/linked-list, modules/linkedhash-list, modules/list:
32191         * modules/localcharset, modules/locale, modules/localeconv:
32192         * modules/localename, modules/lock, modules/log, modules/log-ieee:
32193         * modules/log10, modules/log10-ieee, modules/log10f:
32194         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
32195         * modules/log1p, modules/log1p-ieee, modules/log1pf:
32196         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
32197         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
32198         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
32199         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
32200         * modules/logf, modules/logf-ieee, modules/login_tty:
32201         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
32202         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
32203         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
32204         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
32205         * modules/mbscspn, modules/mbsinit, modules/mbslen:
32206         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
32207         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
32208         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
32209         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
32210         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
32211         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
32212         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
32213         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
32214         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
32215         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
32216         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
32217         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
32218         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
32219         * modules/posix_spawn, modules/posix_spawn-internal:
32220         * modules/posix_spawn_file_actions_addclose:
32221         * modules/posix_spawn_file_actions_adddup2:
32222         * modules/posix_spawn_file_actions_addopen:
32223         * modules/posix_spawn_file_actions_destroy:
32224         * modules/posix_spawn_file_actions_init:
32225         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
32226         * modules/posix_spawnattr_getpgroup:
32227         * modules/posix_spawnattr_getschedparam:
32228         * modules/posix_spawnattr_getschedpolicy:
32229         * modules/posix_spawnattr_getsigdefault:
32230         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
32231         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
32232         * modules/posix_spawnattr_setschedparam:
32233         * modules/posix_spawnattr_setschedpolicy:
32234         * modules/posix_spawnattr_setsigdefault:
32235         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
32236         * modules/pow, modules/powf, modules/printf-frexp:
32237         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
32238         * modules/progname, modules/propername, modules/pselect:
32239         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
32240         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
32241         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
32242         * modules/read, modules/readdir, modules/readlink:
32243         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
32244         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
32245         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
32246         * modules/relocatable-script, modules/remainder:
32247         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
32248         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
32249         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
32250         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
32251         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
32252         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
32253         * modules/setlocale, modules/sh-quote, modules/shutdown:
32254         * modules/signal, modules/signbit, modules/sigpipe:
32255         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
32256         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
32257         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
32258         * modules/snippet/link-warning, modules/snippet/unused-parameter:
32259         * modules/snprintf, modules/snprintf-posix, modules/spawn:
32260         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
32261         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
32262         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
32263         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
32264         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
32265         * modules/streq, modules/strerror_r-posix, modules/striconv:
32266         * modules/striconveh, modules/striconveha, modules/strncat:
32267         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
32268         * modules/sublist, modules/sys_resource, modules/sys_utsname:
32269         * modules/sys_wait, modules/system-posix, modules/system-quote:
32270         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
32271         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
32272         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
32273         * modules/truncf, modules/truncf-ieee, modules/truncl:
32274         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
32275         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
32276         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
32277         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
32278         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
32279         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
32280         * modules/wait-process, modules/waitpid, modules/wcpcpy:
32281         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
32282         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
32283         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
32284         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
32285         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
32286         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
32287         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
32288         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
32289         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
32290         * modules/write, modules/xconcat-filename, modules/xlist:
32291         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
32292         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
32293         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
32294         * modules/y0, modules/y1, modules/yn:
32295         Remove Bruno Haible as maintainer; if he's the sole maintainer,
32296         change the maintainer to 'all'.  Let's hope someone volunteers.
32298 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
32300         mktime: merge #if/#ifdef usage from glibc
32301         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
32302         as that works with both Glibc's and Gnulib's style.
32303         See thread starting at Siddhesh Poyarekar's bug report at:
32304         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
32306 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
32308         git-version-gen: improve option descriptions
32309         * build-aux/git-version-gen: Mention that --prefix and --fallback
32310         have a mandatory argument.
32312 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
32314         regex: fix memory leak in compiler
32315         Fix by Andreas Schwab in:
32316         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
32317         * lib/regcomp.c (parse_expression): Deallocate partially
32318         constructed tree before returning error.
32320         regex: merge patch from libc
32321         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
32322         Combine __USE_BSD and __USE_SVID into __USE_MISC.
32323         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
32325 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
32327         acl: port to gcc -Wredundant-decls
32328         From a request by Dmitry Antipov in:
32329         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
32330         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
32331         "#ifndef _GL_ACL_H".
32333 2014-06-11  Bruce Korb  <bkorb@gnu.org>
32334         Jim Meyering  <meyering@fb.com>
32336         parse-duration: eliminate 68-year duration limit
32337         * lib/parse-duration.c: Include "intprops.h".
32338         (TIME_MAX): Rename to MAX_DURATION and define to
32339         TYPE_MAXIMUM(time_t).
32340         * modules/parse-duration (Depends-on): Add intprops.
32341         Reported by Jonas 'Sortie' Termansen.
32343 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
32345         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
32346         * modules/pthread (Depends-on): Add 'extensions', as it defines
32347         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
32348         (configure.ac-early): New section.
32349         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
32350         it is no longer needed.
32352 2014-06-14  Pádraig Brady  <P@draigBrady.com>
32354         pthread: define thread-safe macros on some platforms
32355         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
32356         for thread-safe operation on some platforms.
32358 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
32360         regex: don't be multithreaded if USE_UNLOCKED_IO.
32361         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
32362         * lib/regex_internal.h: Do not use multithreaded version if
32363         USE_UNLOCKED_IO is defined.  This is a hack, but it works
32364         around a porting bug with coreutils 8.22 on AIX 7.1.
32366 2014-06-11  Daiki Ueno  <ueno@gnu.org>
32368         gettext: update macros to version 0.19
32369         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
32370         depend on gl_EXTERN_INLINE and drop support for older Bison
32371         versions.
32373 2014-06-10  Pádraig Brady  <P@draigBrady.com>
32375         select,poll: fix console handle check on windows 8
32376         lib/poll.c (IsConsoleHandle): Change from testing the lower
32377         2 bits of the handle to the more expensive but accurate syscall.
32378         lib/select.c: Likewise.
32380 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
32382         select: fix waiting on anonymous pipes on MS-Windows
32383         * lib/select.c (rpl_select): Fall back to polling when select()
32384         indicates there is nothing to check, while due to the timeout not
32385         expiring, activity is indicated on one of the handles.
32386         Also clear the TIMEOUT argument if the timer does expire.
32388 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
32390         times: fix to return non constant value on MS-Windows
32391         * lib/times.c (times): Don't use the process creation time,
32392         rather clock() which on windows returns the number of
32393         clock ticks since the process started.
32395 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
32397         isatty: fix to work on windows 8
32398         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
32399         2 bits of the handle to the more expensive but accurate syscall.
32401 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
32403         maint: fix typo in fdl.texi
32404         * doc/fdl.texi: Fix typo (missing '@').
32405         Somehow this was in fdl.texi but not fdl-1.3.texi.
32407 2014-06-06  Ben Walton  <bdwalton@gmail.com>
32409         mountlist: avoid hasmntopt const type warning on solaris
32410         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
32411         with char * instead of const char *.  Passing the constant string
32412         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
32413         to avoid the warning.
32415 2014-06-04  Eric Blake  <eblake@redhat.com>
32417         maintainer-makefile: delete obsolete code
32418         * top/maint.mk (build_aux): Drop old code, as threatened.
32420         maintainer-makefile: avoid spurious error messages
32421         * top/maint.mk (syntax-check): Guard definition and use of
32422         $(shell) by whether Makefile is present.
32424 2014-06-03  Ben Walton  <bdwalton@gmail.com>
32426         rename: avoid unused-but-set-variable compiler warning
32427         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
32428         it is possible that dst_exists may be set but not used.  Mark it with
32429         the unused attribute to avoid compiler warnings.
32431 2014-06-02  Ben Walton  <bdwalton@gmail.com>
32433         rename: mark a label as potentially unused
32434         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
32435         by marking the out label as potentially unused.
32436         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
32438 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
32440         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
32441         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
32443 2014-06-02  Ben Walton  <bdwalton@gmail.com>
32445         acl: apply pure attribute to two functions
32446         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
32447         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
32449 2014-06-01  Pádraig Brady  <P@draigBrady.com>
32451         gnulib-common.m4: add _GL_UNUSED_LABEL
32452         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
32453         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
32455 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
32457         dup2, fcntl, fcntl-h: port to AIX 7.1
32458         This fixes some porting problems discovered when testing the latest
32459         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
32460         in grep but it could be important for other applications.
32461         * doc/posix-functions/dup2.texi:
32462         * doc/posix-functions/fcntl.texi:
32463         * doc/posix-headers/fcntl.texi:
32464         Document AIX bugs.
32465         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
32466         Define to 0 if outside 'int' range.
32467         * m4/dup2.m4 (gl_FUNC_DUP2):
32468         * m4/fcntl.m4 (gl_FUNC_FCNTL):
32469         Check for getdtablesize.  If it's available, test a value just
32470         outside its range instead of testing 1000000.  When cross-compiling,
32471         guess that AIX will fail this improved test.
32473 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
32475         printf, config.rpath: Port to FreeBSD 10.
32476         Problem reported by Tijl Coosemans in:
32477         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
32478         * build-aux/config.rpath (hardcode_libdir_flag_spec)
32479         (hardcode_direct): Simplify FreeBSD configuration.
32480         (library_names_spec): Don't mishandle FreeBSD 10+.
32481         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
32482         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
32483         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
32484         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
32485         Don't mishandle FreeBSD 10+ when cross-compiling.
32487         ftoastr: work around compiler bug in IBM xlc 12.1
32488         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
32489         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
32490         around a compiler bug in IBM xlc 12.1.0.0: it complains
32491         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
32492         _GL_FLT_PREC_BOUND.'
32494 2014-05-30  Kieran Colford  <colfordk@gmail.com>
32496         valgrind-tests: fixed misleading help message
32497         * m4/valgrind-tests.m4: The help message generated by configure
32498         implied that valgrind was disabled by default, which it wasn't.
32499         Adjusted the help message using s/enable/disable/ to clarify.
32501 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
32503         isfinite, isinf, isnan tests: fix for little-endian PowerPC
32504         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
32505         first double of a PowerPC "double double" pair.
32506         * tests/test-isinf.c (test_isinfl): Likewise.
32507         * tests/test-isnan.c (test_long_double): Likewise.
32508         * tests/test-isnanl.h (main): Likewise.
32509         * tests/test-signbit.c (test_signbitl): Likewise.
32511 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
32513         exclude-tests: port to AIX 7.1
32514         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
32515         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
32516         the regex code uses locks.
32518 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
32520         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
32521         Without this fix, Emacs would sometimes call sigprocmask instead
32522         of pthread_sigmask, which is a no-no in multithreaded applications.
32523         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
32524         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
32525         Suppress check for pthread_sigmask working without -lpthread if
32526         the application always links with -lpthread.  Do not link with
32527         $LIBMULTITHREAD if gl_THREADLIB is not defined.
32528         * m4/timer_time.m4 (gl_TIMER_TIME):
32529         Require gl_THREADLIB only if it is defined.  Do not append
32530         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
32532 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
32534         gnulib-tool: wget translations using --no-verbose rather than --quiet
32535         This allows the user to see error messages if any (--quiet hides them)
32536         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
32538 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
32540         gnulib-tool: adjust translation wget to avoid a https redirection
32541         Context: http://translationproject.org/latest/gnulib redirects to
32542            https://translationproject.org/latest/gnulib/
32543         Rationale: if the user falls back to wget, she doesn't have rsync and
32544         is probably in a minimal build environment, where packages such as
32545         'ca-certificates' are missing as well, resulting in a failed (and
32546         difficult to detect since ignored) translation initial fetch.
32547         Consequently let's avoid https if possible, and add the missing
32548         trailing slash.  This also avoids an unnecessary 302 redirection.
32549         * gnulib-tool: Add trailing slash to gnulib URL.
32551 2014-05-22  Pádraig Brady  <P@draigBrady.com>
32553         getlogin_r-tests: check return value rather than errno
32554         * tests/test-getlogin_r.c (main): As per POSIX we should be
32555         verifying the return value from getlogin_r() rather than errno.
32557 2014-05-22  Pádraig Brady  <P@draigBrady.com>
32559         getlogin_r-tests: fix various issues in recent change
32560         * tests/test-getlogin_r.c: Include required headers that were
32561         missed in recent commit eec20b4e.
32562         Also consistently check the errno rather than the return value from
32563         getlogin_r as POSIX only specifies that non zero is returned on error.
32564         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
32566 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
32568         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
32569         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
32570         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
32571         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
32572         * lib/spawn-pipe.c:
32573         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
32574         and then 'int open64(const char *, int, ...);', which means the
32575         declaration for 'open' gets lost if we later '#undef open'.
32576         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
32577         where the compilation reported the non-fatal error "In function
32578         'openat_proc_name' ... warning: implicit declaration of function
32579         'open'".  In this case the error is relatively harmless, but in
32580         other cases it might not be so minor.
32582 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32584         xalloc: don't potentially generate invalid code for xmemdup calls
32585         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
32586         this function can initialize the newly-allocated storage with new
32587         pointers, which means this function is not malloc-like.  See:
32588         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
32590 2014-05-19  Pádraig Brady  <P@draigBrady.com>
32592         getlogin_r-tests: avoid false failure under sudo/ssh etc.
32593         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
32594         changes from commit 97249cf29 to not depend on environment variables.
32596 2014-05-18  Pádraig Brady  <P@draigBrady.com>
32598         getlogin-tests: avoid false failure under cron
32599         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
32600         since that's not what's under test.  Centos 6 was seen to return
32601         EINVAL for ttyname() when run from cron.
32603 2014-05-16  Jim Meyering  <meyering@fb.com>
32605         mbrtowc.m4: fix a comment typo
32606         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
32607         emitted documentation string.
32609 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
32611         mbrlen, mbrtowc: fix bug with empty input
32612         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
32613         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
32614         so this is mainly for documentation.
32615         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
32616         (gl_FUNC_MBRTOWC): Use it.
32617         * tests/test-mbrtowc.c (main): Test for the bug.
32619 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
32621         doc: document mbrtowc and mbrlen problem with empty input
32622         * doc/posix-functions/mbrlen.texi (mbrlen):
32623         * doc/posix-functions/mbrtowc.texi (mbrtowc):
32624         Document portability problem when the input string is empty.  See:
32625         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
32627         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
32628         Problem reported by Eli Zaretskii in:
32629         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
32630         * doc/posix-functions/execl.texi (execl):
32631         * doc/posix-functions/execle.texi (execle):
32632         * doc/posix-functions/execlp.texi (execlp):
32633         * doc/posix-functions/execv.texi (execv):
32634         * doc/posix-functions/execve.texi (execve):
32635         * doc/posix-functions/execvp.texi (execvp):
32636         Mention spawn+exit problem on non-Cygwin Windows platforms.
32638 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
32640         getlogin-tests: avoid false failure under sudo/ssh etc.
32641         * modules/getlogin-tests (configure.ac): Check for ttyname().
32642         * tests/test-getlogin.c (main): Don't depend on environment variables
32643         to correlate with getlogin(), since sudo and ssh etc. can tamper
32644         with the LOGNAME and USER env vars.  Instead lookup the name from
32645         the uid associated with the stdin tty.
32647 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
32649         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
32650         These were found when building the latest grep snapshot on IRIX 6.5.
32651         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
32652         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
32653         never used later.
32654         * lib/quotearg.c (quoting_options_from_style):
32655         * lib/xstrtol.c (__xstrtol):
32656         Use enum instead of 0, to pacify IRIX 6.5 cc.
32658 2014-04-18  Pádraig Brady  <P@draigBrady.com>
32660         gitlog-to-changelog: revert inclusion of git-log-fix file
32661         * build-aux/git-log-fix: Delete dummy file.
32662         * modules/gitlog-to-changelog: Don't reference (overwrite)
32663         the project specific git-log-fix file.
32665 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
32667         maint.mk: Relax the copyright check to cater for non FSF projects
32668         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
32669         to not require the "Free" suffix after the copyright years.
32671 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
32673         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
32674         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
32675         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
32676         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
32677         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
32679 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
32681         exclude: port to strict C99
32682         Strict C does not allow converting a function pointer to void *
32683         and vice versa.  Pass a pointer to a function pointer instead.
32684         * lib/exclude.c (add_exclude_file):
32685         Pass the address of the function pointer.
32686         (call_addfn): And deference the address here, to match.
32688 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
32690         regex: do not depend on malloc-gnu
32691         * modules/regex (Depends-on): Remove malloc-gnu.
32692         It's no longer needed, because of the 2012-12-29 patch
32693         "regex: port to hosts where malloc (0) == NULL".
32694         Reported by Nathan Kennedy in:
32695         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
32697 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
32699         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
32700         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
32701         * doc/posix-functions/expl.texi: Mention the workaround.
32703 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
32705         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
32706         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
32707         size to be zero even when the pointer is nonnull.  This
32708         accommodates the use case where P is malloc (0) and *PN is 0 on a
32709         host where malloc (0) yields nonnull.
32711 2014-04-09  Eric Blake  <eblake@redhat.com>
32713         fts: avoid unnecessary strlen calls
32714         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
32716 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
32718         fts: avoid unnecessary strlen calls
32719         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
32720         when that can be faster than strlen.
32722 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
32724         fts: avoid unnecessary strlen calls
32725         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
32726         (fts_build): Store the length of the dp->d_name entry in a local variable
32727         instead of calling strlen() several times via the above, removed macro.
32728         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
32729         run by ~4%, yet this reduces the execution time by about a third if run
32730         via "ltrace -c rm -rf some-dir".
32732 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
32734         obstack: Remove ancient NeXTSTEP gcc support conditional
32735         This change will ease merging with glibc.  The "#if ... __NEXT__"
32736         causes a warning with -Wundef which glibc now enables by default.
32737         Problem reported by Will Newton in
32738         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
32739         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
32740         so go with that.
32741         * lib/obstack.h (__extension__):
32743 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
32745         obstack: merge with glibc changes
32746         * lib/obstack.c, lib/obstack.h: Merge from glibc.
32747         This is mostly indenting and commentary changes.
32748         Instances of 'register' have been removed.
32750 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
32752         strftime: wrap macros in "do {...} while(0)"
32753         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
32754         this macro in "do {...} while(0)" to prevent false use as a
32755         single statement, e.g., in an un-braced "{}" else-block.
32756         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
32757         (strftime_case_): Remove 'else' after 'goto' - which was the
32758         only non-fatal, un-braced use of one of the above macros.
32759         Spotted by coverity (NESTING_INDENT_MISMATCH).
32761 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
32763         modechange: avoid memory leaks for invalid octal modes
32764         * lib/modechange.c (mode_compile): During the parsing of
32765         notations like +40, free the 'mc' buffer for invalid mode
32766         strings like +17777 (greater than the maximum octal mode),
32767         =18 (bad octal mode characters) or u=1 ('affected' with
32768         octal modes).
32769         Reproducer, e.g.:
32770             $ valgrind --leak-check=full chmod +17777 file
32771         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
32772         add notations +40, 00440, etc.".
32773         Spotted by coverity (RESOURCE_LEAK).
32775 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
32777         gitlog-to-changelog: include a dummy git-log-fix file
32778         Problem reported by Nathan Stratton Treadway in:
32779         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
32780         * build-aux/git-log-fix: New file.
32782 2014-03-13  Jim Meyering  <meyering@fb.com>
32784         gitlog-to-changelog: also include the file, git-log-fix
32785         * modules/gitlog-to-changelog (Files): Add git-log-fix.
32786         Reported by Assaf Gordon.
32788 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
32790         regex: port to OS X 10.8.5 en_US.UTF-8 locale
32791         This fixes a bug when ignoring case and when comparing the
32792         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
32793         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
32794         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
32795         titlecase letter is neither lowercase nor uppercase, but
32796         uppercasing the titlecase letter (via towupper) yields the
32797         uppercase letter, so the two letters should match when ignoring case.
32798         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
32799         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
32800         Don't test whether a character is lowercase before uppercasing it.
32802 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
32804         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
32805         This is basically one of the options Bruno Haible proposed in:
32806         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
32807         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
32808         * lib/stdint.in.h: Use it.
32809         * modules/stdint (Depends-on): Add sys_types.
32811 2014-02-26  Pádraig Brady  <P@draigBrady.com>
32813         parse-datetime: fix crash or infloop in TZ="" parsing
32814         * lib/parse-datetime.y (parse_datetime): Break out of the
32815         TZ="" parsing loop once the second significant " is found.
32816         Also skip over any subsequent whitespace to be consistent
32817         with the non TZ= case.
32818         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
32820 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
32822         savedir: new symbol for fast-read version
32823         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
32824         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
32825         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
32826         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
32828 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
32830         unistd: port readlink to Mac OS X 10.3.9
32831         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
32832         around self-include problem in Mac OS X 10.3.9 when combined with
32833         readlink module.  Problem reported by Klaus Zietler in
32834         <http://bugs.gnu.org/16825>.
32836 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
32838         diffseq: remove TOO_EXPENSIVE heuristic
32839         Problem with diffutils reported by Vincent Lefevre in
32840         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
32841         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
32842         Although appropriate for circa-1993 hardware, these days the heuristic
32843         seems to be more trouble than it's worth.
32844         * lib/diffseq.h: Modernize citations.
32845         (struct context): Remove member too_expensive.
32846         All uses changed.
32847         (struct partition): Remove members lo_minimal, hi_minimal.
32848         All uses changed.
32849         (diag, compareseq): Remove arg find_minimal.  All uses changed.
32850         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
32851         1993 to make 'diff' run faster (but not as well) on large inputs.
32852         These days, computers are fast enough that it's typically better
32853         to run slower but more accurately.
32854         * lib/fstrcmp.c: Remove duplicate comment.
32855         * lib/fstrcmp.c (strcmp_bounded):
32856         * lib/git-merge-changelog.c (compute_differences):
32857         Adjust to diffseq.h changes.
32858         * NEWS: Document the change.
32860         savedir: simplify by using stpcpy
32861         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
32862         (streamsavedir): Use stpcpy instead.
32863         * modules/savedir (Depends-on): Add stpcpy.
32865 2014-02-21  Pádraig Brady  <P@draigBrady.com>
32867         spawn: fix link error on uclibc
32868         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
32869         to incorporate -lrt if needed (on uclibc for example).
32870         * modules/posix_spawn: Reference the substituted LIB.
32872 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
32873         timer: fix uClibc detection of threading
32874         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
32875         enabled in uClibc.
32877 2014-02-21  Eric Blake  <eblake@redhat.com>
32879         maintainer-makefiles: provide AC_PROG_SED for older autoconf
32880         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
32882 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
32884         exclude: add support for posix regexps
32886         This commit adds support for POSIX extended regular expressions
32887         and fixes a long-standing memory leak (pattern buffer was never
32888         freed).  It also implements a new interface function to read
32889         exclude patterns from a FILE, which passes an additional parameter
32890         to its callback function, thereby allowing to preserve its state
32891         between invocations.
32893         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
32894         (pattern_buffer): New struct.
32895         (exclude): New member patbuf.
32896         (exclude_add_pattern_buffer): New function.
32897         (free_exclude_segment): Free regexps.
32898         (free_exclude): Free allocated pattern buffers.
32899         (exclude_patopts): New function.
32900         (file_pattern_matches): Use exclude_patopts.
32901         (add_exclude): support regexps.
32902         (add_exclude_fp): New function.
32903         (add_exclude_file): Rewrite using add_exclude_fp.
32904         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
32905         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
32906         (add_exclude_fp)
32907         (add_exclude_file): Rewrite using add_exclude_fp.
32908         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
32909         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
32910         (add_exclude_fp)
32911         (exclude_add_pattern_buffer): New prototypes.
32912         * modules/exclude: Depends on regex and filename.
32914 2014-02-20  Eric Blake  <eblake@redhat.com>
32916         maintainer-makefiles: use $(SED) for syntax check
32917         * modules/maintainer-makefile (configure.ac): Check for sane sed.
32918         * top/maint.mk: Change sed to $(SED).
32920 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
32921             Paul Eggert  <eggert@cs.ucla.edu>
32923         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
32924         Patch based on an idea by Dick Streefland in
32925         <https://savannah.gnu.org/patch/?7892>.
32926         * NEWS: Document this.
32927         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
32928         (direntry_t, comparison_function): New types.
32929         (direntry_cmp_name): New function.
32930         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
32931         (streamsavedir, savedir): New arg OPTION.
32932         (streamsavedir): Simplify memory allocation.
32933         (fdsavedir): Remove.
32934         * lib/savedir.h (enum savedir_option): New type.
32935         (streamsavedir, savedir): New arg OPTION.
32936         (fdsavedir): Remove.
32938 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
32940         file-type: add support for doors and other less-common file types
32941         Problem with S_ISDOOR reported by Rich Burridge.
32942         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
32943         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
32944         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
32946 2014-01-23  Eric Blake  <eblake@redhat.com>
32948         pthread: work around winpthread header pollution on mingw
32949         * lib/time.in.h: Move pthread workarounds...
32950         * lib/pthread.in.h: ...here.
32951         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
32952         detect macro pollution on mingw.
32953         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
32955 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
32957         qacl: check for fchmod
32958         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
32959         and qset-acl.c both use HAVE_FCHMOD.
32961 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
32963         fdopen-tests: port to Tru64
32964         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
32965         descriptor that is not open, as POSIX doesn't specify the
32966         resulting behavior and the test does not work on Tru64.
32967         Problem reported by Steven M. Schweda in:
32968         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
32970         stdalign: port to HP-UX compilers
32971         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
32972         if __HP_cc or __HP_aCC are nonzero.
32974 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
32976         strtoimax: port to platforms lacking 'long long'
32977         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
32978         check whether strtoll is declared, which causes the C file to
32979         wrongly report an error.  Problem reported by Steven M. Schweda in:
32980         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
32981         * lib/strtoimax.c (strtoull):
32982         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
32983         (strtoll): Declare only if HAVE_LONG_LONG_INT.
32985 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
32987         relocatable-perl: fix texi syntax
32988         * doc/relocatable-maint.texi: Escape braces.
32990 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
32992         relocatable-perl: like relocatable-script, but for Perl scripts
32993         * build-aux/relocatable.pl.in: Add.
32994         * doc/relocatable-maint.texi: Add documentation.
32995         * modules/relocatable-perl: Add.
32997 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
32999         tests: fix export bug in previous patch
33000         Problem reported by Jim Meyering.
33001         * tests/init.sh (re_shell): New var, which is exported instead of
33002         re_shell_.
33004         tests: simplify porting to Solaris 10 /bin/sh
33005         Some test cases in 'grep' need a shell that groks '$(';
33006         export re_shell_ for their benefit.  Problem reported for 'grep'
33007         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
33008         * tests/init.sh (re_shell_): Export if it's used.
33010 2014-01-06  Eric Blake  <eblake@redhat.com>
33012         md5, sha1, sha256, sha512: support older autoconf
33013         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
33014         for autoconf < 2.63b.
33016         include_next: port to autoconf 2.63
33017         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
33019 2014-01-04  Jim Meyering  <meyering@fb.com>
33021         maint: add a gnulib-local rule to keep non-ascii out of .texi files
33022         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
33023         so that "make sc_maint" will ding anyone who puts non-ascii
33024         in any of gnulib's .texi files.
33026 2014-01-03  Jim Meyering  <meyering@fb.com>
33028         freadable, fwritable, fwriting: declare with the "pure" attribute
33029         * lib/freadable.h (freadable): Declare with the "pure" attribute.
33030         * lib/fwritable.h (fwritable): Likewise.
33031         * lib/fwriting.h (fwriting): Likewise.
33032         Suggested by Bruno Haible.
33034         maint.mk: adapt openat.h-include-without-use test
33035         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
33036         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
33037         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
33038         With this change, running "make sc_maint" in gnulib's top-level
33039         directory now passes for me.
33041 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
33043         doc: use ASCII in .texi files where UTF-8 isn't needed
33044         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
33045         * doc/posix-functions/setkey.texi, doc/regex.texi:
33046         Use ASCII input, not UTF-8.
33048 2014-01-02  Jim Meyering  <meyering@fb.com>
33050         freading: declare with the "pure" attribute
33051         * lib/freading.h (freading): Declare with the "pure" attribute.
33053         manywarnings: remove -Wmudflap
33054         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
33055         it is no longer supported in gcc-4.9-to-be.
33057 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
33059         relocatable-script: remove unused code
33060         Problem reported by Reuben Thomas in:
33061         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
33062         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
33064 2014-01-01  Jim Meyering  <meyering@fb.com>
33066         maint: fix public-submodule-commit to work with newer git
33067         * top/maint.mk (public-submodule-commit): Remove excess quoting.
33068         We were over-quoting the test arguments, and somewhere prior to
33069         version 1.8.5.2.229, git stopped removing those excess quotes,
33070         which made the test fail, since the unexpanded strings would
33071         always differ; using GIT_TRACE=1 confirmed that the git merge-base
33072         command wasn't even being run.
33074 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
33076         doc: update main copyright year
33077         * doc/gnulib.texi: Update copyright date.
33079 2014-01-01  Eric Blake  <eblake@redhat.com>
33081         version-etc: new year
33082         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
33083         * all files: run 'make update-copyright'
33085 2013-12-24  Eric Blake  <eblake@redhat.com>
33087         passfd: give nicer error for recvfd at eof
33088         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
33089         * tests/test-passfd.c (main): Enhance test to cover this.
33091 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
33093         gettimeofday: port recent C++ fix to Emacs
33094         Without this further patch, Emacs won't build due to
33095         the portcheck failing.  Also, this simplifies the patch a bit.
33096         * lib/time.in.h (localtime, gmtime): Don't replace unless
33097         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
33098         * lib/time.in.h (localtime, gmtime):
33099         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
33100         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
33101         * modules/time (time.h):
33102         Don't worry about the possibility of localtime and gmtime
33103         being absent; they're present in all C libraries we know about.
33104         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
33105         Don't assume sys_time is present and has been initialized.
33106         Instead, use a hack that should work even if it hasn't been.
33107         Don't use a portcheck for gmtime or localtime; this supports
33108         the hack.
33109         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
33111 2013-12-17  John W. Eaton  <jwe@gnu.org>
33113         gettimeofday: fix C++ crosscompilation
33115         Never replace gmtime and localtime by macros when compiling with
33116         C++, this prevents <ctime> from being included.
33118         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
33119         define gmtime and localtime as preprocessor macros.  Instead
33120         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
33121         REPLACE_LOCALTIME substitutions.
33122         * lib/time.in.h: Declare gmtime and localtime when needed.
33123         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
33124         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
33125         * modules/time: Depend on gettimeofday, and substitute the above
33126         variables in time.h.
33128 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
33130         qacl: port to Windows better
33131         See Eli Zaretskii in
33132         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
33133         * lib/file-has-acl.c (acl_access_nontrivial):
33134         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
33135         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
33137 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
33139         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
33140         * lib/gl_openssl.h: Cast void pointers to a specific type.
33142 2013-12-07  Pádraig Brady  <P@draigBrady.com>
33144         open-tests: fix build failure with -Werror=old-style-declaration
33145         * tests/test-open.h: Reorder the inline to avoid the issue.
33147 2013-12-07  Pádraig Brady  <P@draigBrady.com>
33149         md5, sha1, sha256, sha512: fix link error with partial libcrypto
33150         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
33151         init time, so that if early checks find crypto routines,
33152         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
33153         avoiding link failures.
33155 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
33157         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
33158         This provides a new way to specify the default for
33159         gl_CRYPTO_CHECK, one that is reflected in the --help message.
33160         Emacs uses this, as well as the old way.
33161         This attempts to implement a suggestion by Pádraig Brady in
33162         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
33163         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
33164         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
33166         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
33167         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
33168         Add support for a new option, --with-openssl=auto, which causes
33169         the library to be used if available and silently ignored if not.
33170         Add support to allow configure.ac to specify its own
33171         default, by setting with_openssl_default before invoking gl_INIT.
33173 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
33175         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
33176         Problem reported by Daiki Ueno in:
33177         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
33178         * tests/test-open.h (__always_inline):
33179         New macro, if not already defined.
33180         (test_open): Use it.
33182 2013-12-04  Eric Blake  <eblake@redhat.com>
33184         include_next: minimize code duplication
33185         * modules/include_next (Depends-on): Add absolute-header.
33186         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
33187         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
33189 2013-12-04  Pádraig Brady  <P@draigBrady.com>
33191         getcwd: fix compile error in configure check
33192         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
33194 2013-12-04  Pádraig Brady  <P@draigBrady.com>
33196         regex: suppress core dumps from detection code
33197         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
33198         to suppress core dumps that may well occur on glibc systems.
33199         These core dumps might not be cleaned up automatically, or could
33200         trigger some system core dump handling logic.
33202 2013-12-03  Pádraig Brady  <P@draigBrady.com>
33204         md5, sha1, sha256, sha512: support mandating use of openssl
33205         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
33206         description, to list the now 3 separate options.  also don't
33207         mention the default=no, since this is implicit given the option
33208         is described as --with-openssl rather than --without-openssl.
33209         If projects change the default they're free to document that.
33210         with --with-openssl[=yes] we now error out when the specified
33211         hash algorithm is not available in libcrypto.
33213 2013-12-03  Ivailo  <xakepa10@gmail.com>
33215         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
33216         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
33217         -Wformat-nonliteral checks, as these edge cases are part of the test.
33219 2013-12-03  Eric Blake  <eblake@redhat.com>
33221         regex: avoid glibc deadlock during configure
33222         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
33223         glibc bug 15078 in turn triggers bug 16159.
33224         Reported by Michal Privoznik.
33226 2013-12-02  Pádraig Brady  <P@draigBrady.com>
33228         md5, sha1, sha256, sha512: use openssl routines if available.
33229         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
33230         routines will be used if available, requiring apps to link @LIB_CRYPTO@
33231         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
33232         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
33233         in the standard system location.
33234         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
33235         * m4/sha256.m4: Likewise with SHA256.
33236         * m4/sha512.m4: Likewise with SHA512.
33237         * m4/md5.m4: Likewise with MD5.
33238         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
33239         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
33240         * lib/sha256.h: Likewise with SHA256.
33241         * lib/sha512.h: Likewise with SHA512.
33242         * lib/md5.h: Likewise with MD5.
33243         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
33244         * lib/sha256.c: Likewise with SHA256.
33245         * lib/sha512.c: Likewise with SHA512.
33246         * lib/md5.c: Likewise with MD5.
33247         * modules/crypto/sha1 (Link:): Add the new optional lib.
33248         (Depends-on:): Add dependency on extern-inline.
33249         * modules/crypto/sha256: Likewise.
33250         * modules/crypto/sha512: Likewise.
33251         * modules/crypto/md5: Likewise.
33252         * modules/crypto/sha1-tests: Reference the lib here too.
33253         * modules/crypto/md5-tests: Likewise.
33254         * modules/crypto/gc-des-tests: Likewise.
33255         * modules/crypto/gc-hmac-md5-tests: Likewise.
33256         * modules/crypto/gc-hmac-sha1-tests: Likewise.
33257         * modules/crypto/gc-hmac-sha256-tests: Likewise.
33258         * modules/crypto/gc-hmac-sha512-tests: Likewise.
33259         * modules/crypto/gc-md5-tests: Likewise.
33260         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
33261         * modules/crypto/gc-sha1-tests: Likewise.
33262         * modules/crypto/gc-tests: Likewise.
33263         * modules/crypto/hmac-md5-tests: Likewise.
33264         * modules/crypto/hmac-sha1-tests: Likewise.
33265         * modules/crypto/hmac-sha256-tests: Likewise.
33266         * modules/crypto/hmac-sha512-tests: Likewise.
33268 2013-11-29  RV1971  <rv1971@web.de>
33270         base64: (trivial) fix compilation regression on some compilers
33271         * lib/base64.c: Don't return the void function,
33272         instead split to a separate return statement.
33274 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
33276         ignore-value: revert previous code change
33277         * lib/ignore-value.h (ignore_value): Use __extension__ and
33278         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
33279         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
33280         Change the comment to try to explain this better.
33282 2013-11-27  Pádraig Brady  <P@draigBrady.com>
33284         selinux-h: improve stub types and add more stub functions
33286         * lib/se-selinux.in.h: Change security_context_t to a typedef
33287         rather than a define, as it's a pointer type and so is better
33288         as a typedef to avoid issues declaring multiple variables
33289         with the comma operator.  Also add stub for string_to_security_class().
33290         * lib/se-context.in.h: Add stub functions for
33291         context_{type,range,role,user}_get().
33293 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
33295         ignore-value: prefer GCC version back through 2.0
33296         The code didn't match the comments, so I did a bit of software
33297         archaeology.  GCC 2.0 seems to support __extension__ and
33298         __typeof__, so fix both code and comments to use 2.0.
33299         * lib/ignore-value.h (ignore_value): Use __extension__ and
33300         __typeof__ for GCC 2.0 through 3.3, too.
33302 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
33304         pty: Activate the signature wrapper of forkpty.
33305         The intended preprocessor macro HAVE_FORKPTY is
33306         never defined, yet `lib/forkpty.c' depends on it.
33308         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
33309         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
33310         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
33312 2013-11-18  Jim Meyering  <meyering@fb.com>
33313         and Paul Eggert  <eggert@cs.ucla.edu>
33315         quotearg: don't attempt to store 1 << 31 into an "int"
33316         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
33317         gcc's new -fsanitize=undefined and running its tests triggered some
33318         new test failures due to undefined behavior, all with this diagnostic:
33319           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
33320             cannot be represented in type int
33321         Rather than shifting "1" left to form a mask, shift the bits right and
33322         simply use "1" as the mask.
33324 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
33326         error: depend on stdio
33327         Problem reported by Nikos Mavrogiannopoulos in
33328         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
33329         * modules/error (Depends-on): Add stdio.
33331 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
33333         * doc/relocatable-maint.texi (Supporting Relocation): Improve
33334         wording.
33335         Reported by Reuben Thomas <rrt@sc3d.org>.
33337 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
33339         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
33340         New function and macro, to work around _DARWIN_C_SOURCE problem.
33341         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
33343 2013-11-11  Pádraig Brady  <P@draigBrady.com>
33345         base64: provide a fast path for encoding well sized buffers
33346         Avoid conditionals in the base64 encoding loop,
33347         which was seen to give 60% better throughput.
33348         * lib/base64.c (base64_encode_fast): A new function to be called
33349         when we don't want to NUL terminate, and we have enough space
33350         in the output to encode the given input.
33351         (base64_encode): Call the _fast() version when appropriate.
33352         Also remove a redundant mask with 0x3F on the first encoded byte.
33354 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
33356         extern-inline: port better to OS X 10.9
33357         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
33358         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
33359         OS X 10.9, except for g++ where the bug is still present.
33360         See <http://trac.macports.org/ticket/41033>.
33362 2013-11-08  Eric Blake  <eblake@redhat.com>
33364         fpending: fix regression on DragonFly BSD
33365         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
33366         * lib/fpending.h (__fpending): Don't declare twice.
33367         Reported by GW in
33368         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
33370 2013-11-05  Jim Meyering  <meyering@fb.com>
33372         hash: relax license to LGPLv2+, for libguestfs
33373         * modules/hash (License): Change from GPL to LGPLv2+.
33375 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
33377         intprops: port to Oracle Studio c99
33378         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
33379         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
33381 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
33383         obstack: pacify HP C
33384         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
33385         warning "conversion from pointer to smaller integer" from HP
33386         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
33387         C89 or later nowadays, so cast to void instead of int.  Privately
33388         reported by H.Merijn Brand.  Also, change header to match glibc's,
33389         to make checking against glibc easier.
33391 2013-10-29  Jim Meyering  <meyering@fb.com>
33393         maint.mk: prefer gpgv2 over gpgv
33394         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
33395         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
33396         Reported by Gary Vaughan.
33398 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
33400         isnan: port to VAX
33401         Reported by John Klos for NetBSD-5/VAX in
33402         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
33403         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
33404         (FUNC): Use it.
33406 2013-10-28  Jim Meyering  <meyering@fb.com>
33408         gnulib-tool: protect against CDPATH
33409         * gnulib-tool: Many "cd" built-in functions print a directory name
33410         to stdout when CDPATH is set, e.g.,
33411           $ bash -c 'CDPATH=/; cd tmp'
33412           /tmp
33413         Unset it, when possible.  Prompted by a comment from Bruce Korb.
33415         maint.mk: restore functionality removed by recent change...
33416         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
33417         the context of a shallow-cloned gnulib repository: "git describe"
33418         would fail in such a directory.  However, that change made it so
33419         the reported gnulib revision no longer includes the version number
33420         or a commit count, even when run from a full clone.
33421         * top/maint.mk (gnulib-version): Use the full "git describe"
33422         output when possible, e.g., the form above, rather than the
33423         abbreviated, no-tag, no-commit-count string, and fall back to
33424         using a 10-byte hash, rather than the default minimal-length
33425         hash prefix, since while the minimal-length one may be fine today,
33426         it is likely not to be unique for very long.
33428 2013-10-26  Jim Meyering  <meyering@fb.com>
33430         maint.mk: fix "release" target to build _version
33431         This fixes a bug in README-release whereby following the outlined
33432         steps, one would publish a tarball whose programs would report
33433         --version output not consistent with the package version number.
33434         This bug caused grep-2.15 to produce a grep program whose
33435         --version option made it print 2.14.56-1e3d rather than 2.15.
33436         * top/maint.mk (release): Making this target build "_version"
33437         ensures that the new version number is reflected in configure.
33439 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
33441         install-reloc: Support multi-binary installation.
33442         * build-aux/install-reloc: Support installing multiple programs in
33443         one invocation, as done by Automake starting with commit
33444         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
33445         Haible <bruno@clisp.org>, archived at
33446         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
33447         Reported by Sylvain <beuc@gnu.org>.
33449 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33451         selinux-h: Really build without selinux when library is missing.
33452         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
33453         continue without selinux, as already told in the warning message.
33455 2013-10-21  Jim Meyering  <meyering@fb.com>
33457         regex: also remove dependency on HAVE_WCSCOLL
33458         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
33460 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
33462         xfreopen: Fix typo. s/frepoen/freopen/
33463         * lib/xfreopen.c: Fix description.
33464         * modules/xfreopen: Likewise.
33466 2013-10-21  Jim Meyering  <meyering@fb.com>
33468         regex: don't depend on wcscoll
33469         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
33470         It is no longer used.
33472 2013-10-20  Jim Meyering  <meyering@fb.com>
33474         error: add the printf attribute to a static function
33475         * lib/error.c (error_tail): Add the printf attribute, to placate
33476         gcc's -Werror=suggest-attribute=format option.
33478 2013-09-30  Jim Meyering  <meyering@fb.com>
33480         fpending, obstack, strerror-override: use pure+const function attrs
33481         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
33482         * lib/obstack.c (_obstack_allocated_p): Likewise.
33483         * lib/obstack.h (_obstack_memory_used): Likewise.
33484         (_obstack_memory_used): Likewise.
33485         * lib/strerror-override.h (strerror_override): Declare with
33486         the "const" attribute.
33488 2013-10-18  Eric Blake  <eblake@redhat.com>
33490         extern-inline: make safe for -Wundef usage
33491         Reported by Vladimir 'phcoder' Serbinenko in
33492         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
33493         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
33495 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33497         mkfifo-tests, etc.: allow HP-UX 11.11 bug
33498         Problem reported by Daniel Richard G. in
33499         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
33500         * doc/posix-functions/mkfifo.texi (mkfifo):
33501         * doc/posix-functions/mkfifoat.texi (mkfifoat):
33502         * doc/posix-functions/mknod.texi (mknod):
33503         * doc/posix-functions/mknodat.texi (mknodat):
33504         Document the HP-UX 11.11 bug.
33505         * tests/test-mkfifo.h (test_mkfifo):
33506         Allow the HP-UX 11.11 bug.
33508 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
33510         acl: allow cross-compilation to Gentoo
33511         Problem reported by Gabriel Marcano in
33512         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
33513         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
33514         test only whether it links.
33516 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
33518         mgetgroups: remove dependency on realloc-gnu
33519         The dependency violates the comment in realloc-gnu, which
33520         says that tests can't depend on realloc-gnu; some tests depend
33521         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
33522         Problem reported by Daniel Richard G. in
33523         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
33524         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
33525         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
33526         not realloc-gnu.
33528 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
33530         regex-tests: port to HP-UX 11.11
33531         Problem reported by Daniel Richard G. in
33532         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
33533         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
33535 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
33537         verify: document some 'assume' pitfalls
33538         * doc/verify.texi (Compile-time Assertions):
33539         Mention that 'assume (E)' can sometimes slow things down.
33540         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
33542 2013-10-10  Eric Blake  <eblake@redhat.com>
33544         strtoumax: fix typo in previous commit.
33545         * modules/strtoumax (Depends-on): Fix typo.
33546         * modules/strtoimax (Depends-on): Likewise.
33548 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
33550         strtoumax: port to Solaris 8
33551         This problem was introduced in the recent HP-UX patch.
33552         Reported by Tom G. Christensen in
33553         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
33554         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
33555         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
33557 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
33559         strtoimax, strtoumax: port to HP-UX 11.11
33560         Problem reported by Daniel Richard G. in
33561         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
33562         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
33563         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
33564         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
33565         REPLACE_STRTOUMAX.
33566         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
33567         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
33568         Replace the function if defined as a macro but not as a function.
33569         * modules/inttypes-incomplete (inttypes.h): Substitute
33570         REPLACE_STRTOUMAX.
33571         * modules/strtoumax (configure.ac): Replace strtoumax if
33572         REPLACE_STRTOUMAX.
33574 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
33576         strtoimax: port to HP-UX 11.11
33577         Problem reported by Daniel Richard G.
33578         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
33579         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
33580         they might clash with inttypes.h.
33582 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
33584         New module 'count-trailing-zeros'.
33585         * MODULES.html.sh: Mention it.
33586         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
33587         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
33588         * modules/count-trailing-zeros-tests:
33589         * tests/test-count-trailing-zeros.c:
33590         New files.
33592         count-leading-zeros: port to MSC; support types wider than 64 bits
33593         The ideas behind the MSC port are stolen from Emacs.
33594         * lib/count-leading-zeros.h:
33595         Don't include verify.h: it's no longer needed, as types wider than
33596         64 bits are now supported.
33597         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
33598         performance with MSC.  All uses changed.  Do not assume that TYPE
33599         has at most 64 bits.
33600         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
33601         All uses changed.  Fold the subtraction from 31 into the table.
33603         count-one-bits: port to MSC; support types wider than 64 bits
33604         The ideas behind the MSC port are stolen from Emacs.
33605         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
33606         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
33607         Don't include verify.h: it's no longer needed, as types wider than
33608         64 bits are now supported.
33609         (COUNT_ONE_BITS_GENERIC): New macro.
33610         (popcount_supported) [_MSC_VER]: New inline function.
33611         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
33612         performance with MSC.  All uses changed.  Do not assume that TYPE
33613         has at most 64 bits.
33614         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
33616 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
33618         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
33619         * lib/mountlist.c (read_file_system_list): fix leak of directory
33620         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
33622 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
33624         tests: improve diagnostic when an assertion fails
33625         * tests/macros.h (ASSERT): Report the assertion that failed.
33627 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
33629         verify: new macro 'assume'
33630         This is taken from Emacs, and should be generally useful.
33631         * doc/verify.texi (assume): Document it.
33632         * lib/verify.h (assume): New macro.
33633         (__has_builtin): Expand to 0 if not defined.
33635 2013-09-26  Eric Blake  <eblake@redhat.com>
33637         dup2, dup3: work around another cygwin crasher
33638         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
33639         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
33640         * tests/test-dup2.c (main): Likewise.
33641         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
33642         * lib/dup3.c (dup3): Likewise.
33643         * doc/posix-functions/dup2.texi (dup2): Document it.
33644         * doc/glibc-functions/dup3.texi (dup3): Likewise.
33646         getdtablesize: work around cygwin issue
33647         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
33648         * modules/getdtablesize (configure.ac): Build replacement.
33649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
33650         * modules/unistd (Makefile.am): Expose the witness.
33651         * lib/unistd.in.h (getdtablesize): Declare replacement.
33652         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
33653         * tests/test-getdtablesize.c (main): Test it.
33654         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
33656 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
33658         pmccabe2html: escaping of special characters
33659         Escape all '<', '>', and '&' in HTML output.
33660         * build-aux/pmccabe2html (html_fnc): Call gsub()
33661         instead of sub() to capture all '<', '>', and '&'.
33662         Neither of '<' and '>' is special in a regexp,
33663         so first arguments to gsub() are corrected. Also,
33664         in replacement strings, ampersand must be escaped.
33665         Finally, '&' must be handled first, then '<' and '>'.
33667 2013-09-24  Eric Blake  <eblake@redhat.com>
33669         manywarnings: enable nicer gcc warning messages
33670         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
33671         some -f options for optimal warnings.
33673 2013-09-21  Jim Meyering  <meyering@fb.com>
33675         timespec: use the new TIMESPEC_RESOLUTION in a few more places
33676         * lib/timespec-add.c (timespec_add): Also replace 999999999
33677         with TIMESPEC_RESOLUTION - 1.
33678         * lib/timespec-sub.c (timespec_sub): Likewise.
33680 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
33682         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
33683         Problem reported by Dagobert Michelsen via Eric Blake in
33684         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
33685         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
33686         not AC_COMPILE_IFELSE.
33688 2013-09-23  Eric Blake  <eblake@redhat.com>
33690         configmake: support new --runstatedir option
33691         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
33692         even if autoconf was too old to provide the command line option.
33693         * modules/configmake (Makefile.am): Propagate it to .h file.
33695 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
33697         ctype, string: depend on extern-inline
33698         This is needed to complete the recent OS X fixes.
33699         Also, fix related documentation as suggested by Eric Blake.
33700         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
33701         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
33702         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
33703         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
33704         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
33705         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
33706         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
33707         * doc/posix-functions/toupper.texi:
33708         List the 'ctype' gnulib module.
33709         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
33710         * doc/posix-functions/strncpy.texi:
33711         List the 'string' gnulib module.
33712         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
33713         Add string.
33714         * modules/ctype, modules/string (Depends-on): Add extern-inline.
33716 2013-09-19  Pádraig Brady  <P@draigBrady.com>
33718         userspec: support optional parameters to parse_user_spec()
33719         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
33720         then avoid group processing and treat the full spec as a user.
33721         (parse_with_separator): Allow the USERNAME and GROUPNAME to
33722         be optional params (NULL), in which case they're ignored.
33724 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
33726         timespec: new function make_timespec, and new constants
33727         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
33728         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
33729         (make_timespec): New function.
33730         * lib/dtotimespec.c (dtotimespec):
33731         * lib/timespec-add.c (timespec_add):
33732         * lib/timespec-sub.c (timespec_sub):
33733         * lib/utimens.c (validate_timespec):
33734         * lib/utimensat.c (rpl_utimensat):
33735         Use these new constants and functions.
33737         stdio: OS X port of putc_unlocked + extern inline
33738         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
33739         * doc/posix-functions/putc_unlocked.texi:
33740         * doc/posix-functions/putchar_unlocked.texi:
33741         Document this portability problem.
33743         signal: OS X port of sigaddset etc. + extern inline
33744         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
33745         (sigismember): #undef on problematic Apple platforms.
33746         * doc/posix-functions/sigaddset.texi:
33747         * doc/posix-functions/sigdelset.texi:
33748         * doc/posix-functions/sigemptyset.texi:
33749         * doc/posix-functions/sigfillset.texi:
33750         * doc/posix-functions/sigismember.texi:
33751         Document this portability problem.
33753         extern-inline: do not always suppress extern inline on OS X
33754         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
33755         extern inline on Apple only if the particular compile-time
33756         configuration is known to have the problem.
33757         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
33758         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
33759         other Gnulib modules.
33761         extern-inline: document fixes for ctype and wctype macros
33762         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
33763         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
33764         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
33765         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
33766         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
33767         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
33768         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
33769         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
33770         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
33771         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
33772         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
33773         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
33774         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
33775         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
33776         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
33777         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
33778         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
33779         * doc/posix-functions/strncpy.texi:
33780         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
33781         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
33782         Document that Gnulib fixes portability problems with these
33783         functions on OS X 10.8 and earlier when called from plain inline
33784         or extern inline functions.
33786 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
33788         fflush, freadahead, fseeko: Fix for Android
33789         Suggested by Bruno Haible in:
33790         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
33791         * lib/stdio-impl.h: Use local __sfileext definition.
33793 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
33795         pmccabe2html: Portability to other awk versions.
33796         The functions systime() and strftime() are available
33797         in Gawk only.  Properly close two HTML-tags 'style'
33798         and 'span'.
33799         * build-aux/pmccabe2html (BEGIN): Store timing
33800         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
33801         systime() in HTML_COMMENT.
33802         (html_header): Correctly close tag 'style'.
33803         (END): Replace strftime() by CHRONOS_TIME.  Close
33804         tag 'span' correctly, not as 'div'.
33806 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
33808         getgroups: statement without effect
33809         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
33810         Change equality conditional to expected assignment.
33812 2013-09-09  Eric Blake  <eblake@redhat.com>
33814         glob: fix compilation
33815         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
33817 2013-09-07  Eric Blake  <eblake@redhat.com>
33819         glob: fix build for platforms without __THROW
33820         * lib/glob.in.h (__THROW): Add definition again.
33822 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
33824         regex-quote: fix buffer access out of bounds
33825         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
33826         * lib/regex-quote.c (regex_quote_spec_pcre):
33827         Fix typo that resulted in an out-of-bounds read.
33829 2013-09-04  Eric Blake  <eblake@redhat.com>
33831         glob: avoid -Wattribute warnings on glibc
33832         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
33833         __THROWNL, not __THROW, on static functions.
33834         * lib/glob.in.h (__THROW): Adjust...
33835         (__THROWNL): ...accordingly.
33837 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
33839         headers: check that _GL_INLINE_HEADER_BEGIN is defined
33840         Suggested by Bruce Korb in:
33841         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
33842         * doc/extern-inline.texi (extern inline):
33843         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
33844         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
33845         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
33846         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
33847         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
33848         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
33849         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
33850         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
33851         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
33852         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
33853         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
33854         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
33855         * lib/xtime.h:
33856         Check that _GL_INLINE_HEADER_BEGIN is defined.
33858 2013-08-29  Pádraig Brady  <P@draigBrady.com>
33860         bootstrap: remove the --version requirement from ancillary tools
33861         * build-aux/bootstrap (check_exists): A new refactored function to
33862         determine if a command exists.
33863         (find_tool): Use the new function which does not require the
33864         --version option to be supported.
33865         (check_versions): Use the new function.
33867 2013-08-26  Simon Josefsson  <simon@josefsson.org>
33869         gc: support HMAC-SHA256 and HMAC-SHA512.
33870         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
33871         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
33872         functions.
33873         (gc_hmac_md5): Use symbolic constant.
33874         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
33875         (gc_hmac_sha256, gc_hmac_sha512): New functions.
33876         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
33877         * m4/sha256.m4: Protect against empty expansion.
33878         * m4/sha512.m4: Likewise.
33879         * lib/hmac-sha256.c: New file.
33880         * lib/hmac-sha512.c: Likewise.
33881         * m4/gc-hmac-sha256.m4: Likewise.
33882         * m4/gc-hmac-sha512.m4: Likewise.
33883         * m4/gc-sha256.m4: Likewise.
33884         * m4/gc-sha512.m4: Likewise.
33885         * modules/crypto/gc-hmac-sha256: Likewise.
33886         * modules/crypto/gc-hmac-sha256-tests: Likewise.
33887         * modules/crypto/gc-hmac-sha512: Likewise.
33888         * modules/crypto/gc-hmac-sha512-tests: Likewise.
33889         * modules/crypto/hmac-sha256: Likewise.
33890         * modules/crypto/hmac-sha256-tests: Likewise.
33891         * modules/crypto/hmac-sha512: Likewise.
33892         * modules/crypto/hmac-sha512-tests: Likewise.
33893         * tests/test-gc-hmac-sha256.c: Likewise.
33894         * tests/test-gc-hmac-sha512.c: Likewise
33895         * tests/test-hmac-sha256.c: Likewise.
33896         * tests/test-hmac-sha512.c: Likewise
33898 2013-08-24  Daiki Ueno  <ueno@gnu.org>
33900         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
33901         of AC_CHECK_DECLS.
33903 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
33905         selinux-at: omit unnecessary include
33906         * lib/selinux-at.c: Don't include dosname.h; not needed, since
33907         this source file doesn't use its macros, and subsidiary files that
33908         use the macros already include it.
33910 2013-08-21  Eric Blake  <eblake@redhat.com>
33912         d-ino: avoid false negative on symlink
33913         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
33914         Reported by Stephane Chazelas.
33916 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
33918         bootstrap: port to OpenBSD sed
33919         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
33920         does not interpret `-' as a file argument to mean stdin.
33922 2013-08-15  Eric Blake  <eblake@redhat.com>
33924         warnings: minor optimization
33925         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
33927         warnings: check -Wfoo rather than -Wno-foo
33928         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
33929         -Wno-, test if the compiler recognizes the positive form instead.
33931 2013-08-15  Karl Berry  <karl@gnu.org>
33933         * config/srclist-update: add option "doclicense" to placate
33934         pulling *.texi files from Emacs.  Write terse usage
33935         documentation at the top.
33937 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
33939         xvasprintf-tests: port to GCC with hardening flags
33940         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
33941         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
33942         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
33944 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33946         fpending: port to recent Cygwin change to stdio_ext.h
33947         Reported by LRN in
33948         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
33949         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
33950         just declare __fpending unless it's a macro.
33951         A duplicate decl shouldn't hurt.
33952         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
33953         call compiles and links, instead of separately checking for
33954         decl and lib function.
33955         * modules/fpending (configure-ac):
33956         Adjust to fpending.m4's renaming of shell variable.
33958 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33960         sys_time: port to OpenBSD
33961         * lib/sys_time.in.h: Simply delegate to the system's header
33962         in the BSDish cases as well.  Problem reported by Mike Miller in
33963         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
33964         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
33965         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
33966         wider than time_t.
33968 2013-08-09  Pádraig Brady  <P@draigBrady.com>
33970         bootstrap: support checksum utils having -c but not --status
33971         * build-aux/bootstrap: Only look for sha1sum if updating po files.
33972         Add sha1 to the list of supported checksum utils since it's now
33973         supported through adjustments below.
33974         (update_po_files): Remove the use of --status
33975         in a way that will suppress all error messages, but since this is
33976         only used to minimize updates, it shouldn't cause an issue.
33977         Exit early if there is a problem updating the po file checksums.
33978         (find_tool): Remove the check for --version support as this
33979         is optional as per commit 86186b17.  Don't even check for the
33980         presence of the command as if that is needed, it's supported
33981         through configuring prerequisites in bootstrap.conf.
33982         Prompt that when a tool isn't found, one can define an environment
33983         variable to add to the hardcoded search list.
33985 2013-08-05  Jim Meyering  <meyering@fb.com>
33987         regex: port to non-glibc/lock-using systems
33988         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
33989         system with GNULIB_LOCK would fail due to absence of the
33990         included "glthread/lock.h".  This would affect any package
33991         for which the "lock" module is used only by the regex module,
33992         and not explicitly used.
33993         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
33994         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
33995         Add a dependency on the "lock" module.
33997 2013-07-20  Daiki Ueno  <ueno@gnu.org>
33999         localecharset: make locale_charset thread-safe on Mac OS X
34000         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
34001         instead of MB_CUR_MAX.
34003 2013-07-20  Daiki Ueno  <ueno@gnu.org>
34005         gettext: update to version 0.18.3
34006         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
34007         require AC_PROG_SED to allow user to specify custom sed command when
34008         generating en@quot PO file.
34010 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
34012         bootstrap: use correct source when copying build-aux files
34013         * build-aux/bootstrap (gnulib_extra_files): This variable is
34014         relative to upstream gnulib layout, not downstream.
34016 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
34018         tmpdir: fix bug in VMS port
34019         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
34020         See Steven M. Schweda in
34021         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
34023 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
34025         tmpdir: port to VMS, to // != /, and to long dirs
34026         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
34027         __secure_getenv, so that we're more like the glibc version.
34028         All uses changed.
34029         (path_search): Don't put slash after directory if __VMS.
34030         Problem reported by Steven M. Schweda in
34031         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
34032         Simplify code to add slash; no need for a loop.
34033         Do not remove trailing slash from "//".
34034         Do not assume dlen <= INT_MAX.
34036 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34038         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
34039         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
34040         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
34041         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
34043         accept4, dup3, pipe2: port to Cygwin
34044         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
34045         * lib/accept4.c (accept4) [O_BINARY]:
34046         * lib/dup3.c (dup3) [O_BINARY]:
34047         * lib/pipe2.c (pipe2) [O_BINARY]:
34048         Use set_binary_mode, not setmode.
34049         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
34050         * modules/binary-io (Depends-on): Remove module indicator.
34051         These last two bits undo the previous change to pipe2 and binary-io.
34053 2013-07-09  Pádraig Brady  <P@draigBrady.com>
34055         mountlist: add support for deallocating returned list entries
34056         * lib/mountlist.c (free_mount_entry): A new exported function
34057         to deallocate a mount list entry.
34058         (read_file_system_list): Refactor to use the new deallocation function.
34059         Suggested by Anton Ovchinnikov.
34061 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
34063         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
34064         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
34065         * lib/stdalign.in.h (_Alignas, _Alignof):
34066         Port to FreeBSD 9.1, and to C11 and C++11.
34067         (_Alignas): Also support ICC.
34068         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
34069         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
34071 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34073         fnmatch: don't goto over declaration
34074         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
34075         undefined behavior for goto over a declaration.
34076         Problem reported by Charlie Brown in
34077         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
34079         pipe2: decouple from binary-io a bit
34080         This is for Emacs, which needs pipe2 but not binary-io.
34081         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
34082         * modules/binary-io (Depends-on): Add module indicator.
34084 2013-07-03  Eric Blake  <eblake@redhat.com>
34086         mgetgroups: relax license to LGPLv2+
34087         * modules/getugroups (License): Change from GPLv3+.
34088         * modules/mgetgroups (License): Likewise.
34089         * modules/getgroups (License): Change from LGPLv3+.
34091         xalloc-oversized: relax license to LGPLv2+
34092         * modules/xalloc-oversized (License): Change from GPLv3+.
34094         nproc: relax license to LGPLv2+
34095         * modules/nproc (License): Change from LGPLv3+.
34097         bootstrap: honor --no-git
34098         * build-aux/bootstrap: Don't even try to use git when user is
34099         pointing to a static checkout.
34101 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34103         ignore-value: port to gcc -pedantic
34104         * lib/ignore-value.h (ignore_value):
34105         Port to gcc -pedantic, by using __extension__.
34106         Reindent as per usual gnulib style nowadays.
34107         Simplify GCC version check.
34109 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
34111         extern-inline: port to gcc -std=c89
34112         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
34113         Do not use __gnu_inline__ if pedantic and pre-C99.
34115 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
34117         doc: document extern-inline
34118         * doc/extern-inline.texi: New file.
34119         * doc/gnulib.texi (alloca-opt): Include it.
34120         * m4/extern-inline.m4: Move some comments to documentation,
34121         and others closer to what they describe.
34123         doc: chatter less
34124         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
34125         (updated-stamp): Use it.  This causes 'make' to output just
34126         one file name rather than zillions.
34128         fflush, fseeko: port to musl cross-compiles
34129         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
34130         on some implementation that (1) is not known to be buggy,
34131         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
34132         cross-compiled to so we can't easily check for lack of
34133         conformance.  This is for cross-compiling to musl.
34134         Reported by Rich Felker in
34135         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
34136         * m4/fclose.m4 (gl_FUNC_FCLOSE):
34137         * m4/fflush.m4 (gl_FUNC_FFLUSH):
34138         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
34139         Adjust to above change.
34140         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
34141         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
34142         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
34143         known not to work, or unknown.
34145 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
34147         msvc-inval: port to mingw-w64
34148         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
34149         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
34150         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
34152 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
34154         getcwd-lgpl: port to Tru64
34155         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
34156         Problem reported by Steven M. Schweda in
34157         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
34159         tests: port large-fd POSIX spawn tests to OS X
34160         Problem reported by Daiki Ueno in
34161         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
34162         * tests/test-posix_spawn_file_actions_addclose.c:
34163         * tests/test-posix_spawn_file_actions_adddup2.c:
34164         * tests/test-posix_spawn_file_actions_addopen.c:
34165         Include <limits.h>, for OPEN_MAX, if available.
34166         (big_fd): New static function.
34167         (main): Use it.
34169 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
34171         tests/nap.h: use an adaptive delay to avoid ctime update issues
34172         The recent change in nap.h (5191133e) decreased the probability of lost
34173         races to about a third, however such problems could still be observed
34174         in virtual machines and openSUSE's OBS.
34175         Before, nap() detected the needed time once empirically and then used
34176         that delay (together with a small correction multiplier) in further
34177         calls.  This problem has been reported and discussed several times,
34178         including guesses about possible kernel issues:
34179         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
34180         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
34181         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
34182         http://bugs.gnu.org/12820
34183         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
34184         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
34185         Now, nap() avoids the race alltogether by verifying on a reference
34186         file whether a timestamp difference has happened.
34187         * tests/nap.h (nap_fd): Define file descriptor variable for the
34188         witness file.
34189         (nap_works): Change return value to bool.  Change passing
34190         the old file's status by value instead of by reference as this function
34191         does no longer update that timestamp; rename the function argument from
34192         st to old_st.  Remove the local variables cdiff and mdiff because that
34193         function now returns true/false instead of the precise delay.
34194         (guess_delay): Remove function.
34195         (clear_tmp_file): Add new function to close and unlink the witness file.
34196         (nap): Instead of re-using the delay which has been calculated during
34197         the first call, avoid the race by actually verifying that a timestamp
34198         difference can be observed on the current file system.  Use an adaptive
34199         approach for the delay to minimize execution time.  Assert that the
34200         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
34201         = 2^31 - 1 = 2.1s.
34202         Use atexit to call clear_tmp_file when the process terminates.
34204 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
34206         sig2str: port to C++
34207         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
34208         Reported by Daniel J Sebald in
34209         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
34211 2013-05-30  Eric Blake  <eblake@redhat.com>
34213         docs: mention cygwin shortcoming in <sys/un.h>
34214         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
34216         vasnprintf: silence mingw compiler warning
34217         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
34219 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
34221         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
34222         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
34223         This fixes a porting bug I recently reintroduced in regex, and
34224         some other instances that I discovered while testing the fix.
34225         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
34226         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
34227         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
34228         with an empty argument if this is a pedantic pre-C99 GCC.
34229         * lib/verify.h: Do not use _Static_assert if this is a pedantic
34230         pre-C11 GCC.
34232         regex: adapt to locking regime instead of depending on pthread
34233         Instead of depending on pthread, adapt to whatever thread
34234         modules are in use.  Problem reported by Ludovic Courtès in
34235         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
34236         and by Mats Erik Andersson in
34237         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
34238         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
34239         Support either the 'lock' module, or the 'pthread' module, or
34240         no module.
34241         (lock_lock, lock_unlock): New macros.
34242         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
34243         * modules/lock, modules/pthread (configure.ac): Add module indicator.
34244         * modules/regex (Depends-on): Remove pthread.
34246 2013-05-22  Eric Blake  <eblake@redhat.com>
34248         getgroups: document portability issues
34249         * doc/glibc-functions/initgroups.texi (initgroups): Mention
34250         multithread safety.
34251         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
34252         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
34253         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
34254         getugroups.
34255         * doc/posix-functions/getgroups.texi (getgroups): Mention
34256         multithread safety and mgetgroups.
34258 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
34260         test-lchown, test-chown: also skip test if chown fails with EPERM
34261         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
34262         skip this test, to handle FAT file systems.
34263         * tests/test-chown.h (test_chown): Likewise.
34265 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
34267         regex: fix dfa race in multithreaded uses
34268         Problem reported by Ludovic Courtès in
34269         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
34270         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
34271         New macros.  All uses of __libc_lock_define, __libc_lock_init
34272         changed to use the first two of these.
34273         (__libc_lock_lock, __libc_lock_unlock): New macros, for
34274         non-glibc platforms.
34275         (struct re_dfa_t): Define the lock unconditionally.
34276         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
34277         '#ifdef _LIBC"s.
34278         * modules/regex (Depends-on): Add pthread, if we use the
34279         included regex.
34281         * lib/regcomp.c: Do actions that are not needed for glibc,
34282         but may be needed elsewhere.
34283         (regfree, re_compile_internal): Destroy the lock.
34284         (re_compile_internal): Check for lock-initialization failure.
34286         malloca: port to compilers that reject size-zero arrays
34287         This fixes a bug introduced in my previous patch.
34288         * lib/malloca.c (struct preliminary_header): Use an int
34289         rather than a character array of size int; that's simpler.
34290         (struct header): Remove, replacing with ...
34291         (union header): New type.  This avoids the need for declaring a
34292         character array of size zero, which is not allowed on some platforms.
34293         All uses changed.
34295 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
34297         parse-datetime, tests: don't use "string" + int
34298         Recent versions of 'clang' complain about C source code that
34299         uses expressions of the form '"string literal" + integer',
34300         I guess on the theory that it's confusing for readers who are
34301         used to C++.  On those grounds I suppose it's OK to make this
34302         minor style change.
34303         * lib/parse-datetime.y (parse_datetime):
34304         * tests/test-fchdir.c (main):
34305         * tests/test-snprintf-posix.h (test_function):
34306         * tests/test-snprintf.c (main):
34307         * tests/test-vasnprintf-posix.c (test_function):
34308         * tests/test-vasnprintf.c (test_function):
34309         * tests/test-vsnprintf.c (main):
34310         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
34311         Rewrite '"str" + E' to '&"str"[E]'.
34313 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
34315         argmatch: port to C++
34316         * lib/argmatch.h [__cplusplus]: Add extern "C".
34318         argp: typo fix
34319         * lib/argp-help.c: Typo in comment.
34321 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
34323         manywarnings: update for GCC 4.8.0
34324         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
34325         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
34326         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
34327         -Wmissing-noreturn, as they are duplicates of other warnings.
34328         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
34329         was documented to be flaky in earlier versions of GCC.
34331         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
34332         * tests/test-spawn.c (main):
34333         * tests/test-sys_socket.c (main):
34334         * tests/test-sys_wait.c (main):
34335         Don't have a switch value that isn't covered by a case.
34337         getaddrinfo-tests: port --enable-gcc-warnings to clang
34338         * tests/test-getaddrinfo.c (simple):
34339         Avoid casts from looser to stricter-aligned pointers.
34341         thread: port --enable-gcc-warnings to clang
34342         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
34343         Include <signal.h>, to pacify a warning about pthread_sigmask.
34345         stdio: use __REDIRECT for fwrite, fwrite_unlocked
34346         * lib/stdio.in.h (fwrite):
34347         When working around bug 11959, use __REDIRECT rather than '#define
34348         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
34349         fix the -Wunused-value issue with clang, and it works with GCC too.
34350         Problem with targeting reported by Eric Blake in
34351         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
34352         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
34353         debugging the fwrite issue.
34355         stdio: port --enable-gcc-warnings to clang
34356         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
34357         since the GCC workaround for fwrite does not pacify clang.
34359         sig2str: port --enable-gcc-warnings to clang
34360         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
34362         obstack: port --enable-gcc-warnings to clang
34363         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
34364         Avoid casts from looser to stricter-aligned pointers.
34366         memchr2: port --enable-gcc-warnings to clang
34367         * lib/memchr2.c (memchr2):
34368         Avoid casts from looser to stricter-aligned pointers.
34370         mbsstr: port --enable-gcc-warnings to clang
34371         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
34372         Avoid casts from looser to stricter-aligned pointers.
34374         malloca: port --enable-gcc-warnings to clang
34375         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
34376         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
34378         inttostr: port --enable-gcc-warnings to clang
34379         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
34381         warnings: port to clang
34382         Problem reported by Daniel P. Berrange via Eric Blake in
34383         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
34384         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
34385         (gl_WARN_ADD): Use it.
34387 2013-05-11  Jim Meyering  <meyering@fb.com>
34389         quotearg: do not read beyond end of buffer
34390         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
34391         end of an ARG for which no length was specified.  With an N-byte
34392         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
34393         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
34394         via coreutils' misc/sort-debug-keys.sh test and detected by running
34395         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
34396         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
34397         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
34398         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
34399         characters correctly."
34401 2013-05-11  Daiki Ueno  <ueno@gnu.org>
34403         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
34404         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
34405         compilation target is Mac OS X 10.6.
34406         Problem reported by parafin and Andoni Morales in
34407         <http://savannah.gnu.org/bugs/?37844> and
34408         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
34410 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
34412         mkdir-p: remove assumptions about umask and mode
34413         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
34414         umask is 0, or that MODE is a subset of MODE_BITS.
34416 2013-05-10  Eric Blake  <eblake@redhat.com>
34418         maint.mk: catch more abuse of HAVE_DECL in syntax-check
34419         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
34421 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
34423         deps: require Automake >= 1.9.6 in generated Makefile fragments
34425         That is the same minimal version required in the DEPENDENCIES file.
34426         Moreover, the old code generated a requirement of Automake >= 1.5,
34427         and that is an insanely outdated version.
34429         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
34430         * tests/havelib/rpathlx/Makefile.am: Likewise.
34431         * tests/havelib/rpathly/Makefile.am: Likewise.
34432         * tests/havelib/rpathlyx/Makefile.am: Likewise.
34433         * tests/havelib/rpathlz/Makefile.am: Likewise.
34434         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
34435         * tests/havelib/rpathx/Makefile.am: Likewise.
34436         * tests/havelib/rpathy/Makefile.am: Likewise.
34437         * tests/havelib/rpathz/Makefile.am: Likewise.
34439 2013-05-08  Eric Blake  <eblake@redhat.com>
34441         bootstrap: AC_INIT may have more than four parameters
34442         * build-aux/bootstrap (extract_package_name): Correctly extract
34443         non-empty tarname field.  Avoid range in regex.
34444         Based on a report by Sami Kerola <kerolasa@iki.fi>.
34446 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
34448         qacl: port to MS-Windows port of GNU Emacs
34449         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
34450         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
34451         port of GNU Emacs.  Problem reported by Eli Zaretskii in
34452         <http://bugs.gnu.org/14295#14>.
34454 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
34456         acl: include quote.h
34457         * lib/copy-acl.c: Include quote.h.
34458         * lib/set-acl.c: Likewise.
34460 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
34462         fchownat, renameat, unlinkat: update statat dependencies
34463         These modules use statat and lstatat, not fstatat; so depend on
34464         the statat module, which was split out recently from fstatat.
34465         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
34466         * modules/renameat: Likewise.  Also delete fstat.
34467         URL: http://bugs.gentoo.org/468790
34469 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
34471         Assume gnulib is checked out from Git, not CVS
34473         In fact, access to the gnulib repository through CVS has been
34474         disabled, or more precisely, got broken and was never restored; see:
34475         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
34477         Note that support for CVS is not removed completely and unthinkingly
34478         by this change: only support for CVS checkouts of gnulib itself is
34479         removed.  For example, the 'bootstrap' script still cater to .cvsingore
34480         files and CVS directories, for the benefit of those poor gnulib clients
34481         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
34483         * gnulib-tool: Simplify accordingly.
34484         * posix-modules: Likewise.
34485         * MODULES.html.sh: Likewise.
34486         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
34487         repository.
34488         * doc/gnulib-intro.texi: Likewise.
34489         * doc/gnulib-readme.texi: Likewise.
34490         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
34491         sample '.gitignore' file rather than a sample '.cvsignore'.
34492         * NEWS: Update.
34493         * m4/extensions.m4: While at it, remove a comment mistakenly referring
34494         to "CVS Autoconf" rather than "git Autoconf".
34496 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
34498         utimensat-tests, etc.: try to fix some races
34499         Problem reported by Bernhard Voelker in
34500         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
34501         I don't know whether this patch fixes that race condition, but it
34502         fixes *some* race conditions, so it should be a win.
34503         * modules/chown-tests (Depends-on):
34504         * modules/fchownat-tests (Depends-on):
34505         * modules/fdutimensat-tests (Depends-on):
34506         * modules/futimens-tests (Depends-on):
34507         * modules/lchown-tests (Depends-on):
34508         * modules/stat-time-tests (Depends-on):
34509         * modules/utimens-tests (Depends-on):
34510         * modules/utimensat-tests (Depends-on):
34511         Depend on nanosleep, not usleep.
34512         * modules/chown-tests (test_chown_LDADD):
34513         * modules/lchown-tests (test_lchown_LDADD):
34514         * modules/stat-time-tests (test_stat_time_LDADD):
34515         New macro.
34516         * modules/fchownat-tests (test_fchownat_LDADD):
34517         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
34518         * modules/futimens-tests (test_futimens_LDADD):
34519         * modules/utimens-tests (test_utimens_LDADD):
34520         * modules/utimensat-tests (test_utimensat_LDADD):
34521         Add $(LIB_NANOSLEEP).
34522         * modules/stat-time-tests (Files): Add tests/nap.h.
34523         * tests/nap.h: Include <limits.h>, for INT_MAX.
34524         (lt_mtime): Remove.
34525         (diff_timespec): New function.
34526         (get_stat): Rename from get_mtime.  All callers changed.
34527         (nap_works): Determine the needed delay by inspecting the
34528         file system's timestamp jumps; this should be more reliable.
34529         Look at both mtime and ctime, and take the maximum of the two jumps.
34530         (nap_works, guess_delay):
34531         Return a nanosecond count, not a microsecond count.
34532         All callers changed.
34533         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
34534         failure.
34535         (nap): Multiply the guess by 1.125, to accommodate the case where
34536         the file system's clock is a bit slower than nanosleep's clock.
34537         * tests/test-stat-time.c (BASE): New macro.
34538         Include nap.h.
34539         (nap): Remove; nap.h now defines this.  This removes a duplicate
34540         implementation of 'nap'.
34542         utimens, utimensat: work around Solaris UTIME_OMIT bug
34543         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
34544         Linux kernel 2.6.32 does.  Work around it in the same way.
34545         * doc/posix-functions/futimens.texi (futimens):
34546         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
34547         * lib/utimens.c (fdutimens, lutimens):
34548         * lib/utimensat.c (rpl_utimensat): Work around the bug.
34550         gettext: now it's your responsibility to add -I$(top_builddir)/intl
34551         Formerly, it was your responsibility to do this for all Makefile.ams
34552         other than Gnulib's.  Now it's your responsibility to do it for
34553         Gnulib's Makefile.am, too.
34554         * NEWS: Document this.
34555         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
34557         acl: include errno.h to get errno
34558         Reported by Daiki Ueno in
34559         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
34560         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
34562 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
34564         tests: don't assume getdtablesize () <= 10000000
34565         * modules/cloexec-tests:
34566         * modules/dup2-tests:
34567         * modules/dup3-tests:
34568         * modules/nonblocking-tests:
34569         * modules/posix_spawn_file_actions_addclose-tests:
34570         * modules/posix_spawn_file_actions_adddup2-tests:
34571         * modules/posix_spawn_file_actions_addopen-tests:
34572         * modules/unistd-safer-tests:
34573         Depend on the getdtablesize module.
34574         * tests/test-cloexec.c:
34575         * tests/test-dup-safer.c:
34576         * tests/test-dup2.c:
34577         * tests/test-dup3.c:
34578         * tests/test-fcntl.c:
34579         * tests/test-nonblocking.c:
34580         * tests/test-posix_spawn_file_actions_addclose.c:
34581         * tests/test-posix_spawn_file_actions_adddup2.c:
34582         * tests/test-posix_spawn_file_actions_addopen.c:
34583         Don't assume getdtablesize () <= 10000000.
34585 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
34587         extern-inline: work around bug in Sun c99
34588         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
34589         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
34591 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
34593         qacl: new module, broken out from the acl module
34594         This is for GNU Emacs, which wants the acl functions but does
34595         not want 'error' invoked when they fail.
34596         * lib/acl-internal.h: Do not include error.h, quote.h.
34597         (ENOSYS, ENOTSUP): Remove; no longer needed.
34598         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
34599         * lib/acl.h: Include <stdbool.h>.
34600         (acl_errno_valid): New function.
34601         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
34602         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
34603         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
34604         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
34605         (ACL_INTERNAL_INLINE): Remove; no longer needed.
34606         * lib/file-has-acl.c (file_has_acl):
34607         * lib/qcopy-acl.c (qcopy_acl):
34608         * lib/qset-acl.c (qset_acl):
34609         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
34610         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
34611         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
34612         lib/file-has-acl.c, m4/acl.m4 to qacl module.
34613         Add lib/set-acl.c.
34614         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
34615         Add qacl.
34616         (configure.ac): Move gl_FUNC_ACL to qacl module.
34617         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
34618         Rename set-mode-acl.c to set-acl.c.
34619         * lib/acl-errno-valid.c: New file.
34620         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
34621         copy_acl function remains in copy-acl.c.
34622         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
34623         (_): Remove; not needed.
34624         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
34625         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
34626         * modules/qacl: New file, moved from the old modules/acl.
34627         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
34628         Remove set-mode-acl.c, copy-acl.c.
34629         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
34631         alignof, intprops, malloca: port better to IBM's C compiler
34632         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
34633         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
34634         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
34636 2013-04-25  Daiki Ueno  <ueno@gnu.org>
34638         wctype-h: fix gettext link error on mingw
34639         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
34640         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
34641         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
34642         rpl_towupper and rpl_towupper.
34644 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
34646         regex-tests, regex: allow glibc re_search behavior
34647         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
34648         re_search input data to make the multi-character collating element
34649         in it clearly visible, and treat re_search return code 0 as valid.
34650         * m4/regex.m4 (gl_REGEX): Likewise.
34652 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
34654         stdalign: doc fix
34655         * doc/posix-headers/stdalign.texi (stdalign.h):
34656         Gnulib doesn't support '_Alignof expr'.
34658 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
34660         stdalign: port to stricter ISO C11
34661         ISO C11 says that _Alignof's operand must be a parenthesized type.
34662         Problem reported by Eli Zaretskii in
34663         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
34664         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
34665         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
34667 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
34669         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
34670         Problem reported by Marco Atzeri in
34671         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
34672         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
34673         Simply delegate to the system <sys/select.h> in this case too.
34674         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
34675         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
34676         be needed on Solaris either.
34677         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
34678         Simply delegate to the system <sys/time.h> in this case.
34680 2013-03-19  Karl Berry  <karl@gnu.org>
34682         * build-aux/gnupload: check for erroneous (with gnupload) use of
34683         ftp-upload.gnu.org, tweak help.
34685 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34687         copy-file, rpmatch: fix problems found by cppcheck
34688         Reported by Arno Onken in
34689         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
34690         * lib/rpmatch.c (try): Fix memory leak.
34691         * lib/copy-file.c: Include "ignore-value.h".
34692         (qcopy_file_preserving): Ignore chown value.
34693         * modules/copy-file (Depends-on): Add ignore-value.
34695 2013-01-27  Jim Meyering  <jim@meyering.net>
34697         prefix-gnulib-mk: give better diagnostics
34698         * build-aux/prefix-gnulib-mk: Don't just "die".
34699         Give better diagnostics upon failure.
34701 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
34703         putenv: port to Solaris 10
34704         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
34705         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
34706         is not what is wanted here.
34707         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
34708         declaration, not for its existence.
34710 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
34712         mktime: fix configure typo
34713         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
34715 2013-03-12  Eric Blake  <eblake@redhat.com>
34717         regex-tests: skip UTF-8 test on mingw
34718         * modules/regex-tests (Depends-on): Add localcharset.
34719         * tests/test-regex.c (main): Use it to skip test on mingw.
34721 2013-03-11  Eric Blake  <eblake@redhat.com>
34723         tests: make it easier to bypass alarm time in debugger
34724         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
34725         * tests/test-memmem.c (main): Likewise.
34726         * tests/test-passfd.c (main): Likewise.
34727         * tests/test-ptsname.c (main): Likewise.
34728         * tests/test-ptsname_r.c (main): Likewise.
34729         * tests/test-strcasestr.c (main): Likewise.
34730         * tests/test-strstr.c (main): Likewise.
34732         regex: port to mingw's recent addition of undeclared alarm
34733         * doc/posix-functions/alarm.texi (alarm): Document that alarm
34734         exists but still doesn't work in newer mingw.
34735         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
34736         not existence.  Ensure SIGALRM is not trapped.
34737         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
34738         * m4/regex.m4 (gl_REGEX): Likewise.
34739         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
34740         * tests/test-regex.c (main): Use correct probe for alarm.
34742         putenv: avoid compilation warning on mingw
34743         * lib/putenv.c (_unsetenv): Protect variable declaration.
34744         (putenv): Fix indentation.
34746 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
34748         unistd: don't prevent Tru64 Unix from using gnulib strtod.
34749         * lib/unistd.in.h: be careful not to include un-needed system
34750         stdlib.h from here, because that prevents gnulib stdlib.h from
34751         defining rpl_strtod correctly.
34753 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
34755         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
34756         changesets, but for the 'precision 0' test.
34757         * tests/test-vasprintf-posix.c (test_function): Don't insist on
34758         round-to-even, since POSIX says rounding is implementation-defined
34759         and OS X 10.8.2 rounds 1.51 to 1 here.
34761         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
34762         changeset.
34763         * tests/test-vasprintf-posix.c (test_function): Don't insist on
34764         round-to-even, since POSIX says rounding is implementation-defined
34765         and OS X 10.8.2 rounds 1.5 to 1 here.
34767 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
34769         vasnprintf-posix-tests: allow rounding 1.5 to 1
34770         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
34771         round-to-even, since POSIX says rounding is implementation-defined
34772         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
34773         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
34775         bootstrap: port to FreeBSD
34776         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
34777         that treat '--' differently.  Reported by Mats Erik Andersson in
34778         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
34780 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
34782         regex: rename remaining __attribute calls to __attribute__.
34783         2012-02-25 changed definition of __attribute, but left some uses
34784         unchanged, preventing compilation of regex module on most non-gcc
34785         environments.
34786         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
34787         (lookup_collation_sequence_value, build_range_exp)
34788         (build_collating_symbol): Set attributes with newly renamed
34789         __attribute__ decorator.
34790         * lib/regex_internal.c (re_string_peek_byte_case)
34791         (re_node_set_compare, re_node_set_contains): Likewise.
34792         * lib/regexec.c (acquire_init_state_context): Likewise.
34794 2013-03-06  Bruno Haible  <bruno@clisp.org>
34796         execute: Revert last change, but use a different condition.
34797         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
34798         on Windows.
34800 2013-03-05  Eric Blake  <eblake@redhat.com>
34802         execute: drop dead code
34803         * lib/execute.c (nonintr_close, nonintr_open): Delete.
34805 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
34807         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
34808         * m4/non-recursive-gnulib-prefix-hack.m4
34809         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
34810         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
34811         <http://bugs.gnu.org/10305#237>.
34813 2013-03-04  Eric Blake  <eblake@redhat.com>
34815         test-getsockopt: avoid compiler warning
34816         * tests/test-getsockopt.c (includes): Ensure close is declared.
34818 2013-03-02  Bruno Haible  <bruno@clisp.org>
34820         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
34821         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
34823 2013-03-02  Bruno Haible  <bruno@clisp.org>
34825         gettext: Update to version 0.18.2.
34826         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
34827         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
34828                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
34830 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
34832         regex: merge patches from libc
34834         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
34835         * lib/regex_internal.h (__attribute__): Rename from __attribute.
34836         All uses changed.
34837         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
34838         (re_string_wchar_at, re_string_elem_size_at):
34839         Mark function as possibly unused.
34841         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
34842         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
34843         elements compare against the byte sequence of it, not its name.
34845 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
34847         putenv: port better to native Windows
34848         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
34849         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
34850         (_unsetenv): Use _putenv if available.
34851         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
34852         a bit less likely to cause damage.
34853         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
34854         Fix the wrong value with SetEnvironmentVariable.
34855         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
34856         code better.
34858 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
34860         regex: ignore old-style-definition warnings
34861         * lib/regex.c: Add pragma to ignore these warnings.
34862         Problem reported for GNU tar by Pavel Raiskup.
34864 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
34866         getcwd: support coreutils better
34867         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
34868         but this might not be correct in coreutils, which disables
34869         the raw decl checks.  Problem reported by Nagendra in
34870         <http://bugs.gnu.org/10305#192>.
34871         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
34872         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
34873         Test the getcwd function, not any macro, since getcwd.c wants the
34874         function.
34875         * m4/getcwd.m4 (gl_FUNC_GETCWD):
34876         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
34877         compile, as might happen if there's a macro but no function.
34879         strtod: support coreutils better
34880         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
34881         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
34882         disables the raw decl checks.  This assumes there is an underlying
34883         strtod, but that's a safe assumption these days.
34884         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
34886         mountlist: port to HP NonStop
34887         Reported by Joachim Schmitz in
34888         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
34889         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
34890         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
34892 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
34894         extern-inline: avoid compilation error with HP-UX cc
34895         Reported by Richard Lloyd in
34896         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
34897         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
34898         Suppress extern inline with HP-UX cc.  This should be safe,
34899         though it may hurt performance.  Perhaps someone with some HP-UX
34900         experience can come up with a higher-performance fix.
34902 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
34904         putenv: fix heap corruption with mixed putenv/_putenv
34905         Problem reported by Michael Goffioul in
34906         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
34907         * lib/putenv.c (putenv) [HAVE__PUTENV]:
34908         Rely on _putenv to allocate the new environment.
34909         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
34910         * modules/putenv (configure.ac): Use it.
34912 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
34914         unsetenv etc.: port to Solaris 11 + GNU Emacs
34915         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
34916         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
34917         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
34918         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
34919         idea but is too painful to fix right now), and without this gnulib
34920         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
34921         compiling unsetenv.c on Solaris 11.  Fix the problem for
34922         unsetenv.c, and fix other similar occurrences.
34924 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
34926         secure_getenv: fix C++ declaration typo
34927         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
34928         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
34929         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
34931 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
34933         careadlinkat: stop exporting careadlinkatcwd
34934         Only Emacs used it directly, and Emacs no longer needs it.
34935         * NEWS: Document this simplification.
34936         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
34937         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
34938         for readlink.
34939         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
34940         Don't include stdlib.h; no longer needed.
34941         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
34942         * lib/relocwrapper.c: Adjust comment to match new dependencies.
34943         * modules/areadlink (Depends-on): Add readlink.
34944         (Maintainer): Add self.
34945         * modules/careadlinkat (Depends-on): Remove readlink.
34947         extensions: port better to HP-UX
34948         This is merged from git Autoconf.
34949         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
34950         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
34951         so that it's compatible with the value used when compiling.
34953         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
34954         Problem reported by Mats Erik Andersson in
34955         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
34956         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
34957         openpty function exists, not merely when we intend to replace it.
34958         This corrects the 2013-01-31 patch, which mistakenly defined
34959         HAVE_OPENPTY even on hosts that lacked it.
34961 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
34963         secure_getenv: fix include typo
34964         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
34966         secure_getenv: port better to FreeBSD and Solaris
34967         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
34968         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
34969         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
34970         This works better on BSDish platforms.
34971         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
34972         Test for issetugid if __secure_getenv is missing.
34974 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
34976         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
34977         Some of these changes are merged in from git Autoconf.
34978         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
34979         When deciding whether to define _XOPEN_SOURCE, inspect the
34980         preprocessor macro __hpux instead of the more-heavyweight
34981         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
34982         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
34983         as the key for __EXTENSIONS__.
34985         unistd: avoid namespace pollution on non-glibc systems
34986         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
34987         This avoids namespace pollution on non-glibc systems, by causing
34988         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
34989         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
34990         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
34992 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
34994         tmpdir: use secure_getenv
34995         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
34996         Define to secure_getenv, not getenv.
34997         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
34998         as that's now secure_getenv's job.
34999         * modules/tmpdir (Depends-on): Add secure_getenv.
35001         tempname: use secure_getenv
35002         * lib/tempname.c (__secure_getenv) [!_LIBC]:
35003         Define to secure_getenv, not getenv.
35004         * modules/tempname (Depends-on):
35005         Add secure_getenv.
35007         secure_getenv: new module
35008         * MODULES.html.sh (Extra functions based on ANSI C 89):
35009         Add secure_getenv.
35010         * doc/glibc-functions/secure_getenv.texi: New file.
35011         * doc/gnulib.texi: Include it.
35012         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
35013         New files.
35014         * lib/stdlib.in.h (secure_getenv): New decl.
35015         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
35016         * modules/stdlib (stdlib.h):
35017         Add secure_getenv checks.
35019 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
35021         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
35022         Reported for OS X 10.8.2 by Assaf Gordon in
35023         <http://bugs.gnu.org/13516>.
35024         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
35025         !HAVE_OPENAT && !HAVE_FDOPENDIR.
35026         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
35027         so that they can be kept in sync more easily.  Avoid PATH_MAX
35028         test on the Hurd.  Sync from test-getcwd.c for errno tests after
35029         mkdir or chdir failure.
35030         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
35031         lib/getcwd.c.
35032         (test_abort_bug): Do not test for the deep directory bug unless we
35033         have openat support.  Avoid PATH_MAX test on the Hurd.
35035         regex-tests, regex: fix bug: memset undeclared
35036         * tests/test-regex.c: Don't include regex.h twice.  Include
35037         string.h, to declare memset.  Christensen's report also mentioned
35038         this issue.
35039         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
35040         test-regex.c, to avoid future problems like this.  Remove
35041         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
35042         twice.
35044         regex-tests: fix link errors on older Solaris
35045         These need to link with @LIBINTL@ to get libintl_gettext.
35046         Problem reported by Tom G. Christensen in
35047         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
35048         * modules/regex-tests (test_regex_LDADD): New macro.
35050 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
35052         regex-tests: new module
35053         * modules/regex-tests, tests/test-regex.c: New files.
35055         regex: fix off-by-one error in configure test
35056         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
35058 2013-01-31  Eric Blake  <eblake@redhat.com>
35060         regex: avoid infinite configure test
35061         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
35063 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
35065         openpty: fix bug where HAVE_OPENPTY wasn't defined
35066         See the thread starting at:
35067         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
35068         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
35069         openpty function exists, not merely when we intend to replace it.
35071 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
35073         sys_time: port to Solaris 2.6
35074         There is a circularity problem on Solaris 2.6, where <time.h> includes
35075         <sys/time.h> for struct timespec.  The include nesting is gnulib
35076         <time.h>, system <time.h>, gnulib <sys/time.h>, system
35077         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
35078         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
35079         <sys/siginfo.h>; the last, innermost file needs struct
35080         timestruc_t, which is defined in <sys/time.h>, which has not been
35081         fully parsed.  Problem reported by Tom G. Christensen in
35082         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
35083         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
35084         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
35085         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
35086         uses split double-inclusion guards.
35088 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
35090         regex: test for buffer overrun
35091         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
35092         for the just-fixed regex bug.
35094 2013-01-29  Andreas Schwab  <schwab@suse.de>
35096         regex: fix buffer overrun in regexp matcher [BZ #15078]
35097         * lib/regexec.c (extend_buffers): Add parameter min_len.
35098         (check_matching): Pass minimum needed length.
35099         (clean_state_log_if_needed): Likewise.
35100         (get_subexp): Likewise.
35102 2013-01-28  Pádraig Brady  <P@draigBrady.com>
35104         mountlist: don't consider "devtmpfs" as dummy
35105         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
35106         as there is storage associcated with it.
35108 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
35110         futimens-tests, utimens-tests: Depend on gettext.
35111         This works around a problem introduced in my 2013-01-12 patch,
35112         which added @LIBINTL@ to these modules.
35113         * modules/futimens-tests (Depends-on):
35114         * modules/utimens-tests (Depends-on): Add gettext.
35116 2013-01-26  Eric Blake  <eblake@redhat.com>
35118         test-getpeername: fix typo
35119         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
35121 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
35123         bootstrap: remove the need for a sorted .gitignore file
35124         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
35125         rename to insert_if_absent(), so that we don't need or generate
35126         a sorted .gitignore file.  We do require a .gitignore with no
35127         existing duplicate entries and enforce that.
35128         (sort_patterns): Remove this function as we now use the simpler
35129         technigue of inserting blacklist entries at the top of the file,
35130         assuming gnulib won't be inserting !whitelist entries.
35132 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
35134         readlinkat: don't depend on gl_FUNC_OPENAT
35135         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
35136         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
35137         renameat.m4, symlinkat.m4; but one thing at a time.
35139         statat: new module, split out from fstatat
35140         GNU Emacs needs the POSIX-specified fstatat, but not the
35141         gnulib-specified statat and lstat.  Split the latter two into a
35142         new module 'statat'.
35143         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
35144         * lib/openat.h, lib/statat.c (STATAT_INLINE):
35145         Rename from FSTATAT_INLINE. All uses changed.
35146         * modules/fstatat (Files): Remove lib/statat.c.
35147         (gl_MODULE_INDICATOR([fstatat])): Remove.
35148         (lib_SOURCES): Remove.
35149         (Maintainer): Add self.
35150         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
35151         * tests/test-fstatat.c (BASE): Don't define if already defined.
35152         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
35154 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
35156         tests: don't assume fd 99 is closed
35157         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
35158         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
35159         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
35160         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
35161         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
35162         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
35163         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
35164         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
35165         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
35166         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
35167         * tests/test-fwrite.c, tests/test-getpeername.c:
35168         * tests/test-getsockname.c, tests/test-getsockopt.c:
35169         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
35170         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
35171         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
35172         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
35173         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
35174         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
35175         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
35176         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
35177         * tests/test-unlinkat.c, tests/test-unlockpt.c:
35178         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
35179         Close file descriptor 99, instead of assuming it's already closed.
35181 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
35183         stpncpy: port to OS X 10.8
35184         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
35185         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
35187 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
35189         unistd: port to recent mingw
35190         * lib/unistd.in.h: Remove special invocation convention for mingw,
35191         which breaks for the latest mingw version.  See John W. Eaton in
35192         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
35194         largefile: port better to Mac OS X 10.5
35195         This patch is backported from Autoconf git.
35196         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
35197         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
35198         with ino_t size being different for configuration time versus
35199         build/run time.  Problem reported by PHO in
35200         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
35202 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
35204         doc: clarify -Werror
35205         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
35206         clarify that it's intended for developers, not for ordinary builds,
35207         and mention --enable-gcc-warnings as one possible use.
35209 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
35211         stdint: fix build with Android's Bionic fox x86
35212         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
35213         was already included as _SSIZE_T_DEFINED_ might also be defined
35214         in include/machine/_types.h, which is included by stdio.h
35216 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
35218         net_if-tests: port to Solaris 7 + GCC 3.4.6
35219         Problem reported by Tom G. Christensen in
35220         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
35221         * tests/test-net_if.c (ni): Move to next the code that uses it,
35222         so that it's declared only if needed.
35224 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
35226         net_if-tests: port to older Solaris
35227         Problem reported by Tom G. Christensen in
35228         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
35229         * modules/net_if-tests (NET_IF_LIB): New substitution.
35230         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
35231         (HAVE_IF_NAMEINDEX): New C macro.
35232         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
35234         system-quote-tests: port to older Solaris
35235         Problem reported by Tom G. Christensen in
35236         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
35237         * tests/test-system-quote-child.c (fopen, fread): Undef.
35239         c-xvasprintf etc.: fix link errors on older Solaris
35240         These need to link with @LIBINTL@ to get libintl_gettext.
35241         Problem reported by Tom G. Christensen in
35242         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
35243         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
35244         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
35245         * modules/futimens-tests (test_futimens_LDADD):
35246         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
35248 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
35250         locale: port to Solaris 2.6 and 7 + GNU gettext
35251         * lib/locale.in.h: Just include_next <locale.h> when
35252         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
35253         when combining the localename module with GNU gettext 0.18.2.
35254         Problem reported by Tom G. Christensen in
35255         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
35257 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
35259         stdlib: port to Solaris 2.6
35260         Also, the code worked on Solaris 7 through 9 only by accident.
35261         Problem reported by Tom G. Christensen in
35262         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
35263         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
35264         simply include the system stdlib.h.
35265         * lib/getopt.in.h (__need_system_stdlib_h):
35266         * lib/pthread.in.h (__need_system_stdlib_h):
35267         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
35268         Define when including <stdlib.h>, to avoid problems at least for
35269         the pthread case on Solaris 2.6 and 7.  These .h files can get by
35270         with the system stdlib.h.
35272 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
35274         doc: update main copyright year
35275         * doc/gnulib.texi: Update copyright date.
35277         doc: improve ISO 8601 discussion
35278         * doc/parse-datetime.texi (Combined date and time of day items):
35279         Specify more carefully what formats are supported and what is
35280         done with excess precision.
35282 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
35284         doc: avoid small caps
35285         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
35286         they're more trouble than they're worth.  Suggested by Karl Berry
35287         in <http://bugs.gnu.org/13360>.
35289         regex: conform to strict C
35290         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
35291         From Aharon Robbins.
35293         gnulib-tool: fix incompatibility with autopoint 0.18.2
35294         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
35295         Problem reported by Tom G. Christensen in
35296         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
35298 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
35300         fprintftime: bring back and reword fwrite comment
35301         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
35303         stdio: remove now-unnecessary stdio.c
35304         Since stdio.in.h no longer uses inline functions, we no longer
35305         need to compile the extern versions.
35306         * lib/stdio.c: Remove.
35307         * modules/stdio (Files): Remove lib/stdio.c.
35308         (lib_SOURCES): Remove.
35310         unicodeio: depend on stdio, not ignore-value
35311         * lib/unicodeio.c: Do not include ignore-value.h.
35312         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
35313         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
35315         fprintftime: depend on stdio, not ignore-value
35316         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
35317         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
35318         since the stdio module arranges to silence that warning now.
35319         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
35321 2012-10-04  Simon Josefsson  <simon@josefsson.org>
35323         stdint-tests: Fix expanded-before-required-warning.
35324         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
35326 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
35328         fwrite: silence __wur only for older glibc versions
35329         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
35330         This will help us remove this workaround some time in the far future.
35332 2013-01-03  Eric Blake  <eblake@redhat.com>
35334         fwrite: silence __wur without using inline
35335         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
35336         just gcc, and in a way that avoids inline issues.
35337         * modules/stdio (Depends-on): Drop extern-inline.
35339 2013-01-03  Jim Meyering  <jim@meyering.net>
35341         update-copyright: avoid copyright notice date corruption
35342         Given a sequence of copyright year numbers in which the final
35343         one was a two-digit number that happened to be a substring of
35344         a preceding four-digit year number, we would mistakenly update
35345         the substring (from two- to four-digit) rather than the two-digit
35346         number at the end, which, combined with the addition of the current
35347         4-digit year number would yield two 5-digit year numbers, e.g.,
35348         here, it would convert the first "99" to "1999, 2013" rather than
35349         the final one:
35350           1991, 99
35351           11999, 20131, 1999
35352         * build-aux/update-copyright: Tighten a regexp.
35353         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
35354         Reported by Joseph Myers in
35355         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
35357 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
35359         regex: omit needless signed-pointer casts
35360         * lib/regcomp.c (build_charclass, build_charclass_op):
35361         Use char *, not unsigned char *, for class name and extra.
35362         The char values are always nonnegative so there's no need to
35363         insist on unsigned char * here, and using char * removes the need
35364         for casts.  Reported by Aharon Robbins in
35365         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35367         regex: support Gawk, which never uses alloca
35368         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
35369         Do not include in this case.  Gawk doesn't supply a substitute
35370         alloca.h and doesn't need one.
35372         regex: port __libc_lock_define usage to C89
35373         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
35374         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
35375         does not conform to C89, as it has an empty macro argument.
35376         Reported by Aharon Robbins in
35377         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35379 2013-01-01  Eric Blake  <eblake@redhat.com>
35381         maint: update all copyright year number ranges
35382         Run "make update-copyright".
35384         version-etc: bump copyright year reported in --version
35385         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
35387 2012-12-31  Eric Blake  <eblake@redhat.com>
35389         sigprocmask-tests: skip test if pid is unexpectedly large
35390         * tests/test-sigprocmask.c (main): Add range check.
35392         git-version-gen: avoid test -z portability glitch
35393         * build-aux/git-version-gen: Prefer portable test spelling, since
35394         git-version-gen is run on more than just developer machines.
35396 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
35398         git-version-gen: add --fallback option to use if git is not present
35399         * build-aux/git-version-gen: Add support for the new option --fallback,
35400         which comes into play when there is no $tarball_version_file and
35401         git is not working.
35402         (scriptversion): Update.
35404         maint.mk: handle missing git with more grace
35405         * top/maint.mk (no-submodule-changes, public-submodule-commit):
35406         Quietly proceed if git is not present.
35408 2012-12-31  Eric Blake  <eblake@redhat.com>
35410         dup2: work around cygwin bug
35411         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
35412         * lib/dup2.c (rpl_dup2): Work around it.
35413         * doc/posix-functions/dup2.texi (dup2): Document it.
35415 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
35417         regex: remove unnecessary dependency on localcharset.h
35418         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
35419         hasn't been needed for years.
35420         * modules/regex (Depends-on): Remove localcharset.
35422         regex: revert single-byte change
35423         * lib/regexec.c (check_node_accept_bytes): Revert previous change
35424         to this function.  This was alredy fixed in a different way, at
35425         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
35426         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
35427         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
35429         regex: simplify based on Gawk version
35430         * lib/regex_internal.c (re_dfa_add_node): Simplify.
35431         Reported by Aharon Robbins in
35432         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35434 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
35436         regex: check that pattern char is single-byte
35437         Reported by Aharon Robbins in
35438         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35439         * lib/regexec.c (check_node_accept_bytes):
35440         Return 0 if the pattern string has a multibyte character here.
35442         regex: implement rational ranges
35443         Reported by Aharon Robbins in
35444         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35445         * lib/regcomp.c (build_range_exp) [!_LIBC]:
35446         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
35447         Implement rational ranges.
35449         regex: avoid redefining __wctype
35450         Reported by Aharon Robbins in
35451         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35452         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
35453         #undef before defining.
35455         regex: port to hosts where malloc (0) == NULL
35456         Reported by Aharon Robbins in
35457         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35458         * lib/regex_internal.c (re_node_set_alloc):
35459         Don't assume that malloc (0) yields nonnull.
35460         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
35461         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
35462         * modules/regex (Files): Add m4/eealloc.m4.
35464         regex: port to C89
35465         Reported by Aharon Robbins in
35466         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35467         * lib/regcomp.c (init_word_char): Declaration before statement.
35469         regex: merge glibc changes
35470         Also, copy the license wording from glibc.  This simplifies
35471         merging changes.  gnulib-tool will change the wording to GPL as
35472         appropriate, when importing it to other packages.  The only
35473         glibc change made since the last merge, which needs merging, is:
35474         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
35475         * lib/regex_internal.h (gettext): Remove use of INTUSE.
35477         * users.txt: Add Emacs.
35479         doc: omit mention of version when not needed
35480         * doc/gnulib-intro.texi (Portability and Application Code):
35481         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
35482         Don't mention particular dates or versions when not necessary, so
35483         that the documentation won't go out of date so quickly.
35485         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
35487 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
35489         bootstrap: pass --force to autoreconf.
35490         * build-aux/bootstrap (AUTORECONFFLAGS): New.
35491         Add "--force" so that Automake's ylwrap and other such tools
35492         be updated at each bootstrap invocation.
35493         Use it.
35495 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
35497         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
35498         The earlier patch forgot to update one of the #if conditions, causing
35499         a problem on Debian testing i386 reported by Mats Erik Andersson
35500         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
35501         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
35502         (__argp_fmtstream_puts, argp_fmtstream_puts)
35503         (__argp_fmtstream_write, argp_fmtstream_write)
35504         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
35506         * doc/gnulib-readme.texi: Minor fixups.
35507         (Portability guidelines): Modernize URLs.  Remove some repetition.
35508         (Indent with spaces not TABs): Reword to avoid too-long lines.
35509         Remove some '@ifset standalone' stuff that isn't used.
35511         * doc/gnulib-readme.texi (Portability guidelines):
35512         ctype.h, not ctime.h.
35514         Correct name of POSIX.1-2001.
35515         * doc/posix-functions/fgetc.texi (fgetc):
35516         * doc/posix-functions/fgets.texi (fgets):
35517         * doc/posix-functions/fread.texi (fread):
35518         * doc/posix-functions/fscanf.texi (fscanf):
35519         * doc/posix-functions/getc.texi (getc):
35520         * doc/posix-functions/getchar.texi (getchar):
35521         * doc/posix-functions/scanf.texi (scanf):
35522         POSIX.1-2001, not POSIX-2001.
35524         doc: move README into manual
35525         * README: Move contents to new file doc/gnulib-readme.texi.
35526         Replace with a one-line summary.
35527         * doc/gnulib.texi (Brief Overview): New section,
35528         with old intro preface.  Include gnulib-readme.texi for contents.
35529         (Philosophy): Rename from "Introduction", since this
35530         section no longer introduces the rest.  Write a new preface.
35531         * doc/gnulib-readme.texi: New file, with the old contents of
35532         README texinfo-ized.  This way, the README info appears
35533         in the online and printed manual.
35535 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
35537         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
35538         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
35539         c_vasprintf() prototype.
35541 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
35543         c-vasprintf: Fix "empty declaration" warning reported by GCC.
35544         * lib/c-vasprintf.h: Remove stray semicolon.
35546 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
35548         gettext: avoid obsolete macro AM_PROG_MKDIR_P
35549         It is obsolete and is planned to be removed from Automake 1.14; see
35550         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
35551         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
35552         (installdirs-data, installdirs-data-yes):
35553         Use $(MKDIR_P), not $(mkdir_p).
35554         * m4/intl.m4 (AM_INTL_SUBDIR):
35555         * m4/po.m4 (AM_PO_SUBDIRS):
35556         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
35558 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
35560         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
35561         On this platform, we are not optimizing but we are using
35562         the substitute for extern inlines, so compile as if
35563         C99-style extern inline, or a substitute, is available.
35564         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
35565         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
35566         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
35567         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
35568         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
35569         Declare as ARGP_FS_EI, not as extern.
35570         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
35571         (__option_is_short, _option_is_end, __option_is_end)
35572         [!_LIBC && __USE_EXTERN_INLINES]:
35573         Declare as ARGP_EI, not as extern.
35575 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
35577         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
35578         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
35579         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
35580         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
35581         ...), as the latter is fatal with older Autoconfs.
35582         Problem reported and fix suggested by Eric Blake in thread starting at
35583         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
35585 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
35587         AC_PROG_MKDIR_P: don't workaround if not buggy
35588         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
35589         Define only for Autoconf versions before 2.62.
35590         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
35591         undocumented m4_PACKAGE_VERSION, for consistency with the
35592         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
35593         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
35594         was introduced in 2.62.
35596 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
35598         New 'c-*printf' modules for formatted output in C locale.
35600         New module 'c-vasnprintf'.
35601         * modules/c-vasnprintf: New file.
35602         * lib/c-vasnprintf.c: New file.
35603         * lib/c-vasnprintf.h: New file.
35605         New module 'c-snprintf'.
35606         * modules/c-snprintf: New file.
35607         * modules/c-snprintf-tests: New file.
35608         * lib/c-snprintf.c: New file.
35609         * lib/c-snprintf.h: New file.
35610         * tests/test-c-snprintf.c: New file.
35611         * tests/test-c-snprintf.sh: New file.
35613         New module 'c-vsnprintf'.
35614         * modules/c-vsnprintf: New file.
35615         * modules/c-vsnprintf-tests: New file.
35616         * lib/c-vsnprintf.c: New file.
35617         * lib/c-vsnprintf.h: New file.
35618         * tests/test-c-vsnprintf.c: New file.
35619         * tests/test-c-vsnprintf.sh: New file.
35621         New module 'c-vasprintf'.
35622         * modules/c-vasprintf: New file.
35623         * modules/c-vasprintf-tests: New file.
35624         * lib/c-asprintf.c: New file.
35625         * lib/c-vasprintf.c: New file.
35626         * lib/c-vasprintf.h: New file.
35627         * tests/test-c-vasprintf.c  +: New file.
35628         * tests/test-c-vasprintf.sh: New file.
35630         New module 'c-xvasprintf'.
35631         * modules/c-xvasprintf: New file.
35632         * modules/c-xvasprintf-tests: New file.
35633         * lib/c-xasprintf.c: New file.
35634         * lib/c-xvasprintf.c: New file.
35635         * lib/c-xvasprintf.h: New file.
35636         * tests/test-c-xvasprintf.c: New file.
35637         * tests/test-c-xvasprintf.sh: New file.
35639 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
35641         argp: better 'inline'
35642         Use extern-inline module to declare extern inline functions.
35643         This avoids some bogus warning diagnostics.  Problem discovered
35644         when modifying GNU tar to use the manywarnings module.
35645         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
35646         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
35647         Define based on extern-inline.
35648         * modules/argp (Depends-on): Add extern-inline.
35650 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
35652         filemode, sys_stat: Handle MPX files a la AIX.
35653         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
35654         * lib/sys_stat.in.h (S_ISMPX): New macro.
35655         * tests/test-sys_stat.c: Add tests for MPX files.
35657 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
35659         x-to-1: honor $PERL
35660         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
35661         a chance to use his preferred version of Perl.  This is typically
35662         required by Darwin users whose default /usr/bin/perl does not have all
35663         the libraries required by help2man, and who need to use their MacPorts
35664         installation of Perl instead.
35666 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
35668         gnu-web-doc-update: add all the new files, even in new directories
35669         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
35670         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
35671         Use it.
35672         (main): Don't use cvsutils to get the list of unknown files,
35673         just add all the existing files and directories.
35675 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
35677         gnu-web-doc-update: improve --help
35678         * build-aux/gnu-web-doc-update: Move comments into --help.
35680 2012-12-07  Eric Wong  <normalperson@yhbt.net>
35682         mountlist: recognize more "dummy" file systems
35683         * lib/mountlist.c (ME_DUMMY_0):
35684         Add these dummy FS names to the list:
35685         - "debugfs" virtual filesystem for kernel debugging
35686         - "devpts" PTY slave filesystem
35687         - "devtmpfs" device filesystem on top of tmpfs/ramfs
35688         - "fusectl" control filesystem for FUSE
35689         - "mqueue" enumerates POSIX message queues
35690         - "rpc_pipefs" kernel <-> userspace bridge for NFS
35691         - "sysfs" is for exporting kernel objects
35692         - "devfs" device filesystem for Linux 2.4 and FreeBSD
35694 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
35696         extern-inline: avoid incompatibility with Darwin Libc
35697         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
35698         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
35699         Problem reported by Akim Demaille in
35700         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
35702 2012-12-11  Simon Josefsson  <simon@josefsson.org>
35704         gnupload: Work with GnuPG using gpg-agent (for smartcards).
35705         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
35706         let it handle password prompting.
35708 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
35710         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
35711         * lib/canonicalize.c (canonicalize_filename_mode):
35712         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
35713         fetching the current directory.  Don't overrun the beginning of
35714         rpath if there's no slashes after the MS-Windows drive letter.
35716 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
35718         maint.mk: avoid extra forks
35719         * top/maint.mk (_cfg_mk): The GNU make manual documents that
35720         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
35721         So use that instead of "$(shell test -f FILE && echo FILE)".
35723 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
35725         vasnprintf: fix ASCII_ONLY typo
35726         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
35727         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
35728         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
35729         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
35730         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
35732 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
35734         list, oset, xlist, xoset: fix extern inline issue with C99
35735         This was introduced by my recent changes for 'inline'.
35736         Problem reported for gettext by Daiki Ueno in
35737         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
35738         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
35739         (gl_list_nx_create, gl_list_size, gl_list_node_value)
35740         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
35741         (gl_list_previous_node, gl_list_get_at)
35742         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
35743         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
35744         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
35745         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
35746         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
35747         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
35748         (gl_list_iterator_free, gl_sortedlist_search)
35749         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
35750         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
35751         (gl_sortedlist_remove):
35752         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
35753         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
35754         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
35755         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
35756         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
35757         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
35758         (gl_list_add_at, gl_sortedlist_add):
35759         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
35760         Wrap these extern decls inside "#if 0", because they are implemented
35761         as inline functions, and extern inline is not what's wanted here.
35762         It would simplify these .h files to remove the extern decls entirely,
35763         although a downside would be less-clear separation between
35764         specification and implementation.
35766 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
35768         sys_stat: no 'static inline'
35769         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
35770         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
35772         extern-inline: no 'static inline'
35773         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
35774         Do not require AC_C_INLINE.
35775         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
35776         'static inline', for older compilers.
35778         snippet/warn-on-use: no 'static inline'
35779         * build-aux/snippet/warn-on-use.h:
35780         Remove unnecessary 'inline' in comment.
35782         rbtree-list, rbtreehash-list: no 'static inline'
35783         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
35784         * lib/gl_anytree_list2.h (node_at):
35785         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
35786         (gl_oset_first, add_nodes_to_buckets):
35787         Now static, not static inline.
35789         regex: no 'static inline'
35790         * lib/regex_internal.c (calc_state_hash):
35791         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
35792         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
35793         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
35794         Now static, not static inline.
35795         (inline) [__GNUC__ < 3 && _LIBC]:
35796         Remove macro; no longer needed.
35798         xvasprintf: no 'static inline'
35799         * lib/xvasprintf.c (xstrcat):
35800         Now static, not static inline.
35801         * m4/xvasprintf.m4 (gl_XVASPRINTF):
35802         Do not require AC_C_INLINE.
35804         parse-datetime, parse-duration: no 'static inline'
35805         * lib/parse-datetime.y (to_uchar):
35806         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
35807         (scale_n_add):
35808         Now static, not static inline.
35809         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
35810         * modules/parse-duration (configure.ac):
35811         Do not require AC_C_INLINE.
35813         getaddrinfo: no 'static inline'
35814         * lib/getaddrinfo.c (validate_family):
35815         Now static, not static inline.
35816         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
35817         Do not require AC_C_INLINE.
35819         ftruncate, fts, lstat, openat, raise: no 'static inline'
35820         * lib/ftruncate.c (chsize_nothrow):
35821         * lib/fts.c (opendirat, diropen):
35822         * lib/lstat.c (orig_lstat):
35823         * lib/openat.c (orig_openat):
35824         * lib/raise.c (raise_nothrow):
35825         Now static, not static inline.
35826         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
35827         * m4/fts.m4 (gl_FUNC_FTS_CORE):
35828         * m4/lstat.m4 (gl_PREREQ_LSTAT):
35829         * m4/openat.m4 (gl_PREREQ_OPENAT):
35830         * m4/raise.m4 (gl_PREREQ_RAISE):
35831         Do not require AC_C_INLINE.
35833         fflush, stat: no 'static inline'
35834         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
35835         (clear_ungetc_buffer, disable_seek_optimization)
35836         (restore_seek_optimization, update_fpos_cache):
35837         * lib/stat.c (orig_stat):
35838         Now static, not static inline.
35839         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
35840         (update_fpos_cache):
35841         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
35842         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
35843         * m4/stat.m4 (gl_PREREQ_STAT):
35844         Do not require AC_C_INLINE.
35846         error, filevercmp: no 'static inline'
35847         * lib/error.c (is_open, flush_stdout):
35848         * lib/filevercmp.c (order):
35849         Now static, not static inline.
35850         * m4/error.m4 (gl_PREREQ_ERROR):
35851         * modules/filevercmp (configure.ac):
35852         Do not require AC_C_INLINE.
35854         dup, execute, fatal-signal, etc.: no 'static inline'
35855         * lib/dup.c (dup_nothrow):
35856         * lib/execute.c (nonintr_close, nonintr_open):
35857         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
35858         * lib/fopen.c (orig_fopen):
35859         * lib/freadseek.c (freadptrinc):
35860         * lib/freopen.c (orig_freopen):
35861         * lib/fstat.c (orig_fstat, fstat_nothrow):
35862         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
35863         (get_rusage_as_via_iterator):
35864         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
35865         * lib/getdtablesize.c (_setmaxstdio_nothrow):
35866         * lib/isatty.c (_isatty_nothrow):
35867         * lib/open.c (orig_open):
35868         * lib/read.c (read_nothrow):
35869         * lib/sigprocmask.c (signal_nothrow):
35870         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
35871         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
35872         * lib/wait-process.c (unregister_slave_subprocess):
35873         * lib/write.c (write_nothrow):
35874         Now static, not static inline.
35875         * lib/spawn-pipe.c (nonintr_open): Define only if
35876         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
35877         * m4/dup.m4 (gl_PREREQ_DUP):
35878         * m4/execute.m4 (gl_EXECUTE):
35879         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
35880         * m4/fopen.m4 (gl_PREREQ_FOPEN):
35881         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
35882         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
35883         * m4/fstat.m4 (gl_PREREQ_FSTAT):
35884         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
35885         * m4/isatty.m4 (gl_PREREQ_ISATTY):
35886         * m4/open.m4 (gl_PREREQ_OPEN):
35887         * m4/read.m4 (gl_PREREQ_READ):
35888         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
35889         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
35890         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
35891         * m4/wait-process.m4 (gl_WAIT_PROCESS):
35892         * m4/write.m4 (gl_PREREQ_WRITE):
35893         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
35894         Do not require AC_C_INLINE.
35896         c-strtod, memcoll, readutmp: no 'static inline'
35897         * lib/c-strtod.c (c_locale):
35898         * lib/memcoll.c (strcoll_loop):
35899         * lib/readutmp.c (desirable_utmp_entry):
35900         Now static, not static inline.
35901         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
35902         * m4/memcoll.m4 (gl_MEMCOLL):
35903         * m4/readutmp.m4 (gl_READUTMP):
35904         Do not require AC_C_INLINE.
35906         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
35907         * lib/arctwo.c (to_uchar):
35908         * lib/md4.c (set_uint32):
35909         * lib/md5.c (set_uint32):
35910         * lib/sha1.c (set_uint32):
35911         * lib/sha256.c (set_uint32):
35912         * lib/sha512.c (set_uint64):
35913         Now static, not static inline.  This is a bit simpler, and doesn't
35914         affect performance with GCC and default optimization.
35915         * m4/arctwo.m4 (gl_ARCTWO):
35916         * m4/md4.m4 (gl_MD4):
35917         * m4/md5.m4 (gl_MD5):
35918         * m4/sha1.m4 (gl_SHA1):
35919         * m4/sha256.m4 (gl_SHA256):
35920         * m4/sha512.m4 (gl_SHA512):
35921         Do not require AC_C_INLINE.
35923         cond, lock, thread: better 'inline'
35924         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
35925         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
35926         New macros.  Use them instead of static inline, for header functions.
35927         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
35928         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
35929         * lib/glthread/lock.c (gl_waitqueue_init)
35930         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
35931         * lib/glthread/thread.c (get_current_thread_handle):
35932         Change 'static inline' to 'inline'.
35933         * lib/glthread/cond.h, lib/glthread/thread.h:
35934         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35935         * m4/cond.m4 (gl_COND):
35936         * m4/lock.m4 (gl_PREREQ_LOCK):
35937         * m4/thread.m4 (gl_THREAD):
35938         Do not require AC_C_INLINE.
35939         * modules/cond, modules/thread (Depends-on): Add extern-inline.
35941         chdir-long, cycle-check, savewd: better 'inline'
35942         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
35943         (find_non_slash):
35944         * lib/cycle-check.c (is_zero_or_power_of_two):
35945         * lib/savewd.c (savewd_delegating):
35946         Change 'static inline' to 'inline'.
35947         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
35948         Replace all remaining uses of 'static inline' with it.
35949         * lib/savewd.h:
35950         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35951         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
35952         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
35953         * m4/savewd.m4 (gl_SAVEWD):
35954         Do not require AC_C_INLINE.
35955         * modules/savewd (Depends-on): Add extern-inline.
35957         base32, base64: no need for 'inline'
35958         * lib/base32.c (to_uchar, get_8, decode_8):
35959         * lib/base64.c (to_uchar, get_4, decode_4):
35960         Change 'static inline' to 'inline'.
35961         * m4/base32.m4 (gl_PREREQ_BASE32):
35962         * m4/base64.m4 (gl_PREREQ_BASE64):
35963         Do not require AC_C_INLINE.
35965         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
35966         * lib/gl_array_oset.c (gl_array_nx_add_at):
35967         (gl_array_remove_at):
35968         * lib/gl_linkedhash_list.c (hash_resize_after_add)
35969         (add_to_bucket, remove_from_bucket):
35970         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
35971         Change 'static inline' to 'static', as it's simpler to omit
35972         'inline' unless there's a significant performance advantage.
35974         list, oset, xlist, xoset, xsublist: simplify via extern inline
35975         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
35976         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
35977         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
35978         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
35979         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
35980         New macro.  Replace all uses of 'static inline' with it.
35981         [HAVE_INLINE]: Implement functions as *_INLINE functions,
35982         instead of as macros FOO that are defined to static inline
35983         functions FOO_inline.
35984         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
35985         * lib/gl_xsublist.c:
35986         Reimplement from scratch, by defining the corresponding *_INLINE
35987         macro and including the corresponding .h file.  This is simpler.
35988         * modules/list, modules/oset, modules/xlist, modules/xoset:
35989         (Files): Remove m4/gl_list.m4.
35990         (configure.ac): Remove gl_LIST.
35991         * m4/gl_list.m4: Remove.
35992         * modules/list, modules/oset, modules/xlist, modules/xoset:
35993         * modules/xsublist:
35994         (Depends-on): Depend on extern-inline, not inline.
35996         xalloc: better 'inline'
35997         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
35998         New macro.  Replace all uses of 'static inline' with it.
35999         (static_inline): Remove.
36000         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
36001         Let 'extern inline' do the work automatically, instead of doing
36002         it by hand.
36003         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
36004         Remove.  All uses removed.
36005         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
36007         gethrxtime: better 'inline'
36008         * lib/xtime.c: New file.
36009         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
36010         * lib/xtime.h (XTIME_INCLUDE):
36011         New macros.  Replace all uses of 'static inline' with them.
36012         * lib/gethrxtime.c (gethrxtime): Define only if
36013         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
36014         this source file is now always compiled, because of the extern inline.
36015         * lib/gethrxtime.h, lib/xtime.h:
36016         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36017         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
36018         if gethrtime works, as they're not needed in that case.
36019         (gl_XTIME): Do not require AC_C_INLINE.
36020         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
36021         compiled now.  Move the check into gl_GETHRXTIME.
36022         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
36023         (Depends-on): Add extern-inline.
36024         (configure.ac): gethrxtime is always compiled now.
36025         (lib_SOURCES): Add gethrxtime.c.
36027         wctype-h: better 'inline'
36028         * lib/wctype-h.c: New file.
36029         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
36030         New macro.  Replace all uses of 'static inline' with it.
36031         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36032         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
36033         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
36034         (Depends-on): Add extern-inline.
36036         unistd: better 'inline'
36037         * lib/unistd.c: New file.
36038         * lib/unistd.in.h (_GL_UNISTD_INLINE):
36039         New macro.  Replace all uses of 'static inline' with it.
36040         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36041         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
36042         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
36043         (Depends-on): Add extern-inline.
36045         sys_socket: better 'inline'
36046         * lib/sys_socket.c: New file.
36047         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
36048         New macro.  Replace all uses of 'static inline' with it.
36049         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36050         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
36051         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
36052         (Depends-on): Add extern-inline.
36054         stdio: better 'inline'
36055         * lib/stdio.c: New file.
36056         * lib/stdio.in.h (_GL_STDIO_INLINE):
36057         New macro.  Replace all uses of 'static inline' with it.
36058         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36059         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
36060         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
36061         (Depends-on): Add extern-inline.
36063         sigaction: better 'inline'
36064         * lib/sig-handler.c: New file.
36065         * lib/sig-handler.h (SIG_HANDLER_INLINE):
36066         New macro.  Replace all uses of 'static inline' with it.
36067         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36068         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
36069         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
36070         (Depends-on): Add extern-inline.
36072         selinux-h: better 'inline'
36073         * lib/se-context.c, lib/se-selinux.c: New files.
36074         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
36075         * lib/se-context.in.h (SE_CONTEXT_INLINE):
36076         New macro.  Replace all uses of 'static inline' with it.
36077         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36078         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
36079         New macro.  Replace all uses of 'static inline' with it.
36080         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36081         * modules/selinux-h (Files, lib_SOURCES):
36082         Add lib/se-context.c, lib/se-selinux.c.
36083         (Depends-on): Add extern-inline.
36084         (configure.ac): Do not require AC_C_INLINE.
36086         pthread: better 'inline'
36087         * lib/pthread.c: New file.
36088         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
36089         New macro.  Replace all uses of 'static inline' with it.
36090         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36091         * m4/pthread.m4 (gl_PTHREAD_CHECK):
36092         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
36093         * modules/pthread (Files): Add lib/pthread.c.
36094         (Depends-on): Add extern-inline.
36096         math: better 'inline'
36097         * lib/math.c: New file.
36098         * lib/math.in.h (_GL_MATH_INLINE):
36099         New macro.  Replace all uses of 'static inline' with it.
36100         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36101         * m4/math_h.m4 (gl_MATH_H):
36102         Do not require AC_C_INLINE.
36103         * modules/math (Files, lib_SOURCES):
36104         Add lib/math.c.
36105         (Depends-on): Add extern-inline.
36107         count-one-bits: better 'inline'
36108         * lib/count-one-bits.c: New file.
36109         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
36110         New macro.  Replace all uses of 'static inline' with it.
36111         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36112         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
36113         Do not require AC_C_INLINE.
36114         * modules/count-one-bits (Files, lib_SOURCES):
36115         Add lib/count-one-bits.c.
36116         (Depends-on): Add extern-inline.
36118         count-leading-zeros: better 'inline'
36119         * lib/count-leading-zeros.c: New file.
36120         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
36121         New macro.  Replace all uses of 'static inline' with it.
36122         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36123         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
36124         Do not require AC_C_INLINE.
36125         * modules/count-leading-zeros (Files, lib_SOURCES):
36126         Add lib/count-leading-zeros.c.
36127         (Depends-on): Add extern-inline.
36129         bitrotate: better 'inline'
36130         * lib/bitrotate.c: New file.
36131         * lib/bitrotate.h (BITROTATE_INLINE):
36132         New macros.
36133         Replace all uses of 'static inline' with them.
36134         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36135         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
36136         (Depends-on): Add extern-inline.
36137         (configure.ac): Do not require AC_C_INLINE.
36139 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
36141         maint.mk: avoid gratuitous failure
36142         Reported by Stefano Lattarini in
36143         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
36144         * top/maint.mk (public-submodule-commit): Quote more safely.
36146 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
36148         canonicalize, canonicalize-lgpl: support MS-Windows file names
36149         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
36150         for test cases, which it'd be nice to add at some point.
36151         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
36152         * lib/canonicalize.c (canonicalize_filename_mode):
36153         * lib/canonicalize-lgpl.c (__realpath):
36154         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
36155         slash is at the beginning of the file name.  Use ISSLASH, instead
36156         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
36157         the first character with '/'.  Test for
36158         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
36159         with a drive letter.
36160         * lib/canonicalize.c (SLASHES): New macro.
36161         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
36163 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
36165         fts: introduce FTS_VERBATIM
36166         * lib/fts_.h (FTS_VERBATIM): New bit flag.
36167         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
36168         * lib/fts.c (fts_open): Honor it.
36170 2012-11-09  Pádraig Brady  <P@draigBrady.com>
36172         getlogin-tests: allow errno == ENXIO
36173         * tests/test-getlogin.c (main): Skip tests if getlogin fails
36174         with errno == ENXIO (No controlling tty).
36175         getlogin_r-tests: Likewise. Also allow errno == ENOENT
36176         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
36177         with errno == ENOENT.  This was reported to happen in various
36178         situations on GNU/Linux.
36180 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
36182         getlogin-tests: allow errno == ENOENT
36183         * tests/test-getlogin.c (main): Skip tests if getlogin fails
36184         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
36185         when running a test in an Emacs shell buffer.
36187 2012-11-08  Jim Meyering  <jim@meyering.net>
36189         tests/nap.h: avoid warning about unused variable
36190         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
36192         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
36193         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
36194         white space before each of the special-cased file names, to avoid
36195         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
36196         in http://bugs.gnu.org/12830.
36198 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
36200         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
36201         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
36202         fails with errno == EBADF when fd is opened with O_PATH.
36203         Reported by Jim Meyering in
36204         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
36205         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
36206         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
36208 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
36210         test-utimens: speed up by taking shorter naps
36211         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
36212         New functions.
36213         (nap): Use them, to do a better job of guessing the delay.
36214         On Fedora 17 with ext4 atop md atop hard disks, this made
36215         test-utimens run 10x faster, because the test napped for
36216         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
36217         <http://bugs.gnu.org/12820#11>.
36219 2012-11-07  Jim Meyering  <jim@meyering.net>
36221         mountlist.c: fix a compilation failure
36222         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
36223         I introduced while transforming commit v0.0-7683-g613bcb6
36225 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
36227         errno: port to LynxOS 178 2.2.2
36228         Problem reported by Joel Brobecker in
36229         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
36230         * doc/posix-headers/errno.texi (errno.h): Document this.
36231         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
36232         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
36233         Supply a string for EILSEQ.
36234         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
36236 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
36238         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
36239         Linux kernel 2.6.39 introduced O_PATH (see
36240         <http://lwn.net/Articles/433854/>) and this is a better fallback
36241         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
36242         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
36243         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
36244         * lib/fcntl.in.h (O_ACCMODE):
36245         * tests/test-fcntl-h.c (main):
36246         Do not reject O_ACCMODE merely because it has more than the
36247         minimal number of bits, as POSIX allows extensions here.
36249 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
36251         mountlist: do not classify a bind-mounted dir entry as "dummy"
36252         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
36253         the "none"-testing clause.
36254         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
36255         exception for bind-mounted directories.
36257 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
36259         quote: provide a means to escape strings with nul characters
36260         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
36261         (quote, quote_n): Rename formal arguments for consistency with
36262         quotearg.
36264 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
36266         test-raise: don't assume 199 is an invalid signal
36267         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
36269         sh-quote-tests: port to Solaris 9
36270         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
36271         Problem reported by Dagobert Michelsen in
36272         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
36274 2012-10-28  Jim Meyering  <jim@meyering.net>
36276         maint.mk: rename a new configurable variable
36277         * top/maint.mk (_gl_translatable_string_re): Rename from
36278         translation-markers: _gl_ prefix to insulate from user Makefile code,
36279         and the _re suffix to inform that it's a regular expression.
36281 2012-10-26  Eric Blake  <eblake@redhat.com>
36283         maint.mk: let packages tweak sc_po_check pattern
36284         * top/maint.mk (sc_po_check): Add translation-markers, to allow
36285         finding files with other translation markers.
36287 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36289         euidaccess: speed up 'configure' on GNU hosts
36290         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
36291         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
36292         it's needed only in this case.  Use AC_CHECK_DECLS, not
36293         AC_CHECK_DECLS_ONCE.
36294         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
36295         or AC_REQUIRE for AC_FUNC_GETGROUPS.
36297         * lib/regexec.c (re_search_internal): Fix grammar in comment.
36299 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
36301         fchmodat, fchownat, fstatat: port to non-inlining compilers
36302         Problem reported for FreeBSD 9 by Jim Meyering in
36303         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
36304         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
36305         New files, which define FCHMODAT_INLINE etc.
36306         * lib/fchmodat.c (FCHMODAT_INLINE):
36307         * lib/fchownat.c (FCHOWNAT_INLINE):
36308         * lib/fstatat.c (FSTATAT_INLINE):
36309         Remove, as chmodat.c etc. now do this.
36310         * modules/fchmodat (Files): Add lib/chmodat.c.
36311         * modules/fchownat (Files): Add lib/chownat.c.
36312         * modules/fstatat (Files): Add lib/statat.c.
36314 2012-10-15  Jim Meyering  <jim@meyering.net>
36316         fchmodat.c, fchownat.c: compile-impeding typos
36317         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
36318         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
36319         Introduced in commit v0.0-7636-gd202279.
36321 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
36323         fcntl-h: support GNU flags like O_IGNORE_CTTY
36324         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
36325         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
36326         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
36327         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
36328         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
36329         Define to 0 if not already defined.
36330         * tests/test-fcntl-h.c: Test these new flags.
36332 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
36334         faccessat, etc.: support AT_FDCWD-only use
36335         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
36336         this function only if its first argument is AT_FDCWD.
36337         Emacs wants faccessat for AT_EACCESS but not for any first-arg
36338         values other than AT_FDCWD, so it doesn't want all the openat
36339         machinery with fchdir etc.
36340         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
36341         * modules/fstatat, modules/mkdirat, modules/openat (Files):
36342         * modules/unlinkat (Files):
36343         Remove lib/openat-priv.h, as at-internal supplies this file.
36344         Removing this file here allows us to support programs like Emacs
36345         that avoid at-internal.
36347         faccessat: speed up 'configure' on mainstream hosts
36348         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
36349         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
36350         since it's only on unusual platforms that we need to check for
36351         'access', and it's better not to slow 'configure' down on all
36352         platforms.
36354         faccessat: port to Solaris 10
36355         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
36356         Needed on Solaris 10, which doesn't have AT_EACCESS,
36357         so we need the Gnulib fcntl.h, which defines it.
36359 2012-10-14  Pádraig Brady  <P@draigBrady.com>
36360         canonicalize: fix C89 compilation
36361         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
36362         declarations so C89 is supported.  Also remove the comment
36363         referencing memorty allocation as the suggested feature could
36364         not be implemented as suggested.
36365         Reported by Michael Goffioul.
36367 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
36369         group-member: omit unnecessary dependencies
36370         This is for Emacs, which has its own allocator and where we
36371         don't want to use xalloc.
36372         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
36373         since we no longer use xmalloc.  Do not include stdbool.h, since
36374         the changes below happen to remove the only use of bool.
36375         (GROUPBUF_SIZE): New constant.
36376         (struct group_info): Remove n_groups member.  Add groupbuf member.
36377         This lets us get the groups without using malloc, usually.
36378         (free_group_info, get_group_info): Adjust to this.
36379         (get_group_info): Return the number of groups found, or -1 on error.
36380         Use plain malloc not xmalloc, and treat its failure as if there
36381         are no groups, as the user already loses in case of error.
36382         (group_member): Simplify, based on changes to get_group_info.
36383         * modules/group-member (Depends-on): Remove dependencies on
36384         xalloc and stdbool.  Add dependency on xalloc-oversized.
36386 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
36388         gethrxtime: port to C++
36389         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
36391 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
36393         ptsname: fix macro-name typo
36394         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
36396 2012-10-03  Simon Josefsson  <simon@josefsson.org>
36398         inttostr: Relax license.
36399         * modules/inttostr (License): Change from LGPL to LGPLv2+.
36401 2012-10-03  Eric Blake  <eblake@redhat.com>
36403         ptsname_r: support ptys returned by FreeBSD posix_openpt
36404         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
36405         lives in /dev/pts/.
36407 2012-10-02  Eric Blake  <eblake@redhat.com>
36409         pselect: reject invalid file descriptors
36410         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
36411         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
36412         * modules/pselect (Depends-on): Add dup2.
36413         * doc/posix-functions/pselect.texi (pselect): Document this.
36415         select: reject invalid file descriptors
36416         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
36417         * lib/select.c (rpl_select) [!win32]: Work around it.
36418         * modules/select (Depends-on): Add dup2.
36419         * doc/posix-functions/select.texi (select): Document this.
36421         select: enhance test
36422         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
36423         New functions.
36424         (test_function): Enhance test.
36425         (do_select_bad_fd): Avoid any stale errno values.
36427         ptsname: reject invalid file descriptors
36428         http://www.austingroupbugs.net/view.php?id=503
36429         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
36430         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
36431         * modules/stdlib (Makefile.am): Replace witness.
36432         * lib/stdlib.in.h (ptsname): Allow for replacement.
36433         * modules/ptsname (configure.ac): Trigger replacement.
36434         * doc/posix-functions/ptsname.texi (ptsname): Document this.
36436 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
36438         hash-pjw-bare: new module
36439         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
36440         * lib/hash-pjw-bare.h: Likewise.
36441         * modules/hash-pjw-bare: New file.
36442         * MODULES.html.sh (Misc): Add it.
36444 2012-10-02  Eric Blake  <eblake@redhat.com>
36446         manywarnings: cater to more gcc infelicities
36447         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
36448         -Wuninitialized without -O.
36450 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
36452         select, poll tests: Make setsockopt invocation effective.
36453         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
36454         the bind() call.
36455         * tests/test-select.h (open_server_socket): Likewise.
36457 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
36459         sockets, sys_stat: restore AC_C_INLINE
36460         This undoes the 2012-09-22 patch.
36461         * m4/sockets.m4 (gl_SOCKETS):
36462         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
36463         Restore AC_C_INLINE, since MSVC requires __inline or _inline
36464         and does not support plain 'inline'.  Reported by Bruno Haible in
36465         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
36467 2012-09-30  Bruno Haible  <bruno@clisp.org>
36469         localeconv tests: Avoid test failure on OpenIndiana.
36470         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
36471         skip the 'grouping' and 'mon_grouping' tests.
36472         Reported by Jim Meyering.
36474 2012-09-30  Bruno Haible  <bruno@clisp.org>
36476         havelib: Follow libtool developments.
36477         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
36478         Suggested by Simon Josefsson.
36480 2012-09-29  Jim Meyering  <meyering@redhat.com>
36482         fstatat.c: fix a compile-impeding typo
36483         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
36484         Introduced in commit v0.0-7636-gd202279.
36485         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
36487 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
36489         extern-inline: provide a -Wundef safe config.h
36490         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
36491         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
36492         to produce a -Wundef warning free config.h.
36494 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
36496         hash-pjw: relax license to LGPLv2+
36497         * modules/hash-pjw (License): Relax, with consent of author.
36499 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
36501         maint.mk: fix strict vs. lazy variable issues with RELEASE
36502         * top/maint.mk (_equal): New function.
36503         (member_check): Strip the result to avoid spurious spaces.
36504         (url_dir_list): Do not use ifeq, which is strict, as it will
36505         require RELEASE_TYPE to be defined.
36506         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
36507         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
36508         (announcement_Cc_alpha,announcement_mail_headers_alpha)
36509         (announcement_Cc_beta,announcement_mail_headers_beta)
36510         (announcement_Cc_stable,announcement_mail_headers_stable): these.
36511         (release): Do not depend on $(release-type), as it forces its
36512         evaluation.  Bounce to it.
36514 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
36516         maint.mk: formatting changes
36517         * top/maint.mk: Indent bodies of if's.
36519 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
36521         maint.mk: factor the validation of RELEASE_TYPE
36522         With help from Jim Meyering.
36523         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
36524         * top/maint.mk (_empty, _sp): Move their definition earlier.
36525         (member-check, release-type): New.
36526         Use the latter instead of $(RELEASE_TYPE).
36527         Remove now useless local checks.
36529 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
36531         maint.mk: provide "make upload" to ease uploading
36532         See
36533         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
36534         Do not depend simply on the current $(VERSION), as there may have been
36535         new commits since the tarball generation.  Rather, rely on $(RELEASE),
36536         as "make release-commit" already does.
36538         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
36539         "make TYPE".
36541         * top/maint.mk (upload_command, upload, release): New.
36542         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
36543         (VERSION): first word of $(RELEASE) is always right.
36544         (emit_upload_commands): Adjust.
36545         * top/README-release: Update.
36547 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
36549         maint.mk: silent rules
36550         With help from Stefano Lattarini.
36551         * top/maint.mk (writable-files): Use $(AM_V_GEN).
36552         (announcement): Use $(AM_V_at).
36554 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
36556         localename: port gl_locale_name_thread_unsafe to FreeBSD
36557         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
36558         and use the simpler FreeBSD implementation on Mac OS X as well.
36559         Original idea suggested by Ed Maste in
36560         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
36562 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
36564         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
36565         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
36566         * lib/mbuiter.c, lib/xsize.c: New files.
36567         * lib/binary-io.h (BINARY_IO_INLINE):
36568         * lib/eealloc.h (EEALLOC_INLINE):
36569         * lib/mbfile.h (MBFILE_INLINE):
36570         * lib/mbiter.h (MBITER_INLINE):
36571         * lib/mbuiter.h (MBUITER_INLINE):
36572         * lib/xsize.h (XSIZE_INLINE):
36573         New macros.
36574         Replace all uses of 'static inline' with them.
36575         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36576         * m4/eealloc.m4 (gl_EEALLOC):
36577         * m4/mbfile.m4 (gl_MBFILE):
36578         * m4/mbiter.m4 (gl_MBITER):
36579         * m4/xsize.m4 (gl_XSIZE):
36580         Do not require AC_C_INLINE.
36581         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
36582         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
36583         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
36584         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
36585         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
36586         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
36587         * modules/binary-io, modules/eealloc, modules/mbfile:
36588         * modules/mbiter, modules/mbuiter:
36589         (Depends-on): Add extern-inline.
36591         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
36592         * lib/pipe-filter-aux.c: New file.
36593         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
36594         Replace all uses of 'static inline' with it.
36595         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36596         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
36597         (filter_retcode): No real need for inline here.
36598         * modules/pipe-filter-gi, modules/pipe-filter-ii:
36599         (Files): Add lib/pipe-filter-aux.c.
36600         (Depends-on): Add extern-inline.
36601         (configure.ac): Do not require AC_C_INLINE.
36602         (lib_SOURCES): Add pipe-filter-aux.c.
36604         fdutimensat: omit unnecessary AC_C_INLINE
36605         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
36607         fchmodat, fchownat, fstatat: use extern-inline
36608         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
36609         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
36610         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
36611         New macros.
36612         * lib/openat.h:
36613         Replace all uses of 'static inline' with them.
36614         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36615         * modules/fchmodat, modules/fchownat, modules/fstatat:
36616         * modules/openat-h:
36617         (Depends-on):
36618         Add extern-inline.
36619         (configure.ac): Remove AC_C_INLINE.
36621         acl, mbchar, priv-set: use extern-inline
36622         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
36623         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
36624         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
36625         New macros.
36626         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
36627         Replace all uses of 'static inline' with it.
36628         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36629         * m4/acl.m4 (gl_FUNC_ACL):
36630         * m4/mbchar.m4 (gl_MBCHAR):
36631         * m4/priv-set.m4 (gl_PRIV_SET):
36632         Remove AC_C_INLINE, since 'inline' is no longer used directly.
36633         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
36634         Add extern-inline.
36636         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
36637         * m4/sockets.m4 (gl_SOCKETS):
36638         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
36639         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
36640         environments where it's already guaranteed to work, so we needn't
36641         check for it at 'configure'-time.
36643         tls-tests: omit unnecessary 'inline'
36644         * tests/test-tls.c (perhaps_yield): No longer inline.
36645         Simplicity and portability trump efficiency in test cases.
36647         utimens-tests: avoid unnecessary 'inline'
36648         * modules/fdutimensat-tests (configure.ac):
36649         * modules/futimens-tests (configure.ac):
36650         * modules/utimens-tests (configure.ac):
36651         * modules/utimensat-tests (configure.ac):
36652         Remove AC_C_INLINE.
36653         * tests/test-utimens-common.h (ctime_compare):
36654         No longer inline.  Simplicity and portability trump efficiency here.
36656         misc: don't limit commentary to inline functions
36657         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
36658         * lib/xalloc-oversized.h, lib/xsize.h:
36659         Contrast macros to functions in general, not just to inline functions,
36660         when the commentary does not apply only to inline functions.
36662 2012-09-20  Jim Meyering  <meyering@redhat.com>
36664         non-recursive-gnulib-prefix-hack: new module
36665         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
36666         the file that originated in Bison.
36667         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
36668         largely copied from a snippet that resided in bison's configure.ac.
36669         * modules/non-recursive-gnulib-prefix-hack: New file.
36670         * MODULES.html.sh (Support for maintaining and releasing projects):
36671         Add it.
36673 2012-09-18  Jim Meyering  <meyering@redhat.com>
36675         maint.mk: generalize _gl_tight_scope for non-recursive make
36676         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
36677         that *.h would describe additional .h files in the directory
36678         specified by $(_gl_TS_dir).  I.e., add this...
36679         (_gl_TS_other_headers): New variable.
36681         maint.mk: exempt trailing blanks found in "binary" files
36682         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
36683         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
36684         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
36686 2012-09-17  Jim Meyering  <meyering@redhat.com>
36688         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
36689         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
36690         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
36691         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
36693 2012-09-17  Jim Meyering  <meyering@redhat.com>
36695         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
36696         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
36697         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
36698         It is not in the same category as "exit (0)" or "exit (1)", and
36699         besides, I know of no symbolic name for that 77.  Reported by
36700         Richard W.M. Jones in
36701         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
36703 2012-09-17  Jim Meyering  <meyering@redhat.com>
36705         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
36706         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
36707         all uses of #define, not just those that start in column 1.
36708         Richard W.M. Jones reported a false positive in
36709         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
36711 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
36713         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
36714         * lib/localcharset.c (locale_charset) [DARWIN7]:
36715         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
36716         as these two values are incompatible.  Problem reported by Max Horn.
36717         For more discussion, please see
36718         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
36720         doc: document sticky-EOF issue
36721         * doc/posix-functions/fgetc.texi (fgetc):
36722         * doc/posix-functions/fgets.texi (fgets):
36723         * doc/posix-functions/fread.texi (fread):
36724         * doc/posix-functions/fscanf.texi (fscanf):
36725         * doc/posix-functions/getc.texi (getc):
36726         * doc/posix-functions/getchar.texi (getchar):
36727         * doc/posix-functions/scanf.texi (scanf):
36728         Mention that glibc and default Solaris do not conform to
36729         C99 and POSIX-2001 or later, with respect to how getchar
36730         etc. behave when feof reports nonzero.
36732 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
36734         poll: fix poll(0, NULL, msec)
36735         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
36736         but nfd is 0.  In that case poll should behave like select.
36738 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
36739             Paolo Bonzini  <bonzini@gnu.org>
36741         poll: fix for systems that can't recv() on a non-socket
36742         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
36743         is readable.  In this case POLLHUP will not be supported.
36744         * doc/posix-functions/poll.texi: Document this.
36746 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
36748         poll/select: document portability problems not fixed by Gnulib.
36749         * doc/posix-functions/poll.texi: poll does not work well on
36750         pipes under Windows.  It has the same limitations as select on
36751         BeOS.
36752         * doc/posix-functions/select.texi: select does not work well
36753         on pipes under Windows.
36755 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
36757         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
36758         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
36759         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
36760         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
36762 2012-09-06  Eric Blake  <eblake@redhat.com>
36764         net_if: give more details about the bug being fixed
36765         * doc/posix-headers/net_if.texi: Add clarification.
36767 2012-09-05  Eric Blake  <eblake@redhat.com>
36769         net_if: new module
36770         * modules/net_if: New module, borrowing ideas from netinet_in.
36771         * m4/net_if_h.m4: New file.
36772         * lib/net_if.in.h: Likewise.
36773         * doc/posix-headers/net_if.texi (net/if.h): Document it.
36774         * MODULES.html.sh (lacking POSIX:2008): Likewise.
36775         * tests/test-net_if.c: Make function checks conditional.
36776         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
36778 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
36780         readutmp: fix non-portable UT_PID use
36781         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
36782         Use `UT_PID (u) > 0' as absolute condition.
36784 2012-09-04  Jim Meyering  <meyering@redhat.com>
36786         fts: reduce two or more trailing spaces to just one, usually
36787         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
36788         or more slashes, trim all but the final one.  But if a name consists
36789         solely of two slashes, don't modify it.  If it consists solely of
36790         three or more slashes, strip all but one.
36792         This is part of the solution to a minor problem with rm:
36793         it would print a bogus ELOOP diagnostic when failing to remove
36794         the slash-decorated name of a symlink-to-directory:
36796             $ mkdir d && ln -s d s && env rm -r s/
36797             rm: cannot remove 's': Too many levels of symbolic links
36799         With the change below and a trivial don't-trim-trailing-slashes
36800         adjustment to remove.c, it does this:
36802             $ env rm -r s/
36803             rm: cannot remove 's/': Not a directory
36805         Improved by: Eric Blake
36807         fts: when there is no risk of overlap, use memcpy, not memmove
36808         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
36810 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
36812         stdbool: be more compatible with mixed C/C++ compiles
36813         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
36814         Define to bool, true, false, respectively, as GCC's builtin
36815         stdbool.h does.  Problem reported by Michael Goffioul in
36816         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
36818 2012-08-28  Jim Meyering  <meyering@redhat.com>
36820         revert last change: it was not needed
36821         * tests/test-vc-list-files-git.sh: There's already a test for
36822         a working git, just below.
36824 2012-08-28  Jim Meyering  <meyering@redhat.com>
36826         tests: test-vc-list-files-git.sh: skip if git is not available
36827         * tests/test-vc-list-files-git.sh: Skip this test when git is
36828         not available.
36830 2012-08-26  Bruno Haible  <bruno@clisp.org>
36832         gnulib-tool: Remove no-op option --no-changelog.
36833         * gnulib-tool (func_usage): Don't mention --no-changelog.
36834         (do_changelog): Remove variable.
36835         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36837 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36839         doc: remove fdl-1.2.texi
36840         It is no longer used or maintained, and its use of @acronym
36841         is problematic.  See the thread containing
36842         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
36843         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
36844         * doc/old-licenses/fdl-1.2.texi: Remove.
36846         execinfo: port to FreeBSD
36847         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
36848         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
36849         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
36850         * modules/execinfo (Link): Add $(LIB_EXECINFO).
36852 2012-08-23  Jim Meyering  <meyering@redhat.com>
36854         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
36855         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
36856         to placate gcc's -Wold-style-declaration.
36858 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36860         doc: do not use @acronym
36861         * doc/inet_ntoa.texi (inet_ntoa):
36862         * doc/parse-datetime.texi (Seconds since the Epoch)
36863         (Specifying time zone rules):
36864         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
36865         Don't use @acronym.  Problem reported by John Darlington in
36866         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
36868 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
36870         stdnoreturn: port to newer GCCs
36871         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
36872         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
36873         Problem reported by Jim Meyering in
36874         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
36875         Also, rename the 'test' function to a void a clash with the
36876         already-supplied 'main' function; this fixes a bug that incorrectly
36877         rejected GCC 4.7.1's <stdnoreturn.h>.
36878         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
36879         Document GCC problem.
36881 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
36883         pipe-filter: fix comment typo
36884         * lib/pipe-filter.h: Mention correct function.
36886 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
36888         execinfo: new module
36889         This is for Emacs.  Currently, it provides a no-effect stub
36890         on all platforms where it does not already work.
36891         It already works on glibc-based systems, and on Solaris 11.
36892         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
36893         New files.
36894         * doc/glibc-headers/execinfo.texi (execinfo.h):
36895         * MODULES.html.sh (Misc): Document it.
36897 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
36899         extern-inline: support old GCC 'inline'
36900         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
36901         if available.  This applies to GCC versions 2.7 through 4.2, or
36902         when newer GCC is using -fgnu89-inline.  The goal is to address
36903         some of the performance issues mentioned by Bruno Haible in
36904         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
36906 2012-08-20  Eric Blake  <eblake@redhat.com>
36908         maint.mk: avoid redundant file name in message
36909         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
36910         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
36911         (sc_makefile_path_separator_check): Remove bogus $(ME).
36913 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
36915         timer-time: fix link order when static linking on glibc
36916         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
36917         _after_ -lrt so that it's significant.
36919 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
36921         timespec: omit unnecessary AC_C_INLINE
36922         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
36924         stat-time: omit unnecessary AC_C_INLINE
36925         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
36926         Do not require AC_C_INLINE.
36928         ignore-value: omit unnecessary AC_C_INLINE
36929         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
36931         sys_select: avoid 'static inline'
36932         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
36934         mktime: avoid 'static inline'
36935         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
36936         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
36938 2012-08-19  Bruno Haible  <bruno@clisp.org>
36940         gnulib-tool: Improve coding style.
36941         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
36942         func_emit_lib_Makefile_am.
36943         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36945 2012-08-19  Bruno Haible  <bruno@clisp.org>
36947         gnulib-tool: Fix indentation.
36948         * gnulib-tool (func_import): Fix indentation.
36950 2012-08-19  Bruno Haible  <bruno@clisp.org>
36952         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
36953         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
36954         on the list of removed files.
36956 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
36958         test-parse-datetime: avoid glibc leap-second glitch
36959         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
36960         with the 2012 rules.  Problem reported by Bruce Dubbs in
36961         <http://bugs.gnu.org/12206>.
36963 2012-08-14  Bruno Haible  <bruno@clisp.org>
36965         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
36966         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
36967         from argument.
36968         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36970 2012-08-14  Eric Blake  <eblake@redhat.com>
36972         ldexp: relax license
36973         * modules/ldexp (License): Trivial relax, since the module only
36974         provides a permissively licensed m4 file.
36976 2012-08-13  Bruno Haible  <bruno@clisp.org>
36978         gnulib-tool: Fix persistence of --witness-c-macro option.
36979         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
36980         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36982 2012-08-11  Eric Blake  <eblake@redhat.com>
36984         count-leading-zeros: use a lookup table on non-gcc compilers
36985         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
36986         alternate implementation, suggested by Jim Meyering.
36988 2012-08-10  Eric Blake  <eblake@redhat.com>
36990         count-leading-zeros: new module
36991         * modules/count-leading-zeros: New module.
36992         * m4/count-leading-zeros.m4: New file.
36993         * lib/count-leading-zeros.h: Likewise.
36994         * modules/count-leading-zeros-tests: New test.
36995         * tests/test-count-leading-zeros.c: New file.
36996         * MODULES.html.sh (Integer arithmetic functions): Document it.
36998 2012-08-07  Simon Josefsson  <simon@josefsson.org>
36999             Jim Meyering  <meyering@redhat.com>
37001         maintainer-makefile: Fix syntax error with dash.
37002         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
37003         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
37005 2012-08-05  Jim Meyering  <meyering@redhat.com>
37007         extern-inline: also ignore -Wmissing-declarations
37008         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
37009         required with gcc-4.8.0-to-be.
37011         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
37012         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
37013         for /error ?([^,]*)/.  This avoids false-positives for strings like
37014         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
37016 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
37018         gnumakefile: better interaction with Automake-NG
37019         * modules/gnumakefile [Makefile.am]: The makefiles generated by
37020         Automake-NG always contain a definition of VPATH, even in non-VPATH
37021         builds (its value being simply '.' in that case).  So, in the
37022         'clean-GNUmakefile' rule, to determine whether running under a
37023         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
37024         '$(VPATH)' expands to the empty string.
37026 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
37028         base64: Use extern C scope in header file, for C++.
37029         * lib/base64.h: Add C++ namespace protection.
37031 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
37033         stat-time, timespec, u64: support naive out-of-dir builds
37034         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
37035         Use '#include "foo.h"', not '#include <foo.h>', when including
37036         one's own interface.  This works better when configuring with
37037         out-of-directory builds, since packages need not add an
37038         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
37040 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
37042         utimens: use extern-inline
37043         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
37044         * lib/utimens.h: Add copyright notice, since this is now large enough
37045         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37046         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
37047         * modules/utimens (Depends-on): Add extern-inline.
37049         u64: use extern-inline
37050         * lib/u64.c: New file.
37051         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37052         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
37053         * modules/u64 (Files): Add lib/u64.c.
37054         (Depends-on): Add extern-inline.
37055         (configure.ac): No need to require AC_C_INLINE, since extern-inline
37056         does that now.
37057         (lib_SOURCES): Add u64.c.
37059         timespec: use extern-inline
37060         * lib/timespec.c: New file.
37061         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37062         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
37063         * modules/timespec (Files): Add lib/timespec.c.
37064         (Depends-on): Add extern-inline.
37065         (lib_SOURCES): Add timespec.c.
37067         stat-time: use extern-inline
37068         * lib/stat-time.c: New file.
37069         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37070         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
37071         * modules/stat-time (Files): Add lib/stat-time.c.
37072         (Depends-on): Add extern-inline.
37073         (lib_SOURCES): Add stat-time.c.
37075         extern-inline: new module
37076         * modules/extern-inline, m4/extern-inline.m4: New files.
37077         This is for better support of 'extern inline' a la ISO C99,
37078         with a portable alternative on compilers that do not support
37079         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
37080         of the Emacs executable, when compiled with debugging disabled,
37081         which is a typical way that Emacs is built while developing.
37083 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
37085         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
37086         * build-aux/do-release-commit-and-tag: Move variable definitions
37087         together.
37088         ($branch): Instead of defaulting to "master", default to the current
37089         branch (as gnu-web-doc-update does).
37090         (help): Display the current values of the option arguments.
37091         * top/maint.mk (release-commit): New.
37092         * top/README-release: Simplify the corresponding step.
37094 2012-07-30  Eric Blake  <eblake@redhat.com>
37096         passfd: fix comment on recvfd
37097         * lib/passfd.c (recvfd): Fix comment.
37098         Reported by Jann Horn <jannhorn@googlemail.com>.
37100 2012-07-30  Jim Meyering  <meyering@redhat.com>
37102         maint.mk: avoid a sub-shell
37103         * top/maint.mk (release-prep): Remove unneeded sub-shell.
37105 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37107         maint.mk: use silent-rules support from Automake
37108         * top/maint.mk (news-check, vc-diff-check, announcement)
37109         (no-submodule-changes, alpha beta stable, release-prep)
37110         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
37112 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37114         maint.mk: provide a web-manual-update target
37115         * top/maint.mk: here.
37116         * top/README-release: Use it to simplify the web manual update step.
37118 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37120         README-release: shorten the circuit to post a news
37121         * top/README-release: Point directly to the news submission form.
37123 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37125         gnu-web-doc-update: fix --help
37126         * build-aux/gnu-web-doc-update: The information "top level" was written
37127         twice.
37129 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37131         maint.mk: absolute VPATH issue
37132         * top/maint.mk (release-prep): Help Git find .git/.
37133         From Jim Meyering.
37135 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
37137         gitlog-to-changelog: fix previous change
37138         * build-aux/gitlog-to-changelog: Fix condition.
37139         Add missing ";".
37141 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
37143         gitlog-to-changelog: don't expect .git to be in $srcdir
37144         Reported by Bruno Haible.
37145         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
37146         * build-aux/gitlog-to-changelog (&git_dir_option): New.
37147         Use it.
37149 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
37151         maint.mk: absolute VPATH build fix
37152         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
37153         $(srcdir) is not a parent of $(builddir).
37155 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
37157         clean-temp: Fix memory leak.
37158         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
37159         'files' members of tmpdir.
37161 2012-07-27  Jim Meyering  <meyering@redhat.com>
37163         maint.mk: new rule: refresh-gnulib-patches
37164         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
37165         Use this rule to refresh them.
37166         * top/maint.mk (refresh-gnulib-patches): New rule.
37168 2012-07-24  Bruno Haible  <bruno@clisp.org>
37170         gnulib-tool: Fix handling of inctests variable.
37171         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
37172         Reported by Nick Bowler <nbowler@elliptictech.com>.
37174 2012-07-22  Bruno Haible  <bruno@clisp.org>
37176         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
37177         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
37178         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
37179         Remove exemption for getpass.h.
37180         Suggested by Eric Blake.
37182 2012-07-20  Eric Blake  <eblake@redhat.com>
37184         verify: document conflict with -Wnested-externs
37185         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
37187         maint.mk: forbid exit(-1)
37188         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
37190 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
37192         fsusage: port back to Solaris
37193         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
37194         error (fsd not declared) on Solaris 10.  Reported privately by
37195         Andrew Borodin.
37197 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
37199         gnu-web-doc-update: fix error messages
37200         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
37202         gnu-web-doc-update: check the requirements.
37203         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
37204         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
37205         * build-aux/bootstrap (find_tool): Comment change.
37207 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
37209         maint.mk: minor simplication.
37210         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
37211         for default values.
37213 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
37215         gitlog-to-changelog: VPATH build issues
37216         If builddir is not a subdirectory of srcdir, running git from it will
37217         fail.
37218         * build-aux/gitlog-to-changelog (--srcdir): New option.
37220 2012-07-15  Bruno Haible  <bruno@clisp.org>
37222         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
37223         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
37224         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
37225         Remove exemption for fpending.h.
37226         Suggested by Eric Blake.
37228 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
37230         pthread_sigmask: fix bug on FreeBSD 9
37231         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
37232         Include string.h.
37233         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
37234         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
37235         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
37236         but pthread_sigmask (1729, NULL, NULL) returns zero.
37237         See <http://bugs.gnu.org/11884>.
37238         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
37239         by inspecting whether the main call changed the old mask.
37241 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
37243         README-release: make it more legible
37244         * top/README-release: Improve typography slightly.
37246 2012-07-15  Jim Meyering  <meyering@redhat.com>
37248         maint: require that each sc_... command start with "@"
37249         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
37250         "make sc_maint" helps us avoid this nit.
37252 2012-07-15  Jim Meyering  <meyering@redhat.com>
37254         maint.mk: add leading "@" to quiet new "make syntax-check" rule
37255         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
37257 2012-07-13  Eric Blake  <eblake@redhat.com>
37259         maint.mk: new syntax check for HAVE_DECL checks
37260         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
37261         * cfg.mk
37262         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
37263         Exempt some false positives.
37264         Based on a report by Karel Zak.
37266         argp: make HAVE_DECL usage consistent
37267         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
37268         macros, not whether they are defined.
37269         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
37270         convention with other declaration checks.
37271         Reported by Karel Zak, with suggestions from Paul Eggert.
37273         stat-time: relax license to LGPLv2+
37274         * modules/stat-time (License): Relax, with consent of all authors.
37276         strndup: fix m4 usage error
37277         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
37278         defined, to either 0 or 1.
37279         Reported by Karel Zak.
37281 2012-07-11  Jim Meyering  <meyering@redhat.com>
37283         maint: enable the sc_avoid_if_before_free syntax-check rule
37284         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
37285         (if_before_free_offenders_): Define.
37286         (if_before_free_basename_re_): Define.
37287         Exempt current files with useless if-before-free.
37289 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
37291         gettext: do not assume '#define ... defined ...' behavior
37292         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
37293         Do not use '#define FOO ... defined BAR ...', as the C standard says
37294         it's not portable to expect that this works after macro expansion.
37295         Problem reported for gzip by Steven M. Schweda in
37296         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
37298 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
37300         getloadavg: clean out old Emacs and Autoconf cruft
37301         See Glenn Morris in <http://bugs.gnu.org/11905>.
37302         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
37303         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
37304         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
37305         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
37307 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
37309         bootstrap: let warn be like tests/init.sh's warn_
37310         Reported by Jim Meyering.
37311         * build-aux/bootstrap (warn): Remove, replaced by...
37312         (warnf_, warn_): these.
37313         Adjust callers.
37314         Shorten messages that no longer fit in 80 columns.
37316 2012-07-09  Bruno Haible  <bruno@clisp.org>
37318         getopt: Simplify after Emacs changed.
37319         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
37320         (gl_GETOPT_IFELSE): Remove macro.
37322 2012-07-09  Jim Meyering  <meyering@redhat.com>
37324         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
37325         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
37327         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
37328         Bugs in both of those conspired to make the
37329         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
37330         _sc_search_regexp's handling of non-empty $in_files would filter
37331         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
37332         choice of in_files value meant there would be no match in most
37333         projects, due to the presence of two or more Makefile.in files.
37334         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
37335         Fix a bug in how a non-empty $$in_files was processed:
37336         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
37337         in spite of the name, it's a regexp, not a list of file names.
37339 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
37341         getloadavg, getopt: fix commentary re configure.in
37342         Autoconf is deprecating the name 'configure.in', so change it to
37343         to the new name 'configure.ac' in a couple of places.
37344         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
37345         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
37346         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
37347         Emacs has renamed it to configure.ac, and it no longer refers
37348         to these macros anyway.
37350         timespec: mark functions with const attributes
37351         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
37352         Mark with _GL_ATTRIBUTE_CONST.
37354 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
37356         canonicalize[-lgpl]: handle "guessing" values when cross-building
37357         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37358         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
37359         matches "*yes" instead of just "yes".  Regression introduced in commit
37360         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
37362 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
37363             Bruno Haible  <bruno@clisp.org>
37365         canonicalize: make the right guess when cross-compiling to GNU
37366         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
37367         determine whether cross-compiling to glibc systems, so as to
37368         include GNU/Hurd.
37370 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
37372         timespec-sub: avoid duplicate include
37373         * lib/timespec-sub.c: Do not include <config.h> twice.
37374         Reported by Juanma Barranquero.
37376 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
37378         bootstrap: use a more consistent error reporting scheme
37379         * build-aux/bootstrap (warn, die): New.
37380         Use them.
37382 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
37384         sys_time: allow too-wide tv_sec
37385         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
37386         timeval even if tv_sec is wider than time_t.  This allows
37387         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
37388         as without this patch gnulib replaces struct timeval
37389         and OpenBSD futimes therefore has a type mismatch.
37390         * doc/posix-headers/sys_time.texi: Mention this.
37392         pthread: check for both pthread_create and pthread_join
37393         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
37394         alter the check so that it tests for both pthread_create and
37395         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
37396         Suggested by Bruno Haible and Richard Yao in
37397         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
37399         parse-datetime: doc tuneup
37400         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
37401         spacing issues.
37403 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
37405         do-release-commit-and-tag: fix the previous commit
37406         * build-aux/do-release-commit-and-tag: Actually the test was right,
37407         but the comment and the error message were misleading.
37408         Fix comment, and improve error message.
37409         Perform check first, so that NEWS is not modified uselessly.
37411         do-release-commit-and-tag: fix typo
37412         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
37413         _not_ start with a stub.
37415 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
37417         pthread: check for pthread_create, not pthread_join
37418         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
37419         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
37420         pthread_join in libc.  I hope this removes the need for all the
37421         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
37422         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
37424 2012-07-04  Jim Meyering  <meyering@redhat.com>
37426         parse-datetime: fix failure to diagnose invalid input
37427         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
37428         rather than diagnosing the invalid input.  Now it reports this:
37429         date: invalid date '\260'
37430         * lib/parse-datetime.y (to_uchar): Define.
37431         (yylex): Don't sign-extend "other" bytes.
37432         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
37433         Thanks to Bruno Haible for the patch to this file.
37434         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
37435         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
37437 2012-07-03  Jim Meyering  <meyering@redhat.com>
37439         bootstrap: do not require now-removed build-aux/missing
37440         Now that build-aux/missing is, er, missing, bootstrap would
37441         silently fail.
37442         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
37443         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
37444         no longer part of gnulib.
37445         Diagnose the failure.
37447 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37449         alloca: add support for HP NonStop TNS/E native
37450         * lib/alloca.in.h (alloca): Support the new host.
37451         From a suggestion by Joachim Schmitz in
37452         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
37454 2012-07-02  Pádraig Brady  <P@draigBrady.com>
37456         fsusage: remove code not needed on non GNU/Linux systems.
37458         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
37459         Don't include headers no longer needed in this case.
37460         * lib/fsusage.c [STAT_STATVFS &&
37461         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
37462         STAT_STATFS2_FRSIZE to exclude code not used in this case.
37464 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
37466         fsusage: include files needed for glibc 2.6 fallback
37467         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
37468         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
37469         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
37470         Problem reported by Ludovic Courtès in
37471         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
37473         fsusage: avoid needless check on GNU/Linux
37474         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
37475         on GNU/Linux systems, since it can't possibly work.
37477 2012-07-01  Bruno Haible  <bruno@clisp.org>
37479         log: Fix an autoconf >= 2.64 warning.
37480         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
37481         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
37483 2012-06-28  Bruno Haible  <bruno@clisp.org>
37485         log10f: Fix possible configuration problem.
37486         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
37487         $LOGF_LIBM.
37488         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
37490 2012-06-28  Bruno Haible  <bruno@clisp.org>
37492         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
37493         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
37494         not gl_cv_func_unlink_works.
37495         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
37497 2012-06-27  Eric Blake  <eblake@redhat.com>
37499         config: drop scripts that automake says are not independent
37500         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
37501         * build-aux/elisp-comp: Delete.
37502         * build-aux/missing: Likewise.
37503         * build-aux/ylwrap: Likewise.
37504         * modules/elisp-comp: Likewise.
37505         * MODULES.html.sh: Drop mention of elisp-comp.
37506         * NEWS: Mention this.
37508 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
37510         root-uid: new module
37511         This is for portability to Tandem's NonStop Kernel.
37512         * lib/root-uid.h, modules/root-uid: New files.
37513         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
37514         * lib/write-any-file.c, tests/test-sethostname2.c:
37515         Include "root-uid.h".
37516         * lib/euidaccess.c (euidaccess):
37517         * lib/pt_chown.c (main):
37518         * lib/unlinkdir.c (cannot_unlink_dir):
37519         * lib/write-any-file.c (can_write_any_file):
37520         * m4/mknod.m4 (gl_FUNC_MKNOD):
37521         * tests/test-sethostname2.c (geteuid, main):
37522         Don't assume ROOT_UID == 0.
37523         * modules/euidaccess (Depends-on):
37524         * modules/pt_chown (Depends-on):
37525         * modules/sethostname-tests (Depends-on):
37526         * modules/unlinkdir (Depends-on):
37527         * modules/write-any-file (Depends-on):
37528         Add root-uid.
37530         regex: use locale-independent comparison for codeset name
37531         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
37532         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
37533         for codeset name.
37534         * lib/regex_internal.h: Do not include <strings.h>, since we
37535         no longer use strcasecmp.
37536         * modules/regex (Depends-on): Remove strcase.
37538 2012-06-23  Bruno Haible  <bruno@clisp.org>
37540         getopt-posix: No longer guarantee that option processing is resettable.
37541         * doc/posix-functions/getopt.texi: Drop description of problem with
37542         internal state. Fix info about mingw and msvc9.
37543         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
37544         option processing by getopt(). Run three test programs instead of one.
37545         Simplify cross-compilation guess.
37546         * NEWS: Mention the change.
37547         Reported by Rich Felker <dalias@aerifal.cx>.
37549 2012-06-26  Bruno Haible  <bruno@clisp.org>
37551         argp, regex: Ensure strcasecmp gets declared.
37552         * lib/argp-help.c: Include <strings.h>.
37553         * lib/regex_internal.h: Likewise.
37554         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
37556 2012-06-24  Bruno Haible  <bruno@clisp.org>
37558         ptsname_r: Make it consistent with ptsname on AIX.
37559         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
37560         implementation as for OSF/1.
37561         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
37562         a pty master.
37564         ptsname_r: Make it consistent with ptsname on OSF/1.
37565         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
37566         OSF/1.
37568 2012-06-24  Bruno Haible  <bruno@clisp.org>
37570         ttyname_r: Fix result on OSF/1, Solaris.
37571         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
37573 2012-06-24  Bruno Haible  <bruno@clisp.org>
37575         ptsname_r: Add support for Solaris.
37576         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
37577         Solaris.
37579         ptsname_r: Fix test failure on native Windows.
37580         * modules/ptsname_r (Depends-on): Add isatty.
37582         ptsname_r: Fix test failures on IRIX, Solaris.
37583         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
37584         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
37585         accordingly.
37586         * lib/ptsname_r.c: Include <fcntl.h>.
37587         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
37588         set errno if fd is invalid.
37589         * tests/test-isatty.c (main): Update comments.
37591 2012-06-24  Bruno Haible  <bruno@clisp.org>
37593         ptsname test: Extend test.
37594         * tests/test-ptsname.c: Include <errno.h>.
37595         (main): Test behaviour with invalid file descriptor.
37597 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
37599         time: fix obsolete comment
37600         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
37601         reference to HAVE_STRUCT_TIMESPEC in comment.
37603 2012-06-23  Bruno Haible  <bruno@clisp.org>
37605         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
37606         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
37607         does not handle abbreviated long options with equivalent
37608         disambiguations, set gl_replace_getopt to yes.
37609         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
37611 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
37613         time_r: fix typo that always overrode localtime_r decl
37614         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
37615         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
37616         not in a standard include.
37618 2012-06-22  Bruno Haible  <bruno@clisp.org>
37620         Write "Mac OS X" instead of "MacOS X".
37621         * README: Write "Mac OS X" instead of "MacOS X".
37622         * build-aux/bootstrap: Likewise.
37623         * build-aux/install-reloc: Likewise.
37624         * lib/acl-internal.h: Likewise.
37625         * lib/acl_entries.c: Likewise.
37626         * lib/argp-ba.c: Likewise.
37627         * lib/argp-pv.c: Likewise.
37628         * lib/config.charset: Likewise.
37629         * lib/copy-acl.c: Likewise.
37630         * lib/csharpexec.c: Likewise.
37631         * lib/euidaccess.c: Likewise.
37632         * lib/fbufmode.c: Likewise.
37633         * lib/fflush.c: Likewise.
37634         * lib/file-has-acl.c: Likewise.
37635         * lib/filemode.h: Likewise.
37636         * lib/fpurge.c: Likewise.
37637         * lib/freadable.c: Likewise.
37638         * lib/freadahead.c: Likewise.
37639         * lib/freading.c: Likewise.
37640         * lib/freadptr.c: Likewise.
37641         * lib/freadseek.c: Likewise.
37642         * lib/fseeko.c: Likewise.
37643         * lib/fseterr.c: Likewise.
37644         * lib/fsusage.c: Likewise.
37645         * lib/fwritable.c: Likewise.
37646         * lib/fwriting.c: Likewise.
37647         * lib/get-rusage-as.c: Likewise.
37648         * lib/get-rusage-data.c: Likewise.
37649         * lib/getdomainname.c: Likewise.
37650         * lib/idpriv-drop.c: Likewise.
37651         * lib/idpriv-droptemp.c: Likewise.
37652         * lib/localcharset.c: Likewise.
37653         * lib/locale.in.h: Likewise.
37654         * lib/localename.c: Likewise.
37655         * lib/mbsrtowcs-state.c: Likewise.
37656         * lib/nproc.c: Likewise.
37657         * lib/passfd.c: Likewise.
37658         * lib/posix_openpt.c: Likewise.
37659         * lib/printf-parse.c: Likewise.
37660         * lib/progreloc.c: Likewise.
37661         * lib/safe-read.h: Likewise.
37662         * lib/safe-write.h: Likewise.
37663         * lib/sched.in.h: Likewise.
37664         * lib/set-mode-acl.c: Likewise.
37665         * lib/signal.in.h: Likewise.
37666         * lib/stdint.in.h: Likewise.
37667         * lib/stdio-impl.h: Likewise.
37668         * lib/stdlib.in.h: Likewise.
37669         * lib/strtod.c: Likewise.
37670         * lib/sys_select.in.h: Likewise.
37671         * lib/tcgetsid.c: Likewise.
37672         * lib/unistd.in.h: Likewise.
37673         * lib/unlockpt.c: Likewise.
37674         * lib/vasnprintf.c: Likewise.
37675         * lib/vma-iter.c: Likewise.
37676         * lib/wcsrtombs-state.c: Likewise.
37677         * m4/acl.m4: Likewise.
37678         * m4/acosl.m4: Likewise.
37679         * m4/asinl.m4: Likewise.
37680         * m4/atanl.m4: Likewise.
37681         * m4/c-stack.m4: Likewise.
37682         * m4/cosl.m4: Likewise.
37683         * m4/expl.m4: Likewise.
37684         * m4/extensions.m4: Likewise.
37685         * m4/fdatasync.m4: Likewise.
37686         * m4/fmal.m4: Likewise.
37687         * m4/frexp.m4: Likewise.
37688         * m4/frexpf.m4: Likewise.
37689         * m4/frexpl.m4: Likewise.
37690         * m4/fsusage.m4: Likewise.
37691         * m4/getdomainname.m4: Likewise.
37692         * m4/getloadavg.m4: Likewise.
37693         * m4/getopt.m4: Likewise.
37694         * m4/gettext.m4: Likewise.
37695         * m4/gnulib-common.m4: Likewise.
37696         * m4/intdiv0.m4: Likewise.
37697         * m4/intlmacosx.m4: Likewise.
37698         * m4/largefile.m4: Likewise.
37699         * m4/ldexpl.m4: Likewise.
37700         * m4/link-follow.m4: Likewise.
37701         * m4/locale-ar.m4: Likewise.
37702         * m4/locale-fr.m4: Likewise.
37703         * m4/locale-ja.m4: Likewise.
37704         * m4/locale-tr.m4: Likewise.
37705         * m4/locale-zh.m4: Likewise.
37706         * m4/locale_h.m4: Likewise.
37707         * m4/lock.m4: Likewise.
37708         * m4/logl.m4: Likewise.
37709         * m4/mathfunc.m4: Likewise.
37710         * m4/minus-zero.m4: Likewise.
37711         * m4/mktime.m4: Likewise.
37712         * m4/mmap-anon.m4: Likewise.
37713         * m4/multiarch.m4: Likewise.
37714         * m4/nanosleep.m4: Likewise.
37715         * m4/nocrash.m4: Likewise.
37716         * m4/poll.m4: Likewise.
37717         * m4/printf-frexpl.m4: Likewise.
37718         * m4/printf.m4: Likewise.
37719         * m4/signbit.m4: Likewise.
37720         * m4/sinl.m4: Likewise.
37721         * m4/sqrtl.m4: Likewise.
37722         * m4/strerror_r.m4: Likewise.
37723         * m4/tanl.m4: Likewise.
37724         * m4/threadlib.m4: Likewise.
37725         * m4/ttyname_r.m4: Likewise.
37726         * m4/unlink.m4: Likewise.
37727         * m4/visibility.m4: Likewise.
37728         * m4/wcwidth.m4: Likewise.
37729         * tests/minus-zero.h: Likewise.
37730         * tests/test-alloca-opt.c: Likewise.
37731         * tests/test-copy-acl.sh: Likewise.
37732         * tests/test-copy-file.sh: Likewise.
37733         * tests/test-fdatasync.c: Likewise.
37734         * tests/test-file-has-acl.sh: Likewise.
37735         * tests/test-flock.c: Likewise.
37736         * tests/test-fsync.c: Likewise.
37737         * tests/test-localename.c: Likewise.
37738         * tests/test-malloca.c: Likewise.
37739         * tests/test-nonblocking-pipe.h: Likewise.
37740         * tests/test-nonblocking-socket.h: Likewise.
37741         * tests/test-openpty.c: Likewise.
37742         * tests/test-posix_openpt.c: Likewise.
37743         * tests/test-ptsname.c: Likewise.
37744         * tests/test-ptsname_r.c: Likewise.
37745         * tests/test-sameacls.c: Likewise.
37746         * tests/test-select.h: Likewise.
37747         * tests/test-set-mode-acl.sh: Likewise.
37748         * tests/test-snprintf-posix.h: Likewise.
37749         * tests/test-sprintf-posix.h: Likewise.
37750         * tests/test-strtod.c: Likewise.
37751         * tests/test-time.c: Likewise.
37752         * tests/test-vasnprintf-posix.c: Likewise.
37753         * tests/test-vasprintf-posix.c: Likewise.
37754         * doc/acl-resources.txt: Likewise.
37755         * doc/**/*.texi: Likewise.
37756         Reported by Max Horn <max@quendi.de>.
37758 2012-06-22  Bruno Haible  <bruno@clisp.org>
37760         grantpt: Relax requirement regarding invalid file descriptors.
37761         * lib/grantpt.c: Don't include <fcntl.h>.
37762         (grantpt): Don't verify the validity of the file descriptor.
37763         * modules/grantpt (Depends-on): Remove fcntl-h.
37764         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
37765         file descriptors.
37766         * doc/posix-functions/grantpt.texi: Document more platforms on which
37767         grantpt succeeds for invalid file descriptors.
37768         Reported by Rich Felker <dalias@aerifal.cx>.
37770 2012-06-22  Bruno Haible  <bruno@clisp.org>
37772         fbufmode test: Don't test unportable behaviour.
37773         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
37774         (main): Invoke it three times.
37775         Reported by Szabolcs Nagy <nsz@port70.net>
37776         and Rich Felker <dalias@aerifal.cx>.
37778 2012-06-21  Bruno Haible  <bruno@clisp.org>
37780         gnulib-tool: Refactor inctests variable.
37781         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
37782         (func_modules_transitive_closure,
37783         func_modules_transitive_closure_separately,
37784         func_import, func_create_testdir): Update.
37786         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
37787         * gnulib-tool: Accept option --without-tests.
37788         (func_usage): Document --without-tests option. Rearrange.
37789         (inctests): Normalize according to the mode.
37790         * NEWS: Mention the change.
37791         Suggested by Simon Josefsson.
37793 2012-06-21  Bruce Korb  <bkorb@gnu.org>
37795         parse-duration test: Avoid spurious output.
37796         * tests/test-parse-duration.sh: Reindent with leading tabs.
37798 2012-06-21  Jim Meyering  <meyering@redhat.com>
37800         maint: disable the strncpy prohibition
37801         * cfg.mk: Do not prohibit strncpy here.
37803 2012-06-21  Bruno Haible  <bruno@clisp.org>
37805         nonblocking: Avoid compilation error on mingw64.
37806         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
37807         fscanf.
37808         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
37809         * modules/vfscanf (configure.ac): Likewise.
37810         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
37811         definition only if stdio.h has prepared it.
37812         Reported by Daniel P. Berrange <berrange@redhat.com>.
37814 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
37816         gnulib-tool: Use readlink if it is available.
37817         * gnulib-tool (func_readlink): Choose function more appropriately.
37819 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
37821         posixtm-tests: port to buggy compiler
37822         Problem reported by Simon Josefsson in
37823         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
37824         * modules/posixtm-tests (Depends-on): Add stdint.
37825         * tests/test-posixtm.c (struct posixtm_test.t_expected):
37826         Now of type int_least64_t, not int64_t, both because that's
37827         what INT64_C returns and because int_least64_t works even
37828         on 72-bit hosts.
37829         (T): Use INT64_C on constants outside the traditional int range,
37830         to work around compiler bug noted by Simon.
37832         mktime: fix integer overflow in 'configure'-time test
37833         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
37834         after integer overflow.  Problem reported by Rich Felker in
37835         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
37836         Also, don't look for further instances of a bug if we've already
37837         found one instance; this helps 'configure' run faster.
37839 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
37841         tmpfile, clean-temp: Fix invocation of GetVersionEx.
37842         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
37843         GetVersionEx correctly.
37844         * lib/clean-temp.c (supports_delete_on_close): Likewise.
37846 2012-06-20  Bruno Haible  <bruno@clisp.org>
37848         fdopen: Allow implementations that don't reject invalid fd arguments.
37849         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
37850         succeeds.
37851         Reported by Rich Felker <dalias@aerifal.cx>.
37853 2012-06-20  Simon Josefsson  <simon@josefsson.org>
37855         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
37856         bring in LIBINTL.
37858 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
37860         init.sh: do not rely on autoupated PWD
37861         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
37862         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
37863         Although Nelson's bug was not necessarily fixed by this patch,
37864         it seems wise to make the change for safety.
37865         * tests/init.sh (path_prepend_): Do not rely on PWD updating
37866         automagically after 'cd'; this is not reliable on older shells.
37867         (setup_): Fail if we cannot cd to temporary directory.
37869 2012-06-19  Bruno Haible  <bruno@clisp.org>
37871         stat, fstat: Avoid warnings on mingw64.
37872         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
37873         redefining.
37874         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
37875         Reported by Daniel P. Berrange <berrange@redhat.com>.
37877 2012-06-19  Bruno Haible  <bruno@clisp.org>
37879         stdioext: Add support for musl libc.
37881         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
37882         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
37884         * m4/fseterr.m4: New file.
37885         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
37886         function exists.
37887         * modules/fseterr (Files): Add m4/fseterr.m4.
37888         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
37889         __fseterr does not exist.
37890         (Makefile.am): Remove fseterr.c from lib_SOURCES.
37892         * lib/freadable.h: Update comment.
37894         * lib/fwritable.h: Update comment.
37896         * lib/freading.h: Update comment.
37898         * lib/fwriting.h: Update comment.
37900         * m4/freadahead.m4: New file.
37901         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
37902         that function exists.
37903         * modules/freadahead (Files): Add m4/freadahead.m4.
37904         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
37905         __freadahead does not exist.
37906         (Makefile.am): Remove freadahead.c from lib_SOURCES.
37908         * m4/freadptr.m4: New file.
37909         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
37910         function exists.
37911         * modules/freadptr (Files): Add m4/freadptr.m4.
37912         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
37913         __freadptr does not exist.
37914         (Makefile.am): Remove freadptr.c from lib_SOURCES.
37916         * m4/freadseek.m4: New file.
37917         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
37918         exists.
37919         * modules/freadseek (Files): Add m4/freadseek.m4.
37920         (configure.ac): Invoke gl_FUNC_FREADSEEK.
37922         * lib/fpurge.c (fpurge): Update comment.
37924         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
37926 2012-06-19  Bruno Haible  <bruno@clisp.org>
37928         *printf-posix: Put more info into config.log.
37929         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
37930         exit code into config.log.
37932 2012-06-19  Bruno Haible  <bruno@clisp.org>
37934         getopt-gnu: Fix exit code overflow in autoconf test.
37935         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
37936         to keep them below < 128.
37938 2012-06-17  Jim Meyering  <meyering@redhat.com>
37940         maint.mk: fix typo in code to derive GPG key at release time
37941         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
37943 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
37945         regex: avoid warning when pointers are not long
37946         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
37947         and uintptr_t, not long, for portability to hosts where pointers and
37948         long have different sizes.  Issue noted by Daniel P. Berrange in
37949         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
37950         and fix suggested by Bruno Haible in
37951         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
37953 2012-06-17  Bruno Haible  <bruno@clisp.org>
37955         dummy: Relicense into the public domain.
37956         * modules/dummy (License): Set to "public domain".
37957         Suggested by Reuben Thomas.
37959 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
37961         announce-gen: VPATH issues
37962         * build-aux/announce-gen (--srcdir): New option, used to trim the
37963         $srcdir part of the path from $builddir to NEWS.
37964         * top/maint.mk (announcement): Adjust.
37966 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
37968         gnu-web-doc-update: VPATH builds
37969         * build-aux/gnu-web-doc-update (--builddir): New option.
37970         Revamp the handling of options.
37971         Prefer $(...) to `...`.
37972         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
37973         the template, and it is GNU mktemp specific.
37974         Prefer set -e to long series of &&.
37975         Restore the initial git branch, not "master".
37976         Properly initialize submodules (don't rely only on bootstrap).
37977         Do not reconfigure blindly, use config.status.
37978         * top/README-release: Update instructions for gnu-web-doc-update.
37980 2012-06-11  Jim Meyering  <meyering@redhat.com>
37982         maint.mk: revert most of the previous change re "all these"
37983         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
37984         For rationale, see the discussion at
37985         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
37987 2012-06-10  Karl Berry  <karl@gnu.org>
37989         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
37991         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
37993 2012-06-10  Bruce Korb  <bkorb@gnu.org>
37995         parse-duration: Relicense under LGPLv2+.
37996         * modules/parse-duration (License): Change to LGPLv2+.
37998 2012-06-10  Jim Meyering  <meyering@redhat.com>
38000         maint.mk: prohibit common grammar error: "all these"
38001         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
38002         the list of prohibited word sequences.  It should be "all of these".
38003         * lib/tempname.c (__gen_tempname): Fix one of them.
38005 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
38007         do-release-commit-and-tag: support VPATH builds
38008         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
38009         (noteworthy): Defined earlier to factor its value.
38010         (noteworthy_stub): New.
38011         Use it to factor.
38012         (help_version): Split into...
38013         (help, version): these.
38014         Adjust the option processing part.
38015         Support "--option=value" in addition to "--option value".
38016         (builddir): New.
38017         (--builddir): New option.
38018         * top/README-release: Document this.
38019         Reword slightly so that the reader cannot understand that he
38020         has to do these steps before calling do-release-commit-and-tag.
38022 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
38024         readme-release: also require announce-gen and maintainer-makefile
38025         * modules/readme-release (Depends-on): here.
38026         * modules/announce-gen, modules/do-release-commit-and-tag,
38027         modules/gnu-web-doc-update, modules/maintainer-makefile
38028         (Description): Point to readme-release.
38030 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
38032         maint.mk: fix VPATH issues.
38033         * top/maint.mk (news-check): GNU Make understand $< very well.
38034         (release-prep): NEWS is in $(srcdir).
38036 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
38038         readme-release: require the promoted modules.
38039         * modules/readme-release (Depends-on): Add
38040         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
38041         in this text.
38043 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
38044             Bruno Haible  <bruno@clisp.org>
38046         error, strerror-override: Support mingw64 from Fedora 17.
38047         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
38048         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
38049         EINPROGRESS.
38050         * lib/strerror-override.h (strerror_override): Test it.
38051         * lib/strerror-override.c (strerror_override): Likewise.
38052         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
38054 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
38055             Bruno Haible  <bruno@clisp.org>
38057         error, strerror-override: Support mingw64 from Fedora 17.
38058         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
38059         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
38060         * lib/strerror-override.h (strerror_override): Test it.
38061         * lib/strerror-override.c (strerror_override): Likewise.
38063 2012-06-03  Bruno Haible  <bruno@clisp.org>
38065         error, strerror-override: Support new errno values from POSIX:2008.
38066         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
38067         ENOTRECOVERABLE.
38068         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
38069         platforms.
38070         * lib/strerror-override.c (strerror_override): Conditionalize the
38071         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
38072         * lib/strerror-override.h (strerror_override): Declare also if
38073         GNULIB_defined_EOWNERDEAD is defined.
38074         * tests/test-errno.c (e130, e131): New variables.
38075         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
38076         ENOTRECOVERABLE.
38077         Reported by Paolo Bonzini.
38079 2012-05-31  Jim Meyering  <meyering@redhat.com>
38081         savewd: add missing dependency on sys_wait module
38082         * modules/savewd (Depends-on): Add sys_wait, needed at least
38083         for MSVC.  Report and suggested change by Michael Goffioul.
38085 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
38087         system-quote-tests: port to CentOS 5
38088         Problem reported by Tom G. Christensen in
38089         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
38090         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
38092 2012-05-29  Jim Meyering  <meyering@redhat.com>
38094         maint: fix typos in comments and ChangeLog
38095         Culprits identified and fixed mostly automatically using these commands:
38096         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
38097         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
38098         using http://github.com/lyda/misspell-check
38099         * ChangeLog: Fix typos.
38100         * doc/solaris-versions: Likewise.
38101         * lib/regexec.c (re_search_stub): Likewise.
38102         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
38104 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
38106         manywarnings: remove duplicate -Wmultichar entry
38107         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
38108         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
38109         so keep the entry marked as documented.
38111 2012-05-27  Karl Berry  <karl@gnu.org>
38113         * config/srclist.txt (mktime.c): remove last libc sync,
38114         perhaps just temporarily.
38116 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
38118         regex: don't assume uint64_t or uint32_t
38119         * lib/regcomp.c (init_word_char): Don't assume that the types
38120         uint64_t and uint32_t exist.  The C standard doesn't guarantee
38121         them, and on some 32-bit compilers there is no uint64_t.
38122         Problem reported by Gianluigi Tiesi in
38123         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
38125 2012-05-25  Jim Meyering  <meyering@redhat.com>
38127         maint.mk: add strncpy-prohibiting syntax-check rule
38128         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
38130 2012-05-24  Jim Meyering  <meyering@redhat.com>
38132         maint.mk: compute $(gpg_key_ID) more portably
38133         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
38134         That use of sed is not portable to some fringe systems.
38135         Reported by Paul Eggert in
38136         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
38138 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
38140         mktime: sync from glibc
38141         * config/srclist.txt: Uncomment mktime.c.
38142         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
38143         First, indent with tabs, since glibc uses tabs and doesn't want to
38144         change and we'd rather be identical to glibc.  Also, two small
38145         coding changes:
38146         (isdst_differ): Use &&, not &, as && is the usual style.
38147         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
38148         for clarity.
38150 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
38152         announce-gen: du -h is more portable than du --human
38153         * build-aux/announce-gen (sizes): Invoke du with -h instead
38154         of --human.  Accept leading white space in its output.
38156 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
38158         announce-gen: Improve diagnostics.
38159         * build-aux/announce-gen: When parsing command line options,
38160         prefer "announce-gen: option --release-type requires an argument"
38161         to "Option release-type requires an argument".
38163 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
38165         maint.mk: gpg_key_ID: use sed more portably
38166         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
38167         the closing brace.
38168         (refresh-po): Fuse two sed invocations into one.
38170 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
38172         gitlog-to-changelog: support the log message format used in Bison.
38173         * build-aux/gitlog-to-changelog: Support --strip-tab and
38174         --strip-cherry-picked.
38176 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
38178         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
38179         the rest of the current time slice to another thread in the current
38180         process. So if the thread that feeds the file decscriptor we're
38181         polling is not in the current process, we get busy-waiting.
38182         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
38183         Patch from Theodore Leblond.
38184         * lib/select.c: Split polling out of the loop that sets the output
38185         fd_sets.  Check for zero result and loop if the wait timeout is
38186         infinite.
38188 2012-05-21  Simon Josefsson  <simon@josefsson.org>
38190         select: Fix build error on IRIX 6.5.
38191         * lib/select.c: Include stddef.h for NULL.
38193 2012-05-21  Simon Josefsson  <simon@josefsson.org>
38195         gc: fix libgcrypt detection on older machines.
38196         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
38197         copyright years because the file has been distributed every year
38198         since it was created.
38200 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
38202         crypto: fix bug in large buffer handling
38203         Problem reported by Serge Belyshev for glibc in
38204         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
38205         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
38206         * lib/md4.c (md4_process_block):
38207         * lib/md5.c (md5_process_block):
38208         * lib/sha1.c (sha1_process_block):
38209         * lib/sha256.c (sha256_process_block):
38210         Don't assume the buffer length is less than 2**32.
38211         * lib/sha512.c (sha512_process_block): Likewise.
38212         Here, the bug is present only in the rare case where the host does
38213         not support uint64_t or where size_t is wider than 64 bits.
38214         Use u64size to work around the problems.
38215         * lib/u64.h (u64size): New macro.
38217 2012-05-15  Pádraig Brady  <P@draigBrady.com>
38219         fsusage: fix block size returned on older Linux 2.6
38221         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
38222         which is available since Linux 2.6.
38223         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
38224         when the member is available so it can be used as a fallback.
38225         * doc/posix-functions/statvfs.texi: Mention the hang issue
38226         on Linux < 2.6.36.
38228 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
38230         bootstrap: suppress stderr chatter
38231         * build-aux/bootstrap (insert_sorted_if_absent, main program):
38232         Omit unnecessary chatter to stderr.  The main program chatter
38233         was there only inadvertantly.
38235         bootstrap: .gitignore files created by autopoint, libtool
38236         I ran into this problem when bootstrapping the latest diffutils.
38237         After './bootstrap', 'git status' reported lots of untracked files
38238         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
38239         autopoint and do not need to be version-controlled.
38240         * build-aux/bootstrap: Put into .gitignore the files that
38241         autopoint and libtool create, by keeping track of files that exist
38242         after but not before these programs are run.
38243         (version_controlled_file): Move up.  2nd arg is now full file
38244         name, not base name; this is more convenient.  Put CVS at the end,
38245         as it's now somewhat deprecated.
38247 2012-05-14  Jim Meyering  <meyering@redhat.com>
38249         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
38250         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
38251         definition.  Reported by Bruno Haible.
38253 2012-05-13  Bruno Haible  <bruno@clisp.org>
38254             Paul Eggert  <eggert@cs.ucla.edu>
38256         binary-io: Define set_binary_mode function.
38257         * lib/binary-io.h (set_binary_mode): New function.
38258         (SET_BINARY): Define in terms of set_binary_mode.
38259         * modules/binary-io (configure.ac): Require AC_C_INLINE.
38260         * tests/test-binary-io.c (main): Accept an argument, and test either
38261         set_binary_mode or SET_BINARY depending on the argument.
38262         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
38263         argument. Clean up also t-bin-out0.tmp.
38265 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
38267         bootstrap: take advantage of POSIX shell features
38269         The 'bootstrap' script offered by Gnulib script already uses POSIX
38270         shell features (like $((...)) arithmetic expansions) that are not
38271         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
38272         means that bootstrap must already be run using a proper POSIX shell,
38273         which will thus provide more features, like ${var#pattern} parameter
38274         expansion or inversion of a command exit status with '!'.  We can
38275         thus use these features to improve the clarity and the performances
38276         of the bootstrap script.
38278         Suggested by Eric Blake.
38280         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
38281         of sed/expr plus command substitutions, to save some forks.  While
38282         we are at it, prefer the POSIX $(...) form of command substitution,
38283         rather than the legacy form `...` (since the former is visually
38284         clearer and interacts better with quoting), and prefer the idiom:
38285           "if ! CMD; then ACTION ..."
38286         over the idiom:
38287           "if CMD; then :; else ACTION ..."
38288         which was required by legacy Bourne shells not supporting '!'.
38290 2012-05-12  Bruno Haible  <bruno@clisp.org>
38292         system-quote: Add more comments.
38293         * lib/system-quote.h: Add more comments about wilcards and limitations.
38294         Suggested by Eli Zaretskii <eliz@gnu.org>.
38296         sh-quote, system-quote: Add comments about wildcards.
38297         * lib/sh-quote.h: Clarify what happens with wildcard characters.
38298         * lib/system-quote.h: Likewise.
38299         Reported by Eli Zaretskii <eliz@gnu.org>.
38301 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
38303         fsusage: check for GNU/Linux statvfs problem dynamically
38304         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
38305         Define STAT_STATFS2_BSIZE too, since in this case the code now
38306         checks dynamically whether statvfs is reliable, falling back on
38307         Linux-style statfs otherwise.
38308         (statvfs_works): New function, for dynamically testing statvfs.
38309         (get_fs_usage) [STAT_STATVFS]: Use it.
38310         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
38311         statvfs on GNU/Linux hosts, since it's now done dynamically.
38313 2012-05-10  Bruno Haible  <bruno@clisp.org>
38315         system-quote, execute, spawn-pipe: Escape '?' on Windows.
38316         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
38317         '?' character.
38318         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
38319         * tests/test-system-quote-main.c (check_all): Check also strings like
38320         "??????????".
38321         Reported by Eli Zaretskii <eliz@gnu.org>.
38323 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
38325         _Noreturn: port config.h to gcc -Wundef
38326         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
38327         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
38328         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
38330 2012-05-10  Bruno Haible  <bruno@clisp.org>
38332         system-quote: Refactor.
38333         * lib/system-quote.h (system_quote_copy): Fix comment.
38334         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
38335         New functions, extracted from system_quote_copy.
38336         (system_quote_length, system_quote_copy): Use these functions.
38337         Reported by Paul Eggert.
38339 2012-05-08  Bruno Haible  <bruno@clisp.org>
38341         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
38342         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
38344 2012-05-08  Bruno Haible  <bruno@clisp.org>
38346         Tests for module 'system-quote'.
38347         * modules/system-quote-tests: New file.
38348         * tests/test-system-quote.sh: New file.
38349         * tests/test-system-quote-main.c: New file.
38350         * tests/test-system-quote-child.c: New file.
38352         New module 'system-quote'.
38353         * lib/system-quote.h: New file.
38354         * lib/system-quote.c: New file.
38355         * modules/system-quote: New file.
38357 2012-05-08  Bruno Haible  <bruno@clisp.org>
38359         sh-quote: Make C++ safe and allow multiple inclusion.
38360         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
38361         declarations in extern "C".
38363 2012-05-08  Bruno Haible  <bruno@clisp.org>
38365         sh-quote tests: Make tests stricter.
38366         * tests/test-sh-quote.c (check_one): Check the return value of
38367         shell_quote_copy.
38368         (main): Check a string with a CR character. Check a string that
38369         contains UCHAR_MAX.
38371 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
38373         warnings.m4: provide a means to specify the program to compile.
38374         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
38375         (gl_WARN_ADD): here.
38376         Use gl_AS_VAR_APPEND.
38377         Support an argument to specify the program to compile.
38378         (gl_WARN_ADD): Accept an argument to specify the program to compile.
38379         AC_SUBST the WARN_CFLAGS when they are used.
38380         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
38381         leave this to gl_WARN_ADD.
38383 2012-05-08  Eric Blake  <eblake@redhat.com>
38385         doc: recommendations on gettext version
38386         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
38387         choice between versions.
38388         * DEPENDENCIES (gettext): Cover both approaches.
38390 2012-05-08  Jim Meyering  <meyering@redhat.com>
38392         init.sh: explain why EXEEXT support uses aliases rather than functions
38393         * tests/init.sh: Add a comment.
38395         init.sh: don't let bash aliases interfere with tests
38396         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
38397         is bash.  This avoids problems for those who alias standard commands to
38398         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
38399         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
38401 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
38403         stdint: be more consistent with glibc, SunOS libc
38404         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
38405         (gl_int_fast16_t, gl_uint_fast16_t)
38406         (gl_int_fast32_t, gl_uint_fast32_t)
38407         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
38408         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
38409         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
38410         Be consistent with glibc by default, and with SunOS 5.10 and later
38411         if __sun is defined.  This lessens the likelihood of clashes if
38412         code compiled for older hosts is combined with code compiled for
38413         newer ones.  Problem reported by Niels Möller in
38414         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
38416 2012-05-07  Eric Blake  <eblake@redhat.com>
38418         isatty: relax license to LGPLv2+
38419         * modules/isatty (License): Relax license.
38421 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
38423         stat-size: comment fix
38424         * lib/stat-size.h: Remove obsolete comment about indenting.
38426 2012-05-06  Bruno Haible  <bruno@clisp.org>
38428         Tests for module 'sh-quote'.
38429         * modules/sh-quote-tests: New file.
38430         * tests/test-sh-quote.c: New file.
38432 2012-05-06  Bruno Haible  <bruno@clisp.org>
38434         sh-quote: Improve shell_quote_argv's signature.
38435         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
38436         * lib/sh-quote.c (shell_quote_argv): Likewise.
38438 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
38440         stdint: document issues with int_fast8_t etc.
38441         * doc/posix-headers/stdint.texi (stdint.h): Say that other
38442         stdint.h substitutes may define these types differently.  See
38443         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
38445 2012-05-05  Bruno Haible  <bruno@clisp.org>
38447         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
38448         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
38449         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
38450         or 'guessing no (mishandles large arguments)'.
38452 2012-05-05  Bruno Haible  <bruno@clisp.org>
38454         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
38455         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
38456         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
38457         set gl_cv_func_link_follows_symlink to "guessing no".
38459 2012-05-05  Bruno Haible  <bruno@clisp.org>
38461         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
38462         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
38463         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
38464         "guessing no".
38465         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
38467 2012-05-05  Bruno Haible  <bruno@clisp.org>
38469         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
38470         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
38471         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
38472         set gl_cv_struct_dirent_d_ino to "guessing yes".
38474 2012-05-05  Bruno Haible  <bruno@clisp.org>
38476         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
38477         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
38478         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
38479         "guessing yes".
38481 2012-05-05  Bruno Haible  <bruno@clisp.org>
38483         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
38484         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
38485         compiling to a glibc system, set gl_cv_func_signbit and
38486         gl_cv_func_signbit_gcc to "guessing yes".
38488 2012-05-05  Bruno Haible  <bruno@clisp.org>
38490         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
38491         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
38492         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
38493         to "guessing yes".
38494         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
38495         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
38497 2012-05-05  Bruno Haible  <bruno@clisp.org>
38499         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
38500         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
38501         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
38502         gl_cv_func_realpath_works to "guessing yes".
38504 2012-05-05  Bruno Haible  <bruno@clisp.org>
38506         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
38507         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
38508         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
38510 2012-05-04  Bruno Haible  <bruno@clisp.org>
38512         Tweak last commit.
38513         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
38514         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38516 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
38518         unistd_h: make it easier to avoid sys_types_h
38519         This is useful for Emacs, which has its own method of porting to
38520         Windows, and which therefore does not need the sys_types_h module.
38521         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
38522         code moved here from gl_SYS_TYPES_H.
38523         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
38524         using the code directly.
38525         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
38526         gl_SYS_TYPES_H.
38527         * modules/sys_types (Files):
38528         * modules/unistd (Files): Add m4/off_t.m4.
38530 2012-05-03  Bruno Haible  <bruno@clisp.org>
38532         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
38533         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
38534         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
38535         "guessing yes" or "guessing no".
38536         (gl_FUNC_LSTAT): Update.
38537         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
38538         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
38539         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
38541 2012-05-03  Bruno Haible  <bruno@clisp.org>
38543         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
38544         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
38545         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
38546         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
38547         cross-compiling, choose the first alternative on glibc systems.
38548         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
38550 2012-05-03  Bruno Haible  <bruno@clisp.org>
38552         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
38553         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
38554         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
38556 2012-05-03  Bruno Haible  <bruno@clisp.org>
38558         chown: Avoid "guessing no" when cross-compiling to glibc systems.
38559         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
38561 2012-05-03  Bruno Haible  <bruno@clisp.org>
38563         Avoid "guessing no" guesses when cross-compiling to glibc systems.
38564         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
38565         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
38566         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
38567         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
38568         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
38569         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
38570         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
38571         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
38572         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
38573         compiling to glibc systems, set gl_cv_func_chown_slash_works,
38574         gl_cv_func_chown_ctime_works to "guessing yes".
38575         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
38576         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
38577         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
38578         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
38579         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
38580         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
38581         compiling to glibc systems, set gl_cv_func_open_directory_works to
38582         "guessing yes".
38583         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
38584         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
38585         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
38586         "guessing yes".
38587         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
38588         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
38589         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
38590         compiling to glibc systems, set gl_cv_func_floorf_ieee to
38591         "guessing yes".
38592         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
38593         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
38594         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
38595         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
38596         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
38597         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
38598         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
38599         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
38600         "guessing yes".
38601         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
38602         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
38603         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
38604         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
38605         "guessing yes".
38606         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
38607         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
38608         "guessing yes".
38609         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
38610         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
38611         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
38612         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
38613         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
38614         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
38615         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
38616         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
38617         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
38618         compiling to glibc systems, set gl_cv_func_log10f_ieee to
38619         "guessing yes".
38620         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
38621         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
38622         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
38623         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
38624         "guessing yes".
38625         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
38626         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
38627         "guessing yes".
38628         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
38629         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
38630         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
38631         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
38632         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
38633         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
38634         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
38635         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
38636         compiling to glibc systems, set gl_cv_func_mkfifo_works to
38637         "guessing yes".
38638         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
38639         compiling to glibc systems, set gl_cv_func_mknod_works to
38640         "guessing yes".
38641         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
38642         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
38643         "guessing yes".
38644         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
38645         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
38646         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
38647         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
38648         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
38649         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
38650         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
38651         compiling to glibc systems, set gl_cv_func_svid_putenv to
38652         "guessing yes".
38653         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
38654         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
38655         "guessing yes".
38656         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
38657         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
38658         "guessing yes".
38659         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
38660         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
38661         to "guessing yes".
38662         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
38663         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
38664         to "guessing yes".
38665         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
38666         compiling to glibc systems, set gl_cv_func_rmdir_works to
38667         "guessing yes".
38668         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
38669         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
38670         gl_cv_func_unlink_parent_fails to "guessing yes".
38671         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
38672         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
38673         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
38674         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
38675         gl_cv_func_rename_dest_works to "guessing yes".
38676         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
38677         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
38678         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
38679         compiling to glibc systems, set gl_cv_func_roundf_ieee to
38680         "guessing yes".
38681         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
38682         compiling to glibc systems, set gl_cv_func_roundl_ieee to
38683         "guessing yes".
38684         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
38685         compiling to glibc systems, set gl_cv_func_setenv_works to
38686         "guessing yes".
38687         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
38688         compiling to glibc systems, set gl_cv_func_unsetenv_works to
38689         "guessing yes".
38690         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
38691         compiling to glibc systems, set gl_cv_func_sleep_works to
38692         "guessing yes".
38693         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
38694         compiling to glibc systems, set gl_cv_func_stat_file_slash to
38695         "guessing yes".
38696         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
38697         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
38698         "guessing yes".
38699         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
38700         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
38701         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
38702         compiling to glibc systems, set gl_cv_func_truncf_ieee to
38703         "guessing yes".
38704         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
38705         compiling to glibc systems, set gl_cv_func_truncl_ieee to
38706         "guessing yes".
38707         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
38708         compiling to glibc systems, set gl_cv_func_usleep_works to
38709         "guessing yes".
38710         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
38711         compiling to glibc systems, set gl_cv_func_futimesat_works to
38712         "guessing yes".
38714 2012-05-03  Bruno Haible  <bruno@clisp.org>
38716         Say "guessing yes" or "guessing no" when cross-compiling.
38717         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
38718         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
38719         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
38720         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
38721         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
38722         am_cv_func_working_getline to "guessing yes" or "guessing no".
38723         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
38724         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
38725         (gl_FUNC_MEMMEM): When cross-compiling, set
38726         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
38727         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
38728         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
38729         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
38730         set gl_cv_func_strcasestr_works_always to "guessing yes" or
38731         "guessing no".
38732         (gl_FUNC_STRCASESTR): When cross-compiling, set
38733         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
38734         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
38735         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
38736         (gl_FUNC_STRSTR): When cross-compiling, set
38737         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
38738         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
38739         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
38740         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
38741         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
38743 2012-05-01  Bruno Haible  <bruno@clisp.org>
38745         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
38746         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
38747         * build-aux/reloc-ldflags: Likewise.
38748         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
38750 2012-05-01  Bruno Haible  <bruno@clisp.org>
38752         gnulib-tool: Remove transitional code.
38753         * gnulib-tool: Don't warn about --import with 0 arguments any more.
38754         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
38756 2012-05-01  Bruno Haible  <bruno@clisp.org>
38758         getcwd: Fix misindentation.
38759         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
38761 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
38763         exclude: process exclude and include directives in order
38764         This restores the pre-2009 behavior, and is part of a fix of a
38765         grep bug reported by Quentin Arce in
38766         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
38767         * lib/exclude.c (struct exclude): Remove 'tail' member.
38768         (new_exclude_segment): Prepend the new segment instead of appending.
38769         Return void, since that's now more convenient.
38770         (file_pattern_matches): Renamed from excluded_file_pattern_p.
38771         (file_name_matches): Renamed from excluded_file_name_p.
38772         (file_pattern_matches, file_name_matches):
38773         Return true if the pattern matches, not if it excludes.
38774         All callers changed.
38775         (excluded_file_name): Process the list in reverse order;
38776         since the list is now reversed this restores the pre-2009 behavior.
38777         (add_exclude): Adjust to new reversed-order list.  Use local var
38778         rather than macro, for clarity.
38779         * tests/test-exclude7.sh: Adjust to corrected behavior.
38781         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
38782         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
38783         it's not possible here.  Handle the case of \ at end of pattern
38784         without dumping core.
38785         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
38787         _Noreturn: future-proof non-GNU and non-MSVC compilers
38788         * build-aux/snippet/_Noreturn.h (_Noreturn):
38789         * m4/gnulib-common.m4 (gl_COMMON_BODY):
38790         Do not define _Noreturn if __STDC_VERSION__ indicates this is
38791         C11 or later.  This is more likely to work with random future C
38792         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
38793         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
38795         exclude: handle wildcards with FNM_EXTMATCH
38796         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
38797         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
38798         comment that "has wildcards" really means "has or may have
38799         wildcards".  Simplify by avoiding the need to call strcspn.
38801 2012-04-29  Bruno Haible  <bruno@clisp.org>
38803         gnulib-tool: Fix list of authors.
38804         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
38806 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
38808         bootstrap: support Automake-NG in $buildreq
38809         * bootstrap (check_versions): Handle automake and aclocal from
38810         Automake-NG specially.  They can be specified as respectively
38811         the "automake-ng" and "aclocal-ng" requirements.
38813 2012-04-25  Eric Blake  <eblake@redhat.com>
38815         bootstrap: only force latest Makefile.in.in for gettext module
38816         * build-aux/bootstrap (with_gettext): Only install latest
38817         Makefile.in.in for projects requesting bleeding edge gettext.
38819 2012-04-22  Bruno Haible  <bruno@clisp.org>
38821         doc: Mention reason for replacement on glibc/Linux systems.
38822         * doc/posix-functions/dprintf.texi: Mention the problem with special
38823         'long double' values.
38824         * doc/posix-functions/fprintf.texi: Likewise.
38825         * doc/posix-functions/printf.texi: Likewise.
38826         * doc/posix-functions/snprintf.texi: Likewise.
38827         * doc/posix-functions/sprintf.texi: Likewise.
38828         * doc/posix-functions/vdprintf.texi: Likewise.
38829         * doc/posix-functions/vfprintf.texi: Likewise.
38830         * doc/posix-functions/vprintf.texi: Likewise.
38831         * doc/posix-functions/vsnprintf.texi: Likewise.
38832         * doc/posix-functions/vsprintf.texi: Likewise.
38833         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
38834         platforms with F_DUPFD_CLOEXEC problems.
38835         * doc/posix-functions/glob.texi: Mention which platforms are affected
38836         by the problem with symbolic links.
38837         * doc/posix-functions/linkat.texi: Mention the problem with
38838         AT_SYMLINK_FOLLOW on Linux.
38840 2012-04-22  Bruno Haible  <bruno@clisp.org>
38842         pwrite: Don't replace on all platforms.
38843         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
38845 2012-04-22  Bruno Haible  <bruno@clisp.org>
38847         rint* tests: Avoid gcc warnings.
38848         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
38849         * tests/test-rintf.c (INFINITY, NAN): Likewise.
38850         * tests/test-rintl.c (INFINITY, NAN): Likewise.
38852 2012-04-21  Bruno Haible  <bruno@clisp.org>
38854         users.txt: Update.
38855         * users.txt: Add freedink, wdiff. Update URLs for projects that have
38856         switched from CVS to git, bzr, or svn.
38858 2012-04-21  Bruno Haible  <bruno@clisp.org>
38860         Large File Support for native Windows platforms.
38862         * m4/largefile.m4 (gl_LARGEFILE): New macro.
38863         * modules/largefile (configure.ac): Require gl_LARGEFILE.
38865         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
38866         type.
38867         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
38868         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
38869         * doc/posix-headers/sys_types.texi: Mention the effect of the
38870         'largefile' module.
38872         * lib/fcntl.in.h: Add comments about off_t.
38873         * modules/fcntl-h (Depends-on): Add sys_types.
38875         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
38876         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
38877         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
38878         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
38879         * modules/unistd (Depends-on): Add sys_types.
38880         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
38882         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
38883         instead of lseek.
38884         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
38885         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
38886         * modules/lseek (Depends-on): Add sys_types.
38888         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
38889         msvc-nothrow.h.
38890         (SetFileSize): New function.
38891         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
38892         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
38893         if Large File Support is requested.
38894         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
38895         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
38897         * lib/stdio.in.h: Add comments about off_t.
38898         * modules/stdio (Depends-on): Add sys_types.
38900         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
38901         instead of ftello.
38902         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
38903         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
38904         (gl_PREREQ_FTELLO): New macro.
38905         * modules/ftello (Depends-on): Add sys_types.
38906         (configure.ac): Incoke gl_PREREQ_FTELLO.
38908         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
38909         instead of fseeko.
38910         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
38911         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
38912         (gl_PREREQ_FSEEKO): New macro.
38913         * modules/fseeko (Depends-on): Add sys_types.
38914         (configure.ac): Invoke gl_PREREQ_FSEEKO.
38916         * lib/sys_stat.in.h: Add comments about off_t.
38917         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
38918         64-bit integer for st_size in 'struct stat'.
38919         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
38920         Define _GL_WINDOWS_64_BIT_ST_SIZE.
38921         * modules/sys_stat (Depends-on): Add sys_types.
38922         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
38924         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
38925         instead of stat or _stat.
38927         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
38928         'struct _stati64' instead of fstat and 'struct stat'.
38929         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
38930         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
38932         Reported by Ray Satiro <raysatiro@yahoo.com>.
38934 2012-04-19  Eric Blake  <eblake@redhat.com>
38936         bootstrap: accommodate older libtool
38937         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
38938         Reported by Daniel P. Berrange.
38940 2012-04-19  Jim Meyering  <meyering@redhat.com>
38942         announce-gen: avoid failure due to lack of Digest::SHA1
38943         Even with the preferred Digest::SHA available, this script
38944         would fail when the backup module, Digest::SHA1, was not installed.
38945         * build-aux/announce-gen: Quote the conditional use of "use".
38946         Reported by Reuben Thomas in:
38947         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
38949         bootstrap: don't let a user's CDPATH setting affect this script
38950         When CDPATH is set, cd will sometimes generate output.
38951         When "cd" is run in a subshell whose output matters, that
38952         surprising-to-some output can cause malfunction.
38953         Unsetting CDPATH turns off this shell "feature."
38954         * build-aux/bootstrap (CDPATH): Unset.
38955         Reported by Reuben Thomas in:
38956         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
38957         and inspired by his patch here:
38958         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
38960 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
38961         and Jim Meyering  <meyering@redhat.com>
38963         maint.mk: catch "see @xref{}" and similar
38964         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
38965         prohibit "See also @xref{", "Also see @pxref{", and similar.
38967 2012-04-16  Jim Meyering  <meyering@redhat.com>
38969         bootstrap: really use gnulib's po/Makefile.in.in
38970         * build-aux/bootstrap: Correct the source file name in previous change.
38971         Reported by Akim Demaille.
38973         configmake: correct minor inconsistency in Makefile rule
38974         * modules/configmake (Makefile.am): All other rules like this one
38975         run the final "mv -f ..." in the same backslash-continued command
38976         as the one that does everything else.  This one put the mv -f ...
38977         command on a separate, non-backslash-continued line.
38978         Make it like the others.
38980         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
38981         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
38982         the one from gettext.  Reported by Akim Demaille.
38984 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
38986         Fix recursion of install-* into po directories.
38987         Bison's install-pdf bug reported by Hans Aberg at
38988         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
38989         * build-aux/po/Makefile.in.in (install-dvi, install-html)
38990         (install-info, install-pdf, install-ps): New targets.
38992 2012-04-16  Jim Meyering  <meyering@redhat.com>
38994         maint: avoid spurious "make sc_maint" failure
38995         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
38996         exempt all *.class file names, for lib/javaversion.class.
38998 2012-04-15  Bruno Haible  <bruno@clisp.org>
39000         lseek: Make configure test independent of environment.
39001         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
39002         Windows, we know that lseek() on pipes is broken; skip the runtime
39003         test.
39005 2012-04-14  Bruno Haible  <bruno@clisp.org>
39007         stat: Bypass buggy override in mingw64.
39008         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
39009         * lib/stat.c (stat) [mingw64]: Define to _stat.
39010         * doc/posix-functions/stat.texi: Mention mingw64 bug.
39012 2012-04-14  Bruno Haible  <bruno@clisp.org>
39014         pathmax: Fix compilation error on MSVC 9.
39015         * modules/pathmax (Depends-on): Add unistd.
39017 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
39019         README: document pointer comparison assumption
39020         * README (Portability guidelines): Document assumption about
39021         pointer comparisons, in response to a recent bug-gnulib comment by
39022         Jeffrey Kegler.
39024 2012-04-12  Bruno Haible  <bruno@clisp.org>
39026         Tests for module 'getrusage'.
39027         * modules/getrusage-tests: New file.
39028         * tests/test-getrusage.c: New file.
39030         New module 'getrusage'.
39031         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
39032         warn-on-use.h.
39033         (getrusage): New declaration.
39034         * lib/getrusage.c: New file.
39035         * m4/getrusage.m4: New file.
39036         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
39037         is declared.
39038         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
39039         HAVE_GETRUSAGE.
39040         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
39041         snippet/c++defs, snippet/warn-on-use.
39042         (Makefile.am): Update generation of sys/resource.h. Substitute
39043         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
39044         * modules/getrusage: New file.
39045         * doc/posix-functions/getrusage.texi: Mention the new module.
39047 2012-04-12  Bruno Haible  <bruno@clisp.org>
39049         Tests for module 'sys_resource'.
39050         * modules/sys_resource-tests: New file.
39051         * tests/test-sys_resource.c: New file.
39053         New module 'sys_resource'.
39054         * lib/sys_resource.in.h: New file.
39055         * m4/sys_resource_h.m4: New file.
39056         * modules/sys_resource: New file.
39057         * doc/posix-headers/sys_resource.texi: Mention the new module.
39059 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
39061         ioctl: Fix compilation error on mingw.
39062         * lib/ioctl.c: Include <windows.h>.
39063         Also reported by Ray Satiro <raysatiro@yahoo.com>.
39065 2012-04-04  Jim Meyering  <meyering@redhat.com>
39067         regex: correct #pragma guard expression
39068         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
39069         not 4.3.  Correct its cpp guard expression.
39071 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
39073         regex: remove unnecessary type punning
39074         Problem reported by Vladimir Serbinenko in
39075         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
39076         * lib/regex.h (struct re_pattern_buffer): Change the type of
39077         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
39078         Fix comment to match code.
39079         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
39080         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
39081         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
39082         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
39083         (set_regs):
39084         Omit no-longer-necessary casts.
39086 2012-04-03  Bruno Haible  <bruno@clisp.org>
39088         Tests for module 'ilogbl'.
39089         * modules/ilogbl-tests: New file.
39090         * tests/test-ilogbl.c: New file.
39092         New module 'ilogbl'.
39093         * lib/math.in.h (ilogbl): New declaration.
39094         * lib/ilogbl.c: New file.
39095         * m4/ilogbl.m4: New file.
39096         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
39097         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
39098         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
39099         Split sed invocation, to avoid the limit of 100 substitutions of
39100         HP-UX 'sed'.
39101         * modules/ilogbl: New file.
39102         * tests/test-math-c++.cc: Check the declaration of ilogbl.
39103         * doc/posix-functions/ilogbl.texi: Mention the new module.
39105 2012-04-03  Bruno Haible  <bruno@clisp.org>
39107         Tests for module 'ilogbf'.
39108         * modules/ilogbf-tests: New file.
39109         * tests/test-ilogbf.c: New file.
39111         New module 'ilogbf'.
39112         * lib/math.in.h (ilogbf): New declaration.
39113         * lib/ilogbf.c: New file.
39114         * m4/ilogbf.m4: New file.
39115         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
39116         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
39117         REPLACE_ILOGBF.
39118         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
39119         REPLACE_ILOGBF.
39120         * modules/ilogbf: New file.
39121         * tests/test-math-c++.cc: Check the declaration of ilogbf.
39122         * doc/posix-functions/ilogbf.texi: Mention the new module.
39124 2012-04-03  Bruno Haible  <bruno@clisp.org>
39126         Tests for module 'ilogb'.
39127         * modules/ilogb-tests: New file.
39128         * tests/test-ilogb.c: New file.
39129         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
39130         tests/test-logb-ieee.h.
39132         New module 'ilogb'.
39133         * lib/math.in.h (ilogb): New declaration.
39134         * lib/ilogb.c: New file.
39135         * m4/ilogb.m4: New file.
39136         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
39137         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
39138         REPLACE_ILOGB.
39139         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
39140         REPLACE_ILOGB.
39141         * modules/ilogb: New file.
39142         * tests/test-math-c++.cc: Check the declaration of ilogb.
39143         * doc/posix-functions/ilogb.texi: Mention the new module.
39145 2012-04-03  Bruno Haible  <bruno@clisp.org>
39147         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
39148         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
39149         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
39150         (main): Check their values.
39151         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
39152         problem.
39154 2012-04-03  Bruno Haible  <bruno@clisp.org>
39156         Tests for module 'logbl-ieee'.
39157         * modules/logbl-ieee-tests: New file.
39158         * tests/test-logbl-ieee.c: New file.
39160         New module 'logbl-ieee'.
39161         * modules/logbl-ieee: New file.
39163         Tests for module 'logb-ieee'.
39164         * modules/logb-ieee-tests: New file.
39165         * tests/test-logb-ieee.c: New file.
39167         New module 'logb-ieee'.
39168         * modules/logb-ieee: New file.
39170         Tests for module 'logbf-ieee'.
39171         * modules/logbf-ieee-tests: New file.
39172         * tests/test-logbf-ieee.c: New file.
39173         * tests/test-logb-ieee.h: New file.
39175         New module 'logbf-ieee'.
39176         * modules/logbf-ieee: New file.
39178 2012-04-03  Bruno Haible  <bruno@clisp.org>
39180         Tests for module 'logbl'.
39181         * modules/logbl-tests: New file.
39182         * tests/test-logbl.c: New file.
39184         New module 'logbl'.
39185         * lib/math.in.h (logbl): New declaration.
39186         * lib/logbl.c: New file.
39187         * m4/logbl.m4: New file.
39188         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
39189         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
39190         REPLACE_LOGBL.
39191         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
39192         REPLACE_LOGBL.
39193         * modules/logbl: New file.
39194         * tests/test-math-c++.cc: Check the declaration of logbl.
39195         * doc/posix-functions/logbl.texi: Mention the new module.
39197 2012-04-02  Bruno Haible  <bruno@clisp.org>
39199         Tests for module 'logbf'.
39200         * modules/logbf-tests: New file.
39201         * tests/test-logbf.c: New file.
39203         New module 'logbf'.
39204         * lib/math.in.h (logbf): New declaration.
39205         * lib/logbf.c: New file.
39206         * m4/logbf.m4: New file.
39207         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
39208         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
39209         REPLACE_LOGBF.
39210         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
39211         REPLACE_LOGBF.
39212         * modules/logbf: New file.
39213         * tests/test-math-c++.cc: Check the declaration of logbf.
39214         * doc/posix-functions/logbf.texi: Mention the new module.
39216 2012-04-02  Bruno Haible  <bruno@clisp.org>
39218         logb tests: More tests.
39219         * tests/test-logb.h: New file, based on tests/test-logb.c and
39220         tests/test-frexp.h.
39221         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
39222         (main): Just invoke test_function.
39223         * modules/logb-tests (Files): Add tests/test-logb.h,
39224         tests/minus-zero.h, tests/randomd.c.
39225         (Makefile.am): Add randomd.c to test_logb_SOURCES.
39227         logb: Provide replacement and workarounds.
39228         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
39229         is 1.
39230         * lib/logb.c: New file.
39231         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
39232         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
39233         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
39234         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
39235         * modules/logb (Files): Add lib/logb.c.
39236         (Depends-on): Add isfinite, frexp, isnand.
39237         (configure.ac): Compile the replacement code logb.c if needed.
39238         * tests/test-math-c++.cc: Check the declaration of logb.
39239         * doc/posix-functions/logb.texi: Mention the replacement and the bug
39240         with subnormal numbers.
39242 2012-04-02  Bruno Haible  <bruno@clisp.org>
39244         log10* tests: Speed up.
39245         * tests/test-log10.h (test_function): Reduce amount of random numbers
39246         to test.
39248 2012-04-01  Bruno Haible  <bruno@clisp.org>
39250         logf-ieee: Fix test whether logf works.
39251         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
39253 2012-04-01  Bruno Haible  <bruno@clisp.org>
39255         log10l: Work around log10l-ieee test failure on IRIX 6.5.
39256         * lib/log10l.c: Include <float.h>
39257         (log10l): On IRIX, normalize the +Infinity value.
39258         * modules/log10l (Depends-on): Add 'float'.
39259         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
39260         +Infinity.
39262         log10f-ieee: Work around test failure on NetBSD 5.1.
39263         * m4/log10f-ieee.m4: New file.
39264         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
39265         test whether log10f works with a negative argument. Replace it if not.
39266         * lib/log10f.c (log10f): For negative arguments, return NaN.
39267         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
39268         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
39269         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
39271         log10f-ieee: Work around test failure on Solaris 9.
39272         * modules/log10f-ieee (Depends-on): Add log10-ieee.
39273         (configure.ac): Require gl_FUNC_LOG10F.
39275         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
39276         * m4/log10-ieee.m4: New file.
39277         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
39278         whether log10 works with a negative argument. Replace it if not.
39279         * lib/log10.c (log10): For negative arguments, return NaN.
39280         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
39281         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
39282         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
39284         Tests for module 'log10l-ieee'.
39285         * modules/log10l-ieee-tests: New file.
39286         * tests/test-log10l-ieee.c: New file.
39288         New module 'log10l-ieee'.
39289         * modules/log10l-ieee: New file.
39291         Tests for module 'log10-ieee'.
39292         * modules/log10-ieee-tests: New file.
39293         * tests/test-log10-ieee.c: New file.
39295         New module 'log10-ieee'.
39296         * modules/log10-ieee: New file.
39298         Tests for module 'log10f-ieee'.
39299         * modules/log10f-ieee-tests: New file.
39300         * tests/test-log10f-ieee.c: New file.
39301         * tests/test-log10-ieee.h: New file.
39303         New module 'log10f-ieee'.
39304         * modules/log10f-ieee: New file.
39306 2012-04-01  Bruno Haible  <bruno@clisp.org>
39308         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
39309         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
39310         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
39311         workaround.
39312         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
39313         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
39314         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
39315         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
39316         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
39317         (Depends-on): Update conditions.
39318         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
39319         IRIX 6.5, OSF/1 5.1 problems.
39321 2012-04-01  Bruno Haible  <bruno@clisp.org>
39323         log10f: Work around OSF/1 5.1 bug.
39324         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
39325         * lib/log10f.c (log10f): If logf exists, use it and provide just the
39326         workaround.
39327         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
39328         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
39329         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
39330         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
39331         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
39332         (Depends-on): Update conditions.
39333         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
39335 2012-04-01  Bruno Haible  <bruno@clisp.org>
39337         log10: Work around OSF/1 5.1 bug.
39338         * lib/math.in.h (log10): New declaration.
39339         * lib/log10.c: New file.
39340         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
39341         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
39342         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
39343         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
39344         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
39345         * modules/log10 (Files): Add lib/log10.c.
39346         (Depends-on): Add math.
39347         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
39348         * tests/test-math-c++.cc: Check the declaration of log10.
39349         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
39351 2012-03-31  Bruno Haible  <bruno@clisp.org>
39353         log10l tests: More tests.
39354         * modules/log10l-tests (Files): Add tests/test-log10l.h,
39355         tests/minus-zero.h, tests/randoml.c.
39356         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
39357         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
39358         (main): Invoke test_function.
39360         log10f tests: More tests.
39361         * modules/log10f-tests (Files): Add tests/test-log10.h,
39362         tests/minus-zero.h, tests/randomf.c.
39363         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
39364         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
39365         (main): Invoke test_function.
39367         log10 tests: More tests.
39368         * tests/test-log10.h: New file.
39369         * modules/log10-tests (Files): Add tests/test-log10.h,
39370         tests/minus-zero.h, tests/randomd.c.
39371         (Makefile.am): Add randomd.c to test_log10_SOURCES.
39372         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
39373         (main): Invoke test_function.
39375 2012-03-31  Simon Josefsson  <simon@josefsson.org>
39377         fflush: Fix syntax error.
39378         * lib/fflush.c: Include unused-parameter.h, needed for
39379         _GL_UNUSED_PARAMETER.
39380         * modules/fflush (Depends-on): Add snippet/unused-parameter.
39382 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
39384         regex: pacify GCC when compiling GRUB
39385         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
39386         a diagnostic.  Reported by Vladimir Serbinenko in
39387         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
39389 2012-03-29  Eric Blake  <eblake@redhat.com>
39391         stdio: don't assume gets any more
39392         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
39393         support.
39394         * modules/stdio (Makefile.am): Likewise.
39395         * lib/stdio-read.c (gets): Likewise.
39396         * tests/test-stdio-c++.cc: Likewise.
39397         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
39398         * lib/stdio.in.h (gets): Make warning occur in more places.
39399         * doc/posix-functions/gets.texi (gets): Update documentation.
39400         Reported by Christer Solskogen.
39402         maint.mk: fix syntax checks without exclusions
39403         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
39404         Reported by Daniel P. Berrange.
39406         strerror_r: avoid compiler warning
39407         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
39408         level.
39410         fflush: avoid compiler warning
39411         * lib/fflush.c (update_fpos_cache): Mark variables that are
39412         potentially unused.
39414 2012-03-25  Bruno Haible  <bruno@clisp.org>
39416         Tests for module 'localeconv'.
39417         * modules/localeconv-tests: New file.
39418         * tests/test-localeconv.c: New file.
39420         New module 'localeconv'.
39421         * lib/locale.in.h (localeconv): New declaration.
39422         * lib/localeconv.c: New file.
39423         * m4/localeconv.m4: New file.
39424         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
39425         REPLACE_LOCALECONV.
39426         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
39427         REPLACE_LOCALECONV.
39428         * modules/localeconv: New file.
39429         * modules/nl_langinfo (Depends-on): Add localeconv.
39430         * modules/human (Depends-on): Likewise.
39431         * doc/posix-functions/localeconv.texi: Mention the new module.
39433 2012-03-25  Bruno Haible  <bruno@clisp.org>
39435         locale: Provide a complete 'struct lconv'.
39436         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
39437         'struct lconv' does not contain int_p_cs_precedes.
39438         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
39439         * doc/posix-headers/locale.texi: Update.
39441         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
39442         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
39443         * doc/posix-headers/locale.texi: Update.
39445         locale: Provide a working 'struct lconv'.
39446         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
39447         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
39448         'struct lconv' does not even contain decimal_point.
39449         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
39450         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
39451         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
39452         * doc/posix-headers/locale.texi: Mention the problems with
39453         'struct lconv'.
39454         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
39456 2012-03-24  Bruno Haible  <bruno@clisp.org>
39458         Enable common subexpression optimization in GCC.
39459         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
39460         macros.
39461         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
39462         GCC attribute 'const'.
39463         (uc_locale_language): Declare with GCC attribute 'pure'.
39464         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
39465         with GCC attribute 'const'.
39466         * lib/unictype.in.h (uc_is_general_category_withtable,
39467         uc_combining_class, uc_combining_class_name,
39468         uc_combining_class_long_name, uc_bidi_class_name,
39469         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
39470         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
39471         uc_decimal_value, uc_digit_value, uc_numeric_value,
39472         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
39473         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
39474         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
39475         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
39476         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
39477         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
39478         Declare with GCC attribute 'const'.
39479         (uc_general_category_name, uc_general_category_long_name,
39480         uc_general_category_byname, uc_general_category,
39481         uc_is_general_category, uc_combining_class_byname,
39482         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
39483         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
39484         Declare with GCC attribute 'pure'.
39485         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
39486         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
39487         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
39488         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
39489         with GCC attribute 'pure'.
39490         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
39491         'const'.
39492         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
39493         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
39494         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
39495         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
39496         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
39497         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
39498         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
39499         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
39500         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
39501         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
39502         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
39503         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
39504         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
39505         GCC attribute 'pure'.
39506         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
39507         'const'.
39508         * lib/uniwidth.in.h (uc_width): Simplify declaration.
39509         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
39510         u32_strwidth): Declare with GCC attribute 'pure'.
39512         Enable common subexpression optimization in GCC.
39513         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
39514         (alphasort): Declare with GCC attribute 'pure'.
39515         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
39516         (atoll): Declare with GCC attribute 'pure'.
39517         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
39518         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
39519         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
39520         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
39521         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
39522         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
39523         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
39525 2012-03-24  Bruno Haible  <bruno@clisp.org>
39527         gnulib-tool: Avoid unintended error output from 'cmp'.
39528         * gnulib-tool (func_add_file, func_update_file, func_import): Use
39529         "cmp -s", not "cmp > /dev/null".
39531 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
39533         gnulib-tool: fix imprecise comments w.r.t. an automake bug
39535         It's not just Automake versions < 1.9b that creates an empty
39536         pkgdatadir at installation time if pkgdata_DATA is specified
39537         to empty; modern automake versions do this as well, at least
39538         until automake 1.11.4 (not yet released at the moment of writing,
39539         but soon to appear).  That behaviour was generally considered a
39540         feature rather than a bug, at least until this discussion:
39541         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
39543         See also automake bugs #10997 and #11030.
39545         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
39546         reference to relevant automake bug numbers.
39547         (func_emit_tests_Makefile_am): Likewise.
39549 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
39551         announce-gen: use Digest::SHA when possible
39552         * build-aux/announce-gen: Use Digest::SHA when possible, falling
39553         back to Digest::SHA1 if necessary.
39555 2012-03-20  Jim Meyering  <meyering@redhat.com>
39557         tests: avoid gcc warnings about argv vs. const initializers
39558         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
39559         warnings about discarding 'const' qualifier from pointer target type.
39560         * tests/test-posix_spawn2.c (main): Likewise.
39562 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
39564         README-release: simplify slightly
39565         * top/README-release: Run "git checkout master" only once.
39567 2012-03-15  Mark Wielaard  <mark@klomp.org>
39569         git-merge-changelog: add specific example on how to use with hg.
39570         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
39572 2012-03-18  Mark Wielaard  <mark@klomp.org>
39574         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
39576 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
39578         git-version-gen: don't let "prefix" envvar cause trouble
39579         * build-aux/git-version-gen (prefix): Initialize properly,
39580         so as not to use a value specified via the environment.
39581         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
39583 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
39585         regex: diagnose too-large repeat counts in EREs
39586         Previously, the code did not diagnose the too-large repeat count
39587         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
39588         as if it were 'b\{1000000000}', which is unexpected.
39589         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
39590         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
39591         is a reasonable one for this problem.  Another option would be to
39592         create a new REG_OVERFLOW error for repeat counts that are too large.
39593         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
39594         count is too large, so that the caller can distinguish the two cases.
39595         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
39596         "Too large" return code, and that repeat counts are one example of this.
39598 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
39600         doc: some glibc x32 integer width issues
39601         * doc/posix-headers/sys_types.texi (sys/types.h):
39602         * doc/posix-headers/time.texi (time.h):
39603         Mention that glibc x32 does not conform to POSIX in a couple of
39604         areas related to integer widths.
39606 2012-03-15  Bruno Haible  <bruno@clisp.org>
39608         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
39609         * lib/fma.c (VOLATILE): New macro.
39610         (FUNC): Use it to work around a GCC compiler bug.
39612 2012-03-13  Bruno Haible  <bruno@clisp.org>
39614         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39615         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
39616         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
39617         REPLACE_HYPOTL to 1.
39618         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
39620 2012-03-13  Bruno Haible  <bruno@clisp.org>
39622         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39623         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
39624         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
39625         REPLACE_REMAINDERL to 1.
39626         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
39627         bug.
39629 2012-03-13  Bruno Haible  <bruno@clisp.org>
39631         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39632         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
39633         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
39634         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
39635         too big rounding errors.
39636         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
39637         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
39638         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
39639         (Depends-on): Update conditions.
39640         * tests/test-sqrtl.c (my_ldexpl): New function.
39641         (main): Add test of a particular value.
39642         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
39644 2012-03-13  Pádraig Brady  <P@draigBrady.com>
39646         doc: Update timer_* platform portability notes.
39647         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
39648         that always return ENOSYS.
39649         * doc/posix-functions/timer_delete.texi: Likewise.
39650         * doc/posix-functions/timer_gettime.texi: Likewise.
39651         * doc/posix-functions/timer_settime.texi: Likewise.
39653 2012-03-13  Bruno Haible  <bruno@clisp.org>
39655         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39656         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
39657         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
39658         REPLACE_CBRTL to 1.
39659         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
39661 2012-03-13  Bruno Haible  <bruno@clisp.org>
39663         remainderl: Avoid compilation error on AIX >= 5.2.
39664         * lib/math.in.h (remainderl): Undefine macro from the system header.
39666 2012-03-13  Bruno Haible  <bruno@clisp.org>
39668         Avoid compilation errors with MSVC option -fp:strict.
39669         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
39670         * lib/cbrtf.c: Likewise.
39671         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
39673 2012-03-12  Bruno Haible  <bruno@clisp.org>
39675         uninorm: Don't crash in out-of-memory conditions.
39676         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
39677         gracefully.
39678         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
39679         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
39681 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
39683         quote: fix syntax-check
39684         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
39685         also exports quote_quoting_options.
39687 2012-03-12  Simon Josefsson  <simon@josefsson.org>
39689         Collapse list of copyright years to ranges.  See
39690         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
39691         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
39692         build-aux/csharpexec.sh.in, build-aux/gnupload,
39693         build-aux/install-reloc, build-aux/javacomp.sh.in,
39694         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
39695         build-aux/move-if-change, build-aux/reloc-ldflags,
39696         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
39698 2012-03-11  Bruno Haible  <bruno@clisp.org>
39700         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
39701         * m4/log2f-ieee.m4: New file.
39702         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
39703         whether log2f works with a minus zero argument. Replace it if not.
39704         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
39705         (Depends-on): Add log2-ieee.
39706         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
39707         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
39709         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
39710         * m4/log2-ieee.m4: New file.
39711         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
39712         whether log2 works with a minus zero argument. Replace it if not.
39713         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
39714         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
39715         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
39717         Tests for module 'log2l-ieee'.
39718         * modules/log2l-ieee-tests: New file.
39719         * tests/test-log2l-ieee.c: New file.
39721         New module 'log2l-ieee'.
39722         * modules/log2l-ieee: New file.
39724         Tests for module 'log2-ieee'.
39725         * modules/log2-ieee-tests: New file.
39726         * tests/test-log2-ieee.c: New file.
39728         New module 'log2-ieee'.
39729         * modules/log2-ieee: New file.
39731         Tests for module 'log2f-ieee'.
39732         * modules/log2f-ieee-tests: New file.
39733         * tests/test-log2f-ieee.c: New file.
39734         * tests/test-log2-ieee.h: New file.
39736         New module 'log2f-ieee'.
39737         * modules/log2f-ieee: New file.
39739 2012-03-11  Bruno Haible  <bruno@clisp.org>
39741         Tests for module 'log2l'.
39742         * modules/log2l-tests: New file.
39743         * tests/test-log2l.c: New file.
39745         New module 'log2l'.
39746         * lib/math.in.h (log2l): New declaration.
39747         * lib/log2l.c: New file.
39748         * m4/log2l.m4: New file.
39749         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
39750         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
39751         REPLACE_LOG2L.
39752         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
39753         REPLACE_LOG2L.
39754         * modules/log2l: New file.
39755         * tests/test-math-c++.cc: Check the declaration of log2l.
39756         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
39757         and OSF/1 problems.
39759 2012-03-11  Bruno Haible  <bruno@clisp.org>
39761         Tests for module 'log2f'.
39762         * modules/log2f-tests: New file.
39763         * tests/test-log2f.c: New file.
39765         New module 'log2f'.
39766         * lib/math.in.h (log2f): New declaration.
39767         * lib/log2f.c: New file.
39768         * m4/log2f.m4: New file.
39769         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
39770         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
39771         REPLACE_LOG2F.
39772         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
39773         REPLACE_LOG2F.
39774         * modules/log2f: New file.
39775         * tests/test-math-c++.cc: Check the declaration of log2f.
39776         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
39777         and OSF/1 and Cygwin problems.
39779 2012-03-11  Bruno Haible  <bruno@clisp.org>
39781         Tests for module 'log2'.
39782         * modules/log2-tests: New file.
39783         * tests/test-log2.c: New file.
39784         * tests/test-log2.h: New file.
39786         New module 'log2'.
39787         * lib/math.in.h (log2): New declaration.
39788         * lib/log2.c: New file.
39789         * m4/log2.m4: New file.
39790         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
39791         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
39792         REPLACE_LOG2.
39793         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
39794         REPLACE_LOG2.
39795         * modules/log2: New file.
39796         * tests/test-math-c++.cc: Check the declaration of log2.
39797         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
39798         and OSF/1 and Cygwin problems.
39800 2012-03-11  Bruno Haible  <bruno@clisp.org>
39802         exp2* tests: More tests.
39803         * tests/test-exp2.h (test_function): Test all integral arguments that
39804         don't need to overflow or denormalized numbers.
39805         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
39806         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
39807         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
39809 2012-03-10  Bruno Haible  <bruno@clisp.org>
39811         log1pl-ieee: Work around test failure on AIX 7.1.
39812         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
39814         log1pl-ieee: Work around test failure on IRIX 6.5.
39815         * m4/log1pl-ieee.m4: New file.
39816         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
39817         test whether log1pl works with a minus zero argument. Replace it if
39818         not.
39819         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
39820         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
39821         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
39822         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
39823         (Depends-on): Update conditions.
39824         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
39825         m4/signbit.m4.
39826         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
39827         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
39829         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
39830         * m4/log1pf-ieee.m4: New file.
39831         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
39832         test whether log1pf works with a minus zero argument. Replace it if
39833         not.
39834         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
39835         m4/signbit.m4.
39836         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
39837         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
39839         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
39840         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
39841         (configure.ac): Require gl_FUNC_LOG1PF.
39843         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
39844         * m4/log1p-ieee.m4: New file.
39845         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
39846         whether log1p works with a minus zero argument. Replace it if not.
39847         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
39848         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
39849         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
39850         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
39851         (Depends-on): Update conditions.
39852         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
39853         m4/signbit.m4.
39854         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
39855         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
39857         Tests for module 'log1pl-ieee'.
39858         * modules/log1pl-ieee-tests: New file.
39859         * tests/test-log1pl-ieee.c: New file.
39861         New module 'log1pl-ieee'.
39862         * modules/log1pl-ieee: New file.
39864         Tests for module 'log1p-ieee'.
39865         * modules/log1p-ieee-tests: New file.
39866         * tests/test-log1p-ieee.c: New file.
39868         New module 'log1p-ieee'.
39869         * modules/log1p-ieee: New file.
39871         Tests for module 'log1pf-ieee'.
39872         * modules/log1pf-ieee-tests: New file.
39873         * tests/test-log1pf-ieee.c: New file.
39874         * tests/test-log1p-ieee.h: New file.
39876         New module 'log1pf-ieee'.
39877         * modules/log1pf-ieee: New file.
39879 2012-03-10  Bruno Haible  <bruno@clisp.org>
39881         Tests for module 'log1pl'.
39882         * modules/log1pl-tests: New file.
39883         * tests/test-log1pl.c: New file.
39885         New module 'log1pl'.
39886         * lib/math.in.h (log1pl): New declaration.
39887         * lib/log1pl.c: New file.
39888         * m4/log1pl.m4: New file.
39889         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
39890         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
39891         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
39892         * modules/log1pl: New file.
39893         * tests/test-math-c++.cc: Check the declaration of log1pl.
39894         * doc/posix-functions/log1pl.texi: Mention the new module.
39896 2012-03-10  Bruno Haible  <bruno@clisp.org>
39898         Tests for module 'log1pf'.
39899         * modules/log1pf-tests: New file.
39900         * tests/test-log1pf.c: New file.
39902         New module 'log1pf'.
39903         * lib/math.in.h (log1pf): New declaration.
39904         * lib/log1pf.c: New file.
39905         * m4/log1pf.m4: New file.
39906         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
39907         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
39908         REPLACE_LOG1PF.
39909         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
39910         REPLACE_LOG1PF.
39911         * modules/log1pf: New file.
39912         * tests/test-math-c++.cc: Check the declaration of log1pf.
39913         * doc/posix-functions/log1pf.texi: Mention the new module.
39915 2012-03-10  Bruno Haible  <bruno@clisp.org>
39917         log1p tests: More tests.
39918         * tests/test-log1p.h: New file.
39919         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
39920         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
39921         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
39922         (main): Invoke test_function.
39924         log1p: Provide replacement for Minix and MSVC.
39925         * lib/math.in.h (log1p): New declaration.
39926         * lib/log1p.c: New file.
39927         * m4/log1p.m4: New file.
39928         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
39929         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
39930         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
39931         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
39932         (Depends-on): Add math, isnand, log, round.
39933         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
39934         HAVE_LOG1P is 0.
39935         * tests/test-math-c++.cc: Check the declaration of log1p.
39936         * doc/posix-functions/log1p.texi: Mention the replacement.
39938 2012-03-10  Bruno Haible  <bruno@clisp.org>
39940         math tests: Small simplification.
39941         * tests/test-exp.h (test_function): Use the same err_bound for
39942         'double' on platforms with sizeof (long double) == sizeof (double)
39943         than on platforms with sizeof (long double) > sizeof (double).
39944         * tests/test-exp2.h (test_function): Likewise.
39945         * tests/test-expm1.h (test_function): Likewise.
39946         * tests/test-log.h (test_function): Likewise.
39948 2012-03-10  Bruno Haible  <bruno@clisp.org>
39950         Fix some comments.
39951         * lib/expl.c: Fix an ambiguous comment.
39952         * lib/expm1.c: Likewise.
39953         * lib/expm1l.c: Likewise.
39954         * lib/exp2.c: Likewise.
39955         * lib/exp2l.c: Likewise.
39957 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
39959         regex: allow inclusion of <regex.h> before <limits.h>
39960         Without this patch, portable programs had to include <limits.h> before
39961         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
39962         I ran into this problem with a test version of GNU grep on Solaris 8.
39963         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
39964         This is done conditionally so that this change can be merged
39965         back to glibc.
39966         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
39967         using the included regex.
39969         fts: depend on fdopendir
39970         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
39971         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
39972         problem was introduced when fdopendir was split out.
39974 2012-03-10  Bruno Haible  <bruno@clisp.org>
39976         Remove unused variables.
39977         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
39978         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
39980 2012-03-10  Bruno Haible  <bruno@clisp.org>
39982         isnanf-nolibm: Fix last commit.
39983         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
39985         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
39986         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
39988 2012-03-10  Bruno Haible  <bruno@clisp.org>
39990         logf-ieee: Work around test failure on NetBSD 5.1.
39991         * m4/logf-ieee.m4: New file.
39992         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
39993         whether logf works with a negative argument. Replace it if not.
39994         * lib/logf.c (logf): For negative arguments, return NaN.
39995         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
39996         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
39997         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
39999         logf-ieee: Work around test failure on Solaris 9.
40000         * modules/logf-ieee (Depends-on): Add log-ieee.
40001         (configure.ac): Require gl_FUNC_LOGF.
40003         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
40004         * m4/log-ieee.m4: New file.
40005         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
40006         log works with a negative argument. Replace it if not.
40007         * lib/log.c (log): For negative arguments, return NaN.
40008         * modules/log-ieee (Files): Add m4/log-ieee.m4.
40009         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
40010         * doc/posix-functions/log.texi: Mention the log-ieee module.
40012         Tests for module 'logl-ieee'.
40013         * modules/logl-ieee-tests: New file.
40014         * tests/test-logl-ieee.c: New file.
40016         New module 'logl-ieee'.
40017         * modules/logl-ieee: New file.
40019         Tests for module 'log-ieee'.
40020         * modules/log-ieee-tests: New file.
40021         * tests/test-log-ieee.c: New file.
40023         New module 'log-ieee'.
40024         * modules/log-ieee: New file.
40026         Tests for module 'logf-ieee'.
40027         * modules/logf-ieee-tests: New file.
40028         * tests/test-logf-ieee.c: New file.
40029         * tests/test-log-ieee.h: New file.
40031         New module 'logf-ieee'.
40032         * modules/logf-ieee: New file.
40034 2012-03-10  Bruno Haible  <bruno@clisp.org>
40036         log: Fix bug introduced on 2012-03-09.
40037         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
40039 2012-03-10  Pádraig Brady  <P@draigBrady.com>
40041         timer-time: link explicitly with pthreads on glibc
40042         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
40043         to support static linking, when newer glibc is
40044         detected, as that contains pthread emulation of
40045         POSIX timer functions where required.
40046         * modules/timer-time: Depend on threadlib to
40047         pull in the appropriate library to link.
40049 2012-03-10  Bruno Haible  <bruno@clisp.org>
40051         log* tests: More tests.
40052         * tests/test-log.h: New file.
40053         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
40054         (main): Invoke test_function.
40055         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
40056         (main): Invoke test_function.
40057         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
40058         (main): Invoke test_function.
40059         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
40060         tests/randomd.c.
40061         (Makefile.am): Add randomd.c to test_log_SOURCES.
40062         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
40063         tests/randomf.c.
40064         (Makefile.am): Add randomf.c to test_logf_SOURCES.
40065         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
40066         tests/randoml.c.
40067         (Depends-on): Add 'float'.
40068         (Makefile.am): Add randoml.c to test_logl_SOURCES.
40070 2012-03-09  Bruno Haible  <bruno@clisp.org>
40072         logl: Work around OSF/1 5.1 bug.
40073         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
40074         * lib/logl.c (logl): If logl exists, use it and provide just the
40075         workaround.
40076         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
40077         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
40078         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
40079         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
40080         * modules/logl (configure.ac): Consider REPLACE_LOGL.
40081         (Depends-on): Update conditions.
40082         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
40084 2012-03-09  Bruno Haible  <bruno@clisp.org>
40086         logf: Work around OSF/1 5.1 bug.
40087         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
40088         * lib/logf.c (logf): If logf exists, use it and provide just the
40089         workaround.
40090         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
40091         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
40092         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
40093         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
40094         * modules/logf (configure.ac): Consider REPLACE_LOGF.
40095         (Depends-on): Update conditions.
40096         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
40098 2012-03-09  Bruno Haible  <bruno@clisp.org>
40100         log: Work around OSF/1 5.1 bug.
40101         * lib/math.in.h (log): New declaration.
40102         * lib/log.c: New file.
40103         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
40104         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
40105         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
40106         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
40107         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
40108         * modules/log (Files): Add lib/log.c.
40109         (Depends-on): Add math.
40110         (configure.ac): If REPLACE_LOG is 1, compile an override.
40111         * tests/test-math-c++.cc: Check the declaration of log.
40112         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
40114 2012-03-09  Jim Meyering  <meyering@redhat.com>
40116         readtokens.c: adjust wording in a comment
40117         * lib/readtokens.c: Insert omitted "that" in a comment.
40119 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
40121         modechange: add notations +40, 00440, etc.
40122         * lib/modechange.c (mode_compile): Support new notations
40123         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
40125 2012-03-08  Bruno Haible  <bruno@clisp.org>
40127         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
40128         * m4/exp2l-ieee.m4: New file.
40129         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
40130         test whether exp2l works with a NaN argument and with a negative
40131         infinity argument. Replace it if not.
40132         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
40133         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
40134         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
40135         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
40136         (Depends-on): Update conditions.
40137         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
40138         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
40139         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
40141         Tests for module 'exp2l-ieee'.
40142         * modules/exp2l-ieee-tests: New file.
40143         * tests/test-exp2l-ieee.c: New file.
40145         New module 'exp2l-ieee'.
40146         * modules/exp2l-ieee: New file.
40148         Tests for module 'exp2-ieee'.
40149         * modules/exp2-ieee-tests: New file.
40150         * tests/test-exp2-ieee.c: New file.
40152         New module 'exp2-ieee'.
40153         * modules/exp2-ieee: New file.
40155         Tests for module 'exp2f-ieee'.
40156         * modules/exp2f-ieee-tests: New file.
40157         * tests/test-exp2f-ieee.c: New file.
40158         * tests/test-exp2-ieee.h: New file.
40160         New module 'exp2f-ieee'.
40161         * modules/exp2f-ieee: New file.
40163 2012-03-08  Bruno Haible  <bruno@clisp.org>
40165         Tests for module 'exp2l'.
40166         * modules/exp2l-tests: New file.
40167         * tests/test-exp2l.c: New file.
40169         New module 'exp2l'.
40170         * lib/math.in.h (exp2l): New declaration.
40171         * lib/exp2l.c: New file.
40172         * lib/expl-table.c: New file, extracted from lib/expl.c.
40173         * lib/expl.c (gl_expl_table): New declaration.
40174         (expl): Remove expl_table. Update reference.
40175         * m4/exp2l.m4: New file.
40176         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
40177         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
40178         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
40179         * modules/exp2l: New file.
40180         * modules/expl (Files): Add lib/expl-table.c.
40181         (configure.ac): Compile also expl-table.c.
40182         * tests/test-math-c++.cc: Check the declaration of exp2l.
40183         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
40184         problem.
40186 2012-03-08  Bruno Haible  <bruno@clisp.org>
40188         Tests for module 'exp2f'.
40189         * modules/exp2f-tests: New file.
40190         * tests/test-exp2f.c: New file.
40192         New module 'exp2f'.
40193         * lib/math.in.h (exp2f): New declaration.
40194         * lib/exp2f.c: New file.
40195         * m4/exp2f.m4: New file.
40196         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
40197         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
40198         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
40199         * modules/exp2f: New file.
40200         * tests/test-math-c++.cc: Check the declaration of exp2f.
40201         * doc/posix-functions/exp2f.texi: Mention the new module and the
40202         IRIX problem.
40204 2012-03-08  Bruno Haible  <bruno@clisp.org>
40206         Tests for module 'exp2'.
40207         * modules/exp2-tests: New file.
40208         * tests/test-exp2.c: New file.
40209         * tests/test-exp2.h: New file.
40211         New module 'exp2'.
40212         * lib/math.in.h (exp2): New declaration.
40213         * lib/exp2.c: New file.
40214         * m4/exp2.m4: New file.
40215         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
40216         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
40217         REPLACE_EXP2.
40218         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
40219         REPLACE_EXP2.
40220         * modules/exp2: New file.
40221         * tests/test-math-c++.cc: Check the declaration of exp2.
40222         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
40223         and OpenBSD problems.
40225 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
40227         savedir: fix comment typo
40228         * lib/savedir.c (savedirstream): Fix typo in comment.
40230 2012-03-08  Bruno Haible  <bruno@clisp.org>
40232         test-readtokens.c: use const; remove unwarranted cast
40233         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
40235 2012-03-08  Bruno Haible  <bruno@clisp.org>
40237         fmal: Avoid compilation error on AIX.
40238         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
40239         AIX 5.2..7.1.
40241 2012-03-08  Bruno Haible  <bruno@clisp.org>
40243         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
40244         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
40245         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
40246         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
40247         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
40248         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
40249         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
40251 2012-03-08  Bruno Haible  <bruno@clisp.org>
40253         remainderf: Override buggy system function on IRIX 6.5.
40254         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
40255         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
40256         when it exists.
40257         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
40259 2012-03-08  Jim Meyering  <meyering@redhat.com>
40261         test-readtokens.c: avoid const-related compilation warnings
40262         * tests/test-readtokens.c: Avoid const-related compilation warnings.
40264 2012-03-07  Jim Meyering  <meyering@redhat.com>
40265             Bruno Haible  <bruno@clisp.org>
40267         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
40268         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
40269         tests/randomd.c.
40270         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
40271         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
40272         tests/randoml.c.
40273         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
40275 2012-03-07  Bruno Haible  <bruno@clisp.org>
40277         expm1l: Avoid compilation error on AIX.
40278         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
40279         AIX 5.2..7.1.
40281 2012-03-07  Bruno Haible  <bruno@clisp.org>
40283         expm1l: Don't override undeclared system function on IRIX 6.5.
40284         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
40285         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
40286         it exists. Set HAVE_DECL_EXPM1L.
40287         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
40288         HAVE_EXPM1L.
40289         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
40290         HAVE_EXPM1L.
40291         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
40293 2012-03-07  Bruno Haible  <bruno@clisp.org>
40295         remainderl: Don't override undeclared system function on IRIX 6.5.
40296         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
40297         HAVE_REMAINDERL.
40298         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
40299         declared when it exists. Set HAVE_DECL_REMAINDERL.
40300         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
40301         not HAVE_REMAINDERL.
40302         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
40303         HAVE_REMAINDERL.
40304         * doc/posix-functions/remainderl.texi: Mention missing declaration
40305         problem.
40307 2012-03-07  Bruno Haible  <bruno@clisp.org>
40309         rintf: Don't override undeclared system function on IRIX 6.5.
40310         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
40311         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
40312         exists. Set HAVE_DECL_RINTF.
40313         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
40314         HAVE_RINTF.
40315         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
40316         HAVE_RINTF.
40317         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
40319 2012-03-07  Bruno Haible  <bruno@clisp.org>
40321         roundl: Avoid compilation error on AIX.
40322         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
40323         AIX 5.2..7.1.
40325 2012-03-07  Bruno Haible  <bruno@clisp.org>
40327         roundl: Don't override undeclared system function on IRIX 6.5.
40328         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
40329         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
40330         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
40331         * modules/roundl (configure.ac): For replacement code, test
40332         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
40333         (Depends-on): Update conditions.
40334         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
40336 2012-03-07  Bruno Haible  <bruno@clisp.org>
40338         roundf: Don't override undeclared system function on IRIX 6.5.
40339         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
40340         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
40341         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
40342         * modules/roundf (configure.ac): For replacement code, test
40343         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
40344         (Depends-on): Update conditions.
40345         * modules/roundf-ieee (Depends-on): Update conditions.
40346         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
40348 2012-03-07  Bruno Haible  <bruno@clisp.org>
40350         round: Don't override undeclared system function on IRIX 6.5.
40351         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
40352         argument.
40353         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
40354         also when it is not declared. Set HAVE_ROUND. For replacement code,
40355         test HAVE_ROUND, not HAVE_DECL_ROUND.
40356         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
40357         not HAVE_DECL_ROUND.
40358         (Depends-on): Update conditions.
40359         * modules/round-ieee (Depends-on): Update conditions.
40360         * doc/posix-functions/round.texi: Mention the IRIX problem.
40362 2012-03-07  Bruno Haible  <bruno@clisp.org>
40364         copysignf: Don't override undeclared system function on IRIX 6.5.
40365         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
40366         HAVE_COPYSIGNF.
40367         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
40368         declared when it exists. Set HAVE_DECL_COPYSIGNF.
40369         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
40370         not HAVE_COPYSIGNF.
40371         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
40372         HAVE_COPYSIGNF.
40373         * doc/posix-functions/copysignf.texi: Mention missing declaration
40374         problem.
40376 2012-03-07  Jim Meyering  <meyering@redhat.com>
40378         readtokens: add tests
40379         * modules/readtokens-tests: New file.
40380         * tests/test-readtokens.c: New file.
40382 2012-03-07  Jim Meyering  <meyering@redhat.com>
40384         quotearg: the module must now include quote.h
40385         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
40386         So must the module.
40387         * modules/quotearg (Files): Add quote.h.
40389 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
40391         readtokens: avoid core dumps with unusual calling patterns
40392         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
40393         * lib/readtokens.c: Include limits.h.
40394         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
40395         (readtoken): Don't cache the delimiters; the cache code was buggy
40396         if !delim && saved_delim, or if the new n_delim differs from the old.
40397         Also, it wasn't thread-safe.
40399 2012-03-07  Bruno Haible  <bruno@clisp.org>
40401         quote: Adhere to common module description layout.
40402         * modules/quote (Makefile.am): Add back empty section.
40404 2012-03-06  Akim Demaille  <demaille@gostai.com>
40406         quote: fuse into quotearg
40407         This patch is made for the benefit of Bison.
40408         quote does not leave the choice of the quoting style to the user.
40409         quoting_style provides poor customizability, yet quoting_options,
40410         which is very rich, is hidden inside quotearg.c.  So in order to
40411         allow quote customization, move its implementation to quotearg.c.
40412         * lib/quote.c: Remove.
40413         * modules/quote: Adjust.
40414         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
40415         warning: provide all the members of literal structs.
40416         (quote_quoting_options): New.
40417         (quote, quote_n): Import implementation from quote.c.
40418         * lib/quote.h: Import the comments from quote.c.
40419         (quote_quoting_options): New.
40421 2012-03-06  Bruno Haible  <bruno@clisp.org>
40423         Tests for module 'expm1l-ieee'.
40424         * modules/expm1l-ieee-tests: New file.
40425         * tests/test-expm1l-ieee.c: New file.
40427         New module 'expm1l-ieee'.
40428         * modules/expm1l-ieee: New file.
40430         Tests for module 'expm1f-ieee'.
40431         * modules/expm1f-ieee-tests: New file.
40432         * tests/test-expm1f-ieee.c: New file.
40434         New module 'expm1f-ieee'.
40435         * modules/expm1f-ieee: New file.
40437         Tests for module 'expm1-ieee'.
40438         * modules/expm1-ieee-tests: New file.
40439         * tests/test-expm1-ieee.c: New file.
40440         * tests/test-expm1-ieee.h: New file.
40442         New module 'expm1-ieee'.
40443         * modules/expm1-ieee: New file.
40444         * m4/expm1-ieee.m4: New file.
40445         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
40446         whether expm1 works with a minus zero argument. Replace it if not.
40447         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
40448         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
40449         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
40450         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
40451         (Depends-on): Update conditions.
40452         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
40453         AIX problem.
40455 2012-03-06  Bruno Haible  <bruno@clisp.org>
40457         Work around expm1f bug on IRIX 6.5.
40458         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
40459         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
40460         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
40461         not work.
40462         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
40463         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
40464         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
40465         (Depends-on): Update conditions.
40466         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
40468 2012-03-06  Bruno Haible  <bruno@clisp.org>
40470         Tests for module 'expm1l'.
40471         * modules/expm1l-tests: New file.
40472         * tests/test-expm1l.c: New file.
40474         New module 'expm1l'.
40475         * lib/math.in.h (expm1l): New declaration.
40476         * lib/expm1l.c: New file.
40477         * m4/expm1l.m4: New file.
40478         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
40479         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
40480         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
40481         * modules/expm1l: New file.
40482         * tests/test-math-c++.cc: Check the declaration of expm1l.
40483         * doc/posix-functions/expm1l.texi: Mention the new module.
40485 2012-03-06  Bruno Haible  <bruno@clisp.org>
40487         Tests for module 'expm1f'.
40488         * modules/expm1f-tests: New file.
40489         * tests/test-expm1f.c: New file.
40491         New module 'expm1f'.
40492         * lib/math.in.h (expm1f): New declaration.
40493         * lib/expm1f.c: New file.
40494         * m4/expm1f.m4: New file.
40495         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
40496         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
40497         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
40498         * modules/expm1f: New file.
40499         * tests/test-math-c++.cc: Check the declaration of expm1f.
40500         * doc/posix-functions/expm1f.texi: Mention the new module.
40502 2012-03-06  Bruno Haible  <bruno@clisp.org>
40504         Tests for module 'expm1'.
40505         * modules/expm1-tests: New file.
40506         * tests/test-expm1.c: New file.
40507         * tests/test-expm1.h: New file.
40509         New module 'expm1'.
40510         * lib/math.in.h (expm1): New declaration.
40511         * lib/expm1.c: New file.
40512         * m4/expm1.m4: New file.
40513         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
40514         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
40515         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
40516         * modules/expm1: New file.
40517         * tests/test-math-c++.cc: Check the declaration of expm1.
40518         * doc/posix-functions/expm1.texi: Mention the new module.
40520 2012-03-06  Bruno Haible  <bruno@clisp.org>
40522         math: Ensure declarations of math functions.
40523         * modules/acosf (Depends-on): Add 'extensions'.
40524         * modules/asinf (Depends-on): Likewise.
40525         * modules/atan2f (Depends-on): Likewise.
40526         * modules/atanf (Depends-on): Likewise.
40527         * modules/cbrt (Depends-on): Likewise.
40528         * modules/cbrtf (Depends-on): Likewise.
40529         * modules/cbrtl (Depends-on): Likewise.
40530         * modules/copysignf (Depends-on): Likewise.
40531         * modules/copysignl (Depends-on): Likewise.
40532         * modules/cosf (Depends-on): Likewise.
40533         * modules/coshf (Depends-on): Likewise.
40534         * modules/expf (Depends-on): Likewise.
40535         * modules/fabsf (Depends-on): Likewise.
40536         * modules/fabsl (Depends-on): Likewise.
40537         * modules/fmaf (Depends-on): Likewise.
40538         * modules/fmal (Depends-on): Likewise.
40539         * modules/fmodf (Depends-on): Likewise.
40540         * modules/fmodl (Depends-on): Likewise.
40541         * modules/frexpf (Depends-on): Likewise.
40542         * modules/frexpl (Depends-on): Likewise.
40543         * modules/hypot (Depends-on): Likewise.
40544         * modules/hypotf (Depends-on): Likewise.
40545         * modules/hypotl (Depends-on): Likewise.
40546         * modules/ldexpf (Depends-on): Likewise.
40547         * modules/ldexpl (Depends-on): Likewise.
40548         * modules/log10f (Depends-on): Likewise.
40549         * modules/log10l (Depends-on): Likewise.
40550         * modules/log1p (Depends-on): Likewise.
40551         * modules/logb (Depends-on): Likewise.
40552         * modules/logf (Depends-on): Likewise.
40553         * modules/modff (Depends-on): Likewise.
40554         * modules/modfl (Depends-on): Likewise.
40555         * modules/powf (Depends-on): Likewise.
40556         * modules/remainderf (Depends-on): Likewise.
40557         * modules/remainderl (Depends-on): Likewise.
40558         * modules/rintf (Depends-on): Likewise.
40559         * modules/rintl (Depends-on): Likewise.
40560         * modules/sinf (Depends-on): Likewise.
40561         * modules/sinhf (Depends-on): Likewise.
40562         * modules/sqrtf (Depends-on): Likewise.
40563         * modules/tanf (Depends-on): Likewise.
40564         * modules/tanhf (Depends-on): Likewise.
40565         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
40566         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
40567         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
40568         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
40569         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
40570         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
40571         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
40572         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
40573         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
40574         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
40575         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
40576         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
40577         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
40578         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
40579         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
40580         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
40581         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
40582         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
40583         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
40584         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
40585         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
40586         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
40587         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
40588         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
40589         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
40590         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
40591         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
40592         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
40593         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
40594         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
40595         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
40596         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
40597         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
40598         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
40599         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
40600         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
40601         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
40602         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
40603         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
40604         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
40605         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
40607 2012-03-06  Bruno Haible  <bruno@clisp.org>
40609         math: Update module names in warnings.
40610         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
40611         tanl): Use specific module name in warn-on-use warning.
40613 2012-03-06  Bruno Haible  <bruno@clisp.org>
40615         expl: Simplify computation.
40616         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
40618 2012-03-05  Bruno Haible  <bruno@clisp.org>
40620         exp* tests: More tests.
40621         * tests/test-exp.h: New file.
40622         * tests/test-exp.c: Include <float.h> and test-exp.h.
40623         (main): Invoke test_function.
40624         * tests/test-expf.c: Include <float.h> and test-exp.h.
40625         (main): Invoke test_function.
40626         * tests/test-expl.c: Include <float.h> and test-exp.h.
40627         (main): Invoke test_function.
40628         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
40629         (Makefile.am): Add randomd.c to test_exp_SOURCES.
40630         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
40631         (Makefile.am): Add randomf.c to test_expf_SOURCES.
40632         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
40633         (Depends-on): Add 'float'.
40634         (Makefile.am): Add randoml.c to test_expl_SOURCES.
40636         expl: Fix precision of computed result.
40637         * lib/expl.c: Completely rewritten.
40638         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
40639         (Maintainer): Add me.
40640         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
40642 2012-03-05  Bruno Haible  <bruno@clisp.org>
40644         cbrt* tests: More tests.
40645         * tests/test-cbrt.h: New file.
40646         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
40647         (main): Invoke test_function.
40648         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
40649         (main): Invoke test_function.
40650         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
40651         (main): Invoke test_function.
40652         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
40653         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
40654         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
40655         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
40656         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
40657         (Depends-on): Add 'float'.
40658         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
40660 2012-03-05  Bruno Haible  <bruno@clisp.org>
40662         hypot* tests: More tests.
40663         * tests/test-hypot.h: New file, partially extracted from
40664         tests/test-hypotl.c.
40665         * tests/test-hypot.c: Include test-hypot.h.
40666         (main): Invoke test_function.
40667         * tests/test-hypotf.c: Include test-hypot.h.
40668         (main): Invoke test_function.
40669         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
40670         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
40671         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
40672         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
40673         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
40674         tests/randomf.c.
40675         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
40676         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
40677         tests/randoml.c.
40678         (Depends-on): Add 'fpucw', 'float'.
40679         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
40681 2012-03-05  Bruno Haible  <bruno@clisp.org>
40683         fpucw: Doc about FreeBSD.
40684         * lib/fpucw.h: Mention FreeBSD in comments.
40686 2012-03-04  Bruno Haible  <bruno@clisp.org>
40688         sqrt* tests: More tests.
40689         * tests/test-sqrt.h: New file.
40690         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
40691         (main): Invoke test_function.
40692         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
40693         (main): Invoke test_function.
40694         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
40695         (main): Invoke test_function.
40696         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
40697         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
40698         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
40699         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
40700         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
40701         (Depends-on): Add 'float'.
40702         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
40704 2012-03-04  Bruno Haible  <bruno@clisp.org>
40706         remainder* tests: More tests.
40707         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
40708         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
40709         (main): Invoke test_function.
40710         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
40711         (main): Invoke test_function.
40712         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
40713         (main): Invoke test_function.
40714         * modules/remainder-tests (Files): Add tests/test-remainder.h,
40715         tests/randomd.c.
40716         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
40717         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
40718         tests/randomf.c.
40719         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
40720         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
40721         tests/randoml.c.
40722         (Depends-on): Add 'float'.
40723         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
40725 2012-03-04  Bruno Haible  <bruno@clisp.org>
40727         remainder, remainderf, remainderl: Fix computation for large quotients.
40728         * lib/remainder.c: Completely rewritten.
40729         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
40730         USE_FLOAT.
40731         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
40732         USE_LONG_DOUBLE.
40733         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
40734         isnand, isinf. Remove round, fma.
40735         * modules/remainderf (Files): Add lib/remainder.c.
40736         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
40737         Remove roundf, fmaf.
40738         * modules/remainderl (Files): Add lib/remainder.c.
40739         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
40740         isinf. Remove roundl, fmal.
40741         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
40742         REMAINDER_LIBM.
40743         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
40744         REMAINDERF_LIBM.
40745         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
40746         REMAINDERL_LIBM.
40748 2012-03-04  Bruno Haible  <bruno@clisp.org>
40750         fmod* tests: More tests.
40751         * tests/test-fmod.h (my_ldexp): New function.
40752         (test_function): Reduce amount of random numbers to test. Add tests
40753         of very large quotients x / y.
40754         * tests/test-fmod.c (MAX_EXP): New macro.
40755         * tests/test-fmodf.c (MAX_EXP): Likewise.
40756         * tests/test-fmodl.c (MAX_EXP): Likewise.
40758 2012-03-04  Bruno Haible  <bruno@clisp.org>
40760         fmod, fmodl: Fix computation for large quotients x / y.
40761         * lib/fmod.c: Completely rewritten.
40762         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
40763         USE_LONG_DOUBLE.
40764         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
40765         isnand. Remove fma.
40766         * modules/fmodl (Files): Add lib/fmod.c.
40767         (Depends-on): Add float, isfinite, signbit, fabsl,
40768         frexpl, ldexpl, isnanl. Remove fma.
40769         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
40770         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
40772 2012-03-03  Bruno Haible  <bruno@clisp.org>
40774         fmod* tests: More tests.
40775         * tests/test-fmod.h: New file.
40776         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
40777         (main): Invoke test_function.
40778         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
40779         (main): Invoke test_function.
40780         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
40781         (main): Invoke test_function.
40782         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
40783         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
40784         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
40785         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
40786         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
40787         (Depends-on): Add 'float'.
40788         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
40790 2012-03-03  Bruno Haible  <bruno@clisp.org>
40792         rint* tests: More tests.
40793         * tests/test-rint.h: New file, partially extracted from
40794         tests/test-rintl.c.
40795         * tests/test-rint.c: Include test-rint.h.
40796         (main): Invoke test_function.
40797         * tests/test-rintf.c: Include test-rint.h.
40798         (main): Invoke test_function.
40799         * tests/test-rintl.c: Include test-rint.h.
40800         (main): Invoke test_function.
40801         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
40802         (Makefile.am): Add randomd.c to test_rint_SOURCES.
40803         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
40804         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
40805         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
40806         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
40808 2012-03-03  Bruno Haible  <bruno@clisp.org>
40810         modf* tests: More tests.
40811         * tests/test-modf.h: New file.
40812         * tests/test-modf.c: Include <float.h> and test-modf.h.
40813         (main): Invoke test_function.
40814         * tests/test-modff.c: Include <float.h> and test-modf.h.
40815         (main): Invoke test_function.
40816         * tests/test-modfl.c: Include <float.h> and test-modf.h.
40817         (main): Invoke test_function.
40818         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
40819         (Makefile.am): Add randomd.c to test_modf_SOURCES.
40820         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
40821         (Makefile.am): Add randomf.c to test_modff_SOURCES.
40822         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
40823         (Depends-on): Add 'float'.
40824         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
40826 2012-03-03  Bruno Haible  <bruno@clisp.org>
40828         fabs* tests: More tests.
40829         * tests/test-fabs.h: New file, partially extracted from
40830         tests/test-fabsl.c.
40831         * tests/test-fabs.c (RANDOM): New macro.
40832         * tests/test-fabsf.c (RANDOM): New macro.
40833         * tests/test-fabsl.c (RANDOM): New macro.
40834         * modules/fabs-tests (Files): Add tests/randomd.c.
40835         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
40836         * modules/fabsf-tests (Files): Add tests/randomf.c.
40837         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
40838         * modules/fabsl-tests (Files): Add tests/randoml.c.
40839         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
40841 2012-03-03  Bruno Haible  <bruno@clisp.org>
40843         ldexp* tests: More tests.
40844         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
40845         * tests/test-ldexp.c (RANDOM): New macro.
40846         * tests/test-ldexpf.c (RANDOM): New macro.
40847         * tests/test-ldexpl.c (RANDOM): New macro.
40848         * modules/ldexp-tests (Files): Add tests/randomd.c.
40849         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
40850         * modules/ldexpf-tests (Files): Add tests/randomf.c.
40851         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
40852         * modules/ldexpl-tests (Files): Add tests/randoml.c.
40853         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
40855 2012-03-03  Bruno Haible  <bruno@clisp.org>
40857         frexp* tests: More tests.
40858         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
40859         * tests/test-frexp.c (RANDOM): New macro.
40860         * tests/test-frexpf.c (RANDOM): New macro.
40861         * tests/test-frexpl.c (RANDOM): New macro.
40862         * modules/frexp-tests (Files): Add tests/randomd.c.
40863         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
40864         * modules/frexpf-tests (Files): Add tests/randomf.c.
40865         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
40866         * modules/frexpl-tests (Files): Add tests/randoml.c.
40867         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
40869 2012-03-03  Bruno Haible  <bruno@clisp.org>
40871         Support for pseudo-random numbers in tests.
40872         * tests/randomf.c: New file.
40873         * tests/randomd.c: New file.
40874         * tests/randoml.c: New file.
40875         * tests/macros.h (randomf, randomd, randoml): New declarations.
40877 2012-03-03  Bruno Haible  <bruno@clisp.org>
40879         frexp* tests: Refactor.
40880         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
40881         * tests/test-frexp.c: Include and use it.
40882         * tests/test-frexpf.c: Likewise.
40883         * tests/test-frexpl.c: Likewise.
40884         * modules/frexp-tests (Files): Add tests/test-frexp.h.
40885         * modules/frexpf-tests (Files): Likewise.
40886         * modules/frexpl-tests (Files): Likewise.
40888 2012-03-02  Jim Meyering  <meyering@redhat.com>
40890         maint: don't specify XZ_OPT=-9ev in dist-related rule
40891         Using xz's -9 option is warranted only if you have a very large
40892         tarball (see xz's documentation for the sizes vs. presets), and
40893         requires 64MiB of memory at decompression time.
40894         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
40895         Automake's default of just "-e" is fine.  Override on a
40896         per-package basis by setting XZ_OPT e.g., in cfg.mk.
40898 2012-03-01  Eric Blake  <eblake@redhat.com>
40900         maint.mk: allow announcement for non-gnulib project
40901         * maint.mk (announcement): Skip gnulib version if not used.
40903 2012-03-01  Jim Meyering  <meyering@redhat.com>
40905         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
40906         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
40907         envvar settings cannot interfere.  Otherwise, setting envvars like
40908         prohibit=foo require=bar, etc. would cause spurious test failures.
40910 2012-03-01  Eric Blake  <eblake@redhat.com>
40912         maint.mk: add per-line exclusions to prohibitions
40913         * maint.mk (_sc_search_regexp): Add $exclude parameter.
40914         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
40915         (sc_const_long_option): Use it.
40917 2012-03-01  Bruno Haible  <bruno@clisp.org>
40919         Tests for module 'expl-ieee'.
40920         * modules/expl-ieee-tests: New file.
40921         * tests/test-expl-ieee.c: New file.
40923         New module 'expl-ieee'.
40924         * modules/expl-ieee: New file.
40926         Tests for module 'exp-ieee'.
40927         * modules/exp-ieee-tests: New file.
40928         * tests/test-exp-ieee.c: New file.
40930         New module 'exp-ieee'.
40931         * modules/exp-ieee: New file.
40933         Tests for module 'expf-ieee'.
40934         * modules/expf-ieee-tests: New file.
40935         * tests/test-expf-ieee.c: New file.
40936         * tests/test-exp-ieee.h: New file.
40938         New module 'expf-ieee'.
40939         * modules/expf-ieee: New file.
40941 2012-02-29  Bruno Haible  <bruno@clisp.org>
40943         cbrtl-ieee: Work around test failure on IRIX 6.5.
40944         * m4/cbrtl-ieee.m4: New file.
40945         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
40946         test whether cbrtl works with a minus zero argument. Replace it if not.
40947         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
40948         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
40949         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
40950         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
40951         (Depends-on): Update conditions.
40952         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
40953         m4/signbit.m4.
40954         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
40955         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
40956         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
40958         Tests for module 'cbrtl-ieee'.
40959         * modules/cbrtl-ieee-tests: New file.
40960         * tests/test-cbrtl-ieee.c: New file.
40962         New module 'cbrtl-ieee'.
40963         * modules/cbrtl-ieee: New file.
40965         Tests for module 'cbrt-ieee'.
40966         * modules/cbrt-ieee-tests: New file.
40967         * tests/test-cbrt-ieee.c: New file.
40969         New module 'cbrt-ieee'.
40970         * modules/cbrt-ieee: New file.
40972         Tests for module 'cbrtf-ieee'.
40973         * modules/cbrtf-ieee-tests: New file.
40974         * tests/test-cbrtf-ieee.c: New file.
40975         * tests/test-cbrt-ieee.h: New file.
40977         New module 'cbrtf-ieee'.
40978         * modules/cbrtf-ieee: New file.
40980 2012-02-29  Bruno Haible  <bruno@clisp.org>
40982         cbrtf: Work around bug in IRIX 6.5 system function.
40983         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
40984         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
40985         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
40986         work.
40987         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
40988         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
40989         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
40990         (Depends-on): Update conditions.
40991         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
40993 2012-02-29  Bruno Haible  <bruno@clisp.org>
40995         Tests for module 'cbrtl'.
40996         * modules/cbrtl-tests: New file.
40997         * tests/test-cbrtl.c: New file.
40999         New module 'cbrtl'.
41000         * lib/math.in.h (cbrtl): New declaration.
41001         * lib/cbrtl.c: New file.
41002         * m4/cbrtl.m4: New file.
41003         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
41004         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
41005         HAVE_DECL_CBRTL.
41006         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
41007         HAVE_DECL_CBRTL.
41008         * modules/cbrtl: New file.
41009         * tests/test-math-c++.cc: Check the declaration of cbrtl.
41010         * doc/posix-functions/cbrtl.texi: Mention the new module.
41012 2012-02-29  Bruno Haible  <bruno@clisp.org>
41014         Tests for module 'cbrtf'.
41015         * modules/cbrtf-tests: New file.
41016         * tests/test-cbrtf.c: New file.
41018         New module 'cbrtf'.
41019         * lib/math.in.h (cbrtf): New declaration.
41020         * lib/cbrtf.c: New file.
41021         * m4/cbrtf.m4: New file.
41022         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
41023         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
41024         HAVE_DECL_CBRTF.
41025         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
41026         HAVE_DECL_CBRTF.
41027         * modules/cbrtf: New file.
41028         * tests/test-math-c++.cc: Check the declaration of cbrtf.
41029         * doc/posix-functions/cbrtf.texi: Mention the new module.
41031 2012-02-29  Bruno Haible  <bruno@clisp.org>
41033         cbrt: Provide replacement on MSVC and Minix.
41034         * lib/math.in.h (cbrt): New declaration.
41035         * lib/cbrt.c: New file.
41036         * m4/cbrt.m4: New file.
41037         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
41038         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
41039         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
41040         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
41041         (Depends-on): Add dependencies.
41042         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
41043         * tests/test-math-c++.cc: Check the declaration of cbrt.
41044         * doc/posix-functions/cbrt.texi: Mention that the module provides a
41045         replacement.
41047 2012-02-29  Bruno Haible  <bruno@clisp.org>
41049         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
41050         * m4/hypotl-ieee.m4: New file.
41051         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
41052         test whether hypotl works with mixed NaN and Infinity arguments.
41053         Replace it if not.
41054         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
41055         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
41056         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
41057         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
41058         (Depends-on): Update conditions.
41059         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
41060         (Depends-on): Add hypot-ieee.
41061         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
41062         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
41064         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
41065         * m4/hypotf-ieee.m4: New file.
41066         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
41067         test whether hypotf works with mixed NaN and Infinity arguments.
41068         Replace it if not.
41069         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
41070         (Depends-on): Add hypot-ieee.
41071         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
41072         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
41074         hypot-ieee: Work around test failure on OSF/1 and native Windows.
41075         * lib/math.in.h (hypot): New declaration.
41076         * lib/hypot.c: New file.
41077         * m4/hypot-ieee.m4: New file.
41078         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
41079         whether hypot works with mixed NaN and Infinity arguments. Replace it
41080         if not.
41081         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
41082         REPLACE_HYPOT.
41083         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
41084         * modules/hypot (Files): Add lib/hypot.c.
41085         (Depends-on): Add dependencies.
41086         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
41087         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
41088         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
41089         * tests/test-math-c++.cc: Check the declaration of hypot.
41090         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
41092         Tests for module 'hypotl-ieee'.
41093         * modules/hypotl-ieee-tests: New file.
41094         * tests/test-hypotl-ieee.c: New file.
41096         New module 'hypotl-ieee'.
41097         * modules/hypotl-ieee: New file.
41099         Tests for module 'hypot-ieee'.
41100         * modules/hypot-ieee-tests: New file.
41101         * tests/test-hypot-ieee.c: New file.
41103         New module 'hypot-ieee'.
41104         * modules/hypot-ieee: New file.
41106         Tests for module 'hypotf-ieee'.
41107         * modules/hypotf-ieee-tests: New file.
41108         * tests/test-hypotf-ieee.c: New file.
41109         * tests/test-hypot-ieee.h: New file.
41111         New module 'hypotf-ieee'.
41112         * modules/hypotf-ieee: New file.
41114 2012-02-29  Bruno Haible  <bruno@clisp.org>
41116         Remove unused variables.
41117         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
41118         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
41119         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
41120         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
41122 2012-02-29  Eric Blake  <eblake@redhat.com>
41124         termios: fix pid_t always, not just for tcgetsid
41125         * doc/posix-headers/termios.texi (termios.h): Mention problem.
41126         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
41127         just when building tcgetsid.
41129 2012-02-29  Bruno Haible  <bruno@clisp.org>
41131         Tests for module 'hypotl'.
41132         * modules/hypotl-tests: New file.
41133         * tests/test-hypotl.c: New file.
41135         New module 'hypotl'.
41136         * lib/math.in.h (hypotl): New declaration.
41137         * lib/hypotl.c: New file.
41138         * m4/hypotl.m4: New file.
41139         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
41140         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
41141         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
41142         * modules/hypotl: New file.
41143         * tests/test-math-c++.cc: Check the hypotl declaration.
41144         * doc/posix-functions/hypotl.texi: Mention the new module.
41146 2012-02-29  Eric Blake  <eblake@redhat.com>
41148         tcgetsid: fix cygwin header bug
41149         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
41151         docs: update cygwin progress
41152         * doc/posix-functions/llround.texi (llround): Added in cygwin
41153         1.7.8.
41154         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
41155         * doc/glibc-functions/program_invocation_name.texi
41156         (program_invocation_name): Likewise.
41157         * doc/glibc-functions/program_invocation_short_name.texi
41158         (program_invocation_short_name): Likewise.
41159         * doc/glibc-functions/madvise.texi (madvise): Likewise.
41160         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
41161         Likewise.
41162         * doc/posix-functions/pthread_spin_destroy.texi
41163         (pthread_spin_destroy): Added in cygwin 1.7.10.
41164         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
41165         Likewise.
41166         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
41167         Likewise.
41168         * doc/posix-functions/pthread_spin_trylock.texi
41169         (pthread_spin_trylock): Likewise.
41170         * doc/posix-functions/pthread_spin_unlock.texi
41171         (pthread_spin_unlock): Likewise.
41172         * doc/posix-functions/pthread_setschedprio.texi
41173         (pthread_setschedprio): Likewise.
41174         * doc/posix-functions/pthread_attr_getstack.texi
41175         (pthread_attr_getstack): Likewise.
41176         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
41177         (pthread_attr_getstackaddr): Likewise.
41178         * doc/glibc-functions/pthread_getattr_np.texi
41179         (pthread_getattr_np): Likewise.
41180         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
41181         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
41182         * doc/posix-functions/clock_settime.texi (clock_settime):
41183         Likewise.
41184         * doc/posix-functions/pthread_attr_getguardsize.texi
41185         (pthread_attr_getguardsize): Likewise.
41186         * doc/posix-functions/pthread_attr_setguardsize.texi
41187         (pthread_attr_setguardsize): Likewise.
41188         * doc/posix-functions/pthread_attr_setstack.texi
41189         (pthread_attr_setstack): Likewise.
41190         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
41191         (pthread_attr_setstackaddr): Likewise.
41192         * doc/posix-functions/clock_getcpuclockid.texi
41193         (clock_getcpuclockid): Likewise.
41194         * doc/posix-functions/pthread_getcpuclockid.texi
41195         (pthread_getcpuclockid): Likewise.
41196         * doc/glibc-functions/error.texi (error): Likewise.
41197         * doc/glibc-functions/error_at_line.texi (error_at_line):
41198         Likewise.
41199         * doc/glibc-functions/error_message_count.texi
41200         (error_message_count): Likewise.
41201         * doc/glibc-functions/error_one_per_line.texi
41202         (error_one_per_line): Likewise.
41203         * doc/glibc-functions/error_print_progname.texi
41204         (error_print_progname): Likewise.
41205         * doc/posix-functions/pthread_condattr_getclock.texi
41206         (pthread_condattr_getclock): Likewise.
41207         * doc/posix-functions/pthread_condattr_setclock.texi
41208         (pthread_condattr_setclock): Likewise.
41209         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
41210         Likewise.
41211         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
41212         * doc/glibc-functions/getpt.texi (getpt): Likewise.
41213         * doc/glibc-functions/get_current_dir_name.texi
41214         (get_current_dir_name): Likewise.
41215         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
41216         Likewise.
41217         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
41218         wrong return type.
41219         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
41220         1.7.11.
41222 2012-02-29  Bruno Haible  <bruno@clisp.org>
41224         Tests for module 'hypotf'.
41225         * modules/hypotf-tests: New file.
41226         * tests/test-hypotf.c: New file.
41228         New module 'hypotf'.
41229         * lib/math.in.h (hypotf): New declaration.
41230         * lib/hypotf.c: New file.
41231         * m4/hypotf.m4: New file.
41232         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
41233         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
41234         REPLACE_HYPOTF.
41235         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
41236         REPLACE_HYPOTF.
41237         * modules/hypotf: New file.
41238         * tests/test-math-c++.cc: Check the hypotf declaration.
41239         * doc/posix-functions/hypotf.texi: Mention the new module.
41241         hypot: Prepare for hypotf module.
41242         * m4/hypot.m4: New file.
41243         * modules/hypot (Files): Add m4/hypot.m4.
41244         (configure.ac): Invoke gl_FUNC_HYPOT.
41246 2012-02-29  Bruno Haible  <bruno@clisp.org>
41248         hypot tests: More tests.
41249         * tests/test-hypot.c: Include <float.h>.
41250         (main): Add tests about overflow and underflow.
41252 2012-02-29  Bruno Haible  <bruno@clisp.org>
41254         math code: Add comments.
41255         * lib/acosl.c: Add comment about related glibc source files.
41256         * lib/asinl.c: Likewise.
41257         * lib/atanl.c: Likewise.
41258         * lib/expl.c: Likewise.
41259         * lib/logl.c: Likewise.
41260         * lib/sincosl.c: Likewise.
41261         * lib/sinl.c: Likewise.
41262         * lib/tanl.c: Likewise.
41263         * lib/trigl.c: Likewise.
41264         * lib/cosl.c: Likewise. Fix comments.
41266 2012-02-28  Bruno Haible  <bruno@clisp.org>
41268         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
41269         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
41270         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
41271         HUGE_VALL are defined.
41272         (numeric_equald): Renamed from numeric_equal.
41273         (numeric_equalf, numeric_equall): New functions.
41274         (main): Check also HUGE_VALF, HUGE_VALL.
41275         * modules/math-tests (Files): Add tests/macros.h.
41276         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
41277         HUGE_VALL.
41279 2012-02-28  Bruno Haible  <bruno@clisp.org>
41281         doc: Move ISO C11 feature notes into POSIX chapters.
41282         * doc/posix-functions/aligned_alloc.texi: Renamed from
41283         doc/glibc-functions/aligned_alloc.texi.
41284         * doc/posix-functions/quick_exit.texi: Renamed from
41285         doc/glibc-functions/quick_exit.texi.
41286         * doc/posix-headers/uchar.texi: Renamed from
41287         doc/glibc-headers/uchar.texi.
41288         * doc/posix-functions/c16rtomb.texi: Renamed from
41289         doc/glibc-functions/c16rtomb.texi.
41290         * doc/posix-functions/c32rtomb.texi: Renamed from
41291         doc/glibc-functions/c32rtomb.texi.
41292         * doc/posix-functions/mbrtoc16.texi: Renamed from
41293         doc/glibc-functions/mbrtoc16.texi.
41294         * doc/posix-functions/mbrtoc32.texi: Renamed from
41295         doc/glibc-functions/mbrtoc32.texi.
41296         * doc/gnulib.texi: Update.
41297         (Glibc uchar.h): Remove section.
41298         Suggested by Eric Blake.
41300 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
41302         stdnoreturn: port to MSVC better
41303         MSVC standard headers use __declspec(noreturn), so #define noreturn
41304         to empty on that platform.  Reported by Bruno Haible in
41305         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
41306         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
41307         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
41309 2012-02-28  Bruno Haible  <bruno@clisp.org>
41311         doc: Mention new glibc headers and functions.
41312         * doc/glibc-headers/uchar.texi: New file.
41313         * doc/glibc-functions/aligned_alloc.texi: New file.
41314         * doc/glibc-functions/c16rtomb.texi: New file.
41315         * doc/glibc-functions/c32rtomb.texi: New file.
41316         * doc/glibc-functions/clock_adjtime.texi: New file.
41317         * doc/glibc-functions/fanotify_init.texi: New file.
41318         * doc/glibc-functions/fanotify_mark.texi: New file.
41319         * doc/glibc-functions/inet6_opt_append.texi: New file.
41320         * doc/glibc-functions/inet6_opt_find.texi: New file.
41321         * doc/glibc-functions/inet6_opt_finish.texi: New file.
41322         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
41323         * doc/glibc-functions/inet6_opt_init.texi: New file.
41324         * doc/glibc-functions/inet6_opt_next.texi: New file.
41325         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
41326         * doc/glibc-functions/inet6_rth_add.texi: New file.
41327         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
41328         * doc/glibc-functions/inet6_rth_init.texi: New file.
41329         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
41330         * doc/glibc-functions/inet6_rth_segments.texi: New file.
41331         * doc/glibc-functions/inet6_rth_space.texi: New file.
41332         * doc/glibc-functions/login.texi: New file.
41333         * doc/glibc-functions/mbrtoc16.texi: New file.
41334         * doc/glibc-functions/mbrtoc32.texi: New file.
41335         * doc/glibc-functions/name_to_handle_at.texi: New file.
41336         * doc/glibc-functions/ntp_gettimex.texi: New file.
41337         * doc/glibc-functions/open_by_handle_at.texi: New file.
41338         * doc/glibc-functions/prlimit.texi: New file.
41339         * doc/glibc-functions/process_vm_readv.texi: New file.
41340         * doc/glibc-functions/process_vm_writev.texi: New file.
41341         * doc/glibc-functions/recvmmsg.texi: New file.
41342         * doc/glibc-functions/scandirat.texi: New file.
41343         * doc/glibc-functions/sendmmsg.texi: New file.
41344         * doc/glibc-functions/setns.texi: New file.
41345         * doc/glibc-functions/timespec_get.texi: New file.
41346         * doc/gnulib.texi: Include them.
41347         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
41348         sections.
41349         Reported by Eric Blake.
41351 2012-02-28  Bruno Haible  <bruno@clisp.org>
41353         Avoid compilation errors with MSVC option -fp:strict.
41354         * lib/floor.c: Use MSVC specific pragma fenv_access.
41355         * lib/ceil.c: Likewise.
41356         * lib/trunc.c: Likewise.
41357         * lib/round.c: Likewise.
41358         * lib/rint.c: Likewise.
41359         * lib/fma.c: Likewise.
41360         * lib/integer_length.c: Likewise.
41361         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41362         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41363         * tests/test-floor2.c: Likewise.
41364         * tests/test-floorf2.c: Likewise.
41365         * tests/test-ceil2.c: Likewise.
41366         * tests/test-ceilf2.c: Likewise.
41367         * tests/test-trunc2.c: Likewise.
41368         * tests/test-truncf2.c: Likewise.
41369         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
41371 2012-02-27  Bruno Haible  <bruno@clisp.org>
41373         Tests for module 'sqrtl-ieee'.
41374         * modules/sqrtl-ieee-tests: New file.
41375         * tests/test-sqrtl-ieee.c: New file.
41377         New module 'sqrtl-ieee'.
41378         * modules/sqrtl-ieee: New file.
41380         Tests for module 'sqrt-ieee'.
41381         * modules/sqrt-ieee-tests: New file.
41382         * tests/test-sqrt-ieee.c: New file.
41384         New module 'sqrt-ieee'.
41385         * modules/sqrt-ieee: New file.
41387         Tests for module 'sqrtf-ieee'.
41388         * modules/sqrtf-ieee-tests: New file.
41389         * tests/test-sqrtf-ieee.c: New file.
41390         * tests/test-sqrt-ieee.h: New file.
41392         New module 'sqrtf-ieee'.
41393         * modules/sqrtf-ieee: New file.
41395 2012-02-27  Bruno Haible  <bruno@clisp.org>
41397         remainderl-ieee: Work around test failure on OSF/1.
41398         * m4/remainderl-ieee.m4: New file.
41399         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
41400         present, test whether remainderl works with a zero second argument.
41401         Replace it if not.
41402         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
41403         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
41404         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
41405         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
41406         (Depends-on): Update conditions.
41407         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
41408         (Depends-on): Add remainder-ieee.
41409         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
41410         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
41411         module.
41413         remainderf-ieee: Work around test failure on OSF/1.
41414         * m4/remainderf-ieee.m4: New file.
41415         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
41416         present, test whether remainderf works with a zero second argument.
41417         Replace it if not.
41418         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
41419         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
41420         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
41421         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
41422         (Depends-on): Update conditions.
41423         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
41424         (Depends-on): Add remainder-ieee.
41425         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
41426         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
41427         module.
41429         remainder-ieee: Work around test failure on OSF/1.
41430         * m4/remainder-ieee.m4: New file.
41431         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
41432         present, test whether remainder works with a zero second argument.
41433         Replace it if not.
41434         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
41435         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
41436         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
41437         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
41438         (Depends-on): Update dependencies.
41439         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
41440         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
41441         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
41443         Tests for module 'remainderl-ieee'.
41444         * modules/remainderl-ieee-tests: New file.
41445         * tests/test-remainderl-ieee.c: New file.
41447         New module 'remainderl-ieee'.
41448         * modules/remainderl-ieee: New file.
41450         Tests for module 'remainder-ieee'.
41451         * modules/remainder-ieee-tests: New file.
41452         * tests/test-remainder-ieee.c: New file.
41454         New module 'remainder-ieee'.
41455         * modules/remainder-ieee: New file.
41457         Tests for module 'remainderf-ieee'.
41458         * modules/remainderf-ieee-tests: New file.
41459         * tests/test-remainderf-ieee.c: New file.
41460         * tests/test-remainder-ieee.h: New file.
41462         New module 'remainderf-ieee'.
41463         * modules/remainderf-ieee: New file.
41465 2012-02-27  Bruno Haible  <bruno@clisp.org>
41467         modff, modfl: Fix configure syntax error.
41468         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
41469         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
41471 2012-02-27  Bruno Haible  <bruno@clisp.org>
41473         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
41474         * m4/fmodl-ieee.m4: New file.
41475         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
41476         whether fmodl works with zero arguments. Replace it if not.
41477         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
41478         (Depends-on): Add fmod-ieee.
41479         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
41480         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
41482         fmodf-ieee: Work around test failure on OSF/1.
41483         * m4/fmodf-ieee.m4: New file.
41484         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
41485         whether fmodf works with zero arguments. Replace it if not.
41486         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
41487         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
41488         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
41489         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
41490         (Depends-on): Update dependencies.
41491         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
41492         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
41493         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
41495         fmodf-ieee: Work around test failure on MSVC 9.
41496         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
41497         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
41499         fmod-ieee: Work around test failures on OSF/1, mingw.
41500         * m4/fmod-ieee.m4: New file.
41501         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
41502         whether fmod works with zero arguments. Replace it if not.
41503         * lib/math.in.h (fmod): New declaration.
41504         * lib/fmod.c: New file.
41505         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
41506         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
41507         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
41508         * modules/fmod (Files): Add lib/fmod.c.
41509         (Depends-on): Add math, isinf, trunc, fma.
41510         (configure.ac): Arrange to compile lib/fmod.c if needed.
41511         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
41512         m4/signbit.m4.
41513         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
41514         * tests/test-math-c++.cc: Check the declaration of fmod.
41515         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
41517         fmodl-ieee: Fix test failures.
41518         * lib/fmodl.c (fmodl): Treat Inf specially.
41519         * modules/fmodl (Depends-on): Add isinf.
41521         Tests for module 'fmodl-ieee'.
41522         * modules/fmodl-ieee-tests: New file.
41523         * tests/test-fmodl-ieee.c: New file.
41525         New module 'fmodl-ieee'.
41526         * modules/fmodl-ieee: New file.
41528         Tests for module 'fmod-ieee'.
41529         * modules/fmod-ieee-tests: New file.
41530         * tests/test-fmod-ieee.c: New file.
41532         New module 'fmod-ieee'.
41533         * modules/fmod-ieee: New file.
41535         Tests for module 'fmodf-ieee'.
41536         * modules/fmodf-ieee-tests: New file.
41537         * tests/test-fmodf-ieee.c: New file.
41538         * tests/test-fmod-ieee.h: New file.
41540         New module 'fmodf-ieee'.
41541         * modules/fmodf-ieee: New file.
41543 2012-02-27  Bruno Haible  <bruno@clisp.org>
41545         Tests for module 'rintl-ieee'.
41546         * modules/rintl-ieee-tests: New file.
41547         * tests/test-rintl-ieee.c: New file.
41549         New module 'rintl-ieee'.
41550         * modules/rintl-ieee: New file.
41552         Tests for module 'rint-ieee'.
41553         * modules/rint-ieee-tests: New file.
41554         * tests/test-rint-ieee.c: New file.
41556         New module 'rint-ieee'.
41557         * modules/rint-ieee: New file.
41559         Tests for module 'rintf-ieee'.
41560         * modules/rintf-ieee-tests: New file.
41561         * tests/test-rintf-ieee.c: New file.
41562         * tests/test-rint-ieee.h: New file.
41564         New module 'rintf-ieee'.
41565         * modules/rintf-ieee: New file.
41567 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
41569         regex: re_search etc. should return -2 when memory exhausted
41570         This bug was uncovered when testing 'grep'.  Without the fix,
41571         re_search and friends return -1 when memory is exhausted, but -1
41572         means no match, and this causes grep to falsely report no-match
41573         instead of memory-exhaustion.  See
41574         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
41575         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
41576         trouble; this can occur if re_search_internal ran out of memory.
41578 2012-02-26  Bruno Haible  <bruno@clisp.org>
41580         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
41581         * m4/modfl-ieee.m4: New file.
41582         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
41583         whether modfl works with Inf. Replace it if not.
41584         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
41585         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
41586         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
41587         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
41588         (Depends-on): Update dependencies.
41589         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
41590         m4/signbit.m4.
41591         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
41592         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
41594         modfl-ieee: Fix dependencies.
41595         * modules/modfl-ieee (Depends-on): Add modf-ieee.
41597         modfl-ieee: Fix test failures.
41598         * lib/modfl.c (modfl): Treat NaN and Inf specially.
41599         * modules/modfl (Depends-on): Add isfinite, isinf.
41601         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
41602         * m4/modff-ieee.m4: New file.
41603         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
41604         whether modff works with NaN and Inf. Replace it if not.
41605         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
41606         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
41607         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
41608         * modules/modff (configure.ac): Consider REPLACE_MODFF.
41609         (Depends-on): Update dependencies.
41610         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
41611         m4/signbit.m4.
41612         (Depends-on): Add modf-ieee.
41613         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
41614         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
41616         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
41617         * m4/modf-ieee.m4: New file.
41618         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
41619         whether modf works with NaN and Inf. Replace it if not.
41620         * lib/math.in.h (modf): New declaration.
41621         * lib/modf.c: New file.
41622         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
41623         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
41624         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
41625         * modules/modf (Files): Add lib/modf.c.
41626         (Depends-on): Add math, isfinite, trunc, isinf.
41627         (configure.ac): Addrange to compile lib/modf.c if needed.
41628         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
41629         m4/signbit.m4.
41630         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
41631         * tests/test-math-c++.cc: Check the declaration of modf.
41632         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
41634         Tests for module 'modfl-ieee'.
41635         * modules/modfl-ieee-tests: New file.
41636         * tests/test-modfl-ieee.c: New file.
41638         New module 'modfl-ieee'.
41639         * modules/modfl-ieee: New file.
41641         Tests for module 'modf-ieee'.
41642         * modules/modf-ieee-tests: New file.
41643         * tests/test-modf-ieee.c: New file.
41645         New module 'modf-ieee'.
41646         * modules/modf-ieee: New file.
41648         Tests for module 'modff-ieee'.
41649         * modules/modff-ieee-tests: New file.
41650         * tests/test-modff-ieee.c: New file.
41651         * tests/test-modf-ieee.h: New file.
41653         New module 'modff-ieee'.
41654         * modules/modff-ieee: New file.
41656 2012-02-26  Bruno Haible  <bruno@clisp.org>
41658         Tests for module 'fabsl-ieee'.
41659         * modules/fabsl-ieee-tests: New file.
41660         * tests/test-fabsl-ieee.c: New file.
41662         New module 'fabsl-ieee'.
41663         * modules/fabsl-ieee: New file.
41665         Tests for module 'fabs-ieee'.
41666         * modules/fabs-ieee-tests: New file.
41667         * tests/test-fabs-ieee.c: New file.
41669         New module 'fabs-ieee'.
41670         * modules/fabs-ieee: New file.
41672         Tests for module 'fabsf-ieee'.
41673         * modules/fabsf-ieee-tests: New file.
41674         * tests/test-fabsf-ieee.c: New file.
41675         * tests/test-fabs-ieee.h: New file.
41677         New module 'fabsf-ieee'.
41678         * modules/fabsf-ieee: New file.
41680 2012-02-26  Bruno Haible  <bruno@clisp.org>
41682         Tests for module 'fmal-ieee'.
41683         * modules/fmal-ieee-tests: New file.
41684         * tests/test-fmal-ieee.c: New file.
41686         New module 'fmal-ieee'.
41687         * modules/fmal-ieee: New file.
41689         Tests for module 'fma-ieee'.
41690         * modules/fma-ieee-tests: New file.
41691         * tests/test-fma-ieee.c: New file.
41693         New module 'fma-ieee'.
41694         * modules/fma-ieee: New file.
41696         Tests for module 'fmaf-ieee'.
41697         * modules/fmaf-ieee-tests: New file.
41698         * tests/test-fmaf-ieee.c: New file.
41699         * tests/test-fma-ieee.h: New file.
41701         New module 'fmaf-ieee'.
41702         * modules/fmaf-ieee: New file.
41704 2012-02-26  Bruno Haible  <bruno@clisp.org>
41706         Tests for module 'ldexpl-ieee'.
41707         * modules/ldexpl-ieee-tests: New file.
41708         * tests/test-ldexpl-ieee.c: New file.
41710         New module 'ldexpl-ieee'.
41711         * modules/ldexpl-ieee: New file.
41713         Tests for module 'ldexp-ieee'.
41714         * modules/ldexp-ieee-tests: New file.
41715         * tests/test-ldexp-ieee.c: New file.
41717         New module 'ldexp-ieee'.
41718         * modules/ldexp-ieee: New file.
41720         Tests for module 'ldexpf-ieee'.
41721         * modules/ldexpf-ieee-tests: New file.
41722         * tests/test-ldexpf-ieee.c: New file.
41723         * tests/test-ldexp-ieee.h: New file.
41725         New module 'ldexpf-ieee'.
41726         * modules/ldexpf-ieee: New file.
41728 2012-02-26  Bruno Haible  <bruno@clisp.org>
41730         Refactor frexp*-ieee tests.
41731         * tests/test-frexp-ieee.h: New file.
41732         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
41733         (main): Just call test_function.
41734         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
41735         (main): Just call test_function.
41736         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
41737         (main): Just call test_function.
41738         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
41739         * modules/frexp-ieee-tests (Files): Likewise.
41740         * modules/frexpl-ieee-tests (Files): Likewise.
41742         Tests for module 'frexpl-ieee'.
41743         * modules/frexpl-ieee-tests: New file.
41744         * tests/test-frexpl-ieee.c: New file.
41746         New module 'frexpl-ieee'.
41747         * modules/frexpl-ieee: New file.
41749         Tests for module 'frexp-ieee'.
41750         * modules/frexp-ieee-tests: New file.
41751         * tests/test-frexp-ieee.c: New file.
41753         New module 'frexp-ieee'.
41754         * modules/frexp-ieee: New file.
41756         Tests for module 'frexpf-ieee'.
41757         * modules/frexpf-ieee-tests: New file.
41758         * tests/test-frexpf-ieee.c: New file.
41760         New module 'frexpf-ieee'.
41761         * modules/frexpf-ieee: New file.
41763 2012-02-26  Bruno Haible  <bruno@clisp.org>
41765         roundl-ieee tests: More tests.
41766         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41767         (main): Add tests for [MX] shaded specification in POSIX.
41768         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41769         (Depends-on): Add isnanl-nolibm.
41771         round-ieee tests: More tests.
41772         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41773         (main): Add tests for [MX] shaded specification in POSIX.
41774         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41775         (Depends-on): Add isnand-nolibm.
41777         roundf-ieee tests: More tests.
41778         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41779         (main): Add tests for [MX] shaded specification in POSIX.
41780         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41781         (Depends-on): Add isnanf-nolibm.
41783         truncl-ieee tests: More tests.
41784         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41785         (main): Add tests for [MX] shaded specification in POSIX.
41786         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41787         (Depends-on): Add isnanl-nolibm.
41789         trunc-ieee tests: More tests.
41790         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41791         (main): Add tests for [MX] shaded specification in POSIX.
41792         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41793         (Depends-on): Add isnand-nolibm.
41795         truncf-ieee tests: More tests.
41796         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41797         (main): Add tests for [MX] shaded specification in POSIX.
41798         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41799         (Depends-on): Add isnanf-nolibm.
41801         ceill-ieee tests: More tests.
41802         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41803         (main): Add tests for [MX] shaded specification in POSIX.
41804         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41805         (Depends-on): Add isnanl-nolibm.
41807         ceil-ieee tests: More tests.
41808         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41809         (main): Add tests for [MX] shaded specification in POSIX.
41810         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41811         (Depends-on): Add isnand-nolibm.
41813         ceilf-ieee tests: More tests.
41814         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41815         (main): Add tests for [MX] shaded specification in POSIX.
41816         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41817         (Depends-on): Add isnanf-nolibm.
41819         floorl-ieee tests: More tests.
41820         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41821         (main): Add tests for [MX] shaded specification in POSIX.
41822         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41823         (Depends-on): Add isnanl-nolibm.
41825         floor-ieee tests: More tests.
41826         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41827         (main): Add tests for [MX] shaded specification in POSIX.
41828         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41829         (Depends-on): Add isnand-nolibm.
41831         floorf-ieee tests: More tests.
41832         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41833         (main): Add tests for [MX] shaded specification in POSIX.
41834         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41835         (Depends-on): Add isnanf-nolibm.
41837 2012-02-26  Bruno Haible  <bruno@clisp.org>
41839         fpieee: More comments.
41840         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
41842 2012-02-25  Bruno Haible  <bruno@clisp.org>
41844         Tests for module 'log10l'.
41845         * modules/log10l-tests: New file.
41846         * tests/test-log10l.c: New file.
41847         * tests/test-math-c++.cc: Check the declaration of log10l.
41849         New module 'log10l'.
41850         * lib/math.in.h (log10l): New declaration.
41851         * lib/log10l.c: New file.
41852         * m4/log10l.m4: New file.
41853         * modules/log10l: New file.
41854         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
41855         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
41856         HAVE_DECL_LOG10L.
41857         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
41858         HAVE_DECL_LOG10L.
41859         * doc/posix-functions/log10l.texi: Mention the new module.
41861 2012-02-25  Bruno Haible  <bruno@clisp.org>
41863         fmodl, remainder*: Avoid wrong results due to rounding errors.
41864         * lib/fmodl.c (fmodl): Correct the result if it is not within the
41865         expected bounds.
41866         * lib/remainderf.c (remainderf): Likewise.
41867         * lib/remainder.c (remainder): Likewise.
41868         * lib/remainderl.c (remainderl): Likewise.
41870 2012-02-25  Bruno Haible  <bruno@clisp.org>
41872         Tests for module 'remainderl'.
41873         * modules/remainderl-tests: New file.
41874         * tests/test-remainderl.c: New file.
41875         * tests/test-math-c++.cc: Check the declaration of remainderl.
41877         New module 'remainderl'.
41878         * lib/math.in.h (remainderl): New declaration.
41879         * lib/remainderl.c: New file.
41880         * m4/remainderl.m4: New file.
41881         * modules/remainderl: New file.
41882         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
41883         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
41884         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
41885         HAVE_REMAINDERL.
41886         * doc/posix-functions/remainderl.texi: Mention the new module.
41888 2012-02-25  Bruno Haible  <bruno@clisp.org>
41890         Tests for module 'remainderf'.
41891         * modules/remainderf-tests: New file.
41892         * tests/test-remainderf.c: New file.
41893         * tests/test-math-c++.cc: Check the declaration of remainderf.
41895         New module 'remainderf'.
41896         * lib/math.in.h (remainderf): New declaration.
41897         * lib/remainderf.c: New file.
41898         * m4/remainderf.m4: New file.
41899         * modules/remainderf: New file.
41900         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
41901         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
41902         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
41903         HAVE_REMAINDERF.
41904         * doc/posix-functions/remainderf.texi: Mention the new module.
41906 2012-02-25  Bruno Haible  <bruno@clisp.org>
41908         remainder: Support for MSVC.
41909         * lib/math.in.h (remainder): New declaration.
41910         * lib/remainder.c: New file.
41911         * m4/remainder.m4: New file.
41912         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
41913         (Depends-on): Add math, round, fma.
41914         (configure.ac): Use results of gl_FUNC_REMAINDER.
41915         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
41916         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
41917         HAVE_DECL_REMAINDER.
41918         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
41919         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
41920         * tests/test-math-c++.cc: Check the declaration of remainder.
41921         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
41922         problems are fixed.
41924 2012-02-25  Bruno Haible  <bruno@clisp.org>
41926         Tests for module 'fmodl'.
41927         * modules/fmodl-tests: New file.
41928         * tests/test-fmodl.c: New file.
41929         * tests/test-math-c++.cc: Check the declaration of fmodl.
41931         New module 'fmodl'.
41932         * lib/math.in.h (fmodl): New declaration.
41933         * lib/fmodl.c: New file.
41934         * m4/fmodl.m4: New file.
41935         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
41936         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
41937         REPLACE_FMODL.
41938         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
41939         REPLACE_FMODL.
41940         * modules/fmodl: New file.
41941         * doc/posix-functions/fmodl.texi: Mention the new module.
41943 2012-02-25  Bruno Haible  <bruno@clisp.org>
41945         Tests for module 'modfl'.
41946         * modules/modfl-tests: New file.
41947         * tests/test-modfl.c: New file.
41948         * tests/test-math-c++.cc: Check the declaration of modfl.
41950         New module 'modfl'.
41951         * lib/math.in.h (modfl): New declaration.
41952         * lib/modfl.c: New file.
41953         * m4/modfl.m4: New file.
41954         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
41955         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
41956         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
41957         * modules/modfl: New file.
41958         * doc/posix-functions/modfl.texi: Mention the new module.
41960 2012-02-25  Bruno Haible  <bruno@clisp.org>
41962         Tests for module 'fabsl'.
41963         * modules/fabsl-tests: New file.
41964         * tests/test-fabsl.c: New file.
41965         * tests/test-math-c++.cc: Check the declaration of fabsl.
41967         New module 'fabsl'.
41968         * lib/math.in.h (fabsl): New declaration.
41969         * lib/fabsl.c: New file.
41970         * m4/fabsl.m4: New file.
41971         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
41972         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
41973         REPLACE_FABSL.
41974         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
41975         REPLACE_FABSL.
41976         * modules/fabsl: New file.
41977         * doc/posix-functions/fabsl.texi: Mention the new module.
41979 2012-02-25  Bruno Haible  <bruno@clisp.org>
41981         fabs tests: More tests.
41982         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
41983         (zero): New variable.
41984         (main): Add tests for signed zero.
41985         * modules/fabs-tests (Files): Add tests/minus-zero.h.
41987         fabsf tests: More tests.
41988         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
41989         (zero): New variable.
41990         (main): Add tests for signed zero.
41991         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
41993 2012-02-24  Bruno Haible  <bruno@clisp.org>
41995         atanl: Provide function definition on MSVC.
41996         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
41997         function pointer.
41998         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
42000 2012-02-24  Bruno Haible  <bruno@clisp.org>
42002         acosl: Provide function definition on MSVC.
42003         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
42004         function pointer.
42005         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
42007 2012-02-24  Bruno Haible  <bruno@clisp.org>
42009         asinl: Provide function definition on MSVC.
42010         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
42011         function pointer.
42012         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
42014 2012-02-24  Bruno Haible  <bruno@clisp.org>
42016         tanl: Provide function definition on MSVC.
42017         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
42018         function pointer.
42019         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
42021 2012-02-24  Bruno Haible  <bruno@clisp.org>
42023         cosl: Provide function definition on MSVC.
42024         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
42025         function pointer.
42026         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
42028 2012-02-24  Bruno Haible  <bruno@clisp.org>
42030         sinl: Provide function definition on MSVC.
42031         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
42032         function pointer.
42033         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
42035 2012-02-24  Bruno Haible  <bruno@clisp.org>
42037         logl: Provide function definition on MSVC.
42038         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
42039         function pointer.
42040         * lib/math.in.h (logl): Undefine if it does not exist as a function.
42042 2012-02-24  Bruno Haible  <bruno@clisp.org>
42044         expl: Provide function definition on MSVC.
42045         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
42046         function pointer.
42047         * lib/math.in.h (expl): Undefine if it does not exist as a function.
42049 2012-02-24  Bruno Haible  <bruno@clisp.org>
42051         sqrtl: Provide function definition on MSVC.
42052         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
42053         a function pointer.
42054         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
42056 2012-02-24  Bruno Haible  <bruno@clisp.org>
42058         ceill: Provide function definition on MSVC.
42059         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
42060         used as a function pointer.
42061         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
42063 2012-02-24  Bruno Haible  <bruno@clisp.org>
42065         floorl: Provide function definition on MSVC.
42066         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
42067         used as a function pointer.
42068         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
42070 2012-02-24  Bruno Haible  <bruno@clisp.org>
42072         ceilf: Provide function definition on MSVC.
42073         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
42074         used as a function pointer.
42075         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
42077 2012-02-24  Bruno Haible  <bruno@clisp.org>
42079         floorf: Provide function definition on MSVC.
42080         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
42081         used as a function pointer.
42082         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
42084 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42086         stdnoreturn: new module
42087         This implements a replacement for C11's <stdnoreturn.h>.
42088         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
42089         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
42090         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
42091         * tests/test-stdnoreturn.c: New files.
42093 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
42095         regex: fix false multibyte matches in some regular expressions
42096         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
42097         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
42098         * lib/regex_internal.c (re_string_skip_chars):
42099         Fix miscomputation of remain_len that may cause incomplete
42100         multi-byte character and false match.
42102 2012-02-24  Jim Meyering  <meyering@redhat.com>
42104         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
42105         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
42106         uses with "==" *before* the call, e.g., 0 == strcmp (...)
42107         Remove now-unnecessary str''cmp obfuscation.
42108         Suggested by Akim Demaille.
42110 2012-02-24  Bruno Haible  <bruno@clisp.org>
42112         streq: Rename macro.
42113         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
42114         * NEWS: Mention the change.
42115         * lib/mbrtowc.c (mbrtowc): Update.
42116         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
42117         * lib/wcwidth.c (wcwidth): Update.
42118         Suggested by Akim Demaille and Jim Meyering.
42120 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
42122         regex: fix typo in definition of MIN
42123         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
42124         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
42126 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
42127             Bruno Haible  <bruno@clisp.org>
42129         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
42130         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
42131         entries into a stack-allocated buffer directly.
42132         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
42134 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
42135             Bruno Haible  <bruno@clisp.org>
42137         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
42139          - There were several instances of this pattern:
42141              for (;;) {
42142                n = acl (f, GETACLCNT, 0, NULL);
42143                [ allocate an array A of size N ]
42144                if (acl (f, GETACL, n, a) == n)
42145                  break;
42146              }
42148            This loop might never terminate if some other process is constantly
42149            manipulating the file's ACL.  The loop should be rewritten to
42150            terminate.
42152          - The acl (... GETACLNT ...) call is merely an optimization; its value
42153            is merely a hint as to how big to make the array.  A better
42154            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
42155            and just guess a reasonably-big size, growing the size and trying
42156            again if it's not large enough.  This guarantees termination, and
42157            saves a system call.
42159         * lib/acl-internal.h: Include <limits.h>.
42160         (MIN, SIZE_MAX): New macros.
42161         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
42162         a stack-allocated buffer, and use malloc if it does not fit. Don't
42163         use GETACLCNT.
42164         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
42166 2012-02-19  Bruno Haible  <bruno@clisp.org>
42168         acl: Fix endless loop on Solaris with vxfs.
42169         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
42170         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
42171         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
42172         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
42173         * tests/test-sameacls.c (main)[Solaris]: Likewise.
42174         Reported by Bill Jones in
42175         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
42177 2012-02-19  Bruno Haible  <bruno@clisp.org>
42179         acl: Fix copy-acl test failure on Solaris 11.0.
42180         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
42181         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
42182         that this function returns 0 in some more cases.
42184 2012-02-19  Bruno Haible  <bruno@clisp.org>
42186         acl: Update doc references.
42187         * doc/acl-resources.txt: Update links to Solaris documentation.
42189 2012-02-19  Bruno Haible  <bruno@clisp.org>
42191         Fix test failure in many locales on Solaris 11.
42192         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
42193         'tr' arguments.
42194         * tests/test-pipe-filter-ii1.c (main): Likewise.
42195         * build-aux/bootstrap (check_versions): Run 'tr' command with range
42196         expressions in the C locale.
42197         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
42198         * m4/host-os.m4 (gl_HOST_OS): Likewise.
42200 2012-02-19  Bruno Haible  <bruno@clisp.org>
42202         gnulib-tool: Improve usage message.
42203         * gnulib-tool (func_usage): Move doc of --help and --version to the
42204         section "Operation modes".
42206 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
42208         README-release: make it easier to execute commands
42209         * top/README-release: break commands out on to separate lines.
42211 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
42213         GNUmakefile: simplify detection of unconfigured trees
42214         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
42215         whether the tree make is being run from is already configured or
42216         not.  Related simplifications.
42218 2012-02-13  Simon Josefsson  <simon@josefsson.org>
42220         * gnulib-tool (func_usage): Document --help and --version.
42222 2012-02-11  Jim Meyering  <meyering@redhat.com>
42224         bootstrap: don't exit 0 upon gnulib-tool failure
42225         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
42226         its exit status, not 0.
42228 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
42230         README-release: various improvements
42231         * top/README-release: Give a command to push changes for the
42232         release.  Add "distcheck" to list of other pre-release checks.
42233         Fix instance of "make stable" which should be "make TYPE".
42235 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
42237         maint: replace FSF snail-mail addresses with URLs
42238         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
42239         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
42240         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
42241         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
42242         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
42243         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
42244         * lib/check-version.c, lib/check-version.h, lib/config.charset:
42245         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
42246         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
42247         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
42248         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
42249         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
42250         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
42251         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
42252         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
42253         * lib/glthread/thread.c, lib/glthread/thread.h:
42254         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
42255         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
42256         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
42257         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
42258         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
42259         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
42260         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
42261         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
42262         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
42263         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
42264         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
42265         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
42266         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
42267         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
42268         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
42269         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
42270         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
42271         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
42272         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
42273         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
42274         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
42275         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
42276         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
42277         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
42278         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
42279         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
42280         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
42281         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
42282         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
42283         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
42284         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
42285         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
42286         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
42287         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
42288         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
42289         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
42290         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
42291         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
42292         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
42293         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
42294         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
42295         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
42296         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
42297         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
42298         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
42299         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
42300         * tests/test-poll.c, tests/test-quotearg-simple.c:
42301         * tests/test-quotearg.c, tests/test-quotearg.h:
42302         * tests/test-round-ieee.c, tests/test-round1.c:
42303         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
42304         * tests/test-roundl-ieee.c, tests/test-roundl.c:
42305         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
42306         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
42307         * tests/test-strerror.c, tests/test-strerror_r.c:
42308         * tests/test-strsignal.c, tests/test-strverscmp.c:
42309         * tests/test-xmemdup0.c:
42310         Replace FSF snail mail addresses with URLs, as per GNU coding
42311         standards.  See glibc bug
42312         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
42314 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
42316         README-release: capitalize a word and split a line
42317         * top/README-release: Fix punctuation and spacing.
42319 2012-02-08  Akim Demaille  <demaille@gostai.com>
42321         fatal-signal: use C prototypes (with explicit void).
42322         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
42323         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
42325 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
42327         regex: spelling fix
42328         * lib/regexec.c: spelling fix
42330         regex: rely on stdint.h for SIZE_MAX
42331         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
42333 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
42335         regex: merge glibc changes
42337         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
42338         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
42339         (init_word_char): Work even if bitset words are not exactly 32 or
42340         64 bits wide.  Don't assume there are no padding bits.
42341         * lib/regex.c [_LIBC]: Do not include <config.h>.
42342         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
42343         and -Wtype-limits.
42344         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
42345         needless disagreement with glibc.  All uses changed.  Define it to
42346         1 only if _GNU_SOURCE, to match glibc.
42347         (_REG_RM_NAME): Remove; no longer needed, since the names in
42348         question are now all protected by __USE_GNU.
42349         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
42350         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
42351         * lib/regex_internal.h (MIN): New macro.
42353         2012-01-03 Ulrich Drepper <drepper@gmail.com>
42354         * lib/regcomp.c (init_word_char): Optimize regex a bit.
42356         2011-12-30 Jakub Jelinek <jakub@redhat.com>
42357         * lib/regex_internal.c (re_string_fetch_byte_case):
42358         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
42359         is miscompiled, and it turns out it is because of an incorrect
42360         attribute on re_string_fetch_byte_case.  Unlike
42361         re_string_peek_byte_case, this one is really not pure, it modifies
42362         memory (increments pstr->cur_idx), and with the pure attribute GCC
42363         assumed it doesn't and it cached the presumed value of
42364         regexp->cur_idx in a variable across the
42365          for (;; ++i)
42366            {
42367              if (i >= BRACKET_NAME_BUF_SIZE)
42368                return REG_EBRACK;
42369              if (token->type == OP_OPEN_CHAR_CLASS)
42370                ch = re_string_fetch_byte_case (regexp);
42371              else
42372                ch = re_string_fetch_byte (regexp);
42373              if (re_string_eoi(regexp))
42374                return REG_EBRACK;
42375              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
42376                break;
42377              elem->opr.name[i] = ch;
42378            }
42380         2011-11-29 Andreas Schwab <schwab@redhat.com>
42381         * lib/regcomp.c (build_equiv_class):
42382         Fix access after end of search string in regex matcher.
42384         2011-11-12 Ulrich Drepper <drepper@redhat.com>
42385         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
42387         2011-10-12 Ulrich Drepper <drepper@redhat.com>
42388         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
42390         2011-10-11 Ulrich Drepper <drepper@redhat.com>
42391         * lib/regcomp.c (parse_branch, parse_sub_exp):
42392         More regex memory leak fixes and tests.
42393         (parse_sub_exp, parse_bracket_exp):
42394         Fix memory leak for some invalid regular expressions.
42396         2011-05-28 Ulrich Drepper <drepper@gmail.com>
42397         * lib/regex_internal.c, lib/regexec.c:
42398         Fix unnecessary overallocation due to incomplete character.  When
42399         incomplete characters are found at the end of a string the code
42400         ran amok and allocated lots of memory.  Stricter limits are now in
42401         place.
42403         2011-05-20 Reuben Thomas <rrt@sc3d.org>
42404         * lib/regex.h: Update documentation.
42406         2011-05-16 Aharon Robbins <arnold@skeeve.com>
42407         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
42409         2010-05-05 Andreas Schwab <schwab@redhat.com>
42410         * lib/regexec.c (find_collation_sequence_value):
42411         Fix lookup of collation sequence value during regexp matching.
42413         2010-01-22 Ulrich Drepper <drepper@redhat.com>
42414         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
42416         2008-01-16 Ulrich Drepper <drepper@redhat.com>
42417         * lib/regex.h: Cleanup namespace.
42419         2007-11-26 Ulrich Drepper <drepper@redhat.com>
42420         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
42422         2007-08-26 Ulrich Drepper <drepper@redhat.com>
42423         * lib/regex_internal.h: Prevent some declarations and definitions
42424         to be seen when used in tests.
42426         2005-05-06 Ulrich Drepper <drepper@redhat.com>
42427         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
42428         __libc_lock_* macros if not _LIBC.
42429         (struct re_dfa_t): Add lock.
42431 2012-02-07  Eric Blake  <eblake@redhat.com>
42433         maint.mk: also prohibit lower-case @var@
42434         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
42435         lower case, like @top_srcdir@.
42437 2012-02-04  Eric Blake  <eblake@redhat.com>
42439         canonicalize: avoid uninitialized memory use
42440         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
42441         random '/' left in dest.
42442         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
42444 2012-02-04  Bruno Haible  <bruno@clisp.org>
42446         isatty: Fix test failure of ptsname_r on native Windows.
42447         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
42448         and don't set errno.
42449         (isatty): Test first whether fd is valid. Set errno when returning 0.
42451 2012-02-04  Bruno Haible  <bruno@clisp.org>
42453         spawn-pipe tests: Fix a NULL program name in a diagnostic.
42454         * tests/test-spawn-pipe-main.c: Include progname.h.
42455         (main): Invoke set_program_name.
42456         * modules/spawn-pipe-tests (Depends-on): Add progname.
42458         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
42459         * tests/test-nonblocking-socket-main.c: Include progname.h.
42460         (main): Invoke set_program_name.
42461         * modules/nonblocking-socket-tests (Depends-on): Add progname.
42463         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
42464         * tests/test-nonblocking-pipe-main.c: Include progname.h.
42465         (main): Invoke set_program_name.
42466         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
42468 2012-02-04  Eric Blake  <eblake@redhat.com>
42470         canonicalize-lgpl: fix // handling
42471         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
42473         canonicalize: fix // handling
42474         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
42475         /// to //, since only // is special.
42477 2012-02-04  Bruno Haible  <bruno@clisp.org>
42479         ioctl: Fix test failure on native Windows.
42480         * lib/ioctl.c: Include msvc-nothrow.h.
42481         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
42483 2012-02-04  Bruno Haible  <bruno@clisp.org>
42485         fsync: Avoid test failure on native Windows.
42486         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
42487         read-only.
42489 2012-02-04  Bruno Haible  <bruno@clisp.org>
42491         sys_select: Avoid syntax error on OpenBSD 5.0.
42492         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
42493         currently being included, just include the system's <sys/select.h>.
42495 2012-02-04  Bruno Haible  <bruno@clisp.org>
42497         sys_select: Avoid syntax error on OpenBSD 5.0.
42498         * lib/sys_select.in.h: Include <signal.h> only after the include_next
42499         <sys/select.h>, not before.
42500         Reported by Jiri B <jirib@devio.us>.
42502 2012-02-04  Bruno Haible  <bruno@clisp.org>
42504         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
42505         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
42506         global variables.
42507         * tests/test-get-rusage-data.c (main): Likewise.
42508         Reported by Jim Meyering.
42510 2012-02-04  Bruno Haible  <bruno@clisp.org>
42512         stdioext: Fix last commit.
42513         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
42515 2012-02-03  Bruno Haible  <bruno@clisp.org>
42517         stdioext: Add tentative support for Plan9.
42518         * lib/stdio-impl.h: Include <errno.h>.
42519         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
42520         * lib/freadable.c (freadable): Likewise.
42521         * lib/fwritable.c (fwritable): Likewise.
42522         * lib/fbufmode.c (fbufmode): Likewise.
42523         * lib/freading.c (freading): Likewise.
42524         * lib/fwriting.c (fwriting): Likewise.
42525         * lib/freadptr.c (freadptr): Likewise.
42526         * lib/freadseek.c (freadptrinc): Likewise.
42527         * lib/freadahead.c (freadahead): Likewise.
42528         * lib/fpurge.c (fpurge): Likewise.
42529         * lib/fseeko.c (rpl_fseeko): Likewise.
42530         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
42531         Reported by Jens Staal <staal1978@gmail.com>.
42533 2012-02-02  Jim Meyering  <meyering@redhat.com>
42535         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
42536         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
42537         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
42538         not even to try to add the attribute.  Instead, add a pragma to suppress
42539         the suggestion/warning.
42541 2012-01-31  Karl Berry  <karl@gnu.org>
42543         setstate doc: typo.
42544         * doc/posix-functions/setstate.texi (setstate): { not (.
42546 2012-01-31  Bruno Haible  <bruno@clisp.org>
42548         popen: Make more robust on Windows.
42549         * lib/popen.c: On native Windows, use the _popen based code even if
42550         HAVE_POPEN is set.
42551         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
42552         environment variable on native Windows.
42554 2012-01-30  Bruno Haible  <bruno@clisp.org>
42556         pclose: Fix typo.
42557         * lib/stdio.in.h (pclose): Fix typo in warning message.
42559 2012-01-30  Bruno Haible  <bruno@clisp.org>
42561         doc about getlogin_r, setstate.
42562         * doc/posix-functions/getlogin_r.texi: List the incompatible
42563         declaration problem under "not fixed by gnulib".
42564         * doc/posix-functions/setstate.texi: Mention incompatible declaration
42565         problem on Solaris 11 and other platforms.
42567 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
42568             Bruno Haible  <bruno@clisp.org>
42570         poll tests: Make test more robust.
42571         * tests/test-poll.c: Include macros.h.
42572         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
42573         return value of various I/O operations.
42574         * modules/poll-tests (Files): Add tests/macros.h.
42576 2012-01-30  Bruno Haible  <bruno@clisp.org>
42578         sys_stat: Fix support for mingw64 and MSVC.
42579         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
42580         header files already do it.
42581         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
42582         stat itself.
42583         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
42585 2012-01-30  Bruno Haible  <bruno@clisp.org>
42587         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
42588         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
42589         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
42591 2012-01-29  Bruno Haible  <bruno@clisp.org>
42593         quotearg: Fix test failure on MacOS X 10.5.
42594         * tests/test-quotearg-simple.c: Include localcharset.h.
42595         (main): If the locale encoding is not ASCII, bypass the tests of
42596         locale_quoting_style and clocale_quoting_style.
42597         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
42599 2012-01-29  Jim Meyering  <meyering@redhat.com>
42601         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
42602         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
42603         detect uses of canonicalize_file_name.
42605 2012-01-28  Bruno Haible  <bruno@clisp.org>
42607         test-framework-sh: Fix test failure with AIX 7.1 diff.
42608         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
42609         in column 1, like 'diff -c' does.
42610         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
42611         whether 'diff -u' is used. Instead, test whether the output contains
42612         some '@' character.
42614 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42616         strtoimax: eliminate need for stdint.h, inttypes.h checks
42617         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
42618         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
42619         the prerequisites for a recently-introduced strtoimax test.
42620         I guess this might cause strtoimax to be replaced when not
42621         strictly necessary on older hosts, but this shouldn't introduce
42622         any bugs and it should make Emacs 'configure' faster on typical
42623         modern hosts.  Problem discovered when importing the latest gnulib
42624         to an Emacs test version.
42625         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
42627 2012-01-28  Bruno Haible  <bruno@clisp.org>
42629         sys_time: Override 'struct timeval' on some native Windows platforms.
42630         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
42631         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
42632         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
42633         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
42634         needs to be overridden.
42635         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
42636         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
42637         * tests/test-sys_select.c: Check that the tv_sec member has the same
42638         size as a 'time_t'.
42639         * tests/test-sys_time.c: Likewise.
42640         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
42641         is set, set also REPLACE_GETTIMEOFDAY.
42642         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
42643         convert the resulting 'struct timeval' before returning.
42644         * lib/select.c: Include <sys/time.h>.
42645         (select, timeval): Undefine at the right place.
42646         * modules/select (Depends-on): Add sys_time.
42647         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
42648         some Windows platforms.
42649         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
42651 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
42653         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
42654         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
42655         an integer.
42656         * lib/fcntl.c (dupfd): Likewise.
42657         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
42659 2012-01-28  Bruno Haible  <bruno@clisp.org>
42661         fcntl: Avoid compilation error on native Windows.
42662         * modules/fcntl (Depends-on): Add 'close'.
42664 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
42666         select, poll, isatty: Avoid warnings on x86_64 mingw64.
42667         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
42668         pointer to an integer.
42669         * lib/poll.c (IsConsoleHandle): Likewise.
42670         * lib/isatty.c (IsConsoleHandle): Likewise.
42672 2012-01-28  Jim Meyering  <meyering@redhat.com>
42674         doc: clarify README-release
42675         * top/README-release: Clarify: you should make a point to have
42676         the latest stable versions of build tools in your PATH, and the
42677         reference to buildreq is solely for its list of tool names, not
42678         for its minimal-functional version numbers.
42679         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
42681         maint.mk: use more readable (yet functionally equivalent) quoting
42682         It is common to quote a single quote in a single quoted string like
42683         this:  '...'\''...'.  Unless you know the idiom, that looks like
42684         gibberish, so prefer to double-quote the string when possible.
42685         Then you can use a more readable, lone single quote: "...'..."
42686         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
42687         "don't" is more readable than the equivalent 'don'\''t'.
42688         (sc_cast_of_x_alloc_return_value): Likewise.
42689         (sc_cast_of_alloca_return_value): Likewise.
42690         (sc_makefile_path_separator_check): Similar: use ":" in '...',
42691         rather than '\'':'\''.
42693 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
42695         stdalign: relax _Alignof and tighten _Alignas test
42696         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
42697         as it was too strict: alignof must divide offsetof, but it need
42698         not equal offsetof.  Inspired by Joseph S. Myers's comment
42699         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
42700         Conversely, tighten the _Alignas test a bit, as the resulting
42701         alignment must be exactly 8.
42703 2012-01-27  Bruno Haible  <bruno@clisp.org>
42705         stdalign: Document the last change.
42706         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
42708 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
42710         stdalign: check that alignof and offsetof are consistent
42711         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
42712         Problem reported for gnulib by Richard W.M. Jones in
42713         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
42715 2012-01-27  Jim Meyering  <meyering@redhat.com>
42717         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
42718         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
42719         convert a sequence with gaps to the minimal containing range.
42720         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
42721         * tests/test-update-copyright.sh: Test for this.
42722         The FSF confirmed it is ok to do this, assuming there is at
42723         least one significant change per year in the affected range:
42724         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
42726 2012-01-26  Bruno Haible  <bruno@clisp.org>
42728         pipe2: refine doc about thread-safety
42729         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
42730         multithread-safety problem.
42731         * doc/glibc-functions/accept4.texi: Likewise.
42733 2012-01-26  Bruno Haible  <bruno@clisp.org>
42735         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
42736         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
42737         In the test program, include <fcntl.h>, for O_RDONLY.
42739 2012-01-26  Eric Blake  <eblake@redhat.com>
42741         pipe2: document lack of thread-safety in replacement
42742         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
42743         issue in replacement.
42744         * doc/glibc-functions/accept4.texi (accept4): Likewise.
42745         Based on a report by Eric Wong.
42747 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
42748             Bruno Haible  <bruno@clisp.org>
42750         malloca: Avoid warnings on x86_64 mingw64.
42751         * lib/malloca.c: Include <stdint.h>.
42752         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
42753         * modules/malloca (Depends-on): Add stdint.
42754         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
42756 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
42758         obstack: remove __STDC__ conditionals
42759         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
42760         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
42761         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
42762         m4/include_next.m4 as the only gnulib-maintained places that still
42763         refer to __STDC__.
42765 2012-01-24  Bruno Haible  <bruno@clisp.org>
42767         havelib: Modern quoting.
42768         * build-aux/config.rpath: Quote 'like this', not `like this', as per
42769         the recent change to the GNU coding standards.
42771 2012-01-24  Bruno Haible  <bruno@clisp.org>
42773         stdint: Improve support for Android.
42774         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
42775         Reported by Simon Josefsson <simon@josefsson.org>.
42777 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42779         doc: omit trailing empty lines from INSTALL etc.
42780         * doc/Makefile (INSTALL): Omit trailing empty lines.
42781         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
42782         omit trailing empty lines.  This simplifies the build procedure.
42784 2012-01-23  Jim Meyering  <meyering@redhat.com>
42786         tests: avoid spurious warnings about gl_sockets_startup
42787         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
42788         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
42789         reporting a "statement with no effect".
42790         * tests/test-accept.c (main): Mark as "(void)".
42791         * tests/test-accept4.c (main): Likewise.
42792         * tests/test-bind.c (main): Likewise.
42793         * tests/test-connect.c (main): Likewise.
42794         * tests/test-getpeername.c (main): Likewise.
42795         * tests/test-getsockname.c (main): Likewise.
42796         * tests/test-getsockopt.c (main): Likewise.
42797         * tests/test-listen.c (main): Likewise.
42798         * tests/test-recv.c (main): Likewise.
42799         * tests/test-recvfrom.c (main): Likewise.
42800         * tests/test-send.c (main): Likewise.
42801         * tests/test-sendto.c (main): Likewise.
42802         * tests/test-setsockopt.c (main): Likewise.
42803         * tests/test-shutdown.c (main): Likewise.
42805 2012-01-21  Bruno Haible  <bruno@clisp.org>
42807         locale-fr.m4: Fix for Android.
42808         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
42809         failure of the test program on Bionic libc.
42811 2012-01-21  Jim Meyering  <meyering@redhat.com>
42813         bootstrap: fail when bootstrap_post_import_hook fails
42814         Otherwise, it's far too easy to miss diagnostics emitted
42815         between gnulib-tool's output and that of running configure.
42816         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
42818 2012-01-17  Jim Meyering  <meyering@redhat.com>
42820         maint: enable sc_trailing_blank
42821         * build-aux/pmccabe.css: Remove trailing blanks.
42822         * doc/acl-cygwin.txt: Likewise.
42823         * doc/gnu-oids.texi: Likewise
42824         * cfg.mk: Enable sc_trailing_blank.
42825         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
42827 2012-01-17  Jim Meyering  <meyering@redhat.com>
42829         maint: enable sc_prohibit_openat_without_use
42830         * cfg.mk: Enable sc_prohibit_openat_without_use.
42831         Exempt lib/selinux-at.c.
42833 2012-01-17  Jim Meyering  <meyering@redhat.com>
42835         maint: enable sc_prohibit_cloexec_without_use
42836         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
42837         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
42839 2012-01-17  Jim Meyering  <meyering@redhat.com>
42841         maint: enable sc_prohibit_intprops_without_use
42842         * cfg.mk: Enable sc_prohibit_intprops_without_use
42843         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
42845 2012-01-17  Jim Meyering  <meyering@redhat.com>
42847         maint: enable sc_prohibit_hash_pjw_without_use
42848         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
42849         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
42850         to match any use of \<hash_pjw\>, i.e., not necessarily with a
42851         following " (".
42853 2012-01-17  Jim Meyering  <meyering@redhat.com>
42855         maint: enable double-word-prohibiting rule
42856         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
42857         Exempt three files.
42859 2012-01-17  Jim Meyering  <meyering@redhat.com>
42861         maint: remove empty lines at EOF, but excluding modules/*
42862         Apply syntax rules at home as well as abroad.  Most changes
42863         were induced by running this:
42864           make srcdir=. _build-aux=build-aux -f top/maint.mk \
42865             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
42866             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
42867         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
42868         Exempt modules/* and two binary files.
42869         Also exempt doc/INSTALL*, per request from Bruno Haible.
42870         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
42871         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
42872         * doc/Copyright/request-assign.future: Likewise.
42873         * doc/Copyright/request-disclaim.changes: Likewise.
42874         * doc/INSTALL: Likewise.
42875         * doc/INSTALL.ISO: Likewise.
42876         * doc/INSTALL.UTF-8: Likewise.
42877         * doc/acl-cygwin.txt: Likewise.
42878         * doc/acl-resources.txt: Likewise.
42879         * doc/fdl-1.2.texi: Likewise.
42880         * doc/fdl-1.3.texi: Likewise.
42881         * doc/fdl.texi: Likewise.
42882         * lib/argp-pin.c: Likewise.
42883         * lib/round.c: Likewise.
42884         * lib/unicase/u16-totitle.c: Likewise.
42885         * lib/unictype/block_test.c: Likewise.
42886         * lib/uninorm/canonical-decomposition.c: Likewise.
42887         * m4/README: Likewise.
42888         * m4/relocatable-lib.m4: Likewise.
42889         * tests/test-isnand-nolibm.c: Likewise.
42890         * tests/test-isnand.c: Likewise.
42891         * tests/uninorm/NormalizationTest.txt: Likewise.
42893 2012-01-17  Jim Meyering  <meyering@redhat.com>
42895         maint: add framework to run syntax-check rules against gnulib sources
42896         * cfg.mk: New file, to disable all currently-failing tests.
42897         We'll enable them one by one, as they are made to pass.
42898         * Makefile (sc_maint): New rule.
42900 2012-01-21  Bruno Haible  <bruno@clisp.org>
42902         stdint: Add support for Android.
42903         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
42904         include the system's <stdint.h>.
42905         Reported by Simon Josefsson <simon@josefsson.org>.
42907 2012-01-19  Jim Meyering  <meyering@redhat.com>
42909         bootstrap: add bootstrap_post_import_hook
42910         Bison does still need something like the gnulib_mk_hook whose
42911         invocation I had to remove along with slurp in commit 767ccd40.
42912         Technically, we could get along without it, but doing so would
42913         have required living with a warning and a mandatory post-bootstrap
42914         automake rerun.
42915         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
42916         (bootstrap_post_import_hook): New function.
42917         Invoke it after gnulib-tool --import and before autoreconf.
42919 2012-01-18  Jim Meyering  <meyering@redhat.com>
42921         gitlog-to-changelog: don't use "no_"-prefixed variable name
42922         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
42923         to enable both --cluster and --no-cluster.  Change variable name,
42924         s/\$no_cluster/$cluster/, and reverse usage to match.
42926         gitlog-to-changelog: use "||", not "or" in expressions
42927         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
42928         expressions.
42930 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
42932         gitlog-to-changelog: new option --no-cluster
42933         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
42934         clustering of adjacent commit messages.
42936 2012-01-17  Jim Meyering  <meyering@redhat.com>
42938         maint: spell file systems with two words, not one
42939         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
42940         two words, not one.
42942 2012-01-16  Jim Meyering  <meyering@redhat.com>
42944         bootstrap: add a FIXME comment to ensure we eventually remove the hack
42945         * build-aux/bootstrap (gnulib_tool_options): Add comment.
42947 2012-01-16  Eric Blake  <eblake@redhat.com>
42949         bootstrap: cater to autoconf 2.59
42950         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
42951         is not available.
42953         bootstrap: properly check for libtool
42954         * build-aux/bootstrap (libtoolize): Also run libtool when older
42955         usage is detected.
42957 2012-01-15  Bruno Haible  <bruno@clisp.org>
42959         Improve support for MSVC 9.
42960         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
42961         clashes on MSVC.
42962         * lib/fcntl.in.h: Likewise.
42963         * lib/stdlib.in.h: Likewise.
42964         * lib/sys_stat.in.h: Likewise.
42966 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
42968         gnupload: we hold the master copy of this script now
42969         For motivation and more information, see:
42970         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
42971         * build-aux/gnupload: Make it clear in the heading comments that the
42972         master copy of this file is maintained by gnulib.  Since we are at
42973         it, bump its copyright year and ...
42974         ($scriptversion): ... the date in its version.
42975         ($usage): Patches and bug reports should be sent to the gnulib list,
42976         not the automake one.
42977         * config/srclist.txt: Don't try to sync 'gnupload' from automake
42978         anymore.
42980 2012-01-15  Bruno Haible  <bruno@clisp.org>
42982         Fix module 'random'.
42983         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
42984         initstate, setstate are declared.
42986 2012-01-14  Bruno Haible  <bruno@clisp.org>
42988         Tests for module 'random'.
42989         * modules/random-tests: New file.
42990         * tests/test-random.c: New file, based on tests/test-random_r.c.
42992         New module 'random'.
42993         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
42994         declarations.
42995         * lib/random.c: New file, based on glibc/stdlib/random.c.
42996         * m4/random.m4: New file.
42997         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
42998         HAVE_RANDOM.
42999         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
43000         * modules/random: New file.
43001         * config/srclist.txt: Add an entry for random.c.
43002         * doc/posix-functions/random.texi: Mention the 'random' module.
43003         * doc/posix-functions/initstate.texi: Likewise.
43004         * doc/posix-functions/setstate.texi: Likewise.
43005         * doc/posix-functions/srandom.texi: Likewise.
43007 2012-01-12  Bruno Haible  <bruno@clisp.org>
43009         random_r: Use common idioms.
43010         * lib/random_r.c: Include <stdlib.h> first.
43012         random_r: Override incompatible API on AIX, OSF/1.
43013         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
43014         Override the system function if REPLACE_RANDOM_R is 1.
43015         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
43016         and OSF/1, set REPLACE_RANDOM_R.
43017         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
43018         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
43019         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
43020         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
43021         * doc/glibc-functions/random_r.texi: Likewise.
43022         * doc/glibc-functions/setstate_r.texi: Likewise.
43024         random_r: Support for MSVC 9.
43025         * lib/random_r.c: Include stdint.h, not inttypes.h.
43027 2012-01-12  Eric Blake  <eblake@redhat.com>
43029         inet_ntop: guard extra work by IF_LINT
43030         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
43031         better code generation when not checking for warnings.
43032         Suggested by Paul Eggert and Jim Meyering.
43034         strptime: fix regression on mingw
43035         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
43036         Fix regression.  Reported by Bruno Haible.
43038 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
43039             Bruno Haible  <bruno@clisp.org>
43041         copy-file: add error-code-returning variant.
43042         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
43043         (qcopy_file_preserving): New declaration.
43044         * lib/copy-file.c (qcopy_file_preserving): Renamed from
43045         copy_file_preserving. Change return type to 'int'. Don't emit an error
43046         message here.
43047         (copy_file_preserving): New function.
43048         * tests/test-copy-file.c: Include <stdlib.h>.
43049         (main): Test qcopy_file_preserving if the environment variable
43050         NO_STDERR_OUTPUT is set.
43051         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
43052         with NO_STDERR_OUTPUT
43053         * tests/test-copy-file-2.sh: Likewise.
43055 2012-01-10  Bruno Haible  <bruno@clisp.org>
43057         copy-file: Use 'quote' module consistently.
43058         * lib/copy-file.c (copy_file_preserving): Use quote().
43060         copy-file: Refactor.
43061         * lib/copy-file.c: Include quote.h.
43062         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
43063         message here.
43064         * modules/copy-file (Depends-on): Add quote.
43066         acl: Export qcopy_acl.
43067         * lib/acl.h (qcopy_acl): New declaration.
43068         * lib/copy-acl.c (qcopy_acl): Make non-static.
43070         acl: Rename a local variable.
43071         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
43073         acl: Align return values of copy_acl and qcopy_acl.
43074         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
43075         maybe < -1.
43077 2012-01-11  Eric Blake  <eblake@redhat.com>
43079         strptime: silence gcc warnings
43080         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
43081         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
43082         Reported by Daniel P. Berrange.
43084         inet_ntop: silence gcc warning
43085         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
43086         Reported by Daniel P. Berrange.
43088 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
43090         getloadavg test: skip the test on GNU/Linux without /proc mounted
43091         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
43092         file.  When /proc is not mounted, it always fails with ENOENT.
43093         * tests/test-getloadavg.c (main): Treat ENOENT return code from
43094         getloadavg(3) the same way as ENOSYS and ENOTSUP.
43096 2012-01-10  Bruno Haible  <bruno@clisp.org>
43098         regex: Avoid link error on MSVC 9.
43099         * modules/regex (Depends-on): Add wctype.
43101 2012-01-10  Bruno Haible  <bruno@clisp.org>
43103         doc: Mention --with-tests option.
43104         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
43105         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
43106         --with-tests.
43107         Reported by Reuben Thomas.
43109 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
43111         users.txt: order package names lexicographically.
43112         * users.txt: Order package names lexicographically.
43114 2012-01-10  Jim Meyering  <meyering@redhat.com>
43116         maint.mk: fix description in comment
43117         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
43119         ignore-value: remove deprecated ignore_ptr function
43120         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
43121         * NEWS: Note this.
43123 2012-01-09  Jim Meyering  <meyering@redhat.com>
43125         test-init.sh: avoid a subshell
43126         * tests/test-init.sh: Remove protective subshell.
43127         Suggested by Bernhard Voelker.  While a subshell is normally
43128         required to protect against older shells (Solaris, FreeBSD) that
43129         warn about a missing program before performing redirection, the
43130         shell-selection tests performed by init.sh probably exclude any
43131         offending shell.
43133 2012-01-08  Bruno Haible  <bruno@clisp.org>
43135         setlocale tests: Avoid test failure on Solaris 11.0.
43136         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
43137         variable.
43139 2012-01-08  Bruno Haible  <bruno@clisp.org>
43141         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
43142         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
43143         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
43144         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
43145         macro.
43146         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
43147         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
43148         * lib/spawn_faction_addopen.c: Add workaround implementation if
43149         HAVE_WORKING_POSIX_SPAWN.
43150         * modules/spawn (Makefile): Substitute
43151         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
43152         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
43153         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
43154         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
43155         (Depends-on): Update conditions.
43156         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
43157         the Solaris 11 bug.
43159 2012-01-08  Bruno Haible  <bruno@clisp.org>
43161         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
43162         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
43163         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
43164         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
43165         macro.
43166         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
43167         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
43168         * lib/spawn_faction_adddup2.c: Add workaround implementation if
43169         HAVE_WORKING_POSIX_SPAWN.
43170         * modules/spawn (Makefile): Substitute
43171         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
43172         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
43173         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
43174         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
43175         (Depends-on): Update conditions.
43176         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
43177         the Solaris 11 bug.
43179 2012-01-08  Bruno Haible  <bruno@clisp.org>
43181         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
43182         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
43183         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
43184         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
43185         HAVE_WORKING_POSIX_SPAWN.
43186         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
43187         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
43188         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
43189         * lib/spawn_faction_addclose.c: Add workaround implementation if
43190         HAVE_WORKING_POSIX_SPAWN.
43191         * modules/spawn (Makefile): Substitute
43192         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
43193         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
43194         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
43195         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
43196         (Depends-on): Update conditions.
43197         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
43198         the Solaris 11 bug.
43200 2012-01-08  Bruno Haible  <bruno@clisp.org>
43202         doc: Update for Solaris 11.0.
43203         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
43204         * m4/printf.m4: Update comments.
43206 2012-01-08  Bruno Haible  <bruno@clisp.org>
43208         mktime: Avoid compilation error on Solaris 11.
43209         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
43211 2012-01-08  Bruno Haible  <bruno@clisp.org>
43213         doc: Small fix.
43214         * doc/posix-headers/nl_types.texi: Correct platforms list.
43216 2012-01-08  Simon Josefsson  <simon@josefsson.org>
43218         Add lgpl-3.0 module.
43219         * MODULES.html.sh (Support for building documentation): Add
43220         lgpl-3.0.
43221         * modules/lgpl-3.0: New file.
43223 2012-01-08  Jim Meyering  <meyering@redhat.com>
43225         select.c: indent with spaces, not TABs
43226         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
43228 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
43230         quotearg: do not use grave accent for left quote
43231         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
43232         locale_quoting_style.
43233         (quotearg_buffer_restyled): Fix example.
43234         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
43236 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
43238         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
43239         Most programs do not have translation catalogs for English and much
43240         less separate catalogs for British and American English.  Drop the
43241         suggestion to translators about these two, and provide it
43242         automatically for Unicode locales.  Like most programs, even those
43243         using American English, we use single quotation marks.  This conflicts
43244         with the American typographic convention, but works better when you
43245         cite the entire error message within double quotes.  It also tries not
43246         to clash with established practice and with what non-gnulib programs
43247         will usually do.
43248         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
43249         using an UTF-8 or GB-18030 locale.  The list of other locales with
43250         quotes was provided by Bruno Haible.
43251         (quotearg_buffer_restyled): Adjust instructions to translators.
43252         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
43253         text, since this would be wrong when using Unicode.
43254         * modules/quotearg: Depend on c-strcaseeq.
43256 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
43258         quotearg: fix Wikipedia link
43259         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
43261 2012-01-07  Simon Josefsson  <simon@josefsson.org>
43263         Fix for mingw with MSVC9.
43264         * m4/ld-version-script.m4: Check that compiler rejects version
43265         scripts with syntax errors.  Reported by Bruno Haible
43266         <bruno@clisp.org>.
43268 2012-01-06  Bruno Haible  <bruno@clisp.org>
43270         Talk about "native Windows API", not "Woe32".
43271         * lib/accept4.c: Update comments to mention native Windows.
43272         * lib/execute.c: Likewise.
43273         * lib/fatal-signal.c: Likewise.
43274         * lib/localcharset.c: Likewise.
43275         * lib/nanosleep.c: Likewise.
43276         * lib/nl_langinfo.c: Likewise.
43277         * lib/pclose.c: Likewise.
43278         * lib/pipe-filter-gi.c: Likewise.
43279         * lib/pipe-filter-ii.c: Likewise.
43280         * lib/pipe.c: Likewise.
43281         * lib/pipe2.c: Likewise.
43282         * lib/popen.c: Likewise.
43283         * lib/progreloc.c: Likewise.
43284         * lib/relocatable.c: Likewise.
43285         * lib/sigaction.c: Likewise.
43286         * lib/sigprocmask.c: Likewise.
43287         * lib/spawn-pipe.h: Likewise.
43288         * lib/spawn-pipe.c: Likewise.
43289         * lib/spawni.c: Likewise.
43290         * lib/stat-time.h: Likewise.
43291         * lib/w32spawn.h: Likewise.
43292         * tests/test-isatty.c: Likewise.
43293         * lib/config.charset: More comments.
43294         * doc/gnulib-intro.texi: Mention native Windows.
43295         * doc/posix-functions/_Exit_C99.texi: Likewise.
43296         * doc/posix-headers/fcntl.texi: Likewise.
43298 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
43300         argp: Avoid crash if translator uses % characters in a translation.
43301         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
43302         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
43304 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
43306         doc: C11 and C++11 are now official
43307         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
43308         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
43309         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
43310         * modules/stdalign:
43311         Replace references to draft C1X to C11, and to draft C++0X to C++11.
43313 2012-01-06  Bruno Haible  <bruno@clisp.org>
43315         uc-is-grapheme-break tests: Tweak.
43316         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
43317         message.
43319 2012-01-06  Bruno Haible  <bruno@clisp.org>
43321         test-init.sh: correct the test for diff -u
43322         * tests/test-init.sh: Also redirect stdout to /dev/null.
43324 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
43326         Use ', not `, for quoting output.
43327         * build-aux/announce-gen (usage, sizes, print_news_deltas)
43328         (print_changelog_deltas, get_tool_versions, main program):
43329         * build-aux/git-version-gen:
43330         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
43331         * build-aux/move-if-change (help):
43332         * build-aux/useless-if-before-free (usage, main program):
43333         * check-module (parse_module_file, usage)
43334         (find_included_lib_files, check_module):
43335         * lib/argmatch.c (main) [TEST]:
43336         * lib/argp-help.c (_help):
43337         * lib/getopt1.c (main) [TEST]:
43338         * lib/git-merge-changelog.c (usage):
43339         * lib/xstrtol-error.c (xstrtol_error):
43340         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
43341         * m4/argz.m4 (gl_FUNC_ARGZ):
43342         * m4/bison.m4 (gl_BISON):
43343         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
43344         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
43345         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
43346         * m4/fpending.m4 (gl_PREREQ_FPENDING):
43347         * m4/gc-random.m4 (gl_GC_RANDOM):
43348         * m4/intl.m4 (gt_CHECK_DECL):
43349         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
43350         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
43351         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
43352         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
43353         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
43354         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
43355         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
43356         * tests/test-dirname.c (main):
43357         * tests/test-getpass.c (main):
43358         * tests/test-iconvme.c (main):
43359         * tests/test-parse-datetime.c (LOG):
43360         * tests/test-xstrtoimax.sh:
43361         * tests/test-xstrtol.sh:
43362         * tests/test-xstrtoll.sh:
43363         * tests/test-xstrtoumax.sh:
43364         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
43365         * top/GNUmakefile (abort-due-to-no-makefile):
43366         Quote 'like this', not `like this', as per the recent change to
43367         the GNU coding standards.
43369 2012-01-05  Bruno Haible  <bruno@clisp.org>
43371         strtoimax: Don't force a replacement on systems where intmax_t is int.
43372         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
43373         'intmax_t' is not larger than 'int'.
43374         Reported by Pádraig Brady <P@draigBrady.com>.
43376 2012-01-05  Bruno Haible  <bruno@clisp.org>
43378         doc: Mention NetBSD bugs.
43379         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
43380         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
43382 2012-01-05  Bruno Haible  <bruno@clisp.org>
43384         strtoumax tests: Enhance tests.
43385         * tests/test-strtoumax.c (main): Add tests for large values.
43387 2012-01-05  Bruno Haible  <bruno@clisp.org>
43389         strtoimax: Work around AIX 5.1 bug.
43390         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
43391         definition.
43392         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
43393         Set HAVE_STRTOIMAX.
43394         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
43395         REPLACE_STRTOIMAX.
43396         * modules/inttypes-incomplete (Makefile.am): Substitute
43397         REPLACE_STRTOIMAX.
43398         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
43399         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
43400         (Depends-on): Update conditions.
43401         * tests/test-strtoimax.c (main): Add tests for large values.
43402         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
43404 2012-01-05  Bruno Haible  <bruno@clisp.org>
43406         inttypes: Modernize.
43407         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
43408         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
43409         (Makefile.am): Update inttypes.h rule.
43411 2012-01-05  Jim Meyering  <meyering@redhat.com>
43413         init.sh: don't waste a subshell just to redirect stderr
43414         * tests/init.sh: In testing for diff -u and diff -c, use a
43415         stderr-redirecting exec inside `...` rather than a subshell.
43417         test-init.sh: avoid failure on HP-UX 11.00
43418         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
43419         resolves to diff -c or cmp.  Reported by Bruno Haible.
43421 2012-01-05  Bruno Haible  <bruno@clisp.org>
43423         Tests for module 'strtoull'.
43424         * modules/strtoull-tests: New file.
43425         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
43427 2012-01-05  Bruno Haible  <bruno@clisp.org>
43429         Tests for module 'strtoll'.
43430         * modules/strtoll-tests: New file.
43431         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
43433 2012-01-05  Bruno Haible  <bruno@clisp.org>
43435         Tests for module 'strtoul'.
43436         * modules/strtoul-tests: New file.
43437         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
43439 2012-01-05  Bruno Haible  <bruno@clisp.org>
43441         Tests for module 'strtol'.
43442         * modules/strtol-tests: New file.
43443         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
43445 2012-01-04  Jim Meyering  <meyering@redhat.com>
43447         test-init.sh: accommodate Solaris 5.10's different diff -u output
43448         * tests/test-init.sh: Also exempt @@ lines from the comparison
43449         of diff output, since Solaris 5.10 and GNU diff formats differ.
43450         Reported by Stefano Lattarini.
43452 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
43454         test-posixtm: don't assume signed integer wraparound
43455         * tests/test-posixtm.c (main): Don't assume wraparound semantics
43456         after signed integer overflow.  Inspired by (though it may not
43457         fix) Bruno Haible's bug report in
43458         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
43460         Spell out "Windows 9x" and "Windows XP".
43461         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
43462         "Windows 9x" and "WinXP" with "Windows XP".
43464 2012-01-04  Jim Meyering  <meyering@redhat.com>
43466         test-vc-list-files-cvs.sh: remove obsolete comment
43467         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
43468         double exit.  Now that's all encapsulated via skip_ and Exit.
43470 2012-01-04  Bruno Haible  <bruno@clisp.org>
43472         Talk about "native Windows API", not "Win32".
43473         * lib/classpath.c: Update comments to mention native Windows.
43474         * lib/csharpexec.c: Likewise.
43475         * lib/dup2.c: Likewise.
43476         * lib/error.c: Likewise.
43477         * lib/fcntl.c: Likewise.
43478         * lib/filename.h: Likewise.
43479         * lib/findprog.c: Likewise.
43480         * lib/get-rusage-as.c: Likewise.
43481         * lib/get-rusage-data.c: Likewise.
43482         * lib/getpagesize.c: Likewise.
43483         * lib/javaexec.c: Likewise.
43484         * lib/msvc-inval.c: Likewise.
43485         * lib/msvc-nothrow.c: Likewise.
43486         * lib/nanosleep.c: Likewise.
43487         * lib/nonblocking.c: Likewise.
43488         * lib/printf-parse.c: Likewise.
43489         * lib/setlocale.c: Likewise.
43490         * lib/sigaction.c: Likewise.
43491         * lib/strerror_r.c: Likewise.
43492         * lib/tmpdir.c: Likewise.
43493         * lib/vasnprintf.c: Likewise.
43494         * lib/w32spawn.h: Likewise.
43495         * lib/waitpid.c: Likewise.
43496         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
43497         * m4/locale-ar.m4: Likewise.
43498         * m4/locale-fr.m4: Likewise.
43499         * m4/locale-ja.m4: Likewise.
43500         * m4/locale-tr.m4: Likewise.
43501         * m4/locale-zh.m4: Likewise.
43502         * m4/printf.m4: Likewise.
43503         * tests/test-cloexec.c: Likewise.
43504         * tests/test-copy-acl.sh: Likewise.
43505         * tests/test-copy-file.sh: Likewise.
43506         * tests/test-file-has-acl.sh: Likewise.
43507         * tests/test-set-mode-acl.sh: Likewise.
43508         * tests/test-dup-safer.c: Likewise.
43509         * tests/test-dup2.c: Likewise.
43510         * tests/test-dup3.c: Likewise.
43511         * tests/test-fcntl.c: Likewise.
43512         * tests/test-nonblocking-pipe.h: Likewise.
43513         * tests/test-nonblocking-socket.h: Likewise.
43514         * tests/test-pipe.c: Likewise.
43515         * tests/test-pipe2.c: Likewise.
43516         * tests/test-spawn-pipe-child.c: Likewise.
43517         * doc/acl-resources.txt: Likewise.
43518         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
43519         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
43520         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
43521         * lib/localcharset.c: Update comments to mention native Windows.
43522         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
43523         * lib/localename.c: Likewise.
43524         * lib/progreloc.c: Likewise.
43525         * lib/relocatable.c: Likewise.
43526         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
43527         (windows_compute_revents): Renamed from win32_compute_revents.
43528         (windows_compute_revents_socket): Renamed from
43529         win32_compute_revents_socket.
43530         * lib/select.c: Update comments to mention native Windows.
43531         (windows_poll_handle): Renamed from win32_poll_handle.
43532         * m4/threadlib.m4: Update comments to mention native Windows.
43533         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
43534         --enable-threads=windows instead of --enable-threads=win32. Set
43535         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
43536         * lib/glthread/lock.h: Update comments to mention native Windows.
43537         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
43538         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
43539         USE_WIN32_THREADS.
43540         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
43541         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
43542         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
43543         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
43544         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
43545         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
43546         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
43547         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
43548         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
43549         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
43550         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
43551         * tests/test-tls.c: Likewise.
43552         Rationale:
43553         Microsoft renamed the "Win32 API" to "Windows API", as it is available
43554         on both 32-bit and 64-bit Windows systems.
43555         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
43556         line of distinction is between "native Windows" on one side and Unix/
43557         POSIX systems on the other side. More details in
43558         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
43559         Suggested by Paul Eggert.
43561 2012-01-03  Bruno Haible  <bruno@clisp.org>
43563         isatty: Support for MSVC 9.
43564         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
43565         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
43566         (_isatty_nothrow): New function.
43567         (isatty): Use it instead of _isatty.
43568         (IsConsoleHandle): Add comment, from Paolo Bonzini.
43569         * lib/poll.c (IsConsoleHandle): Likewise.
43570         * lib/select.c (IsConsoleHandle): Likewise.
43571         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
43572         (gl_PREREQ_ISATTY): New macro.
43573         * modules/isatty (Depends-on): Add msvc-inval.
43574         (configure.ac): Invoke gl_PREREQ_ISATTY.
43576 2012-01-03  Jim Meyering  <meyering@redhat.com>
43578         maint.mk: remove temporary transition aid from over 1.5 years ago
43579         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
43580         purpose was to aid in the transition (avoiding silent malfunction)
43581         from that old name to the new _sc_search_regexp.  This shim was
43582         added by commit 219c504b.
43584         init.sh: do not try to accommodate compare arguments starting with "-"
43585         * tests/init.sh (compare_dev_null_): Do not try to accommodate
43586         compare arguments that start with "-".  Besides, we do not worry
43587         about this when invoking diff or cmp; why start now with sed?
43588         Using "--" to separate options from argument would trigger sed
43589         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
43590         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
43592 2012-01-02  Bruno Haible  <bruno@clisp.org>
43594         Enhance tests for module 'isatty'.
43595         * modules/isatty-tests (Depends-on): Add pipe-posix.
43596         * tests/test-isatty.c: Include <fcntl.h>.
43597         (DEV_NULL): New macro.
43598         (main): Test the resut of isatty() also on regular files, pipes, and
43599         /dev/null.
43601         New module 'isatty'.
43602         * lib/unistd.in.h (isatty): New declaration.
43603         * lib/isatty.c: New file, based on an idea of
43604         Bastien Roucariès <roucaries.bastien@gmail.com>.
43605         * m4/isatty.m4: New file.
43606         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
43607         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
43608         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
43609         REPLACE_ISATTY.
43610         * modules/isatty: New file.
43611         * doc/posix-functions/isatty.texi: Mention the new module.
43612         Suggested by Paolo Bonzini.
43614 2012-01-02  Bruno Haible  <bruno@clisp.org>
43616         canonicalize: Tweak 2011-12-29 commit.
43617         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
43618         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
43620 2012-01-02  Jim Meyering  <meyering@redhat.com>
43622         gitlog-to-changelog: describe input syntax in --help output
43623         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
43625         gitlog-to-changelog: fix typo in --help: show backslash before email @
43626         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
43627         in sources, but not in actual output.
43629 2011-12-30  Jim Meyering  <meyering@redhat.com>
43631         gitlog-to-changelog: don't malfunction when name contains %-directive
43632         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
43633         in a name string cause trouble.  E.g., with a user name of "%s",
43634         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
43636 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
43638         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
43639         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
43640         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
43641         the "  (tiny change)" notation that is appended to the standard
43642         ChangeLog "date  name  email" header line.
43644 2012-01-01  Jim Meyering  <meyering@redhat.com>
43646         test-framework-sh: init.sh: fix "make dist" failure
43647         When using gnulib-tool's --with-tests option and any module that
43648         depends on test-framework-sh, "make dist" would fail due to the
43649         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
43650         in the gltests directory, and not in the gllib/ directory.
43651         One way to work around that is to move the EXTRA_DIST += init.sh
43652         from the primary module to the -tests one:
43653         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
43654         * modules/test-framework-sh (Makefile.am): ...not here.
43655         Reported by Tom G. Christensen in
43656         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
43658         version-etc: update copyright year reported by --version
43659         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
43661 2011-12-31  Pádraig Brady  <P@draigBrady.com>
43663         canonicalize: only stat() if required
43664         * lib/canonicalize.c (canonicalize_filename_mode):
43665         Avoid calling l?stat() when both CAN_MISSING,
43666         and CAN_NOLINKS are set, as we neither need
43667         to resolve symlinks or test component existence.
43669 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
43671         doc: cover st_ino issues once; add OpenVMS etc.
43672         * doc/posix-functions/stat.texi (stat):
43673         * doc/posix-functions/lstat.texi (lstat):
43674         * doc/posix-functions/fstatat.texi (fstatat):
43675         * doc/posix-functions/fstat.texi (fstat):
43676         Move general 'struct stat' stuff to sys_stat.texi,
43677         leaving behind a pointer.
43678         * doc/posix-headers/sys_stat.texi (sys/stat.h):
43679         Merge duplicate info about 'struct stat' problems into here.
43680         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
43681         and suggest partial workarounds.
43683         same-inode: port to OpenVMS
43684         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
43685         three st_ino values.
43687 2011-12-30  Pádraig Brady  <P@draigBrady.com>
43689         canonicalize: fix references to stat() and lstat()
43690         * lib/canonicalize.c (canonicalize_filename_mode):
43691         Ensure references always resolve to a replacement
43692         function if required (even via a macro).
43694 2011-12-30  Jim Meyering  <meyering@redhat.com>
43696         gitlog-to-changelog: remove a little duplication
43697         * build-aux/gitlog-to-changelog (main): Grep @lines once,
43698         rather than twice.
43700 2011-12-29  Pádraig Brady  <P@draigBrady.com>
43702         canonicalize: add support for not resolving symlinks
43703         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
43704         indicate we don't want to follow symlinks.  Also
43705         provide CAN_MODE_MASK to aid setting these existing
43706         mutually exclusive values.
43707         * lib/canonicalize.c (canonicalize_filename_mode):
43708         Extract the flags from can_mode parameter, which
43709         are currently just used to select between stat()
43710         and lstat().  Also ensure that mutually exclusive
43711         values are flagged immediately as invalid.
43712         * tests/test-canonicalize.c: Verify symlinks are
43713         not followed, and that invalid flag combinations
43714         are diagnosed.
43716 2011-12-25  Jim Meyering  <meyering@redhat.com>
43718         gitlog-to-changelog: do not clump multi-paragraph entries
43719         Identical header lines (date,name,email+coauthors) are suppressed,
43720         thus putting all entries with those same characteristics under
43721         a single header.  However, when a log entry consists of two or
43722         more paragraphs, it may not be clear where it starts and ends.
43723         This change makes it so that such an entry is always separated
43724         from others by a header line, even when that header would
43725         otherwise be suppressed.
43726         * build-aux/gitlog-to-changelog: Implement the above.
43727         Inspired by a related request from Stefano Lattarini in
43728         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
43730 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43732         announce-gen: fix `cmd' typo in diagnostic
43733         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
43734         diagnostic: a missing '$' meant that the command was not output.
43736 2011-12-23  Jim Meyering  <meyering@redhat.com>
43738         test-framework-sh: distribute init.sh
43739         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
43740         Otherwise, "make -C gnulib-tests check" (at least in grep) would
43741         fail due to the lack of init.sh.
43743         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
43744         * modules/atexit-tests: Rather than listing tests/init.sh,
43745         now that there's a module for it, simply depend on that new module.
43746         * modules/closein-tests: Likewise.
43747         * modules/exclude-tests: Likewise.
43748         * modules/getcwd-tests: Likewise.
43749         * modules/perror-tests: Likewise.
43750         * modules/pread-tests: Likewise.
43751         * modules/pwrite-tests: Likewise.
43752         * modules/vc-list-files-tests: Likewise.
43753         * modules/verify-tests: Likewise.
43754         * modules/xalloc-die-tests: Likewise.
43755         * modules/xstrtoimax-tests: Likewise.
43756         * modules/xstrtol-tests: Likewise.
43757         * modules/xstrtoll-tests: Likewise.
43758         * modules/xstrtoumax-tests: Likewise.
43759         * modules/yesno-tests: Likewise.
43761 2011-12-22  Jim Meyering  <meyering@redhat.com>
43763         test-framework-sh: add minimal tests of init.sh's compare function
43764         * modules/test-framework-sh-tests: New file.
43765         * tests/test-init.sh: New file.
43767         test-framework-sh: new module
43768         * modules/test-framework-sh: New file.
43769         * MODULES.html.sh (Support for maintaining and releasing projects):
43770         List it.
43772         init.sh: do not emit simulated diff output to stderr
43773         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
43775 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
43777         .gitignore: ignore gnulib.dvi and regex.info
43778         * doc/.gitignore:add gnulib.dvi and regex.info
43780 2011-12-22  Jim Meyering  <meyering@redhat.com>
43782         init.sh: correct previous change
43783         * tests/init.sh (compare): My previous change was wrong.
43784         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
43786         init.sh: avoid unwarranted test failure when using "set -e"
43787         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
43788         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
43789         a use like "compare exp out" would get evoke an unconditional failure.
43791 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
43793         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
43794         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
43795         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
43796         autoreconf that did not.
43797         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
43798         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
43800 2011-12-17  Jim Meyering  <meyering@redhat.com>
43802         bootstrap: remove some now-unneeded code
43803         This script arose back when gnulib-tool was young.
43804         Since then, it has seen improvements that render much of this
43805         script unnecessary.  In particular, it can now make symlinks
43806         to the files it uses.  Also, I no longer see as much value in
43807         marking files as read-only via comments.
43808         If you relied on the symlink-creation feature of the preceding
43809         version of this script, you can get most of that functionality
43810         by adding the --symlink option to the definition of
43811         gnulib_tool_option_extras in your bootstrap.conf file.
43812         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
43813         Run autopoint and libtoolize *before* gnulib-tool.
43814         After it, run an abbreviated autoreconf, rather than a loop around
43815         all tools.
43816         (slirp, bt_mark_as_generated): Remove functions.
43818 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
43820         ftoastr: fix typo
43821         * lib/ftoastr.h: Fix misspelling in comment.
43823 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
43825         * top/README-release: fix punctuation.
43827 2011-12-17  Jim Meyering  <meyering@redhat.com>
43829         bootstrap: correct the recent buildreq change
43830         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
43831         had no effect.
43832         * build-aux/bootstrap (buildreq): Bracket each search term with
43833         "*...*", so that the shell "case" statement works as intended.
43834         Add comments.
43836 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
43838         build: let bootstrap resort to wget when downloading .po files
43839         * build-aux/bootstrap (download_po_files): Fallback to wget when
43840         downloading the .po files via rsync fails.  This is necessary to
43841         bootstrap from behind a strict firewall.
43843 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
43845         stdint: don't assume C++11 when compiling with g++
43846         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
43847         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
43848         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
43849         work also in C++ before C++11, as that improperly inhibits
43850         generating a substitute stdint.h for that case.
43852 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
43854         alloca: protect comment from gnulib-tool
43855         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
43856         that gnulib-tool doesn't think it's a license, and munge it to
43857         say "GCC version 3".
43859 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
43861         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
43862         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
43863         $(abs_top_builddir) instead of $(top_builddir).
43865 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
43867         strftime-tests: also test nanoseconds
43868         * tests/test-strftime.c (T): Add a test of %N.
43870 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
43872         inttypes, stdint: add C++11 support
43873         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
43874         when including inttypes.h and stdint.h.  Support this change to
43875         the standard.
43876         * doc/posix-headers/inttypes.texi (inttypes.h):
43877         * doc/posix-headers/stdint.texi (stdint.h): Document this.
43878         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
43879         Define if not defined already, for the benefit of pre-C++11 hosts.
43880         Define the standard format macros (e.g., PRId8) always.
43881         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
43882         Likewise, if __cpluspus.  Define the standard constant and limit
43883         macros (e.g., INT8_C, INT8_MAX) always.
43884         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
43885         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
43886         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
43887         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
43888         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
43889         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
43890         Likewise.
43892 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
43894         nonblocking tests: Fix test failure on Linux/PPC.
43895         Suggested by Prerna Saxena in
43896         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
43897         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
43898         Set to 1100000.
43900 2011-12-12  Jim Meyering  <meyering@redhat.com>
43902         argmatch: don't hard-code `' when listing valid option arguments
43903         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
43904         use the quote function to add quotes.  Use fputs rather than
43905         fprintf for the format string with no format directive.
43907 2011-12-07  Eric Blake  <eblake@redhat.com>
43909         bootstrap: detect tools required by gnulib-tool
43910         * build-aux/bootstrap (buildreq): Provide minimum implicit
43911         dependencies.
43912         * DEPENDENCIES: Mention patch as a prereq.
43914 2011-12-04  Bruno Haible  <bruno@clisp.org>
43916         sethostname: Port to Windows platforms.
43917         * lib/sethostname.c: Provide an alternate implementation for Windows
43918         platforms.
43919         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
43920         (main): Skip the test if sethostname() fails with EPERM. On Windows
43921         platforms, don't check the result of gethostname().
43923 2011-12-04  Bruno Haible  <bruno@clisp.org>
43924             Jim Meyering  <meyering@redhat.com>
43926         tests: Avoid spurious error message on platforms without mktemp program.
43927         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
43929 2011-12-04  Bruno Haible  <bruno@clisp.org>
43931         sethostname: Fix documentation.
43932         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
43933         "not fixed" section.
43935 2011-12-03  Bruno Haible  <bruno@clisp.org>
43937         gnulib-tool: Verify that the License field is present and non-empty.
43938         * gnulib-tool (func_get_license_raw): New function, extracted from
43939         func_get_license.
43940         (func_get_license): Use it. Warn if the module is not a test module and
43941         has no license.
43942         Suggested by Jim Meyering.
43944 2011-12-03  Bruno Haible  <bruno@clisp.org>
43946         sethostname tests: Fix link error on mingw.
43947         * tests/test-sethostname1.c: New file, extracted from
43948         tests/test-sethostname.c.
43949         * tests/test-sethostname2.c: New file, extracted from
43950         tests/test-sethostname.c.
43951         * tests/test-sethostname.c: Remove file.
43952         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
43953         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
43954         (Depends-on): Add gethostname.
43955         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
43956         Link the latter with $(GETHOSTNAME_LIB).
43958         sethostname tests: Fix compilation error on mingw.
43959         * tests/test-sethostname.c: Don't include <sys/types.h>.
43960         (geteuid): Use a dummy value without uid_t.
43961         * modules/sethostname-tests (Depends-on): Remove sys_types.
43963         sethostname tests: Avoid a gcc warning.
43964         * tests/test-sethostname.c (main): Remove an unused variable.
43966         Tweak last commit.
43967         * modules/sethostname-tests (Files): Sort by decreasing importance.
43968         (configure.ac): Check for geteuid.
43969         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
43970         the test when there's nothing to test. Drop an unnecessary cast.
43971         Improve an error message. Verify that the final sethostname() call
43972         succeeds.
43974 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
43976         Add a test suite for the sethostname module.
43977         * modules/sethostname-tests: New file.  A test program
43978         for the sethostname module.
43979         * tests/test-sethostname.c: Likewise.
43981 2011-12-03  Bruno Haible  <bruno@clisp.org>
43983         Tweak last commit.
43984         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
43985         Fix preprocessor directives indentation. Fix typos.
43986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
43987         * modules/unistd (Makefile): Likewise.
43989 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
43991         Integrate the sethostname module into unistd.
43992         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
43993         into the unistd.h header.
43994         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
43995         preprocessor directives.
43996         * modules/unistd: Setup the Makefile substitutions of the
43997         SETHOSTNAME preprocessor directives.
43999 2011-12-03  Bruno Haible  <bruno@clisp.org>
44001         Tweak last commit.
44002         * lib/sethostname.c: Don't include <string.h>.
44003         (sethostname): No need to copy the argument string to the stack. Don't
44004         call clearerr. Preserve errno when fprintf failed.
44005         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
44006         Don't invoke AC_REPLACE_FUNCS.
44007         * modules/sethostname (Link): Remove empty section.
44008         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
44009         failure problem.
44011 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
44013         New module 'sethostname'.
44014         * lib/sethostname.c (sethostname): New file.  Provide sethostname
44015         for systems that lack it.
44016         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
44017         sethostname declaration and function.
44018         * modules/sethostname: New file.  Define the sethostname module.
44020 2011-12-03  Bruno Haible  <bruno@clisp.org>
44022         Tweak last commit.
44023         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
44025 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
44027         Split the HOST_NAME_MAX detection into a separate m4 macro.
44028         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
44029         macro so it can be used by the pending sethostname module.
44031 2011-12-03  Bruno Haible  <bruno@clisp.org>
44033         Fix module descriptions syntax.
44034         * modules/argv-iter (License): Fix syntax.
44035         * modules/di-set (License): Likewise.
44036         * modules/ino-map (License): Likewise.
44037         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
44039 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
44041         stdalign: port to Clang 3.0
44042         Problem reported by Simon Josefsson in
44043         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
44044         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
44045         which has <stdalign.h> but which does not define alignof.
44046         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
44048 2011-12-01  Eric Blake  <eblake@redhat.com>
44050         mktempd: silence dd usage
44051         * build-aux/mktempd (rand_bytes): Silence dd.
44053 2011-11-30  Simon Josefsson  <simon@josefsson.org>
44055         manywarnings: Don't mention gcc version in docstring.
44056         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
44057         Jim Meyering <meyering@redhat.com>.
44059 2011-11-30  Jim Meyering  <meyering@redhat.com>
44061         hash: mark a few floating point constants with "f" suffix
44062         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
44063         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
44064         floating point constants with "f", since they're destined to be
44065         saved/used as "float"s.
44067 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
44069         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
44070         * tests/test-float.c (test_long_double): Correct and re-enable the
44071         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
44073 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
44075         Avoid subtracting two pointers that don't point into the same block.
44076         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
44077         only pointers into the same memory block are subtracted. We cannot
44078         assume that sizeof (ptrdiff_t) == sizeof (void *).
44080 2011-11-29  Eric Blake  <eblake@redhat.com>
44082         maint.mk: add syntax check for use of compare from init.sh
44083         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
44084         moved here from coreutils.
44086         manywarnings: drop -Wunsuffixed-float-constants
44087         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
44088         '1.0D', which is the only way to silence this warning for 'double'.
44090 2011-11-29  Jim Meyering  <meyering@redhat.com>
44092         hash: mark compute_bucket_size with the pure attribute
44093         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
44095         quotearg, propername: correct pragma guard expression
44096         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
44097         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
44099 2011-11-28  Jim Meyering  <meyering@redhat.com>
44101         propername: do not mark proper_name with the const attribute
44102         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
44103         since it examines data pointed to by its parameter.
44104         * lib/propername.c (proper_name): Instead, add a pragma to suppress
44105         the suggestion from -Wsuggest-attribute=const.
44107         propername: mark one more function as const
44108         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
44110 2011-11-27  Jim Meyering  <meyering@redhat.com>
44112         mark functions with const and pure attributes
44114         Mark functions per suggestions from gcc-4.6 when using these options:
44115         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
44116         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
44117         Follow these guidelines: when possible, apply the attribute to
44118         an extern declaration, not to its definition.  Apply it to the
44119         definition only when the definition is static.
44120         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
44121         * lib/argv-iter.h (argv_iter_n_args): Likewise.
44122         * lib/base64.h (isbase64): Likewise.
44123         * lib/basename-lgpl.c (last_component, base_len): Likewise.
44124         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
44125         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
44126         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
44127         (c_tolower, c_toupper): Likewise.
44128         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
44129         * lib/chdir-long.c (find_non_slash): Likewise.
44130         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
44131         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
44132         * lib/file-type.h (file_type): Likewise.
44133         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
44134         * lib/filevercmp.c (verrevcmp): Likewise.
44135         * lib/freadahead.h (freadahead): Likewise.
44136         * lib/fts.c (fts_maxarglen): Likewise.
44137         * lib/hash-pjw.h (hash_pjw): Likewise.
44138         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
44139         * lib/hash.c (is_prime, next_prime): Likewise.
44140         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
44141         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
44142         (hash_table_ok, hash_get_first, hash_string): Likewise.
44143         (compute_bucket_size): Likewise.
44144         * lib/i-ring.h (i_ring_empty): Likewise.
44145         * lib/isnan.c (isnanl): Likewise.
44146         * lib/math.h (isnanl, rpl_isnanl): Likewise.
44147         * lib/memcasecmp.h (memcasecmp): Likewise.
44148         * lib/memchr2.h (memchr2): Likewise.
44149         * lib/memcmp2.h (memcmp2): Likewise.
44150         * lib/parse-datetime.y (lookup_zone): Likewise.
44151         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
44152         [!WINDOWS_SOCKETS]: Likewise.
44153         * lib/strnlen1.h (strnlen1): Likewise.
44154         * lib/uniwidth.in.h (uc_width): Likewise.
44155         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
44156         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
44157         (quoting_options_from_style): Add a comment.
44158         * lib/propername.h (proper_name): Add a comment.
44160 2011-11-27  Bruno Haible  <bruno@clisp.org>
44162         Remove unused macros from !_LIBC code in glibc-borrowed files.
44163         * lib/fnmatch.c (STRCOLL): Remove macro.
44164         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
44165         * lib/glob.c (__stat, __readdir64): Remove macros.
44166         * lib/tempname.c (__open64, __xstat64): Remove macros.
44167         Suggested by Paul Eggert.
44169 2011-11-27  Bruno Haible  <bruno@clisp.org>
44171         getcwd: Fix link error on MSVC 9.
44172         * modules/getcwd (Depends-on): Add readdir, rewinddir.
44174 2011-11-27  Bruno Haible  <bruno@clisp.org>
44176         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
44177         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
44178         HAVE_OPENDIR is 0.
44179         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
44180         HAVE_CLOSEDIR is 0.
44181         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
44182         is 0.
44183         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
44185 2011-11-27  Bruno Haible  <bruno@clisp.org>
44187         getcwd: Fix bug from 2011-08-17.
44188         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
44189         platforms that need it.
44190         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
44191         code of 4 to be a failure, not a success. This ensures that
44192         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
44194 2011-11-27  Bruno Haible  <bruno@clisp.org>
44196         binary-io tests: Avoid test failure on mingw when libtool is used.
44197         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
44198         Don't verify the size of t-bin-out1.tmp here.
44199         * tests/test-binary-io.sh: Verify it here.
44200         Reported by Simon Josefsson.
44202 2011-11-26  Bruno Haible  <bruno@clisp.org>
44204         Fix conflict between two instantiations of module 'unistd'.
44205         * gnulib-tool (func_emit_autoconf_snippet): Substitute
44206         ${include_guard_prefix} also in the autoconf snippet.
44207         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
44208         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
44209         GNULIB_UNISTD_H_GETOPT.
44210         * modules/getopt-posix (configure.ac): Set the
44211         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
44212         * modules/getopt-gnu (configure.ac): Likewise.
44213         * modules/unistd (Makefile.am): Change the substitution value of
44214         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
44215         Reported by Simon Josefsson.
44217 2011-11-25  Bruno Haible  <bruno@clisp.org>
44219         pagealign_alloc: Doc and comments.
44220         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
44221         module.
44222         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
44224 2011-11-25  Jim Meyering  <meyering@redhat.com>
44226         test-update-copyright.sh: avoid false-positive failure
44227         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
44228         around false positive failure on Cygwin/Windows.  The latter was
44229         matching erroneously-created files with names like
44230         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
44232 2011-11-25  Simon Josefsson  <simon@josefsson.org>
44234         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
44235         * m4/valgrind-tests.m4: Check that the parameters that will be
44236         used works, not just a subset of them.  Reported by Bruno Haible
44237         <bruno@clisp.org>.
44239 2011-11-24  Jim Meyering  <meyering@redhat.com>
44241         test-stdalign.c: comment out long double tests
44242         * tests/test-stdalign.c: Don't try to reduce alignment of long double
44243         variables.  That provokes errors like this from gcc-4.7.0 20111124:
44244         error: '_Alignas' specifiers cannot reduce alignment of \
44245         'static_longdouble_alignas'.
44247 2011-11-22  Jim Meyering  <meyering@redhat.com>
44249         init.sh: make "compare /dev/null FILE" output more readable
44250         * tests/init.sh (compare_): Document the preferred order of arguments.
44251         (emit_diff_u_header_): New function.
44252         (compare_dev_null_): Emit a simulated diff, rather than just the
44253         contents of the unexpected file.  Suggestion from Bruno Haible.
44255 2011-11-21  Jim Meyering  <meyering@redhat.com>
44256             Eric Blake  <eblake@redhat.com>
44258         init.sh: work around OSF/1 5.1's mishandling of /dev/null
44259         * tests/init.sh: Make our compare function slightly more portable.
44260         Reported by Bruno Haible in
44261         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
44263 2011-11-21  Simon Josefsson  <simon@josefsson.org>
44265         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
44266         before using it, in code that ends up in config.h.
44268 2011-11-20  Bruno Haible  <bruno@clisp.org>
44270         getcwd: Work around getcwd bug on AIX 5..7.
44271         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
44272         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
44273         Use a different value for gl_cv_func_getcwd_path_max. Move the
44274         definition of HAVE_PARTLY_WORKING_GETCWD from here...
44275         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
44276         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
44277         Define HAVE_MINIMALLY_WORKING_GETCWD.
44278         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
44279         where it is not even minimally working, that is, on AIX.
44280         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
44281         m4/getcwd-path-max.m4.
44282         (main): Update exit code computation.
44283         * doc/posix-functions/getcwd.texi: Mention list of platforms where
44284         getcwd does not handle long file names.
44286 2011-11-20  Bruno Haible  <bruno@clisp.org>
44288         getcwd: Fix bug from 2009-09-10.
44289         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
44290         like "no".
44292 2011-11-20  Simon Josefsson  <simon@josefsson.org>
44294         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
44296 2011-11-20  Bruno Haible  <bruno@clisp.org>
44298         fma tests: Avoid shadowing local variables.
44299         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
44300         expected.
44302 2011-11-20  Bruno Haible  <bruno@clisp.org>
44304         copysignf tests: Fix.
44305         * tests/test-copysignf.c: Fix signature check.
44307 2011-11-20  Bruno Haible  <bruno@clisp.org>
44309         fma: Remove unused code.
44310         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
44311         unused macros.
44313 2011-11-20  Bruno Haible  <bruno@clisp.org>
44315         sethostname: Fix doc about AIX.
44316         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
44317         sethostname; it has it.
44319         sethostname: Mention more portability problems.
44320         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
44321         problem.
44322         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
44324 2011-11-19  Bruno Haible  <bruno@clisp.org>
44326         Depend on module fcntl-h when AT_FDCWD is used.
44327         * modules/utimens (Depends-on): Add fcntl-h.
44328         * modules/areadlinkat (Depends-on): Likewise.
44329         * modules/areadlinkat-with-size (Depends-on): Likewise.
44330         * modules/faccessat (Depends-on): Likewise.
44331         * modules/fchmodat (Depends-on): Likewise.
44332         * modules/fchownat (Depends-on): Likewise.
44333         * modules/getcwd (Depends-on): Likewise.
44334         * modules/mkdirat (Depends-on): Likewise.
44335         * modules/mkfifoat (Depends-on): Likewise.
44336         * modules/readlinkat (Depends-on): Likewise.
44337         * modules/symlinkat (Depends-on): Likewise.
44338         * modules/dup2-tests (Depends-on): Likewise.
44339         * modules/fdutimensat-tests (Depends-on): Likewise.
44340         * modules/futimens-tests (Depends-on): Likewise.
44342 2011-11-19  Bruno Haible  <bruno@clisp.org>
44344         euidaccess: Update a comment.
44345         * lib/euidaccess.c: Update comment about platforms with faccessat.
44347 2011-11-19  Bruno Haible  <bruno@clisp.org>
44349         openat: Fix file list.
44350         * modules/openat (Files): Remove lib/at-func.c.
44352 2011-11-19  Bruno Haible  <bruno@clisp.org>
44354         fstatat: Simplify.
44355         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
44356         gnulib should define rpl_fstatat, there is a
44357         "#define fstatat rpl_fstatat" in <sys/stat.h>.
44359 2011-11-19  Bruno Haible  <bruno@clisp.org>
44361         Ensure 'inline' can be used in tests/test-utimens-common.h.
44362         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
44363         * modules/futimens-tests (configure.ac): Likewise.
44364         * modules/utimens-tests (configure.ac): Likewise.
44365         * modules/utimensat-tests (configure.ac): Likewise.
44367 2011-11-19  Simon Josefsson  <simon@josefsson.org>
44369         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
44370         not hash_insert0.
44371         (hash_insert_if_absent): Doc fix.
44373 2011-11-19  Simon Josefsson  <simon@josefsson.org>
44375         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
44377 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
44379         test-getcwd: disambiguate exit status
44380         * tests/test-getcwd.c (test_long_name): Return 0..7.
44381         (main): Exit with an unambiguous exit status.  The old
44382         code yielded a mysterious mixture of two failure codes.
44384         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
44385         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
44386         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
44387         rpl_fstatat or fstatat.  This should fix the other problem
44388         reported by Kai Habel in
44389         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
44390         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
44391         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
44392         and I reproduced it on a Solaris 8 host we still have in production.
44394 2011-11-18  Jim Meyering  <meyering@redhat.com>
44396         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
44397         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
44398         Add a sentence to the comment.
44399         (hash_insert0): New function that simply calls hash_insert_if_absent.
44400         * lib/hash.h (hash_insert_if_absent): Declare it.
44401         (hash_insert0): Add deprecation attribute.
44402         (_GL_ATTRIBUTE_DEPRECATED): Define.
44403         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
44404         not hash_insert0.
44405         * NEWS: Mention it, even though it's not really an incompatible change.
44407 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
44409         openat: avoid compilation failure due to lack of <errno.h> inclusion
44410         * lib/openat.c: Include <errno.h>.
44412 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
44414         * modules/getcwd (Depends-on): Add fdopendir.
44415         This fixes one of the two problems reported by Kai Habel in
44416         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
44418         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
44419         stdalign problem reported by Ian Beckwith in
44420         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
44421         * modules/crypto/gc-arcfour (Depends-on):
44422         Depend conditionally on crypto/arcfour.
44423         * modules/crypto/gc-arctwo (Depends-on):
44424         Depend conditionally on crypto/arctwo.
44425         * modules/crypto/gc-des (Depends-on):
44426         Depend conditionally on crypto/des.
44427         * modules/crypto/gc-hmac-md5 (Depends-on):
44428         Depend conditionally on crypto/hmac-md5.
44429         * modules/crypto/gc-hmac-sha1 (Depends-on):
44430         Depend conditionally on crypto/hmac-sha1.
44431         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
44432         * modules/crypto/gc-md4 (Depends-on):
44433         Depend conditionally on crypto/md4.
44434         * modules/crypto/gc-md5 (Depends-on):
44435         Depend conditionally on crypto/md5.
44436         * modules/crypto/gc-rijndael (Depends-on):
44437         Depend conditionally on crypto/rijndael.
44438         * modules/crypto/gc-sha1 (Depends-on):
44439         Depend conditionally on crypto/sha1.
44440         * modules/crypto/gc-arcfour:
44441         * modules/crypto/gc-arctwo:
44442         * modules/crypto/gc-des:
44443         * modules/crypto/gc-hmac-md5:
44444         * modules/crypto/gc-hmac-sha1:
44445         * modules/crypto/gc-md2:
44446         * modules/crypto/gc-md4:
44447         * modules/crypto/gc-md5:
44448         * modules/crypto/gc-rijndael:
44449         * modules/crypto/gc-sha1:
44450         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
44451         now that the conditional dependencies do the work for us.
44453 2011-11-17  Jim Meyering  <meyering@redhat.com>
44455         tests: factor st_ctime-comparison out of two headers
44456         * tests/test-utimens-common.h (ctime_compare): Define.
44457         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
44458         * tests/test-lutimens.h (test_lutimens): Likewise.
44459         * tests/test-utimens.h (test_utimens): Likewise.
44461         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
44462         Invoke the test program via an init.sh-using wrapper.
44463         * tests/test-getcwd.sh: New file.
44464         * modules/getcwd-tests (Files): Add it.
44465         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
44467 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
44469         gitlog-to-changelog: support multi-author commits.
44470         The FSF cares about keeping track of all authors of patches to its
44471         projects, but Git doesn't provide obvious support for multi-author
44472         changesets. Consensus seems to be forming around the use of extra
44473         Signed-off-by inspired lines in the log message formatted as
44474         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
44475         multi-author commits between version control systems.
44476         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
44477         log message and output in standard ChangeLog multi-author format.
44478         Reported by Peter Rosin <peda@lysator.liu.se>
44480 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
44481             Bruno Haible  <bruno@clisp.org>
44483         Fix some modules' file list.
44484         * modules/fstatat (Files): Add m4/lstat.m4.
44485         * modules/openat (Files): Likewise.
44486         * modules/unlinkat (Files): Likewise.
44488 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
44490         maint.mk: fix tight-scope.mk generation in VPATH builds.
44491         * top/maint.mk (tight-scope.mk): Make sure to prefix file
44492         reference with $(srcdir) so that the file is found correctly even
44493         when running `make syntax-check' in a VPATH build.
44495 2011-11-13  Bruno Haible  <bruno@clisp.org>
44496             Jim Meyering  <meyering@redhat.com>
44498         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
44499         * tests/init.sh (compare): Remove "No differences encountered" or
44500         synonymous output from the 'diff' program.
44502 2011-11-13  Bruno Haible  <bruno@clisp.org>
44504         Makefile: Tweak indentation.
44505         * Makefile: Use tab as first character in every line that contains rule
44506         commands.
44508 2011-11-13  Bruno Haible  <bruno@clisp.org>
44510         Syntax check for copyright statements.
44511         * check-copyright: New file.
44512         * Makefile (sc_check_copyright): New rule.
44514 2011-11-13  Simon Josefsson  <simon@josefsson.org>
44516         * build-aux/git-version-gen: Add --prefix to configure the tag
44517         match string.
44519 2011-11-13  Simon Josefsson  <simon@josefsson.org>
44521         * build-aux/git-version-gen: Add --help and --version.
44523 2011-11-12  Jim Meyering  <meyering@redhat.com>
44525         revamp the other test-exclude?.sh scripts to use init.sh, too
44526         * tests/test-exclude1.sh: Use init.sh.
44527         * tests/test-exclude2.sh: Likewise.
44528         * tests/test-exclude3.sh: Likewise.
44529         * tests/test-exclude4.sh: Likewise.
44530         * tests/test-exclude5.sh: Likewise.
44531         * tests/test-exclude6.sh: Likewise.
44532         * tests/test-exclude7.sh: Likewise.
44533         * tests/test-exclude8.sh: Likewise.
44534         * modules/exclude-tests (Files): List init.sh.
44536         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
44537         These shell scripts ignored failure of the binary test-exclude,
44538         so making the latter return 77 didn't cause them to be skipped.
44539         * tests/test-exclude5.sh: Exit with test-exclude's error status
44540         when that program fails.  Revamp to use init.sh.
44541         * tests/test-exclude2.sh: Likewise.
44543         test-exclude: fix a typo
44544         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
44546 2011-11-11  Bruno Haible  <bruno@clisp.org>
44548         obstack: Fix compilation error on MSVC 9.
44549         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
44551 2011-11-11  Jim Meyering  <meyering@redhat.com>
44553         test-exclude: skip tests rather than failing on deficient systems
44554         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
44555         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
44556         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
44557         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
44559 2011-11-10  Bruno Haible  <bruno@clisp.org>
44561         ptsname_r test: Avoid gcc warning on glibc systems.
44562         * tests/test-ptsname_r.c (null_ptr): New function.
44563         (test_errors): Use it.
44565 2011-11-10  Bruno Haible  <bruno@clisp.org>
44567         ptsname_r: Avoid compilation error on OSF/1 5.1.
44568         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
44569         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
44570         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
44571         function is not declared or incompatibly declared.
44572         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
44573         * modules/ptsname_r (Depends-on, configure.ac): Update.
44574         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
44576 2011-11-10  Bruno Haible  <bruno@clisp.org>
44578         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
44579         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
44580         When cross-compiling, guess yes on all platforms except AIX.
44581         Reported by Ludovic Courtès <ludo@gnu.org>.
44583 2011-11-09  Bruno Haible  <bruno@clisp.org>
44585         ptsname_r tests: Fix bugs.
44586         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
44587         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
44589 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
44591         fstatat: work with cross-compilation
44592         Problem reported by Ludovic Courtès in
44593         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
44594         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
44595         "cross-compiling" and assume the bug is present.  Replace
44596         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
44597         an inverted sense, to be more conservative about our assumptions.
44598         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
44600 2011-11-09  Bruno Haible  <bruno@clisp.org>
44602         Improve MODULES.html output.
44603         * modules/mkfifoat (Description): Use the word "function".
44604         * modules/readlinkat (Description): Likewise.
44605         * modules/symlinkat (Description): Likewise.
44607 2011-11-09  Eric Blake  <eblake@redhat.com>
44609         ptsname_r-tests: new test module
44610         * modules/ptsname_r-tests: New module.
44611         * tests/test-ptsname_r.c: New file.
44613         ptsname_r: new module
44614         * modules/ptsname_r: New module.
44615         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
44616         * lib/ptsname.c (__ptsname_r): Split...
44617         * lib/ptsname_r.c: ...into new file.
44618         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
44619         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
44620         * modules/stdlib (Makefile.am): Substitute witnesses.
44621         * lib/stdlib.in.h (ptsname_r): Declare it.
44622         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
44623         * MODULES.html.sh (Misc): Likewise.
44624         * modules/ptsname (Depends-on): Alter dependency.
44625         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
44627 2011-11-09  Jim Meyering  <meyering@redhat.com>
44629         announce-gen: be more concise when there's only one URL+tarball
44630         * build-aux/announce-gen (get_tool_versions): When you distribute
44631         only one type of tarball, combine the first two "Here are..."
44632         sections and make the key-checking grammar independent of
44633         how many tarballs there are.
44635 2011-11-09  Eric Blake  <eblake@redhat.com>
44637         openpty: provide a stub on mingw
44638         * lib/pty.in.h (includes): Provide forward declarations.
44639         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
44641         raise: fix mingw handling of SIGPIPE
44642         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
44644 2011-11-08  Bruno Haible  <bruno@clisp.org>
44646         More conditional dependencies.
44647         * modules/faccessat (Depends-on): Add conditions.
44648         * modules/fchmodat (Depends-on): Likewise.
44649         * modules/fchownat (Depends-on): Likewise.
44650         * modules/fstatat (Depends-on): Likewise.
44651         * modules/mkfifoat (Depends-on): Likewise.
44652         * modules/readlinkat (Depends-on): Likewise.
44653         * modules/symlinkat (Depends-on): Likewise.
44654         * modules/unlinkat (Depends-on): Likewise.
44655         * modules/utimensat (Depends-on): Likewise.
44656         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
44657         * modules/linkat (Depends-on): Refine the conditions.
44658         * modules/renameat (Depends-on): Likewise.
44660 2011-11-08  Bruno Haible  <bruno@clisp.org>
44662         faccessat: Move AC_LIBOBJ invocation to module description.
44663         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
44664         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
44665         invocation from here...
44666         * modules/faccessat (configure.ac): ... to here. Invoke
44667         gl_PREREQ_FACCESSAT.
44669 2011-11-08  Bruno Haible  <bruno@clisp.org>
44671         faccessat: Simplify autoconf macro.
44672         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
44673         gl_FUNC_EUIDACCESS.
44675 2011-11-08  Bruno Haible  <bruno@clisp.org>
44677         renameat: Fix dependencies.
44678         * modules/renameat (Depends-on): Add stdbool.
44680 2011-11-08  Bruno Haible  <bruno@clisp.org>
44682         mkfifoat: Fix module description.
44683         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
44684         not gl_UNISTD_MODULE_INDICATOR.
44686 2011-11-08  Bruno Haible  <bruno@clisp.org>
44688         fstatat: Remove unused dependency.
44689         * modules/fstatat (Depends-on): Remove fstat.
44691 2011-11-08  Simon Josefsson  <simon@josefsson.org>
44693         GNUmakefile: behave when Makefile is missing.
44694         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
44696 2011-11-08  Bruno Haible  <bruno@clisp.org>
44698         openat: Conditionalize dependencies.
44699         * lib/openat.c: Reduce the scope of some #includes.
44700         * modules/openat (Depends-on): Add conditions.
44702 2011-11-07  Jim Meyering  <meyering@redhat.com>
44704         maint.mk: extract GPG key ID without using a temporary file
44705         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
44706         without using a temporary file.  Based on a suggestion from Werner Koch
44707         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
44709 2011-11-07  Eric Blake  <eblake@redhat.com>
44711         grantpt: fix typo
44712         * lib/stdlib.in.h (grantpt): Check correct function.
44714         maint.mk: silence new syntax check
44715         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
44717 2011-11-06  Bruno Haible  <bruno@clisp.org>
44719         Doc about floating-point and math API.
44720         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
44721         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
44723 2011-11-06  Bruno Haible  <bruno@clisp.org>
44725         stdalign tests: Skip the test when compiled by Sun C.
44726         * tests/test-stdalign.c (main): Skip the test on Sun C.
44728 2011-11-06  Bruno Haible  <bruno@clisp.org>
44730         ansi-c++-opt: Complete the 2011-06-05 change.
44731         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
44732         does not support namespaces, set the variable to "no", not to ":".
44734 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
44736         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
44738 2011-11-06  Bruno Haible  <bruno@clisp.org>
44740         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
44741         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
44742         (minus_zerol) [HP-UX]: New macro.
44743         (unary_minus) [HP-UX]: New function.
44744         (copysignl) [HP-UX]: Use unary_minus function.
44746 2011-11-06  Bruno Haible  <bruno@clisp.org>
44748         ldexp, ldexpf, ldexpl: Enhance tests.
44749         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
44750         and tests/test-ldexpl.c.
44751         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
44752         LDEXP, MIN_EXP, MAX_EXP): New macros.
44753         Include test-ldexp.h.
44754         (main): Just call test_function.
44755         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
44756         infinity.h, nan.h.
44757         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
44758         MAX_EXP): New macros.
44759         Include test-ldexp.h.
44760         (x, y): Remove variables.
44761         (main): Just call test_function.
44762         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
44763         infinity.h, nan.h.
44764         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
44765         MAX_EXP): New macros.
44766         Include test-ldexp.h.
44767         (x, y): Remove variables.
44768         (main): Just call test_function.
44769         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
44770         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
44771         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
44772         (Depends-on): Add isnand-nolibm, signbit, float.
44773         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
44774         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
44775         (Depends-on): Add isnanf-nolibm, signbit, float.
44777 2011-11-06  Bruno Haible  <bruno@clisp.org>
44779         math tests: Cosmetics.
44780         * tests/test-math-c++.cc: Reorder declarations.
44782 2011-11-05  Bruno Haible  <bruno@clisp.org>
44784         fma*: Simplify test.
44785         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
44786         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
44788         Tests for module 'fmal'.
44789         * modules/fmal-tests: New file.
44790         * tests/test-fmal1.c: New file.
44791         * tests/test-fmal2.c: New file.
44793         New module 'fmal'.
44794         * lib/math.in.h (fmal): New declaration.
44795         * lib/fmal.c: New file.
44796         * m4/fmal.m4: New file.
44797         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
44798         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
44799         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
44800         REPLACE_FMAL.
44801         * modules/fmal: New file.
44802         * doc/posix-functions/fmal.texi: Mention the new module and the various
44803         bugs.
44805         Tests for module 'fmaf'.
44806         * modules/fmaf-tests: New file.
44807         * tests/test-fmaf1.c: New file.
44808         * tests/test-fmaf2.c: New file.
44810         New module 'fmaf'.
44811         * lib/math.in.h (fmaf): New declaration.
44812         * lib/fmaf.c: New file.
44813         * m4/fmaf.m4: New file.
44814         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
44815         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
44816         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
44817         REPLACE_FMAF.
44818         * modules/fmaf: New file.
44819         * doc/posix-functions/fmaf.texi: Mention the new module and the various
44820         bugs.
44822         Tests for module 'fma'.
44823         * modules/fma-tests: New file.
44824         * tests/test-fma1.c: New file.
44825         * tests/test-fma1.h: New file.
44826         * tests/test-fma2.c: New file.
44827         * tests/test-fma2.h: New file.
44829         New module 'fma'.
44830         * lib/math.in.h (fma): New declaration.
44831         * lib/fma.c: New file.
44832         * m4/fma.m4: New file.
44833         * m4/fegetround.m4: New file.
44834         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
44835         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
44836         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
44837         REPLACE_FMA.
44838         * modules/fma: New file.
44839         * doc/posix-functions/fma.texi: Mention the new module and the various
44840         bugs.
44842         Extend gl_MATHFUNC.
44843         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
44844         Support 'void' as argument type.
44845         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
44847 2011-11-05  Jim Meyering  <meyering@redhat.com>
44849         maint.mk: also prohibit inclusion of dirent.h without use
44850         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
44852 2011-11-05  Bruno Haible  <bruno@clisp.org>
44854         ldexpl tests: Avoid test failure on MSVC 9.
44855         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
44856         value. Needed in order to enforce the conversion from a value greater
44857         than LDBL_MAX to Infinity.
44859 2011-11-05  Bruno Haible  <bruno@clisp.org>
44861         New modules 'at-internal', 'openat-h', split off from module 'openat'.
44862         * modules/at-internal: New file, extracted from modules/openat.
44863         * modules/openat-h: New file.
44864         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
44865         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
44866         * modules/openat (Description): Add reference to POSIX function.
44867         (Files): Remove lib/openat.h, lib/openat-proc.c.
44868         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
44869         intprops, unistd.
44870         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
44871         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
44872         gl_FCNTL_MODULE_INDICATOR.
44873         (Include): Remove unistd.h, openat.h.
44874         * modules/areadlinkat (Files): Add lib/at-func.c.
44875         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
44876         openat-die, openat-h, save-cwd.
44877         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
44878         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
44879         openat-die, openat-h, save-cwd, unistd.
44880         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
44881         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
44882         openat-h, save-cwd. Remove fcntl-h, openat.
44883         * modules/fchmodat (Files): Remove lib/openat.h.
44884         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
44885         openat, stdbool, unistd.
44886         * modules/fchownat (Files): Remove lib/openat.h.
44887         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
44888         openat, stdbool, sys_stat.
44889         * modules/fdopendir (Files): Remove lib/openat-priv.h,
44890         lib/openat-proc.c.
44891         (Depends-on): Add at-internal.
44892         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
44893         * modules/fstatat (Files): Remove lib/openat.h.
44894         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
44895         stdbool, unistd.
44896         * modules/fts (Depends-on): Add openat-h.
44897         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
44898         openat.
44899         * modules/mkdirat (Files): Remove lib/openat.h.
44900         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
44901         openat, stdbool, sys_stat.
44902         * modules/mkfifoat (Files): Add lib/at-func.c.
44903         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
44904         openat-h, save-cwd. Remove fcntl-h, openat.
44905         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
44906         * modules/readlinkat (Files): Add lib/at-func.c.
44907         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
44908         openat-h, save-cwd. Remove fcntl-h, openat.
44909         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
44910         openat.
44911         * modules/selinux-at (Files): Add lib/at-func.c.
44912         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
44913         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
44914         * modules/symlinkat (Files): Add lib/at-func.c.
44915         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
44916         openat-h, save-cwd. Remove fcntl-h, openat.
44917         * modules/unlinkat (Files): Remove lib/openat.h.
44918         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
44919         stdbool.
44920         * modules/utimensat (Files): Add lib/at-func.c.
44921         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
44922         openat-die, openat-h, save-cwd.
44923         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
44924         * modules/fdutimensat-tests (Depends-on): Add openat.
44925         * modules/fstatat-tests (Depends-on): Add openat-h.
44926         * modules/readlinkat-tests (Depends-on): Add openat.
44927         * modules/symlinkat-tests (Depends-on): Add openat.
44929 2011-11-05  Bruno Haible  <bruno@clisp.org>
44931         openat: Include <stdbool.h>.
44932         * lib/openat.c: Include <stdbool.h>.
44934 2011-11-04  Bruno Haible  <bruno@clisp.org>
44936         fchownat, renameat, unlinkat: Fix dependencies.
44937         * modules/fchownat (Depends-on): Add fstatat.
44938         * modules/renameat (Depends-on): Likewise.
44939         * modules/unlinkat (Depends-on): Likewise.
44941 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
44943         openat: remove direct dependency on dirent
44944         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
44945         and hasn't been needed ever since fdopendir was split into its own
44946         module on 2009-08-31.
44947         * modules/openat (Depends-on): Remove dirent.
44949 2011-11-04  Bruno Haible  <bruno@clisp.org>
44951         renameat: Optimize code size.
44952         * modules/renameat (configure.ac): Don't compile at-func2.c if
44953         REPLACE_RENAMEAT is 1.
44955 2011-11-04  Bruno Haible  <bruno@clisp.org>
44957         openat tests: Fix file list.
44958         * modules/openat-tests (Files): Add tests/test-open.h.
44960 2011-11-04  Bruno Haible  <bruno@clisp.org>
44962         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
44963         * modules/fchmodat (Depends-on): Add openat-die.
44964         * modules/fchownat (Depends-on): Likewise.
44965         * modules/linkat (Depends-on): Likewise.
44966         * modules/renameat (Depends-on): Likewise.
44967         * modules/openat (Depends-on): Add dirent.
44969 2011-11-04  Jim Meyering  <meyering@redhat.com>
44971         at-func*.c: fix comments
44972         * lib/at-func2.c: Correct/improve first-line comment.
44973         * lib/at-func.c: Correct grammar in first-line comment.
44975 2011-11-04  Bruno Haible  <bruno@clisp.org>
44977         New module 'mkdirat', split off from module 'openat'.
44978         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
44979         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
44980         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
44981         * modules/mkdirat: New file, extracted from modules/openat.
44982         * modules/openat (Files): Remove lib/mkdirat.c.
44983         (Depends-on): Remove mkdir.
44984         (configure.ac): Remove AC_LIBOBJ of mkdirat.
44985         (Include): Remove <sys/stat.h>.
44986         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
44987         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
44988         tests/test-mkdir.h.
44989         (Depends-on): Remove ignore-value.
44990         (Makefile.am): Remove rules for test-mkdirat.
44991         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
44992         of module 'openat'.
44993         * NEWS: Mention the change.
44995 2011-11-04  Bruno Haible  <bruno@clisp.org>
44997         closedir: Avoid warning on mingw.
44998         * lib/closedir.c: Include <unistd.h>.
45000 2011-11-04  Bruno Haible  <bruno@clisp.org>
45002         New module 'fstatat', split off from module 'openat'.
45003         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
45004         defined.
45005         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
45006         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
45007         gl_FUNC_FSTATAT.
45008         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
45009         * modules/fstatat: New file, extracted from modules/openat.
45010         * modules/openat (Files): Remove lib/fstatat.c.
45011         (Depends-on): Remove lstat.
45012         (configure.ac): Remove AC_LIBOBJ of fstatat.
45013         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
45014         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
45015         tests/test-lstat.h, tests/test-stat.h.
45016         (Depends-on): Remove getcwd-lgpl.
45017         (Makefile.am): Remove rules for test-fstatat.
45018         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
45019         of module 'openat'.
45020         * NEWS: Mention the change.
45021         * modules/getcwd (Depends-on): Add fstatat.
45022         * modules/linkat (Depends-on): Likewise.
45023         * modules/mkfifoat-tests (Depends-on): Likewise.
45024         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
45026 2011-11-03  Bruno Haible  <bruno@clisp.org>
45028         New module 'unlinkat', split off from module 'openat'.
45029         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
45030         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
45031         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
45032         * modules/unlinkat: New file, extracted from modules/openat. Correct
45033         the dependency conditions.
45034         * modules/openat (Files): Remove lib/unlinkat.c.
45035         (Depends-on): Remove rmdir, unlink.
45036         (configure.ac): Remove AC_LIBOBJ of unlinkat.
45037         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
45038         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
45039         tests/test-rmdir.h, tests/test-unlink.h.
45040         (Depends-on): Remove unlinkdir.
45041         (Makefile.am): Remove rules for test-unlinkat.
45042         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
45043         of module 'openat'.
45044         * NEWS: Mention the change.
45045         * modules/linkat-tests (Depends-on): Add unlinkat.
45046         * modules/mkfifoat-tests (Depends-on): Likewise.
45047         * modules/readlinkat-tests (Depends-on): Likewise.
45049 2011-11-02  Bruno Haible  <bruno@clisp.org>
45051         New module 'fchmodat', split off from module 'openat'.
45052         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
45053         defined.
45054         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
45055         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
45056         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
45057         * modules/fchmodat: New file, extracted from modules/openat.
45058         * modules/openat (Files): Remove lib/fchmodat.c.
45059         (configure.ac): Remove AC_LIBOBJ of fchmodat.
45060         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
45061         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
45062         (Makefile.am): Remove rules for test-fchmodat.
45063         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
45064         of module 'openat'.
45065         * NEWS: Mention the change.
45067 2011-11-02  Jim Meyering  <meyering@redhat.com>
45069         putenv: indent #definition of "environ" to placate cppi
45070         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
45072         gitlog-to-changelog: provide a ChangeLog-repair mechanism
45073         Git logs are often treated as immutable, because editing them
45074         changes the SHA1 checksums of all descendants.  Thus, errors in
45075         git logs tend to stay there forever.  However, when we generate
45076         a ChangeLog file -- typically for distribution -- from that git log,
45077         we can actually make corrections in the generated file.  The key
45078         lies in recording in machine-readable/applicable form the desired
45079         corrections.  See --help for description and an example.
45080         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
45081         (usage): Describe it; alphabetize option descriptions.
45082         (main): Honor the new option, carefully.
45084 2011-11-01  Jim Meyering  <meyering@redhat.com>
45086         gitlog-to-changelog: avoid an infloop
45087         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
45088         that ends up being empty.
45090 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45092         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
45093         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
45094         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
45095         contains (possibly-quoted) backslashes.  This should avoid
45096         all-too-common shell bugs if COMPLICATED contains backslashes in
45097         the "wrong" places.  Reported by David Evans in
45098         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
45099         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
45100         because we want ASCII ranges.  Is there some reason we don't use
45101         the C locale everywhere in this script?
45102         (func_module, top level): Avoid unwanted pathname expansion when
45103         $repo_url_prefix or $repo_url_suffix_repl contain shell
45104         metacharacters like '?' and '*'.
45106 2011-11-01  Bruno Haible  <bruno@clisp.org>
45108         fchownat: Improve description.
45109         * modules/fchownat (Description): Add link to function.
45111 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45113         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
45114         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
45115         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
45116         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
45118 2011-11-01  Bruno Haible  <bruno@clisp.org>
45120         alignof: Avoid collision with stdalign module.
45121         * lib/alignof.h (alignof): Remove macro.
45122         * NEWS: Mention the change.
45123         Reported by Paul Eggert.
45125 2011-11-01  Bruno Haible  <bruno@clisp.org>
45127         New module 'fchownat', split off from module 'openat'.
45128         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
45129         defined.
45130         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
45131         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
45132         invoke gl_FUNC_FCHOWNAT.
45133         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
45134         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
45135         * modules/fchownat: New file, extracted from modules/openat.
45136         * modules/openat (Files): Remove lib/fchownat.c.
45137         (Depends-on): Remove lchown.
45138         (configure.ac): Remove AC_LIBOBJ of fchownat.
45139         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
45140         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
45141         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
45142         (Depends-on): Remove mgetgroups, usleep, stat-time.
45143         (configure.ac): Remove test for getegid.
45144         (Makefile.am): Remove rules for test-fchownat.
45145         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
45146         of module 'openat'.
45147         * NEWS: Mention the change.
45149 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
45151         stdalign: port better to MSVC and to Sun C 5.11
45152         This fixes some of the problems reported by Bruno Haible in
45153         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
45154         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
45155         shortcomings of MSVC and of Sun C 5.11.
45156         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
45157         around __declspec arg.
45158         * modules/stdalign-tests (Files): Add tests/macros.h.
45159         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
45160         Include macros.h, for ASSERT.
45161         (DECLARE_ALIGNED): Remove.
45162         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
45163         to catch bug), and to 1 if not (simplifies the rest of the code).
45164         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
45165         (CHECK_AUTO): Remove.
45166         (CHECK_ALIGNED): Check only the alignment of the static vars,
45167         since auto var alignment isn't supported by Sun C 5.11.
45168         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
45169         ASSERT failures are easier to diagnose.
45171 2011-10-31  Bruno Haible  <bruno@clisp.org>
45173         doc about some IRIX 5.3 problems.
45174         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
45175         on IRIX 5.3.
45176         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
45177         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
45178         5.3.
45179         * doc/posix-functions/grantpt.texi: Likewise.
45180         * doc/posix-functions/unlockpt.texi: Likewise.
45181         * doc/posix-functions/lgamma.texi: Likewise.
45182         * doc/posix-functions/nextafter.texi: Likewise.
45183         * doc/posix-functions/remainder.texi: Likewise.
45184         * doc/posix-functions/select.texi: Mention misplaced declaration on
45185         IRIX 5.3.
45186         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45188 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
45190         gitlog-to-changelog: fix git-log invocation.
45191         git-log mishandles date strings before 1970-01-01 UTC, and there is
45192         no use to specify --since=1970-01-01 by default anyway.
45193         * build-aux/gitlog-to-changelog: By default, when no --since option
45194         was given, do not specify explicit --since option to git-log.
45196 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
45198         gitlog-to-changelog: new option --append-dot.
45199         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
45200         first non-blank line of each commit message terminated with a dot.
45202 2011-10-30  Bruno Haible  <bruno@clisp.org>
45204         ffsl, ffsll: Avoid compilation error due to 'restrict'.
45205         * lib/ffsl.h: Include <config.h>.
45206         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
45208 2011-10-30  Jim Meyering  <meyering@redhat.com>
45210         GNUmakefile: reenable "make syntax-check" for most projects
45211         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
45212         build-aux variable", "syntax-check" would do nothing but succeed with
45213         the "No version control files detected..." diagnostic (unless you
45214         happened to override _build-aux via cfg.mk).
45215         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
45216         to precede inclusion of maint.mk.  Otherwise, these variables would
45217         be used undefined in any project that does not override the default.
45219 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
45221         gitlog-to-changelog: treat a message with only blank lines as empty.
45222         * build-aux/gitlog-to-changelog: Move the code that removes leading and
45223         trailing blank lines before the code that issues a warning about an
45224         empty commit message.
45226 2011-10-30  Jim Meyering  <meyering@redhat.com>
45228         test-parse-datetime.c: avoid new DST-related false positive test failure
45229         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
45230         based on the time/date we'll convert, not the current time.
45231         Otherwise, the moment we cross a DST boundary like today's in
45232         Europe, (CEST to CET), that offset ends up being one hour off.
45234 2011-10-27  Bruno Haible  <bruno@clisp.org>
45236         fstat: Tweak documentation.
45237         * modules/fstat (Description): More precise description.
45239 2011-10-27  Bruno Haible  <bruno@clisp.org>
45241         Update documentation regarding 'largefile' module.
45242         * doc/posix-functions/fstat.texi: Tweak wording.
45243         * doc/posix-functions/opendir.texi: Mention that the module fixes the
45244         problems with huge directories and/or small ino_t types.
45245         * doc/posix-functions/readdir.texi: Likewise.
45246         * doc/posix-functions/rewinddir.texi: Likewise.
45248 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
45250         maint.mk: don't maintain a second build-aux variable.
45251         * maint.mk (build_aux): Removed.  The maintainer-makefile module
45252         depends on GNUmakefile, which already maintains a cfg.mk
45253         overridable $(_build-aux) for projects with a non-standard
45254         build-aux directory location, although without the $(srcdir)
45255         prefix.  Use that variable consistently instead of introducing a
45256         second one.  Adjust all call sites.
45258 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
45260         Add stdalign module and use it in other modules.
45261         This is based on a previous proposal by Bruno Haible
45262         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
45264         stdalign: new module
45265         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
45266         * modules/stdalign: New files.
45267         * MODULES.html.sh (c1x_core_properties): Add stdalign.
45268         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
45270         stdalign-tests: new module
45271         * modules/stdalign-tests, tests/test-stdalign.c: New files.
45273         argp: use stdalign
45274         * lib/argp-parse.c: Include <stdalign.h>.
45275         (alignof): Remove.
45276         * modules/argp (Depends-on): Add stdalign.
45278         crypto libraries: use stdalign
45279         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
45280         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
45281         Do not include <stdlib.h> twice, in md4.c.
45282         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
45283         because we are accessing a pointer's bit-pattern, not a size.
45284         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
45285         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
45286         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
45287         * modules/crypto/sha512: Likewise.
45289         sys_socket: use stdalign, not alignof
45290         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
45291         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
45293 2011-10-27  Bruno Haible  <bruno@clisp.org>
45295         raise test: Avoid a test failure on Linux/MIPS.
45296         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
45297         because 99 is a valid signal on Linux/MIPS.
45299 2011-10-27  Bruno Haible  <bruno@clisp.org>
45301         nonblocking tests: Fix test failure on Linux/MIPS.
45302         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
45303         Set to 270000.
45305 2011-10-27  Bruno Haible  <bruno@clisp.org>
45307         utimensat: Work around problem on Linux/hppa.
45308         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
45309         values.
45310         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
45312 2011-10-25  Jim Meyering  <meyering@redhat.com>
45314         maint.mk: fix a bug in sc_prohibit_stddef_without_use
45315         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
45316         after symbols like NULL, size_t, etc.
45317         Reported by Alfred M. Szmidt.
45319         maint.mk: exempt ENODATA from a syntax-check rule
45320         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
45321         from the sc_prohibit_always-defined_macros syntax-check rule.
45322         Add a comment.  See this for more details:
45323         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
45325 2011-10-23  Jim Meyering  <meyering@redhat.com>
45327         fts: close parent dir FD before returning from post-traversal fts_read
45328         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
45329         unlink A, even though an FD open on A remained.  This is suboptimal
45330         (holding a file descriptor open longer than needed), but otherwise not
45331         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
45332         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
45333         that represents a real problem: it causes the removal of A to fail
45334         with e.g., "rm: cannot remove `A': Device or resource busy"
45336         fts visits each directory twice and keeps a cache (fts_fd_ring) of
45337         directory file descriptors.  After completing the final, FTS_DP,
45338         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
45339         cache, but then proceeded to add a new FD to it via the subsequent
45340         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
45341         final file descriptor would be closed only via fts_close's call to
45342         fd_ring_clear.  Now, it is usually closed earlier, via the final
45343         FTS_DP-returning fts_read call.
45344         * lib/fts.c (restore_initial_cwd): New function, converted from
45345         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
45346         Update callers.
45347         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
45348         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
45350 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
45351             Bruno Haible  <bruno@clisp.org>
45352             Jim Meyering  <jim@meyering.net>
45354         readme-release: improve safety of release prep instructions.
45355         * README-release: Don't git pull all branches when only master
45356         is needed for the release process.
45357         Run make maintainer-clean before changing trees and merging.
45358         Don't try to run ./configure right after git pull in case files
45359         that influence the bootstrap process have changed, move the
45360         ./configure step to after running ./bootstrap.
45361         Don't bootstrap "one last time"... it's the first time!
45363 2011-10-22  Bruno Haible  <bruno@clisp.org>
45365         errno, strerror-override: Support for MSVC 10.
45366         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
45367         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
45368         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
45369         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
45370         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
45371         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
45372         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
45373         Assign values compatible with MSVC 10.
45374         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
45375         New macros.
45376         (GNULIB_defined_EWINSOCK): New macro.
45377         * lib/strerror-override.c (strerror_override): Update accordingly.
45378         * lib/strerror-override.h: Likewise.
45379         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
45380         longer equal to the corresponding errno value.
45381         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
45383 2011-10-22  Bruno Haible  <bruno@clisp.org>
45385         perror: Recognize when test program crashes.
45386         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
45387         strerror, set gl_cv_func_perror_works to no.
45388         Reported by Daniel Richard G. <skunk@iskunk.org>.
45390         perror: Fix indentation.
45391         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
45393 2011-10-22  Bruno Haible  <bruno@clisp.org>
45395         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
45396         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
45397         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
45398         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
45399         functions, not as a macro.
45400         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
45401         macros.
45402         (isfinite, isinf, isnan, signbit): Check overloaded functions and
45403         absence of macro.
45404         Suggested by Eric Blake.
45405         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
45407 2011-10-21  Bruno Haible  <bruno@clisp.org>
45409         relocatable-prog-wrapper: Don't leave object files behind.
45410         * build-aux/install-reloc: Re-synchronize list of .o files to be
45411         removed with list of compilation units.
45413 2011-10-20  Bruno Haible  <bruno@clisp.org>
45415         openpty, posix_openpt: Remove code duplication.
45416         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
45417         * lib/openpty.c: Include <stdlib.h>.
45418         (openpty): Use posix_openpt on all platforms except IRIX.
45419         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
45421 2011-10-20  Bruno Haible  <bruno@clisp.org>
45423         unlockpt: Detect invalid argument.
45424         * lib/unlockpt.c: Include <fcntl.h>.
45425         (unlockpt): Check whether fd is valid, using fcntl().
45426         * modules/unlockpt (Depends-on): Add fcntl-h.
45428 2011-10-20  Bruno Haible  <bruno@clisp.org>
45430         openpty: Avoid compilation error on AIX 6.1.
45431         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
45433 2011-10-20  Bruno Haible  <bruno@clisp.org>
45435         posix_openpt: Support for OpenBSD.
45436         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
45437         (posix_openpt) [OpenBSD]: New code.
45438         * lib/grantpt.c: Include <fcntl.h>.
45439         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
45440         * modules/grantpt (Depends-on): Add fcntl-h.
45442 2011-10-20  Bruno Haible  <bruno@clisp.org>
45444         posix_openpt test: Coding style.
45445         * tests/test-posix_openpt.c: Use GNU coding style.
45447 2011-10-20  Bruno Haible  <bruno@clisp.org>
45449         grantpt: Support --avoid=pt_chown.
45450         * modules/grantpt (Files): Add lib/pty-private.h.
45452 2011-10-20  Bruno Haible  <bruno@clisp.org>
45454         posix_openpt: Fix autoconf macro.
45455         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
45456         unneeded check for _getpty.
45458 2011-10-20  Bruno Haible  <bruno@clisp.org>
45460         openpty: Update comments.
45461         * lib/openpty.c: Add comments about Minix.
45463 2011-10-19  Eric Blake  <eblake@redhat.com>
45465         openpty: relax license
45466         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
45468         pt_chown: use configmake to simplify build
45469         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
45471         ptsname and others: relax license
45472         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
45473         * modules/unlockpt (License): Likewise.
45474         * modules/pt_chown (License): Likewise.
45475         * modules/ptsname (License): Likewise.
45476         * modules/ttyname_r (License): Likewise.
45478 2011-10-19  Jim Meyering  <meyering@redhat.com>
45480         posix_openpt: remove spurious #endif
45481         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
45483 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
45485         maint.mk: Respect $(build_aux) in web-manual rule.
45486         * top/maint.mk (web-manual): Find gen-announce script in user's
45487         $(build_aux) directory instead of hard-coding 'build-aux'.
45489 2011-10-19  Bruno Haible  <bruno@clisp.org>
45491         posix_openpt: Fix compilation error.
45492         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
45493         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
45494         Mention the openpty module as an alternative.
45496 2011-10-19  Bruno Haible  <bruno@clisp.org>
45498         Support for old NeXTstep 3.3 frexp().
45499         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
45500         execution time of the test to 5 seconds.
45501         Reported by Daniel Richard G. <skunk@iskunk.org>.
45503 2011-10-19  Bruno Haible  <bruno@clisp.org>
45505         Support for old NeXTstep 3.3 sed.
45506         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
45507         part, use /.../, not \|...|. Escape periods in the header file name.
45508         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
45509         Reported by Daniel Richard G. <skunk@iskunk.org>.
45511 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
45513         Support for old NeXTstep 3.3 gcc.
45514         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
45515         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
45516         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
45517         * lib/spawn.in.h (_Restrict_arr_): Likewise.
45518         * lib/regex.h (_Restrict_arr_): Likewise.
45519         * lib/regex_internal.h (re_token_t): Likewise.
45520         * lib/regexec.c (check_node_accept_bytes): Likewise.
45521         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
45523 2011-10-18  Eric Blake  <eblake@redhat.com>
45525         posix_openpt: new module
45526         * modules/posix_openpt: New module.
45527         * m4/posix_openpt.m4: New file.
45528         * lib/posix_openpt.c: Likewise.
45529         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
45530         (gl_STDLIB_H_DEFAULTS): Set defaults.
45531         * modules/stdlib (Makefile.am): Substitute macros.
45532         * lib/stdlib.in.h (posix_openpt): Declare.
45533         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
45534         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
45535         * modules/posix_openpt-tests: New test module.
45536         * tests/test-posix_openpt.c: New test.
45538 2011-10-15  Bruno Haible  <bruno@clisp.org>
45540         xstrtoll: Fix compilation failure.
45541         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
45542         from lib/strtol.c.
45543         * doc/posix-headers/limits.texi: Mention missing numerical limits on
45544         some platforms.
45545         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45547 2011-10-15  Bruno Haible  <bruno@clisp.org>
45549         vasnprintf: Optimize bit search operation.
45550         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
45551         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
45552         gl_DOUBLE_EXPONENT_LOCATION.
45553         * modules/vasnprintf (Files): Add m4/exponentd.m4.
45554         * modules/unistdio/u8-vasnprintf (Files): Likewise.
45555         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
45556         * modules/unistdio/u16-vasnprintf (Files): Likewise.
45557         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
45558         * modules/unistdio/u32-vasnprintf (Files): Likewise.
45559         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
45560         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
45561         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
45563 2011-10-15  Bruno Haible  <bruno@clisp.org>
45565         vasnprintf: Fix comments.
45566         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
45568 2011-10-14  Bruno Haible  <bruno@clisp.org>
45570         Tests for module 'integer_length_ll'.
45571         * modules/integer_length_ll-tests: New file.
45572         * tests/test-integer_length_ll.c: New file.
45574         New module 'integer_length_ll'.
45575         * lib/integer_length_ll.c: New file.
45576         * modules/integer_length_ll: New file.
45578 2011-10-14  Bruno Haible  <bruno@clisp.org>
45580         Tests for module 'integer_length_l'.
45581         * modules/integer_length_l-tests: New file.
45582         * tests/test-integer_length_l.c: New file.
45584         New module 'integer_length_l'.
45585         * lib/integer_length_l.c: New file.
45586         * modules/integer_length_l: New file.
45588 2011-10-14  Bruno Haible  <bruno@clisp.org>
45590         Tests for module 'integer_length'.
45591         * modules/integer_length-tests: New file.
45592         * tests/test-integer_length.c: New file.
45594         New module 'integer_length'.
45595         * lib/integer_length.h: New file.
45596         * lib/integer_length.c: New file.
45597         * modules/integer_length: New file.
45599 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
45601         popen: Fix dependency conditions.
45602         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
45604 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
45606         perror: Fix autoconf test.
45607         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
45608         <stdlib.h> and <string.h>.
45610 2011-10-14  Bruno Haible  <bruno@clisp.org>
45612         ffsl: Optimize on 64-bit platforms.
45613         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
45614         unrolling.
45616 2011-10-13  Bruno Haible  <bruno@clisp.org>
45618         ffsl: Optimize on 32-bit platforms.
45619         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
45620         use ffs() without a loop.
45622         ffsl, ffsll: Optimize for GCC.
45623         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
45624         * lib/ffsl.c (GCC_BUILTIN): New macro.
45625         * lib/ffsll.c (GCC_BUILTIN): Likewise.
45627 2011-10-13  Bruno Haible  <bruno@clisp.org>
45629         ffs, bcopy, memset: Support symbol renaming via config.h.
45630         * lib/ffs.c: Include <config.h>.
45631         * lib/bcopy.c: Likewise.
45632         * lib/memset.c: Likewise.
45634 2011-10-10  Bruno Haible  <bruno@clisp.org>
45636         atanl: Simplify for platforms where 'long double' == 'double'.
45637         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45638         alternative implementation.
45639         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45640         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45641         * modules/atanl (Depends-on): Add atan. Update conditions.
45643 2011-10-10  Bruno Haible  <bruno@clisp.org>
45645         acosl: Simplify for platforms where 'long double' == 'double'.
45646         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45647         alternative implementation.
45648         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45649         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45650         * modules/acosl (Depends-on): Add acos. Update conditions.
45652 2011-10-10  Bruno Haible  <bruno@clisp.org>
45654         asinl: Simplify for platforms where 'long double' == 'double'.
45655         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45656         alternative implementation.
45657         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45658         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45659         * modules/asinl (Depends-on): Add asin. Update conditions.
45661 2011-10-10  Bruno Haible  <bruno@clisp.org>
45663         tanl: Simplify for platforms where 'long double' == 'double'.
45664         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45665         implementation.
45666         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45667         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45668         * modules/tanl (Depends-on): Add tan. Update conditions.
45669         (configure.ac): Don't compile trigl.c if
45670         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45672 2011-10-10  Bruno Haible  <bruno@clisp.org>
45674         cosl: Simplify for platforms where 'long double' == 'double'.
45675         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45676         implementation.
45677         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45678         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45679         * modules/cosl (Depends-on): Add cos. Update conditions.
45680         (configure.ac): Don't compile sincosl.c and trigl.c if
45681         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45683 2011-10-10  Bruno Haible  <bruno@clisp.org>
45685         sinl: Simplify for platforms where 'long double' == 'double'.
45686         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45687         implementation.
45688         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45689         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45690         * modules/sinl (Depends-on): Add sin. Update conditions.
45691         (configure.ac): Don't compile sincosl.c and trigl.c if
45692         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45694 2011-10-10  Bruno Haible  <bruno@clisp.org>
45696         logl: Simplify for platforms where 'long double' == 'double'.
45697         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45698         implementation.
45699         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45700         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45701         * modules/logl (Depends-on): Add log. Update conditions.
45703 2011-10-10  Bruno Haible  <bruno@clisp.org>
45705         expl: Simplify for platforms where 'long double' == 'double'.
45706         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45707         implementation.
45708         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45709         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45710         * modules/expl (Depends-on): Add exp. Update conditions.
45712 2011-10-10  Bruno Haible  <bruno@clisp.org>
45714         sqrtl: Simplify for platforms where 'long double' == 'double'.
45715         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45716         alternative implementation.
45717         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45718         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45719         * modules/sqrtl (Depends-on): Update conditions.
45721 2011-10-10  Bruno Haible  <bruno@clisp.org>
45723         ldexpl: Simplify for platforms where 'long double' == 'double'.
45724         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45725         alternative implementation.
45726         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45727         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45728         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
45730 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
45732         ffsll: set correct witness
45733         * modules/ffsll (configure.ac): Fix typo.
45735 2011-10-10  Bruno Haible  <bruno@clisp.org>
45737         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
45738         * lib/printf-frexpl.c: Include <config.h>.
45739         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45740         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
45741         second time.
45742         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
45743         gl_LONG_DOUBLE_VS_DOUBLE.
45744         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
45745         conditions.
45747 2011-10-10  Bruno Haible  <bruno@clisp.org>
45749         frexpl: Simplify for platforms where 'long double' == 'double'.
45750         * lib/frexpl.c: Include <config.h>.
45751         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45752         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45753         time.
45754         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45755         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45756         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
45757         * modules/frexpl (Depends-on): Add frexp. Update conditions.
45758         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
45759         conditions.
45761 2011-10-10  Jim Meyering  <meyering@redhat.com>
45763         test-renameat: don't leave behind a temporary file
45764         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
45765           ERROR: files left in build directory after distclean:
45766           ./gltests/test-renameat.too
45767           make[1]: *** [distcleancheck] Error 1
45768         Reported by Tom G. Christensen.
45770 2011-10-09  Bruno Haible  <bruno@clisp.org>
45772         rint: Determine RINT_LIBM correctly on AIX 7.
45773         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
45774         directly, not only through a function pointer. Also accept an optional
45775         4th argument with extra code.
45776         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
45777         rintf() call by gcc when optimizing.
45779         mathfunc.m4: Refactor.
45780         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
45781         m4 variable.
45783 2011-10-09  Bruno Haible  <bruno@clisp.org>
45785         rintl: Simplify for platforms where 'long double' == 'double'.
45786         * lib/rintl.c: Include <config.h>.
45787         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45788         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45789         time.
45790         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45791         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45792         * modules/rintl (Depends-on): Add rint. Update conditions.
45794 2011-10-09  Bruno Haible  <bruno@clisp.org>
45796         roundl: Simplify for platforms where 'long double' == 'double'.
45797         * lib/roundl.c: Include <config.h>.
45798         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45799         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45800         time.
45801         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45802         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45803         * modules/roundl (Depends-on): Add round. Update conditions.
45805 2011-10-09  Bruno Haible  <bruno@clisp.org>
45807         truncl: Simplify for platforms where 'long double' == 'double'.
45808         * lib/truncl.c: Include <config.h>.
45809         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45810         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45811         time.
45812         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45813         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45814         * modules/truncl (Depends-on): Add trunc. Update conditions.
45816 2011-10-09  Bruno Haible  <bruno@clisp.org>
45818         ceill: Simplify for platforms where 'long double' == 'double'.
45819         * lib/ceill.c: Include <config.h>.
45820         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45821         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45822         time.
45823         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45824         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45825         * modules/ceill (Depends-on): Add ceil. Update conditions.
45827 2011-10-09  Bruno Haible  <bruno@clisp.org>
45829         floorl: Simplify for platforms where 'long double' == 'double'.
45830         * lib/floorl.c: Include <config.h>.
45831         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45832         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45833         time.
45834         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45835         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45836         * modules/floorl (Depends-on): Add floor. Update conditions.
45838 2011-10-09  Bruno Haible  <bruno@clisp.org>
45840         rint: Fix ordering constraints.
45841         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
45842         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
45843         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
45845 2011-10-09  Bruno Haible  <bruno@clisp.org>
45847         copysignl: Simplify for platforms where 'long double' == 'double'.
45848         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45849         alternative.
45850         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45851         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45852         * modules/copysignl (Depends-on): Add copysign. Update conditions.
45854 2011-10-09  Bruno Haible  <bruno@clisp.org>
45856         Tests for module 'rintl'.
45857         * modules/rintl-tests: New file.
45858         * tests/test-rintl.c: New file.
45860         New module 'rintl'.
45861         * lib/math.in.h (rintl): New declaration.
45862         * lib/rintl.c: New file.
45863         * m4/rintl.m4: New file.
45864         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
45865         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
45866         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
45867         * modules/rintl: New file.
45868         * tests/test-math-c++.cc: Check the declaration of rintl.
45869         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
45870         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
45871         * doc/posix-functions/rintl.texi: Mention the new module.
45873 2011-10-09  Bruno Haible  <bruno@clisp.org>
45875         Tests for module 'rintf'.
45876         * modules/rintf-tests: New file.
45877         * tests/test-rintf.c: New file.
45879         New module 'rintf'.
45880         * lib/math.in.h (rintf): New declaration.
45881         * lib/rintf.c: New file.
45882         * m4/rintf.m4: New file.
45883         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
45884         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
45885         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
45886         * modules/rintf: New file.
45887         * tests/test-math-c++.cc: Check the declaration of rintf.
45888         * doc/posix-functions/rintf.texi: Mention the new module.
45890 2011-10-09  Bruno Haible  <bruno@clisp.org>
45892         rint: Support for MSVC.
45893         * lib/math.in.h (rint): New declaration.
45894         * lib/rint.c: New file.
45895         * m4/rint.m4: New file.
45896         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
45897         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
45898         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
45899         * modules/rint (Description): Fix.
45900         (Files): Add lib/rint.c, m4/rint.m4.
45901         (Depends-on): Add math.
45902         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
45903         gl_MATH_MODULE_INDICATOR.
45904         * tests/test-math-c++.cc: Check the declaration of rint.
45905         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
45906         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
45907         * doc/posix-functions/rint.texi: Mention the replacement provided by
45908         the module.
45910         rint tests: More tests.
45911         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
45912         minus-zero.h, infinity.h, nan.h.
45913         (main): Skip the test if the current rounding mode is not standard. Add
45914         tests for negative numbers, minus zero, infinity, NaN.
45915         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
45916         tests/nan.h.
45917         (Depends-on): Add isnand-nolibm.
45919 2011-10-09  Bruno Haible  <bruno@clisp.org>
45921         Tests for module 'copysignl'.
45922         * modules/copysignl-tests: New file.
45923         * tests/test-copysignl.c: New file.
45925         New module 'copysignl'.
45926         * lib/math.in.h (copysignl): New declaration.
45927         * lib/copysignl.c: New file.
45928         * m4/copysignl.m4: New file.
45929         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
45930         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
45931         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
45932         HAVE_COPYSIGNL.
45933         * modules/copysignl: New file.
45934         * tests/test-math-c++.cc: Check the declaration of copysignl.
45935         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
45936         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
45937         * doc/posix-functions/copysignl.texi: Mention the new module.
45939 2011-10-09  Bruno Haible  <bruno@clisp.org>
45941         Tests for module 'copysignf'.
45942         * modules/copysignf-tests: New file.
45943         * tests/test-copysignf.c: New file.
45945         New module 'copysignf'.
45946         * lib/math.in.h (copysignf): New declaration.
45947         * lib/copysignf.c: New file.
45948         * m4/copysignf.m4: New file.
45949         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
45950         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
45951         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
45952         HAVE_COPYSIGNF.
45953         * modules/copysignf: New file.
45954         * tests/test-math-c++.cc: Check the declaration of copysignf.
45955         * doc/posix-functions/copysignf.texi: Mention the new module.
45957 2011-10-09  Bruno Haible  <bruno@clisp.org>
45959         Ensure that HAVE_* variables are set to 1 before they are set to 0.
45960         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
45961         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
45962         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
45963         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
45964         gl_SIGNAL_H_DEFAULTS.
45966 2011-10-09  Bruno Haible  <bruno@clisp.org>
45968         poll: Make macro safer.
45969         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
45970         ac_cv_header_poll_h is not set.
45972 2011-10-09  Bruno Haible  <bruno@clisp.org>
45974         copysign: Provide replacement.
45975         * lib/math.in.h (copysign): New declaration.
45976         * lib/copysign.c: New file.
45977         * m4/copysign.m4: New file.
45978         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
45979         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
45980         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
45981         HAVE_COPYSIGN.
45982         * modules/copysign (Description): Clarify.
45983         (Files): Add lib/copysign.c, m4/copysign.m4.
45984         (Depends-on): Add math, signbit.
45985         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
45986         gl_MATH_MODULE_INDICATOR.
45987         * tests/test-math-c++.cc: Check the declaration of copysign.
45988         * doc/posix-functions/copysign.texi: Mention the effects of the module
45989         on Minix and MSVC.
45991 2011-10-09  Bruno Haible  <bruno@clisp.org>
45993         isinf: Ensure macro on AIX 5.1.
45994         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
45995         macro.
45996         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
45998 2011-10-09  Bruno Haible  <bruno@clisp.org>
46000         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
46001         * modules/snprintf-posix-tests (configure.ac): Require
46002         gl_LONG_DOUBLE_VS_DOUBLE.
46003         * modules/sprintf-posix-tests (configure.ac): Likewise.
46004         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
46005         * modules/vasprintf-posix-tests (configure.ac): Likewise.
46006         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
46007         * modules/vsprintf-posix-tests (configure.ac): Likewise.
46008         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
46009         tests on platforms where 'long double' is the same as 'double'.
46010         * tests/test-sprintf-posix.h (test_function): Likewise.
46011         * tests/test-vasnprintf-posix.c (test_function): Likewise.
46012         * tests/test-vasprintf-posix.c (test_function): Likewise.
46014         *printf: Fix for platforms where 'long double' == 'double'.
46015         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
46016         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
46017         * modules/dprintf-posix (Files): Add m4/math_h.m4.
46018         * modules/fprintf-posix (Files): Likewise.
46019         * modules/obstack-printf-posix (Files): Likewise.
46020         * modules/snprintf-posix (Files): Likewise.
46021         * modules/sprintf-posix (Files): Likewise.
46022         * modules/vasnprintf (Files): Likewise.
46023         * modules/vasnprintf-posix (Files): Likewise.
46024         * modules/vasprintf-posix (Files): Likewise.
46025         * modules/vdprintf-posix (Files): Likewise.
46026         * modules/vfprintf-posix (Files): Likewise.
46027         * modules/vsnprintf-posix (Files): Likewise.
46028         * modules/vsprintf-posix (Files): Likewise.
46029         * modules/unistdio/u8-vasnprintf (Files): Likewise.
46030         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
46031         * modules/unistdio/u16-vasnprintf (Files): Likewise.
46032         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
46033         * modules/unistdio/u32-vasnprintf (Files): Likewise.
46034         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
46035         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
46037         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
46038         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
46039         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46040         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
46041         'long double'.
46042         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
46044         isinf: Fix for platforms where 'long double' == 'double'.
46045         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
46046         Don't blindly assume 80-bit 'long double'.
46048         isfinite: Fix for platforms where 'long double' == 'double'.
46049         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
46050         Don't blindly assume 80-bit 'long double'.
46052         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
46053         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
46054         * modules/isfinite-tests (configure.ac): Require
46055         gl_LONG_DOUBLE_VS_DOUBLE.
46056         * modules/isinf-tests (configure.ac): Likewise.
46057         * modules/isnan-tests (configure.ac): Likewise.
46058         * modules/isnanl-tests (configure.ac): Likewise.
46059         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
46060         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
46061         tests on platforms where 'long double' is the same as 'double'.
46062         * tests/test-isinf.c (test_isinfl): Likewise.
46063         * tests/test-isnan.c (test_long_double): Likewise.
46064         * tests/test-isnanl.h (main): Likewise.
46066 2011-10-08  Bruno Haible  <bruno@clisp.org>
46068         Tests for module 'tanhf'.
46069         * modules/tanhf-tests: New file.
46070         * tests/test-tanhf.c: New file.
46072         New module 'tanhf'.
46073         * lib/math.in.h (tanhf): New declaration.
46074         * lib/tanhf.c: New file.
46075         * m4/tanhf.m4: New file.
46076         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
46077         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
46078         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
46079         * modules/tanhf: New file.
46080         * tests/test-math-c++.cc: Check the declaration of tanhf.
46081         * doc/posix-functions/tanhf.texi: Mention the new module.
46083         tanh: Use a .m4 file.
46084         * m4/tanh.m4: New file.
46085         * modules/tanh (Files): Add it.
46086         (configure.ac): Just invoke gl_FUNC_TANH.
46088 2011-10-08  Bruno Haible  <bruno@clisp.org>
46090         Tests for module 'coshf'.
46091         * modules/coshf-tests: New file.
46092         * tests/test-coshf.c: New file.
46094         New module 'coshf'.
46095         * lib/math.in.h (coshf): New declaration.
46096         * lib/coshf.c: New file.
46097         * m4/coshf.m4: New file.
46098         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
46099         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
46100         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
46101         * modules/coshf: New file.
46102         * tests/test-math-c++.cc: Check the declaration of coshf.
46103         * doc/posix-functions/coshf.texi: Mention the new module.
46105         cosh: Use a .m4 file.
46106         * m4/cosh.m4: New file.
46107         * modules/cosh (Files): Add it.
46108         (configure.ac): Just invoke gl_FUNC_COSH.
46110 2011-10-08  Bruno Haible  <bruno@clisp.org>
46112         Tests for module 'sinhf'.
46113         * modules/sinhf-tests: New file.
46114         * tests/test-sinhf.c: New file.
46116         New module 'sinhf'.
46117         * lib/math.in.h (sinhf): New declaration.
46118         * lib/sinhf.c: New file.
46119         * m4/sinhf.m4: New file.
46120         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
46121         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
46122         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
46123         * modules/sinhf: New file.
46124         * tests/test-math-c++.cc: Check the declaration of sinhf.
46125         * doc/posix-functions/sinhf.texi: Mention the new module.
46127         sinh: Use a .m4 file.
46128         * m4/sinh.m4: New file.
46129         * modules/sinh (Files): Add it.
46130         (configure.ac): Just invoke gl_FUNC_SINH.
46132 2011-10-08  Bruno Haible  <bruno@clisp.org>
46134         Tests for module 'atan2f'.
46135         * modules/atan2f-tests: New file.
46136         * tests/test-atan2f.c: New file.
46138         New module 'atan2f'.
46139         * lib/math.in.h (atan2f): New declaration.
46140         * lib/atan2f.c: New file.
46141         * m4/atan2f.m4: New file.
46142         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
46143         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
46144         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
46145         * modules/atan2f: New file.
46146         * tests/test-math-c++.cc: Check the declaration of atan2f.
46147         * doc/posix-functions/atan2f.texi: Mention the new module.
46149         atan2: Use a .m4 file.
46150         * m4/atan2.m4: New file.
46151         * modules/atan2 (Files): Add it.
46152         (configure.ac): Just invoke gl_FUNC_ATAN2.
46154 2011-10-08  Bruno Haible  <bruno@clisp.org>
46156         Tests for module 'atanf'.
46157         * modules/atanf-tests: New file.
46158         * tests/test-atanf.c: New file.
46160         New module 'atanf'.
46161         * lib/math.in.h (atanf): New declaration.
46162         * lib/atanf.c: New file.
46163         * m4/atanf.m4: New file.
46164         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
46165         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
46166         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
46167         * modules/atanf: New file.
46168         * tests/test-math-c++.cc: Check the declaration of atanf.
46169         * doc/posix-functions/atanf.texi: Mention the new module.
46171         atan: Use a .m4 file.
46172         * m4/atan.m4: New file.
46173         * modules/atan (Files): Add it.
46174         (configure.ac): Just invoke gl_FUNC_ATAN.
46176 2011-10-08  Bruno Haible  <bruno@clisp.org>
46178         Tests for module 'acosf'.
46179         * modules/acosf-tests: New file.
46180         * tests/test-acosf.c: New file.
46182         New module 'acosf'.
46183         * lib/math.in.h (acosf): New declaration.
46184         * lib/acosf.c: New file.
46185         * m4/acosf.m4: New file.
46186         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
46187         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
46188         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
46189         * modules/acosf: New file.
46190         * tests/test-math-c++.cc: Check the declaration of acosf.
46191         * doc/posix-functions/acosf.texi: Mention the new module.
46193         acos: Use a .m4 file.
46194         * m4/acos.m4: New file.
46195         * modules/acos (Files): Add it.
46196         (configure.ac): Just invoke gl_FUNC_ACOS.
46198 2011-10-08  Bruno Haible  <bruno@clisp.org>
46200         Tests for module 'asinf'.
46201         * modules/asinf-tests: New file.
46202         * tests/test-asinf.c: New file.
46204         New module 'asinf'.
46205         * lib/math.in.h (asinf): New declaration.
46206         * lib/asinf.c: New file.
46207         * m4/asinf.m4: New file.
46208         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
46209         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
46210         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
46211         * modules/asinf: New file.
46212         * tests/test-math-c++.cc: Check the declaration of asinf.
46213         * doc/posix-functions/asinf.texi: Mention the new module.
46215         asin: Use a .m4 file.
46216         * m4/asin.m4: New file.
46217         * modules/asin (Files): Add it.
46218         (configure.ac): Just invoke gl_FUNC_ASIN.
46220 2011-10-08  Bruno Haible  <bruno@clisp.org>
46222         Tests for module 'tanf'.
46223         * modules/tanf-tests: New file.
46224         * tests/test-tanf.c: New file.
46226         New module 'tanf'.
46227         * lib/math.in.h (tanf): New declaration.
46228         * lib/tanf.c: New file.
46229         * m4/tanf.m4: New file.
46230         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
46231         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
46232         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
46233         * modules/tanf: New file.
46234         * tests/test-math-c++.cc: Check the declaration of tanf.
46235         * doc/posix-functions/tanf.texi: Mention the new module.
46237         tan: Use a .m4 file.
46238         * m4/tan.m4: New file.
46239         * modules/tan (Files): Add it.
46240         (configure.ac): Just invoke gl_FUNC_TAN.
46242 2011-10-08  Bruno Haible  <bruno@clisp.org>
46244         Tests for module 'cosf'.
46245         * modules/cosf-tests: New file.
46246         * tests/test-cosf.c: New file.
46248         New module 'cosf'.
46249         * lib/math.in.h (cosf): New declaration.
46250         * lib/cosf.c: New file.
46251         * m4/cosf.m4: New file.
46252         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
46253         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
46254         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
46255         * modules/cosf: New file.
46256         * tests/test-math-c++.cc: Check the declaration of cosf.
46257         * doc/posix-functions/cosf.texi: Mention the new module.
46259         cos: Use a .m4 file.
46260         * m4/cos.m4: New file.
46261         * modules/cos (Files): Add it.
46262         (configure.ac): Just invoke gl_FUNC_COS.
46264 2011-10-08  Bruno Haible  <bruno@clisp.org>
46266         Tests for module 'sinf'.
46267         * modules/sinf-tests: New file.
46268         * tests/test-sinf.c: New file.
46270         New module 'sinf'.
46271         * lib/math.in.h (sinf): New declaration.
46272         * lib/sinf.c: New file.
46273         * m4/sinf.m4: New file.
46274         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
46275         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
46276         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
46277         * modules/sinf: New file.
46278         * tests/test-math-c++.cc: Check the declaration of sinf.
46279         * doc/posix-functions/sinf.texi: Mention the new module.
46281         sin: Use a .m4 file.
46282         * m4/sin.m4: New file.
46283         * modules/sin (Files): Add it.
46284         (configure.ac): Just invoke gl_FUNC_SIN.
46286 2011-10-08  Bruno Haible  <bruno@clisp.org>
46288         Tests for module 'powf'.
46289         * modules/powf-tests: New file.
46290         * tests/test-powf.c: New file.
46292         New module 'powf'.
46293         * lib/math.in.h (powf): New declaration.
46294         * lib/powf.c: New file.
46295         * m4/powf.m4: New file.
46296         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
46297         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
46298         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
46299         * modules/powf: New file.
46300         * tests/test-math-c++.cc: Check the declaration of powf.
46301         * doc/posix-functions/powf.texi: Mention the new module.
46303         pow: Use a .m4 file.
46304         * m4/pow.m4: New file.
46305         * modules/pow (Files): Add it.
46306         (configure.ac): Just invoke gl_FUNC_POW.
46308 2011-10-08  Bruno Haible  <bruno@clisp.org>
46310         Tests for module 'log10f'.
46311         * modules/log10f-tests: New file.
46312         * tests/test-log10f.c: New file.
46314         New module 'log10f'.
46315         * lib/math.in.h (log10f): New declaration.
46316         * lib/log10f.c: New file.
46317         * m4/log10f.m4: New file.
46318         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
46319         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
46320         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
46321         * modules/log10f: New file.
46322         * tests/test-math-c++.cc: Check the declaration of log10f.
46323         * doc/posix-functions/log10f.texi: Mention the new module.
46325         log10: Use a .m4 file.
46326         * m4/log10.m4: New file.
46327         * modules/log10 (Files): Add it.
46328         (configure.ac): Just invoke gl_FUNC_LOG10.
46330 2011-10-08  Bruno Haible  <bruno@clisp.org>
46332         Tests for module 'logf'.
46333         * modules/logf-tests: New file.
46334         * tests/test-logf.c: New file.
46336         New module 'logf'.
46337         * lib/math.in.h (logf): New declaration.
46338         * lib/logf.c: New file.
46339         * m4/logf.m4: New file.
46340         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
46341         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
46342         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
46343         * modules/logf: New file.
46344         * tests/test-math-c++.cc: Check the declaration of logf.
46345         * doc/posix-functions/logf.texi: Mention the new module.
46347         log: Use a .m4 file.
46348         * m4/log.m4: New file.
46349         * modules/log (Files): Add it.
46350         (configure.ac): Just invoke gl_FUNC_LOG.
46352 2011-10-08  Bruno Haible  <bruno@clisp.org>
46354         Tests for module 'expf'.
46355         * modules/expf-tests: New file.
46356         * tests/test-expf.c: New file.
46358         New module 'expf'.
46359         * lib/math.in.h (expf): New declaration.
46360         * lib/expf.c: New file.
46361         * m4/expf.m4: New file.
46362         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
46363         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
46364         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
46365         * modules/expf: New file.
46366         * tests/test-math-c++.cc: Check the declaration of expf.
46367         * doc/posix-functions/expf.texi: Mention the new module.
46369         exp: Use a .m4 file.
46370         * m4/exp.m4: New file.
46371         * modules/exp (Files): Add it.
46372         (configure.ac): Just invoke gl_FUNC_EXP.
46374 2011-10-08  Bruno Haible  <bruno@clisp.org>
46376         Tests for module 'sqrtf'.
46377         * modules/sqrtf-tests: New file.
46378         * tests/test-sqrtf.c: New file.
46380         New module 'sqrtf'.
46381         * lib/math.in.h (sqrtf): New declaration.
46382         * lib/sqrtf.c: New file.
46383         * m4/sqrtf.m4: New file.
46384         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
46385         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
46386         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
46387         * modules/sqrtf: New file.
46388         * tests/test-math-c++.cc: Check the declaration of sqrtf.
46389         * doc/posix-functions/sqrtf.texi: Mention the new module.
46391 2011-10-08  Bruno Haible  <bruno@clisp.org>
46393         Tests: Avoid link failures w.r.t. libintl.
46394         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
46395         $(LIBINTL).
46396         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
46397         $(LIBINTL).
46398         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
46399         against $(LIBINTL).
46400         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
46401         $(LIBINTL).
46402         * modules/openat-tests (Makefile.am): Link test-fchmodat against
46403         $(LIBINTL).
46404         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
46406 2011-10-08  Bruno Haible  <bruno@clisp.org>
46408         pow tests: Defeat compiler optimizations.
46409         * tests/test-pow.c (main): Assign arguments to x and y before use.
46411 2011-10-08  Bruno Haible  <bruno@clisp.org>
46413         gnulib-tool: Improve last commit.
46414         * gnulib-tool (func_modules_transitive_closure): Simplify code.
46415         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
46416         ignore dependencies that are not among the modules list.
46418 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
46420         gnulib-tool: don't follow dependencies to avoided modules
46421         This fixes a bug that is related to the previous one.
46422         * gnulib-tool (func_modules_transitive_closure)
46423         (func_emit_autoconf_snippets):
46424         Check whether a dependency is acceptable before using it.
46425         (--extract-dependencies): Report an error if --avoid is also used,
46426         since this combination of options is not yet supported.
46428         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
46429         Problem reported by Peter Dyballa in
46430         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
46431         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
46432         when echoing "$condition".
46434 2011-10-07  Bruno Haible  <bruno@clisp.org>
46436         Fix documentation about math functions on MacOS X.
46437         * doc/posix-functions/exp2.texi: Don't say the function is missing on
46438         MacOS X 10.5.
46439         * doc/posix-functions/fdim.texi: Likewise.
46440         * doc/posix-functions/feclearexcept.texi: Likewise.
46441         * doc/posix-functions/fegetenv.texi: Likewise.
46442         * doc/posix-functions/fegetround.texi: Likewise.
46443         * doc/posix-functions/feholdexcept.texi: Likewise.
46444         * doc/posix-functions/feraiseexcept.texi: Likewise.
46445         * doc/posix-functions/fesetenv.texi: Likewise.
46446         * doc/posix-functions/fesetround.texi: Likewise.
46447         * doc/posix-functions/fetestexcept.texi: Likewise.
46448         * doc/posix-functions/feupdateenv.texi: Likewise.
46449         * doc/posix-functions/fmax.texi: Likewise.
46450         * doc/posix-functions/fmin.texi: Likewise.
46451         * doc/posix-functions/log2.texi: Likewise.
46452         * doc/posix-functions/modff.texi: Likewise.
46453         * doc/posix-functions/nan.texi: Likewise.
46454         * doc/posix-functions/nanf.texi: Likewise.
46455         * doc/posix-functions/nextafterf.texi: Likewise.
46456         * doc/posix-functions/remquo.texi: Likewise.
46458 2011-10-07  Bruno Haible  <bruno@clisp.org>
46460         modff: Drop assumption about library that defines modff.
46461         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
46462         AC_CHECK_FUNCS.
46463         * modules/modff (Files): Add m4/mathfunc.m4.
46465 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
46467         raise tests: Avoid a GCC warning.
46468         * tests/test-raise.c (handler): Use _Noreturn.
46470 2011-10-07  Bruno Haible  <bruno@clisp.org>
46472         Tests for module 'ldexpf'.
46473         * modules/ldexpf-tests: New file.
46474         * tests/test-ldexpf.c: New file.
46476         New module 'ldexpf'.
46477         * lib/math.in.h (ldexpf): New declaration.
46478         * lib/ldexpf.c: New file.
46479         * m4/ldexpf.m4: New file.
46480         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
46481         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
46482         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
46483         * modules/ldexpf: New file.
46484         * tests/test-math-c++.cc: Check the declaration of ldexpf.
46485         * doc/posix-functions/ldexpf.texi: Mention the new module.
46487 2011-10-06  Bruno Haible  <bruno@clisp.org>
46489         frexpf: Work around problems on IRIX and mingw.
46490         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
46491         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
46492         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
46493         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
46494         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
46495         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
46496         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
46498 2011-10-06  Bruno Haible  <bruno@clisp.org>
46500         fabsf: Drop assumption about library that defines fabsf.
46501         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
46502         AC_CHECK_FUNCS.
46503         * modules/fabsf (Files): Add m4/mathfunc.m4.
46505 2011-10-06  Bruno Haible  <bruno@clisp.org>
46507         frexpf: Drop assumption about library that defines frexpf.
46508         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
46509         'int *', 'float *', 'long double *', 'float', 'long double'.
46510         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
46511         AC_CHECK_FUNCS.
46512         * modules/frexpf (Files): Add m4/mathfunc.m4.
46514         Tests for module 'frexpf'.
46515         * modules/frexpf-tests: New file.
46516         * tests/test-frexpf.c: New file.
46518         New module 'frexpf'.
46519         * lib/math.in.h (frexpf): New declaration.
46520         * lib/frexpf.c: New file.
46521         * m4/frexpf.m4: New file.
46522         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
46523         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
46524         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
46525         * modules/frexpf: New file.
46526         * tests/test-math-c++.cc: Check the declaration of frexpf.
46527         * doc/posix-functions/frexpf.texi: Mention the new module.
46529 2011-10-06  Bruno Haible  <bruno@clisp.org>
46531         math: Sort function declarations of math.in.h.
46532         * lib/math.in.h (frexp, logb): Move declarations.
46534 2011-10-05  Bruno Haible  <bruno@clisp.org>
46536         Tests for module 'modff'.
46537         * modules/modff-tests: New file.
46538         * tests/test-modff.c: New file.
46540         New module 'modff'.
46541         * lib/math.in.h (modff): New declaration.
46542         * lib/modff.c: New file.
46543         * m4/modff.m4: New file.
46544         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
46545         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
46546         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
46547         * modules/modff: New file.
46548         * tests/test-math-c++.cc: Check the declaration of modff.
46549         * doc/posix-functions/modff.texi: Mention the new module.
46551         modf tests: Make test sharper.
46552         * tests/test-modf.c (main): Strengthen upper bound.
46554         modf: Use a .m4 file.
46555         * m4/modf.m4: New file.
46556         * modules/modf (Files): Add it.
46557         (configure.ac): Just invoke gl_FUNC_MODF.
46559 2011-10-05  Bruno Haible  <bruno@clisp.org>
46561         Tests for module 'fmodf'.
46562         * modules/fmodf-tests: New file.
46563         * tests/test-fmodf.c: New file.
46565         New module 'fmodf'.
46566         * lib/math.in.h (fmodf): New declaration.
46567         * lib/fmodf.c: New file.
46568         * m4/fmodf.m4: New file.
46569         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
46570         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
46571         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
46572         * modules/fmodf: New file.
46573         * tests/test-math-c++.cc: Check the declaration of fmodf.
46574         * doc/posix-functions/fmodf.texi: Mention the new module.
46576         fmod: Use a .m4 file.
46577         * m4/fmod.m4: New file.
46578         * modules/fmod (Files): Add it.
46579         (configure.ac): Just invoke gl_FUNC_FMOD.
46581 2011-10-05  Bruno Haible  <bruno@clisp.org>
46583         Tests for module 'fabsf'.
46584         * modules/fabsf-tests: New file.
46585         * tests/test-fabsf.c: New file.
46587         New module 'fabsf'.
46588         * lib/math.in.h (fabsf): New declaration.
46589         * lib/fabsf.c: New file.
46590         * m4/fabsf.m4: New file.
46591         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
46592         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
46593         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
46594         * modules/fabsf: New file.
46595         * tests/test-math-c++.cc: Check the declaration of fabsf.
46596         * doc/posix-functions/fabsf.texi: Mention the new module.
46598         fabs: Use a .m4 file.
46599         * m4/fabs.m4: New file.
46600         * modules/fabs (Files): Add it.
46601         (configure.ac): Just invoke gl_FUNC_FABS.
46603 2011-10-05  Jim Meyering  <meyering@redhat.com>
46605         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
46606         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
46607         ls -lL regression introduced in coreutils-8.12, it does so at the
46608         cost of an additional stat call in the common case.  Besides, now
46609         that the kernel change that prompted commit 95f7c57f has been reverted
46610         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
46611         we have no use for commit 95f7c57f, "file-has-acl: use
46612         acl_extended_file_nofollow if available".
46614 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
46616         file-has-acl: revert unintended change in behavior of ls -L
46617         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
46618         derived from...
46619         (file_has_acl): ...code here.  Call it.
46620         This problem was introduced with 2011-07-22 commit 95f7c57f,
46621         "file-has-acl: use acl_extended_file_nofollow if available".
46622         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
46624 2011-10-03  Bruno Haible  <bruno@clisp.org>
46626         poll: Avoid link errors on MSVC.
46627         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
46628         * modules/poll (Depends-on): Add sockets.
46629         (Link): New section.
46630         * NEWS: Mention the change.
46631         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
46632         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
46633         $(LIB_POLL) instead of $(LIBSOCKET).
46635 2011-10-03  Bruno Haible  <bruno@clisp.org>
46637         sys_select tests: Fix link error on MSVC 9.
46638         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
46639         with $(LIB_SELECT) instead of $(LIBSOCKET).
46641 2011-10-03  Bruno Haible  <bruno@clisp.org>
46643         sys_select: Fix compilation error on mingw.
46644         * lib/sys_select.in.h: On native Windows, include <io.h>.
46646 2011-10-03  Bruno Haible  <bruno@clisp.org>
46648         wmemset: Support for MSVC.
46649         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
46650         whether wmemset() exists.
46652 2011-10-03  Bruno Haible  <bruno@clisp.org>
46654         wmemmove: Support for MSVC.
46655         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
46656         whether wmemmove() exists.
46658 2011-10-03  Bruno Haible  <bruno@clisp.org>
46660         wmemcpy: Support for MSVC.
46661         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
46662         whether wmemcpy() exists.
46664 2011-10-03  Bruno Haible  <bruno@clisp.org>
46666         wmemcmp: Support for MSVC.
46667         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
46668         whether wmemcmp() exists.
46670 2011-10-03  Bruno Haible  <bruno@clisp.org>
46672         wmemchr: Support for MSVC.
46673         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
46674         whether wmemchr() exists.
46676 2011-10-03  Bruno Haible  <bruno@clisp.org>
46678         glthread/*, strsignal: Support for MSVC.
46679         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
46680         including <winsock.h> on MSVC 9.
46681         * lib/glthread/lock.h: Likewise.
46682         * lib/glthread/thread.h: Likewise.
46683         * lib/glthread/tls.h: Likewise.
46684         * lib/glthread/yield.h: Likewise.
46685         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
46686         if HAVE_UNISTD_H is false.
46687         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
46689 2011-10-03  Bruno Haible  <bruno@clisp.org>
46691         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
46692         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
46693         Set to 100000.
46695 2011-10-03  Bruno Haible  <bruno@clisp.org>
46697         acl: Fix specification.
46698         * lib/file-has-acl.c (file_has_acl): Fix specification.
46700 2011-10-03  Bruno Haible  <bruno@clisp.org>
46702         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
46703         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
46704         (compute_curr_prefix, shared_library_fullname,
46705         find_shared_library_fullname, get_shared_library_fullname, relocate):
46706         Use it together with PIC && INSTALLDIR.
46707         Reported by <jojelino@gmail.com>
46708         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
46710 2011-10-01  Jim Meyering  <meyering@redhat.com>
46712         maint.mk: adjust a release-related rule not to require use of gzip
46713         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
46714         Instead, check each file in $(DIST_ARCHIVES).  This is better for
46715         projects that build only .tar.xz files.  Also fix an erroneous test.
46717         test-linkat: don't leave behind a temporary file
46718         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
46719         Otherwise, coreutils' "make distcheck" would fail with this:
46720           Only in /c/cu/tests/torture/coreutils/test/\
46721             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
46722           make[2]: *** [my-distcheck] Error 1
46724         float, math: add omitted file
46725         * lib/itold.c: Add file, required for yesterday's float change.
46727 2011-10-01  Bruno Haible  <bruno@clisp.org>
46729         isinf: Fix for OpenBSD/x86.
46730         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
46731         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
46732         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
46734 2011-10-01  Bruno Haible  <bruno@clisp.org>
46736         isfinite: Fix syntax error in configure test.
46737         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
46739         isfinite: Fix typo.
46740         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
46741         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
46743 2011-10-01  Bruno Haible  <bruno@clisp.org>
46745         nonblocking tests: Fix test failure on Linux/IA-64.
46746         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
46747         Set to 270000.
46749 2011-10-01  Bruno Haible  <bruno@clisp.org>
46751         mkfifoat tests: Fix a test failure on mingw.
46752         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
46753         with error ENOSYS.
46755 2011-09-30  Bruno Haible  <bruno@clisp.org>
46757         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
46758         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
46759         'long double'. Set REPLACE_ITOLD.
46760         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
46761         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
46762         * lib/itold.c: New file.
46763         * modules/float (Files): Add lib/itold.c.
46764         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
46765         (Makefile.am): Substitute REPLACE_ITOLD.
46766         * modules/math (Depends-on): Add float.
46767         (Makefile.am): Substitute REPLACE_ITOLD.
46768         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
46769         * doc/posix-headers/math.texi: Likewise.
46770         * doc/posix-functions/logl.texi: Likewise.
46772 2011-09-30  Bruno Haible  <bruno@clisp.org>
46774         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
46775         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
46776         Set to 140000.
46778 2011-09-30  Bruno Haible  <bruno@clisp.org>
46780         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
46781         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
46782         invocation, say "right after AC_PROG_CC_STDC", not "right after
46783         AC_PROG_CC".
46784         Reported by Gary V. Vaughan <gary@gnu.org>.
46786 2011-09-30  Bruno Haible  <bruno@clisp.org>
46788         Centralize C99 requirement.
46789         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
46790         * modules/stdarg (configure.ac-early): Invoke it instead of
46791         AC_PROG_CC_STDC.
46792         Reported by Gary V. Vaughan and Paul Eggert.
46794 2011-09-29  Bruno Haible  <bruno@clisp.org>
46796         float: Fix LDBL_MAX value on Linux/PowerPC.
46797         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
46798         on Linux/PowerPC.
46799         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
46800         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
46801         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
46802         platform.
46803         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
46805 2011-09-29  Bruno Haible  <bruno@clisp.org>
46807         doc: Improve doc about gl_EARLY.
46808         * doc/gnulib-tool.texi (Initial import): Mention where to place an
46809         AC_PROG_CC_STDC invocation.
46810         Reported by Gary V. Vaughan <gary@gnu.org>.
46812 2011-09-28  Bruno Haible  <bruno@clisp.org>
46814         fgetc, fputc, fread, fwrite tests: Fix link error.
46815         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
46816         on non-MSVC platforms.
46817         * tests/test-fputc.c (main): Likewise.
46818         * tests/test-fread.c (main): Likewise.
46819         * tests/test-fwrite.c (main): Likewise.
46820         Reported by Jim Meyering.
46822 2011-09-27  Bruno Haible  <bruno@clisp.org>
46824         fputc, fwrite tests: Avoid test failure on MSVC.
46825         * tests/test-fgetc.c: Include msvc-inval.h.
46826         (main): Invoke gl_msvc_inval_ensure_handler.
46827         * tests/test-fputc.c: Include msvc-inval.h.
46828         (main): Invoke gl_msvc_inval_ensure_handler.
46829         * tests/test-fread.c: Include msvc-inval.h.
46830         (main): Invoke gl_msvc_inval_ensure_handler.
46831         * tests/test-fwrite.c: Include msvc-inval.h.
46832         (main): Invoke gl_msvc_inval_ensure_handler.
46833         * modules/fgetc-tests (Depends-on): Add msvc-inval.
46834         * modules/fputc-tests (Depends-on): Likewise.
46835         * modules/fread-tests (Depends-on): Likewise.
46836         * modules/fwrite-tests (Depends-on): Likewise.
46838 2011-09-27  Bruno Haible  <bruno@clisp.org>
46840         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
46841         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
46842         (raise): Remove older, duplicated declaration.
46843         (_gl_raise_SIGPIPE): New declaration.
46844         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
46845         (rpl_raise): Remove function.
46846         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
46847         a gnulib-defined SIGPIPE here.
46848         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
46849         'sigprocmask' has detected missing signal-blocking and the module
46850         'sigpipe' is enabled.
46851         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
46853 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
46855         base64-tests: avoid memory leak
46856         * tests/test-base64.c (main): Plug memory leak.
46858         base32: new module
46859         * modules/base32: New module.
46860         * lib/base32.c: New file.
46861         * lib/base32.h: Likewise.
46862         * m4/base32.m4: Likewise.
46863         * modules/base32-tests: New test.
46864         * tests/test-base32.c: Likewise.
46865         * MODULES.html.sh (Misc): Mention it.
46867 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
46869         gnulib: use more-standard license notice wording
46870         * gnulib-tool (func_emit_copyright_notice): When emitting a
46871         license notice into a file, use the standard wording as suggested
46872         by the current information for GNU maintainers, except say "file"
46873         rather than "program".  The new wording gives a license version
46874         number, which addresses an issue raised by Glenn Morris in
46875         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
46876         * m4/onceonly.m4: Use that same wording here, too.
46878         dup2: minor simplification
46879         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
46880         as lib/dup2.c no longer uses 'inline'.
46882 2011-09-25  Bruno Haible  <bruno@clisp.org>
46884         strings: Fix compilation error on MSVC.
46885         * lib/strings.in.h: Include <stddef.h> for size_t.
46887 2011-09-25  Bruno Haible  <bruno@clisp.org>
46889         fflush et al.: Document limitation on MSVC.
46890         * doc/posix-functions/fflush.texi: Document possible crash in handling
46891         mode other than DEFAULT_HANDLING.
46892         * doc/posix-functions/fgetc.texi: Likewise.
46893         * doc/posix-functions/fputc.texi: Likewise.
46894         * doc/posix-functions/fread.texi: Likewise.
46895         * doc/posix-functions/fwrite.texi: Likewise.
46897 2011-09-25  Bruno Haible  <bruno@clisp.org>
46899         msvc-inval: Allow three invalid parameter handling modes.
46900         * lib/msvc-inval.h: Don't include <stdlib.h> here.
46901         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
46902         macros.
46903         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
46904         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
46905         SANE_LIBRARY_HANDLING as a no-op.
46906         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
46907         <stdlib.h>.
46908         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
46910 2011-09-25  Bruno Haible  <bruno@clisp.org>
46912         msvc-inval: Make handler multithread-safe.
46913         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
46914         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
46915         declarations.
46916         (gl_msvc_inval_current): New declaration.
46917         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
46918         Operate on the structure returned by gl_msvc_inval_current().
46919         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
46920         Remove varaiables.
46921         (tls_index, tls_initialized): New variables.
46922         (not_per_thread): New variable.
46923         (gl_msvc_inval_current): New function.
46924         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
46925         returned by gl_msvc_inval_current().
46927 2011-09-25  Bruno Haible  <bruno@clisp.org>
46929         msvc-inval: Install handler globally.
46930         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
46931         !_MSC_VER.
46932         (gl_msvc_invalid_parameter_handler): Remove declaration.
46933         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
46934         declarations.
46935         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
46936         Install the handler globally, don't uninstall it.
46937         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
46938         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
46939         currently valid, call RaiseException instead.
46940         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
46941         for !_MSC_VER.
46943 2011-09-25  Bruno Haible  <bruno@clisp.org>
46945         strerror_r-posix: Fix for MSVC 9.
46946         * lib/strerror_r.c (local_snprintf): New function.
46947         (snprintf): Define to local_snprintf, not to _snprintf.
46949 2011-09-25  Bruno Haible  <bruno@clisp.org>
46951         ftruncate: Support for MSVC 9.
46952         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
46953         (chsize_nothrow): New function.
46954         (chsize): Redefine as a macro.
46955         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
46956         * modules/ftruncate (Depends-on): Add msvc-inval.
46958 2011-09-25  Bruno Haible  <bruno@clisp.org>
46960         New module 'fstat'.
46961         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
46962         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
46963         * lib/fchdir.c (rpl_fstat): Remove function.
46964         * m4/fstat.m4: New file.
46965         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
46966         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
46967         declared.
46968         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
46969         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
46970         * modules/fstat: New file.
46971         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
46972         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
46973         is set.
46974         * doc/posix-functions/fstat.texi: Mention the new module and the
46975         problem on MSVC.
46976         * NEWS: Mention the change.
46977         * modules/acl (Depends-on): Add fstat.
46978         * modules/chdir-safer (Depends-on): Likewise.
46979         * modules/chown (Depends-on): Likewise.
46980         * modules/copy-file (Depends-on): Likewise.
46981         * modules/fchdir (Depends-on): Likewise.
46982         * modules/fdopendir (Depends-on): Likewise.
46983         * modules/fopen (Depends-on): Likewise.
46984         * modules/fts (Depends-on): Likewise.
46985         * modules/getcwd (Depends-on): Likewise.
46986         * modules/isapipe (Depends-on): Likewise.
46987         * modules/linkat (Depends-on): Likewise.
46988         * modules/lseek (Depends-on): Likewise.
46989         * modules/mkdir-p (Depends-on): Likewise.
46990         * modules/open (Depends-on): Likewise.
46991         * modules/openat (Depends-on): Likewise.
46992         * modules/read-file (Depends-on): Likewise.
46993         * modules/renameat (Depends-on): Likewise.
46994         * modules/utimens (Depends-on): Likewise.
46996 2011-09-25  Bruno Haible  <bruno@clisp.org>
46998         linkat: Fix compilation on MSVC 9.
46999         * lib/linkat.c: Don't include <stdint.h>.
47001 2011-09-25  Bruno Haible  <bruno@clisp.org>
47003         fclose: Support for MSVC 9.
47004         * lib/fclose.c: Include msvc-inval.h.
47005         (fclose_nothrow): New function.
47006         (rpl_fclose): Use it.
47007         * modules/fclose (Depends-on): Add msvc-inval.
47008         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
47010 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
47012         dup2: minor simplifications
47013         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
47014         that it's a performance win.
47015         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
47016         ! defined __CYGWIN__)" to "ifdef F_GETFL".
47018 2011-09-24  Jim Meyering  <meyering@redhat.com>
47020         test-futimens: avoid a warning from gcc -Wshadow
47021         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
47022         to avoid a shadowing warning.
47024 2011-09-24  Bruno Haible  <bruno@clisp.org>
47026         fdopen: Support for MSVC 9.
47027         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
47028         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
47029         * lib/fdopen.c: Include msvc-inval.h.
47030         (fdopen_nothrow): New function.
47031         (rpl_fdopen): Use it.
47032         * modules/fdopen (Depends-on): Add msvc-inval.
47033         * modules/fclose-tests (Depends-on): Add fdopen.
47034         * modules/fflush-tests (Depends-on): Likewise.
47035         * modules/fgetc-tests (Depends-on): Likewise.
47036         * modules/fputc-tests (Depends-on): Likewise.
47037         * modules/fread-tests (Depends-on): Likewise.
47038         * modules/freopen-tests (Depends-on): Likewise.
47039         * modules/fseeko-tests (Depends-on): Likewise.
47040         * modules/ftello-tests (Depends-on): Likewise.
47041         * modules/fwrite-tests  (Depends-on): Likewise.
47042         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
47044 2011-09-24  Bruno Haible  <bruno@clisp.org>
47046         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
47047         * modules/fgetc-tests (Depends-on): Add unistd.
47048         * modules/fputc-tests (Depends-on): Likewise.
47049         * modules/fread-tests (Depends-on): Likewise.
47050         * modules/fwrite-tests (Depends-on): Likewise.
47052 2011-09-24  Bruno Haible  <bruno@clisp.org>
47054         dup: Simplify autoconf test.
47055         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
47056         on gl_MSVC_INVAL's result.
47058 2011-09-24  Bruno Haible  <bruno@clisp.org>
47060         Tests for function fwrite().
47061         * modules/fwrite-tests: New file.
47062         * tests/test-fwrite.c: New file.
47063         * modules/stdio-tests (Depends-on): Add fwrite-tests.
47065         Tests for function fread().
47066         * modules/fread-tests: New file.
47067         * tests/test-fread.c: New file.
47068         * modules/stdio-tests (Depends-on): Add fread-tests.
47070         Activate fputc tests.
47071         * modules/stdio-tests (Depends-on): Add fputc-tests.
47073         Enhance fgetc, fputc tests.
47074         * tests/test-fgetc.c (main): Also test the stream's error indicator.
47075         * tests/test-fputc.c (main): Likewise.
47077 2011-09-24  Bruno Haible  <bruno@clisp.org>
47079         write: Support for MSVC 9.
47080         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
47081         is not 1.
47082         * lib/write.c (write_nothrow): New function.
47083         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
47084         not 1. Use write_nothrow.
47085         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
47086         invalid parameter handler.
47087         (gl_PREREQ_WRITE): New macro.
47088         * modules/write (Depends-on): Add msvc-inval.
47089         (configure.ac): Invoke gl_PREREQ_WRITE.
47090         * doc/posix-functions/write.texi: Mention the problem on MSVC.
47092 2011-09-24  Bruno Haible  <bruno@clisp.org>
47094         read: Fix last commit.
47095         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
47097 2011-09-24  Bruno Haible  <bruno@clisp.org>
47099         dup2: Fix last commit.
47100         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
47101         (rpl_dup2): Disable fcntl workaround on native Windows.
47103         sigprocmask: Make code safer.
47104         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
47105         section that changes macro definitions for this compilation unit.
47107 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
47109         dup2: clarify by coalescing Windows-specific material
47110         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
47111         "msvc-nothrow.h"' to the Windows-specific section, so that the
47112         Emacs source need not contain these include files.
47113         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
47114         Windows-specific fixes into this function rather than just the
47115         nothrow fix, as this shortens and clarifies the code.  Always
47116         define as a function, as that's a bit cleaner than having it be
47117         sometimes a function and sometimes a macro.
47118         (rpl_dup2): Move the Windows-specific stuff out of here and into
47119         ms_windows_dup2.  Don't protect the Haiku-related fix with
47120         "#if !defined __linux__", as the same code also works around
47121         a Linux kernel bug, and it doesn't add any system calls on any
47122         platform.  Add comment about FreeBSD 6.1.
47124         sigprocmask: move #include directive
47125         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
47126         Windows-specific section, so that the Emacs source need not
47127         contain msvc-inval.h.
47129 2011-09-23  Bruno Haible  <bruno@clisp.org>
47131         read: Support for MSVC 9.
47132         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
47133         is not 1.
47134         * lib/read.c (read_nothrow): New function.
47135         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
47136         read_nothrow.
47137         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
47138         invalid parameter handler.
47139         (gl_PREREQ_READ): New macro.
47140         * modules/read (Depends-on): Add msvc-inval.
47141         (configure.ac): Invoke gl_PREREQ_READ.
47142         * doc/posix-functions/read.texi: Mention the problem on MSVC.
47144 2011-09-23  Bruno Haible  <bruno@clisp.org>
47146         close: Support for MSVC 9.
47147         * lib/close.c: Include <errno.h>, msvc-inval.h.
47148         (close_nothrow): New function.
47149         (rpl_close): Use it.
47150         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
47151         invalid parameter handler.
47152         * modules/close (Depends-on): Add msvc-inval.
47153         * modules/dup2-tests (Depends-on): Add close.
47154         * modules/dup3-tests (Depends-on): Likewise.
47155         * modules/fcntl-tests (Depends-on): Likewise.
47156         * modules/spawn-pipe-tests (Depends-on): Likewise.
47157         * modules/unistd-safer-tests (Depends-on): Likewise.
47158         * doc/posix-functions/close.texi: Mention the problem on MSVC.
47160 2011-09-23  Bruno Haible  <bruno@clisp.org>
47162         New module 'dup'.
47163         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
47164         Allow replacement.
47165         * lib/dup.c: New file.
47166         * lib/fchdir.c (rpl_dup): Remove function.
47167         * m4/dup.m4: New file.
47168         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
47169         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
47170         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
47171         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
47172         * modules/dup: New file.
47173         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
47174         'dup' module is in use.
47175         * modules/fdopendir (Depends-on): Add dup.
47176         * modules/fdutimensat-tests (Depends-on): Likewise.
47177         * modules/fts (Depends-on): Likewise.
47178         * modules/futimens-tests (Depends-on): Likewise.
47179         * modules/posix_spawnp-tests (Depends-on): Likewise.
47180         * modules/unistd-safer-tests (Depends-on): Likewise.
47181         * modules/utimens-tests (Depends-on): Likewise.
47182         * doc/posix-functions/dup.texi: Mention the new module and the problem
47183         on MSVC.
47185 2011-09-23  Bruno Haible  <bruno@clisp.org>
47187         getdtablesize: Support for MSVC 9.
47188         * lib/getdtablesize.c: Include msvc-inval.h.
47189         (_setmaxstdio_nothrow): New function.
47190         (_setmaxstdio): Redefine it.
47191         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
47192         * modules/getdtablesize (Depends-on): Add msvc-inval.
47193         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
47195 2011-09-23  Bruno Haible  <bruno@clisp.org>
47197         signal-h: Rename from signal.
47198         * modules/signal-h: Renamed from modules/signal.
47199         * modules/pthread_sigmask (Depends-on): Update.
47200         * modules/raise (Depends-on): Likewise.
47201         * modules/sigaction (Depends-on): Likewise.
47202         * modules/sigpipe (Depends-on): Likewise.
47203         * modules/sigprocmask (Depends-on): Likewise.
47204         * modules/sys_select (Depends-on): Likewise.
47205         * modules/signal-h-tests: Renamed from modules/signal-tests.
47206         (Files, Depends-on, Makefile.am): Update.
47207         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
47208         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
47209         (Files, Makefile.am): Update.
47210         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
47211         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
47212         * modules/signal: New placeholder file.
47213         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
47214         * doc/posix-headers/signal.texi: Update.
47215         * NEWS: Mention the change.
47217 2011-09-23  Bruno Haible  <bruno@clisp.org>
47219         sigprocmask: Avoid crashes through signal() on MSVC 9.
47220         * lib/sigprocmask.c: Include msvc-inval.h.
47221         (signal_nothrow): New function.
47222         (signal): Redefine it.
47223         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
47224         * modules/sigprocmask (Depends-on): Add msvc-inval.
47225         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
47227 2011-09-23  Bruno Haible  <bruno@clisp.org>
47229         Tests for module 'raise'.
47230         * modules/raise-tests: New file.
47231         * tests/test-raise.c: New file.
47233         raise: Support for MSVC.
47234         * lib/signal.in.h (raise): New declaration.
47235         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
47236         for native Windows platforms.
47237         * m4/raise.m4: New file.
47238         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
47239         HAVE_RAISE, REPLACE_RAISE.
47240         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
47241         REPLACE_RAISE.
47242         * modules/raise (Status, Notice): Remove fields.
47243         (Files): Add m4/raise.m4.
47244         (Depends-on): Add signal, msvc-inval.
47245         (configure.ac): Use the common idioms.
47246         (Maintainer): Add me.
47247         * tests/test-signal-c++.cc: Check the signature of raise.
47248         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
47250 2011-09-23  Bruno Haible  <bruno@clisp.org>
47252         pipe2: Fix compilation on pre-C99 compilers.
47253         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
47255 2011-09-23  Bruno Haible  <bruno@clisp.org>
47257         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
47258         * lib/msvc-nothrow.h: New file.
47259         * lib/msvc-nothrow.c: New file.
47260         * m4/msvc-nothrow.m4: New file.
47261         * modules/msvc-nothrow: New file.
47262         * lib/dup2.c: Include msvc-nothrow.h.
47263         (rpl_dup2): No need to protect _get_osfhandle call here.
47264         * lib/accept4.c: Include msvc-nothrow.h.
47265         * lib/error.c: Likewise.
47266         * lib/fcntl.c: Likewise.
47267         * lib/lseek.c: Likewise.
47268         * lib/nonblocking.c: Likewise.
47269         * lib/poll.c: Likewise.
47270         * lib/read.c: Likewise.
47271         * lib/select.c: Likewise.
47272         * lib/sockets.h: Likewise.
47273         * lib/sockets.c: Likewise.
47274         * lib/stdio-read.c: Likewise.
47275         * lib/stdio-write.c: Likewise.
47276         * lib/write.c: Likewise.
47277         * lib/w32sock.h: Likewise.
47278         * lib/w32spawn.h: Likewise.
47279         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
47280         * lib/fsync.c: Likewise.
47281         * lib/isapipe.c: Likewise.
47282         * modules/dup2 (Depends-on): Add msvc-nothrow.
47283         * modules/accept4 (Depends-on): Likewise.
47284         * modules/error (Depends-on): Likewise.
47285         * modules/fcntl (Depends-on): Likewise.
47286         * modules/lseek (Depends-on): Likewise.
47287         * modules/nonblocking (Depends-on): Likewise.
47288         * modules/poll (Depends-on): Likewise.
47289         * modules/read (Depends-on): Likewise.
47290         * modules/select (Depends-on): Likewise.
47291         * modules/sockets (Depends-on): Likewise.
47292         * modules/sigpipe (Depends-on): Likewise.
47293         * modules/write (Depends-on): Likewise.
47294         * modules/accept (Depends-on): Likewise.
47295         * modules/bind (Depends-on): Likewise.
47296         * modules/connect (Depends-on): Likewise.
47297         * modules/gethostname (Depends-on): Likewise.
47298         * modules/getpeername (Depends-on): Likewise.
47299         * modules/getsockname (Depends-on): Likewise.
47300         * modules/getsockopt (Depends-on): Likewise.
47301         * modules/ioctl (Depends-on): Likewise.
47302         * modules/listen (Depends-on): Likewise.
47303         * modules/recv (Depends-on): Likewise.
47304         * modules/recvfrom (Depends-on): Likewise.
47305         * modules/send (Depends-on): Likewise.
47306         * modules/sendto (Depends-on): Likewise.
47307         * modules/setsockopt (Depends-on): Likewise.
47308         * modules/shutdown (Depends-on): Likewise.
47309         * modules/socket (Depends-on): Likewise.
47310         * modules/execute (Depends-on): Likewise.
47311         * modules/spawn-pipe (Depends-on): Likewise.
47312         * modules/flock (Depends-on): Likewise.
47313         * modules/fsync (Depends-on): Likewise.
47314         * modules/isapipe (Depends-on): Likewise.
47315         * tests/test-cloexec.c: Include msvc-nothrow.h.
47316         * tests/test-dup-safer.c: Likewise.
47317         * tests/test-dup2.c: Likewise.
47318         * tests/test-dup3.c: Likewise.
47319         * tests/test-fcntl.c: Likewise.
47320         * tests/test-pipe.c: Likewise.
47321         * tests/test-pipe2.c: Likewise.
47322         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
47323         * modules/unistd-safer-tests (Depends-on): Likewise.
47324         * modules/dup2-tests (Depends-on): Likewise.
47325         * modules/dup3-tests (Depends-on): Likewise.
47326         * modules/fcntl-tests (Depends-on): Likewise.
47327         * modules/pipe-posix-tests (Depends-on): Likewise.
47328         * modules/pipe2-tests (Depends-on): Likewise.
47330 2011-09-23  Bruno Haible  <bruno@clisp.org>
47332         dup2: Make code more maintainable.
47333         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
47334         (rpl_dup2): Use it.
47335         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
47336         * modules/dup2 (configure.ac): Invoke it.
47337         Reported by Paul Eggert.
47339 2011-09-23  Bruno Haible  <bruno@clisp.org>
47341         msvc-inval: Fix compilation error.
47342         * lib/msvc-inval.h: Include <excpt.h>.
47344 2011-09-23  Bruno Haible  <bruno@clisp.org>
47346         mkdir: Tweak for MSVC 9.
47347         * lib/sys_stat.in.h: Update comments.
47348         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
47350         Tests for module 'chdir'.
47351         * modules/chdir-tests: New file.
47352         * tests/test-chdir.c: New file.
47354         New module 'chdir'.
47355         * modules/chdir: New file.
47356         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
47357         (chdir): New declaration.
47358         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
47359         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
47360         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
47361         * tests/test-unistd-c++.cc: Check signature of chdir.
47362         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
47363         * modules/chdir-long (Depends-on): Add chdir.
47364         * modules/fchdir (Depends-on): Likewise.
47365         * modules/rename (Depends-on): Likewise.
47366         * modules/savewd (Depends-on): Likewise.
47368         rmdir: Support for mingw, MSVC 9.
47369         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
47370         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
47372         getcwd: Tweak for MSVC 9.
47373         * lib/unistd.in.h: Update comments.
47374         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
47376 2011-09-22  Bruno Haible  <bruno@clisp.org>
47378         strerror_r-posix: Avoid a link error on MSVC.
47379         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
47380         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
47382 2011-09-22  Bruno Haible  <bruno@clisp.org>
47384         select: Avoid link errors on MSVC.
47385         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
47386         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
47387         * modules/pselect (Link): Likewise.
47388         * NEWS: Mention the change.
47389         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
47390         test-select-stdin against $(LIB_SELECT).
47391         * modules/pselect-tests (Makefile.am): Link test-pselect against
47392         $(LIB_SELECT).
47394 2011-09-22  Bruno Haible  <bruno@clisp.org>
47396         select: Avoid compilation error on MSVC.
47397         * lib/select.c: Don't include <stdbool.h>.
47399 2011-09-21  Bruno Haible  <bruno@clisp.org>
47401         Consolidate all uses of PATH_MAX in *.m4 files.
47402         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
47403         macros.
47404         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
47405         and gl_PATHMAX_SNIPPET.
47406         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
47407         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47408         * modules/chdir-long (Files): Add m4/pathmax.m4.
47409         * modules/getcwd (Files): Likewise.
47411 2011-09-21  Bruno Haible  <bruno@clisp.org>
47413         ftruncate: Un-deprecate, concentrate on Win32 support.
47414         * modules/ftruncate (Status, Notice): Remove sections.
47415         (Depends-on): Add largefile.
47416         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
47417         non-mingw platforms.
47418         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
47419         include <io.h>.
47420         * modules/perror-tests (Depends-on): Add ftruncate.
47421         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
47422         'ftruncate' module.
47424 2011-09-21  Bruno Haible  <bruno@clisp.org>
47426         Add dependencies to new dirent related modules.
47427         * modules/opendir (Depends-on): Add closedir.
47428         * modules/getcwd (Depends-on): Add opendir, closedir.
47429         * modules/dirent-safer-tests (Depends-on): Likewise.
47430         * modules/fdopendir-tests (Depends-on): Likewise.
47431         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
47432         * modules/renameat-tests (Depends-on): Likewise.
47434 2011-09-21  Bruno Haible  <bruno@clisp.org>
47436         opendir: Avoid compilation error on mingw.
47437         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
47438         * modules/opendir (Depends-on): Add unistd.
47440 2011-09-21  Bruno Haible  <bruno@clisp.org>
47442         ftruncate tests: Avoid a test failure on mingw.
47443         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
47445 2011-09-21  Bruno Haible  <bruno@clisp.org>
47447         select tests: Avoid test failures on OSF/1 5.1 and mingw.
47448         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
47449         native Windows.
47451 2011-09-21  Bruno Haible  <bruno@clisp.org>
47453         New module 'fdopen'.
47454         * lib/stdio.in.h (fdopen): New declaration.
47455         * lib/fdopen.c: New file.
47456         * m4/fdopen.m4: New file.
47457         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
47458         REPLACE_FDOPEN.
47459         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
47460         REPLACE_FDOPEN.
47461         * modules/fdopen: New file.
47462         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
47463         * tests/test-stdio-c++.cc: Check signature of fdopen.
47464         * doc/posix-functions/fdopen.texi: Mention the new module.
47466 2011-09-21  Bruno Haible  <bruno@clisp.org>
47468         unlockpt tests: Avoid test failure on NetBSD 5.1.
47469         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
47470         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
47472 2011-09-21  Bruno Haible  <bruno@clisp.org>
47474         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
47475         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
47476         * tests/test-getlogin_r.c (main): Likewise.
47478 2011-09-20  Bruno Haible  <bruno@clisp.org>
47480         time tests: Don't require pid_t.
47481         * doc/posix-headers/time.texi: Revert last change.
47482         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
47483         * tests/test-time.c: Comment out the check for pid_t.
47485 2011-09-20  Bruno Haible  <bruno@clisp.org>
47487         fsync tests: Avoid a test failure on mingw.
47488         * tests/test-fsync.c (main): Allow a failure with EIO.
47490 2011-09-20  Bruno Haible  <bruno@clisp.org>
47492         euidaccess: Update comments.
47493         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
47495 2011-09-20  Bruno Haible  <bruno@clisp.org>
47497         Ensure EBADF returns for socket functions on mingw.
47498         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
47499         descriptor is invalid.
47500         * lib/bind.c (rpl_bind): Likewise.
47501         * lib/connect.c (rpl_connect): Likewise.
47502         * lib/getpeername.c (rpl_getpeername): Likewise.
47503         * lib/getsockname.c (rpl_getsockname): Likewise.
47504         * lib/getsockopt.c (rpl_getsockopt): Likewise.
47505         * lib/listen.c (rpl_listen): Likewise.
47506         * lib/recv.c (rpl_recv): Likewise.
47507         * lib/recvfrom.c (rpl_recvfrom): Likewise.
47508         * lib/send.c (rpl_send): Likewise.
47509         * lib/sendto.c (rpl_sendto): Likewise.
47510         * lib/setsockopt.c (rpl_setsockopt): Likewise.
47511         * lib/shutdown.c (rpl_shutdown): Likewise.
47513 2011-09-20  Bruno Haible  <bruno@clisp.org>
47515         select tests: EBADF tests.
47516         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
47517         test_bad_fd): New functions.
47518         (test_function): Invoke also test_bad_fd.
47520 2011-09-20  Bruno Haible  <bruno@clisp.org>
47522         Tests for module 'posix_spawn_file_actions_addopen.
47523         * modules/posix_spawn_file_actions_addopen-tests: New file.
47524         * tests/test-posix_spawn_file_actions_addopen.c: New file.
47526         Tests for module 'posix_spawn_file_actions_adddup2'.
47527         * modules/posix_spawn_file_actions_adddup2-tests: New file.
47528         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
47530         Tests for module 'posix_spawn_file_actions_addclose'.
47531         * modules/posix_spawn_file_actions_addclose-tests: New file.
47532         * tests/test-posix_spawn_file_actions_addclose.c: New file.
47534 2011-09-20  Bruno Haible  <bruno@clisp.org>
47536         Tests for module 'unlockpt'.
47537         * modules/unlockpt-tests: New file.
47538         * tests/test-unlockpt.c: New file.
47539         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
47541         Tests for module 'grantpt'.
47542         * modules/grantpt-tests: New file.
47543         * tests/test-grantpt.c: New file.
47544         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
47546 2011-09-20  Bruno Haible  <bruno@clisp.org>
47548         freopen tests: EBADF tests.
47549         * tests/test-freopen.c: Include errno.h, unistd.h.
47550         (main): Add tests for EBADF, commented out for the moment.
47552         fclose tests: EBADF tests.
47553         * tests/test-fclose.c (main): Add tests for EBADF.
47555         fflush tests: EBADF tests.
47556         * tests/test-fflush.c: Include errno.h, macros.h.
47557         (main): Add tests for EBADF.
47559         ftello tests: EBADF tests.
47560         * tests/test-ftello4.sh: New file.
47561         * tests/test-ftello4.c: New file.
47562         * modules/ftello-tests (Files): Add them.
47563         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
47565         fseeko tests: EBADF tests.
47566         * tests/test-fseeko4.sh: New file.
47567         * tests/test-fseeko4.c: New file.
47568         * modules/fseeko-tests (Files): Add them.
47569         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
47571         Tests for function fputc().
47572         * modules/fputc-tests: New file.
47573         * tests/test-fputc.c: New file.
47574         * modules/stdio-tests (Depends-on): Add fputc-tests.
47576         Tests for function fgetc().
47577         * modules/fgetc-tests: New file.
47578         * tests/test-fgetc.c: New file.
47579         * modules/stdio-tests (Depends-on): Add fgetc-tests.
47581         Tests for function fdopen().
47582         * modules/fdopen-tests: New file.
47583         * tests/test-fdopen.c: New file.
47584         * modules/stdio-tests (Depends-on): Add fdopen-tests.
47586         Tests for module 'vdprintf'.
47587         * modules/vdprintf-tests: New file.
47588         * tests/test-vdprintf.c: New file.
47590         Tests for module 'dprintf'.
47591         * modules/dprintf-tests: New file.
47592         * tests/test-dprintf.c: New file.
47594 2011-09-20  Bruno Haible  <bruno@clisp.org>
47596         Tests for module 'ioctl'.
47597         * modules/ioctl-tests: New file.
47598         * tests/test-ioctl.c: New file.
47600 2011-09-20  Bruno Haible  <bruno@clisp.org>
47602         fcntl tests: EBADF tests.
47603         * tests/test-fcntl.c (main): Add more tests for EBADF.
47605 2011-09-20  Bruno Haible  <bruno@clisp.org>
47607         utimensat tests: EBADF tests.
47608         * tests/test-utimensat.c (main): Add tests for EBADF.
47610         renameat tests: EBADF tests.
47611         * tests/test-renameat.c (main): Add tests for EBADF.
47613         mkfifoat tests: EBADF tests.
47614         * tests/test-mkfifoat.c (main): Add tests for EBADF.
47616         readlinkat tests: EBADF tests.
47617         * tests/test-readlinkat.c (main): Add tests for EBADF.
47619         symlinkat tests: EBADF tests.
47620         * tests/test-symlinkat.c (main): Add tests for EBADF.
47622         linkat tests: EBADF tests.
47623         * tests/test-linkat.c (main): Add tests for EBADF.
47625         Tests for module 'faccessat'.
47626         * modules/faccessat-tests: New file.
47627         * tests/test-faccessat.c: New file.
47629         fdopendir tests: EBADF tests.
47630         * tests/test-fdopendir.c (main): Add more tests for EBADF.
47632         openat tests: EBADF tests.
47633         * tests/test-fchownat.c (main): Add tests for EBADF.
47634         * tests/test-fstatat.c (main): Likewise.
47635         * tests/test-mkdirat.c (main): Likewise.
47636         * tests/test-openat.c (main): Likewise.
47637         * tests/test-unlinkat.c (main): Likewise.
47638         * tests/test-fchmodat.c: New file.
47639         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
47640         (Makefile.am): Also run 'test-fchmodat'.
47642 2011-09-20  Bruno Haible  <bruno@clisp.org>
47644         utimens, futimens, fdutimensat tests: EBADF tests.
47645         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
47647         Tests for function fstat().
47648         * modules/fstat-tests: New file.
47649         * tests/test-fstat.c: New file.
47650         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
47652 2011-09-20  Bruno Haible  <bruno@clisp.org>
47654         test-ttyname_r tests: EBADF tests.
47655         * tests/test-ttyname_r.c (main): Add tests for EBADF.
47657         Tests for module 'isatty'.
47658         * modules/isatty-tests: New file.
47659         * tests/test-isatty.c: New file.
47661         Tests for module 'write'.
47662         * modules/write-tests: New file.
47663         * tests/test-write.c: New file.
47665         Tests for module 'read'.
47666         * modules/read-tests: New file.
47667         * tests/test-read.c: New file.
47669         pwrite tests: EBADF tests.
47670         * tests/test-pwrite.c (main): Add tests for EBADF.
47672         pread tests: EBADF tests.
47673         * tests/test-pread.c (main): Add tests for EBADF.
47675         lseek tests: EBADF tests.
47676         * tests/test-lseek.c (main): Add more tests for EBADF.
47678         Tests for module 'ftruncate'.
47679         * modules/ftruncate-tests: New file.
47680         * tests/test-ftruncate.sh: New file.
47681         * tests/test-ftruncate.c: New file.
47683         fsync tests: EBADF tests.
47684         * tests/test-fsync.c (main): Add more tests for EBADF.
47686         fdatasync tests: EBADF tests.
47687         * tests/test-fdatasync.c (main): Add more tests for EBADF.
47689         Tests for module 'fchown'.
47690         * modules/fchown-tests: New file.
47691         * tests/test-fchown.c: New file.
47693         Tests for module 'fchmod'.
47694         * modules/fchmod-tests: New file.
47695         * tests/test-fchmod.c: New file.
47697         fchdir tests: EBADF tests.
47698         * tests/test-fchdir.c (main): Add more tests for EBADF.
47700         dup2 tests: EBADF tests.
47701         * tests/test-dup2.c (main): Add more tests for EBADF.
47703         Tests for module 'dup'.
47704         * modules/dup-tests: New file.
47705         * tests/test-dup.c: New file.
47707         Tests for module 'close'.
47708         * modules/close-tests: New file.
47709         * tests/test-close.c: New file.
47711 2011-09-20  Bruno Haible  <bruno@clisp.org>
47713         Tests for module 'shutdown'.
47714         * modules/shutdown-tests: New file.
47715         * tests/test-shutdown.c: New file.
47717         Tests for module 'setsockopt'.
47718         * modules/setsockopt-tests: New file.
47719         * tests/test-setsockopt.c: New file.
47721         Tests for module 'sendto'.
47722         * modules/sendto-tests: New file.
47723         * tests/test-sendto.c: New file.
47725         Tests for module 'send'.
47726         * modules/send-tests: New file.
47727         * tests/test-send.c: New file.
47729         Tests for module 'recvfrom'.
47730         * modules/recvfrom-tests: New file.
47731         * tests/test-recvfrom.c: New file.
47733         Tests for module 'recv'.
47734         * modules/recv-tests: New file.
47735         * tests/test-recv.c: New file.
47737         Tests for module 'listen'.
47738         * modules/listen-tests: New file.
47739         * tests/test-listen.c: New file.
47741         Tests for module 'getsockopt'.
47742         * modules/getsockopt-tests: New file.
47743         * tests/test-getsockopt.c: New file.
47745         Tests for module 'getsockname'.
47746         * modules/getsockname-tests: New file.
47747         * tests/test-getsockname.c: New file.
47749         Tests for module 'getpeername'.
47750         * modules/getpeername-tests: New file.
47751         * tests/test-getpeername.c: New file.
47753         Tests for module 'connect'.
47754         * modules/connect-tests: New file.
47755         * tests/test-connect.c: New file.
47757         Tests for module 'bind'.
47758         * modules/bind-tests: New file.
47759         * tests/test-bind.c: New file.
47761         accept4 tests: Fix for native Windows.
47762         * tests/test-accept4.c: Include sockets.h.
47763         (main): Invoke gl_sockets_startup.
47764         * modules/accept4-tests (Depends-on): Add sockets.
47766         accept tests: Fix for native Windows.
47767         * tests/test-accept.c: Include sockets.h.
47768         (main): Invoke gl_sockets_startup.
47769         * modules/accept-tests (Depends-on): Add sockets.
47771 2011-09-19  Bruno Haible  <bruno@clisp.org>
47773         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
47774         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
47775         do...while(0).
47776         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
47777         Suggested by Paul Eggert.
47779 2011-09-19  Bruno Haible  <bruno@clisp.org>
47781         sched: Ensure pid_t is defined.
47782         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
47783         not define pid_t.
47784         * lib/sched.in.h: Include <sys/types.h>.
47785         * doc/posix-headers/sched.texi: Mention the pid_t problem.
47786         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47788 2011-09-19  Bruno Haible  <bruno@clisp.org>
47790         msvc-inval: Ensure the entire expansion is a single statement.
47791         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
47792         of braces.
47794 2011-09-19  Jim Meyering  <meyering@redhat.com>
47796         tests: use printf, not echo in init.sh's warn_ function
47797         * tests/init.sh (warn_): Use printf, not echo.  The latter would
47798         misbehave when given strings containing a backslash or starting
47799         with e.g., -n.  James Youngman suggested setting IFS.
47801 2011-09-19  Eric Blake  <eblake@redhat.com>
47803         futimens: enhance test
47804         * tests/test-futimens.h (test_futimens): Also check for EBADF on
47805         closed non-negative fd.
47807         date: accept 'hence' as opposite of 'ago'
47808         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
47809         * tests/test-parse-datetime.c (main): Enhance test.
47810         Suggested by Jesse Wilson.
47812 2011-09-19  Jim Meyering  <meyering@redhat.com>
47814         getcwd: don't fail in a deep directory on a system without openat
47815         Before this change, getcwd would fail when called from a directory
47816         of depth PATH_MAX / 3 or greater.  That was due to the fact that
47817         the non-openat implementation used "..", "../..", "../../..", etc.
47818         to access ancestor directories.  With too many, that string would
47819         be longer than PATH_MAX.
47820         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
47821         using gnulib's openat replacement.
47822         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
47823         we're using the replacement function.
47825 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
47827         maint.mk: avoid warnings from perl about missing files
47828         * top/maint.mk (def_sym_regex): Ignore files listed in
47829         $(gl_other_headers_) that do not exist, say because a project
47830         does not use a corresponding module.
47832 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
47834         stat: use pathmax.h only if needed
47835         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
47836         This is better for Emacs, which does not have a mingw port and
47837         therefore can avoid the pathmax module.
47839         utimens: remove dependency on dup2
47840         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
47841         to work around the Linux kernel bug.
47842         * modules/utimens (Depends-on): Remove dup2.
47844 2011-09-18  Bruno Haible  <bruno@clisp.org>
47846         inet_ntop, inet_pton: Look for it also in libresolv.
47847         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
47848         libnsl, search for it in libresolv.
47849         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
47850         Needed on Solaris 7.
47852 2011-09-18  Bruno Haible  <bruno@clisp.org>
47854         accept, accept4 tests: Avoid link error on Solaris.
47855         * modules/accept-tests (Makefile.am): Link test-accept against
47856         $(LIBSOCKET).
47857         * modules/accept4-tests (Makefile.am): Link test-accept4 against
47858         $(LIBSOCKET).
47860         accept4: Avoid link error on Solaris.
47861         * modules/accept4 (Link): New section.
47863         socket functions: Avoid link errors on Solaris.
47864         * modules/accept (Depends-on): Add socketlib.
47865         (Link): New section.
47866         * modules/bind (Depends-on): Add socketlib.
47867         (Link): New section.
47868         * modules/connect (Depends-on): Add socketlib.
47869         (Link): New section.
47870         * modules/getpeername (Depends-on): Add socketlib.
47871         (Link): New section.
47872         * modules/getsockname (Depends-on): Add socketlib.
47873         (Link): New section.
47874         * modules/getsockopt (Depends-on): Add socketlib.
47875         (Link): New section.
47876         * modules/listen (Depends-on): Add socketlib.
47877         (Link): New section.
47878         * modules/recv (Depends-on): Add socketlib.
47879         (Link): New section.
47880         * modules/recvfrom (Depends-on): Add socketlib.
47881         (Link): New section.
47882         * modules/send (Depends-on): Add socketlib.
47883         (Link): New section.
47884         * modules/sendto (Depends-on): Add socketlib.
47885         (Link): New section.
47886         * modules/setsockopt (Depends-on): Add socketlib.
47887         (Link): New section.
47888         * modules/shutdown (Depends-on): Add socketlib.
47889         (Link): New section.
47890         * modules/socket (Depends-on): Add socketlib.
47891         (Link): New section.
47893 2011-09-18  Bruno Haible  <bruno@clisp.org>
47895         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
47896         * tests/test-ptsname.c (main): Terminate the test if it takes longer
47897         than 5 seconds.
47898         * modules/ptsname-tests (configure.ac): Test for alarm.
47900 2011-09-18  Bruno Haible  <bruno@clisp.org>
47902         posix_spawn_file_actions_add*: Fix module dependencies.
47903         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
47904         posix_spawn_file_actions_init.
47905         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
47906         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
47908 2011-09-18  Bruno Haible  <bruno@clisp.org>
47910         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
47911         * tests/test-rename.h (test_rename): Allow error code EEXIST.
47912         * tests/test-renameat.c (main): Likewise.
47914 2011-09-18  Bruno Haible  <bruno@clisp.org>
47916         Tests for module 'accept4'.
47917         * modules/accept4-tests: New file.
47918         * tests/test-accept4.c: New file.
47920 2011-09-18  Bruno Haible  <bruno@clisp.org>
47922         Tests for module 'accept'.
47923         * modules/accept-tests: New file.
47924         * tests/test-accept.c: New file.
47926 2011-09-18  Bruno Haible  <bruno@clisp.org>
47928         dup2: Support for MSVC.
47929         * lib/dup2.c: Include msvc-inval.h.
47930         (rpl_dup2): Handle invalid parameter notifications during dup2 and
47931         _get_osfhandle calls.
47932         * modules/dup2 (Depends-on): Add msvc-inval.
47933         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
47935         New module 'msvc-inval'.
47936         * lib/msvc-inval.h: New file.
47937         * lib/msvc-inval.c: New file.
47938         * m4/msvc-inval.m4: New file.
47939         * modules/msvc-inval: New file.
47941 2011-09-17  Bruno Haible  <bruno@clisp.org>
47943         Tests for module 'pclose'.
47944         * modules/pclose-tests: New file.
47946         New module 'pclose'.
47947         * lib/stdio.in.h (pclose): New declaration.
47948         * lib/pclose.c: New file.
47949         * m4/pclose.m4: New file.
47950         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
47951         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
47952         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
47953         * modules/pclose: New file.
47954         * modules/popen-tests (Depends-on): Add pclose.
47955         * modules/popen-safer-tests (Depends-on): Likewise.
47956         * doc/posix-functions/pclose.texi: Mention the new module.
47958 2011-09-17  Bruno Haible  <bruno@clisp.org>
47960         popen: Support for MSVC.
47961         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
47962         * lib/popen.c (popen): Provide alternate definition for native Windows.
47963         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
47964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
47965         * modules/popen (Depends-on, configure.ac): Update condition.
47966         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
47967         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
47968         fixed.
47970 2011-09-17  Bruno Haible  <bruno@clisp.org>
47972         isnanl, isnand, isnanf: Work around MSVC bug.
47973         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
47975 2011-09-17  Bruno Haible  <bruno@clisp.org>
47977         sys_socket tests: Fix recent mistake.
47978         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
47980 2011-09-17  Bruno Haible  <bruno@clisp.org>
47982         putenv: Support for MSVC.
47983         * modules/putenv (Depends-on): Add environ.
47984         * lib/putenv.c (environ): Disable declaration.
47985         * lib/unistd.in.h: Update comment.
47987 2011-09-17  Bruno Haible  <bruno@clisp.org>
47989         math: Avoid macro redefinition warnings on MSVC.
47990         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
47991         Undefine before redefining.
47993 2011-09-17  Bruno Haible  <bruno@clisp.org>
47995         doc: Mention functions which are declared as macros.
47996         * doc/posix-functions/*[fl].texi: Mention that some functions are
47997         defined as macros with arguments only.
47999 2011-09-17  Bruno Haible  <bruno@clisp.org>
48001         Add dependencies to new dirent related modules.
48002         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
48003         * modules/fts (Depends-on): Likewise.
48004         * modules/glob (Depends-on): Likewise.
48005         * modules/savedir (Depends-on): Likewise.
48006         * modules/scandir (Depends-on): Likewise.
48007         * modules/dirent-safer (Depends-on): Add opendir, closedir.
48008         * modules/fdopendir (Depends-on): Add opendir.
48010 2011-09-17  Bruno Haible  <bruno@clisp.org>
48012         inet_pton: Support for MSVC on Windows Vista or newer.
48013         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
48014         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
48015         HAVE_DECL_INET_PTON is defined.
48016         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
48017         On platforms with <winsock2.h>, test whether inet_pton is declared in
48018         <ws2tcpip.h>. If so, arrange to replace it.
48019         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
48020         REPLACE_INET_PTON.
48021         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
48022         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
48023         (Depends-on, configure.ac): Update condition.
48024         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
48026 2011-09-17  Bruno Haible  <bruno@clisp.org>
48028         inet_ntop: Support for MSVC on Windows Vista or newer.
48029         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
48030         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
48031         HAVE_DECL_INET_NTOP is defined.
48032         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
48033         On platforms with <winsock2.h>, test whether inet_ntop is declared in
48034         <ws2tcpip.h>. If so, arrange to replace it.
48035         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
48036         REPLACE_INET_NTOP.
48037         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
48038         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
48039         (Depends-on, configure.ac): Update condition.
48040         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
48042 2011-09-16  Eric Blake  <eblake@redhat.com>
48044         test-fsync: yet another enhancement
48045         * tests/test-fsync.c (main): Also test behavior on read-only text
48046         file.
48048 2011-09-16  Bruno Haible  <bruno@clisp.org>
48050         Enhance fsync, fdatasync tests.
48051         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
48052         * tests/test-fdatasync.c (main): Likewise.
48054 2011-09-16  Bruno Haible  <bruno@clisp.org>
48056         Support for MSVC compiler: Ensure mode_t gets defined.
48057         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
48058         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
48059         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
48060         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
48061         * tests/test-fcntl-h.c: Check that mode_t is defined.
48062         * tests/test-sys_stat.c: Likewise.
48063         * tests/test-sys_types.c: Likewise.
48064         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
48065         * doc/posix-headers/sys_stat.texi: Likewise.
48066         * doc/posix-headers/sys_types.texi: Likewise.
48068 2011-09-16  Bruno Haible  <bruno@clisp.org>
48070         sys_stat: Support for MSVC.
48071         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
48072         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
48073         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
48074         MSVC.
48076 2011-09-16  Bruno Haible  <bruno@clisp.org>
48078         Support for MSVC compiler: Ensure off_t gets defined.
48079         * lib/unistd.in.h: Include <sys/types.h>.
48080         * tests/test-fcntl-h.c: Check that off_t is defined.
48081         * tests/test-sys_stat.c: Likewise.
48082         * tests/test-sys_types.c: Likewise.
48084 2011-09-16  Eric Blake  <eblake@redhat.com>
48086         fdatasync: port to Solaris
48087         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
48088         * modules/fdatasync (Link): Document it.
48089         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
48091         fdatasync: port to MacOS X 10.7
48092         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
48093         declared.
48094         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
48095         * modules/unistd (Makefile.am): Substitute it.
48096         * lib/unistd.in.h (fdatasync): Declare on MacOS.
48097         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
48099         fdatasync: minor improvements
48100         * modules/fdatasync (Depends-on): Add condition for fsync.
48101         * lib/fdatasync.c (fdatasync): Add comment.
48102         * tests/test-unistd-c++.cc: Test fdatasync.
48104         unistd: update refs to newer POSIX
48105         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
48106         Suggested by Bruno Haible.
48108         fdatasync: new module
48109         * modules/fsync (Description): Document difference to fdatasync.
48110         * modules/fdatasync: New module.
48111         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
48112         * lib/fdatasync.c (fdatasync): Likewise.
48113         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
48114         defaults.
48115         * modules/unistd (Makefile.am): Set witnesses.
48116         * lib/unistd.in.h (fdatasync): Declare.
48117         * MODULES.html.sh: Document it.
48118         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
48119         * modules/fdatasync-tests: New test.
48120         * tests/test-fdatasync.c: Likewise.
48122 2011-09-16  Eric Blake  <eblake@redhat.com>
48124         test-fsync: enhance tests
48125         * modules/fsync-tests (Depends-on): Add errno, for mingw.
48126         * tests/test-fsync.c (main): Enhance test.
48128 2011-09-15  Bruno Haible  <bruno@clisp.org>
48130         Support for MSVC compiler: Ensure ssize_t gets defined.
48131         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
48132         * doc/posix-headers/stdio.texi: Likewise.
48133         * modules/stdio (Depends-on): Add ssize_t.
48134         * modules/sys_socket (Depends-on): Likewise.
48135         * modules/sys_types (Depends-on): Likewise.
48136         * modules/sys_uio (Depends-on): Likewise.
48137         * modules/unistd (Depends-on): Likewise.
48138         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
48139         * tests/test-sys_types.c: Check that ssize_t is defined.
48141 2011-09-14  Bruno Haible  <bruno@clisp.org>
48143         Avoid using #, the m4 comment starter character, near brackets.
48144         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
48145         delimiter character in sed expressions.
48146         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
48147         Suggested by Eric Blake.
48149         Properly quote AC_CHECK_DECLS' 4th argument.
48150         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
48151         argument.
48152         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
48153         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
48154         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
48155         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
48156         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
48157         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
48158         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
48159         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
48160         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
48161         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
48162         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
48163         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
48164         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
48165         * m4/isinf.m4 (gl_ISINF): Likewise.
48166         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
48167         * m4/readutmp.m4 (gl_READUTMP): Likewise.
48168         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48169         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
48170         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
48171         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
48172         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
48173         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
48174         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
48175         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
48176         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
48177         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
48178         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
48179         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
48180         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48181         Reported by Eric Blake.
48183         Properly quote AC_CHECK_DECL's 4th argument.
48184         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
48185         argument.
48186         * m4/argp.m4 (gl_ARGP): Likewise.
48187         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
48188         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
48189         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
48190         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
48191         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
48192         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
48193         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
48194         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
48195         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
48196         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
48197         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
48198         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
48199         Reported by Eric Blake.
48201 2011-09-14  Eric Blake  <eblake@redhat.com>
48203         opendir: avoid compile warning
48204         * lib/opendir.c (includes): Always include errno.h.
48205         Reported by Tatsuro MATSUOKA.
48207 2011-09-14  Jim Meyering  <meyering@redhat.com>
48209         maint.mk: sc_tight_scope: propagate failure from sub-make
48210         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
48211         Reported by Martin von Gagern.
48213 2011-09-13  Bruno Haible  <bruno@clisp.org>
48215         tempname: Support for MSVC.
48216         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
48217         MSVC.
48218         * modules/tempname (Depends-on): Add fcntl-h.
48220 2011-09-13  Bruno Haible  <bruno@clisp.org>
48222         sys_time: Support for MSVC.
48223         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
48224         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
48225         include <winsock2.h>.
48226         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
48227         function declarations that collide with POSIX.
48228         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
48229         (Makefile.am): Substitute HAVE_WINSOCK2_H.
48231 2011-09-13  Bruno Haible  <bruno@clisp.org>
48233         stat: Support for MSVC.
48234         * lib/stat.c: Include pathmax.h.
48235         * modules/stat (Depends-on): Add pathmax.
48237         pathmax: Support for native Windows.
48238         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
48240 2011-09-12  Bruno Haible  <bruno@clisp.org>
48242         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
48243         * lib/dirent.in.h (struct dirent): New type.
48244         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
48245         DT_WHT): New macros.
48246         (DIR): New type.
48247         (opendir, closedir): Declare only if the module 'opendir' is enabled.
48248         (readdir, rewinddir): New declarations.
48249         * lib/dirent-private.h: New file.
48250         * lib/opendir.c: New file.
48251         * lib/readdir.c: New file.
48252         * lib/rewinddir.c: New file.
48253         * lib/closedir.c: New file.
48254         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
48255         * m4/opendir.m4: New file.
48256         * m4/readdir.m4: New file.
48257         * m4/rewinddir.m4: New file.
48258         * m4/closedir.m4: New file.
48259         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
48260         REPLACE_CLOSEDIR here.
48261         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
48262         readdir, rewinddir are declared.
48263         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
48264         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
48265         HAVE_REWINDDIR, HAVE_CLOSEDIR.
48266         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
48267         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
48268         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
48269         * modules/opendir: New file.
48270         * modules/readdir: New file.
48271         * modules/rewinddir: New file.
48272         * modules/closedir: New file.
48273         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
48274         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
48275         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
48276         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
48277         * NEWS: Mention the 'fchdir' change.
48279 2011-09-11  Bruno Haible  <bruno@clisp.org>
48281         asm-underscore.m4: Support for MSVC.
48282         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
48283         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
48285 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
48287         Doc about crypt functions.
48288         * doc/posix-functions/crypt.texi: Expand range of glibc versions
48289         needing for _GNU_SOURCE to get crypt.
48290         * doc/posix-functions/encrypt.texi: Likewise.
48291         * doc/posix-functions/setkey.texi: Likewise.
48293 2011-09-11  Bruno Haible  <bruno@clisp.org>
48295         doc: Update regarding MSVC 9.
48296         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
48297         tested".
48298         * doc/posix-functions/*.texi: Update with info about MSVC 9.
48299         * doc/posix-headers/*.texi: Likewise.
48300         * doc/pastposix-functions/*.texi: Likewise.
48301         * doc/glibc-functions/*.texi: Likewise.
48302         * doc/glibc-headers/*.texi: Likewise.
48304 2011-09-11  Bruno Haible  <bruno@clisp.org>
48306         unistd et al.: Don't assume <unistd.h> exists.
48307         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
48308         does not exist.
48309         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
48310         exist. But include <stdlib.h>.
48311         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
48312         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
48313         symlink() does not exist.
48314         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
48315         include <io.h> instead.
48316         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
48317         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
48318         include <direct.h> instead.
48319         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
48320         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
48321         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
48322         <io.h> instead.
48323         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
48324         correctly if the system does not have hard links.
48325         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
48326         <direct.h> instead.
48327         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
48328         it when looking for function declarations.
48329         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
48330         <direct.h> and <io.h> instead.
48331         * doc/posix-headers/unistd.texi: More details about MSVC problem.
48333 2011-09-11  Bruno Haible  <bruno@clisp.org>
48335         strcase: Support for MSVC.
48336         * modules/strcase (Status, Notice): Remove obsoletion mark.
48337         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
48338         * doc/posix-functions/strncasecmp.texi: Likewise.
48340         strings: Don't assume <strings.h> exists.
48341         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
48342         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
48343         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
48344         * doc/posix-headers/strings.texi: Mention the MSVC problem.
48346 2011-09-11  Bruno Haible  <bruno@clisp.org>
48348         dirent: Don't assume <dirent.h> exists.
48349         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
48350         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
48351         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
48352         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
48354 2011-09-11  Bruno Haible  <bruno@clisp.org>
48356         Fix wint_t on MSVC.
48357         * lib/wchar.in.h (wint_t): On MSVC, override it.
48358         * lib/wctype.in.h (wint_t): Likewise.
48359         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
48360         MSVC.
48361         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
48362         * doc/posix-headers/wctype.texi: Likewise.
48364 2011-09-11  Bruno Haible  <bruno@clisp.org>
48366         sys_types: Fix typo.
48367         * lib/sys_types.in.h: Fix typo in comment.
48368         Reported by Paul Eggert.
48370         Support for MSVC compiler: Ensure size_t gets defined.
48371         * modules/strings (Depends-on): Add 'sys_types'.
48372         * modules/sys_uio (Depends-on): Likewise.
48373         * lib/sys_uio.in.h: Update comment.
48375         C++ tests for module 'sys_types'.
48376         * modules/sys_types-c++-tests: New file.
48377         * tests/test-sys_types-c++.cc: New file.
48379         Tests for module 'sys_types'.
48380         * modules/sys_types-tests: New file.
48381         * tests/test-sys_types.c: New file.
48383         New module 'sys_types'.
48384         * lib/sys_types.in.h: New file.
48385         * m4/sys_types_h.m4: New file.
48386         * modules/sys_types: New file.
48387         * doc/posix-headers/sys_types.texi: Mention the new module and the
48388         size_t problem on MSVC 9.
48390 2011-09-11  Bruno Haible  <bruno@clisp.org>
48392         Support for MSVC compiler: Avoid division by a literal 0.
48393         * lib/math.in.h (NAN): Define through a function call also on MSVC.
48394         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
48395         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
48396         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
48397         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
48398         * tests/infinity.h: New file.
48399         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
48400         on MSVC.
48401         * tests/test-ceilf1.c: Include infinity.h.
48402         (main): Use Infinityf.
48403         * tests/test-ceil1.c: Include infinity.h.
48404         (main): Use Infinityd.
48405         * tests/test-ceill.c: Include infinity.h.
48406         (main): Use Infinityl.
48407         * tests/test-dprintf-posix.c: Include infinity.h.
48408         (test_function): Use Infinityd.
48409         * tests/test-floorf1.c: Include infinity.h.
48410         (main): Use Infinityf.
48411         * tests/test-floor1.c: Include infinity.h.
48412         (main): Use Infinityd.
48413         * tests/test-floorl.c: Include infinity.h.
48414         (main): Use Infinityl.
48415         * tests/test-fprintf-posix.c: Include infinity.h.
48416         (test_function): Use Infinityd.
48417         * tests/test-frexp.c: Include infinity.h.
48418         (main): Use Infinityd.
48419         * tests/test-frexpl.c: Include infinity.h.
48420         (main): Use Infinityl.
48421         * tests/test-isfinite.c: Include infinity.h.
48422         (test_isfinitef): Use Infinityf.
48423         (test_isfinited): Use Infinityd.
48424         (test_isfinitel): Use Infinityl.
48425         * tests/test-isinf.c: Include infinity.h.
48426         (test_isinff): Use Infinityf.
48427         (test_isinfd): Use Infinityd.
48428         (test_isinfl): Use Infinityl.
48429         * tests/test-isnan.c: Include infinity.h.
48430         (test_float): Use Infinityf.
48431         (test_double): Use Infinityd.
48432         (test_long_double): Use Infinityl.
48433         * tests/test-isnanf.h: Include infinity.h.
48434         (main): Use Infinityf.
48435         * tests/test-isnand.h: Include infinity.h.
48436         (main): Use Infinityd.
48437         * tests/test-isnanl.h: Include infinity.h.
48438         (main): Use Infinityl.
48439         * tests/test-ldexpl.c: Include infinity.h.
48440         (main): Use Infinityl.
48441         * tests/test-printf-posix.h: Include infinity.h.
48442         (test_function): Use Infinityd.
48443         * tests/test-roundf1.c: Include infinity.h.
48444         (main): Use Infinityf.
48445         * tests/test-round1.c: Include infinity.h.
48446         (main): Use Infinityd.
48447         * tests/test-roundl.c: Include infinity.h.
48448         (main): Use Infinityl.
48449         * tests/test-signbit.c: Include infinity.h.
48450         (test_signbitf): Use Infinityf.
48451         (test_signbitd): Use Infinityd.
48452         (test_signbitl): Use Infinityl.
48453         * tests/test-snprintf-posix.h: Include infinity.h.
48454         (test_function): Use Infinityd, Infinityl.
48455         * tests/test-sprintf-posix.h: Include infinity.h.
48456         (test_function): Use Infinityd, Infinityl.
48457         * tests/test-truncf1.c: Include infinity.h.
48458         (main): Use Infinityf.
48459         * tests/test-trunc1.c: Include infinity.h.
48460         (main): Use Infinityd.
48461         * tests/test-truncl.c: Include infinity.h.
48462         (main): Use Infinityl.
48463         * tests/test-vasnprintf-posix.c: Include infinity.h.
48464         (test_function): Use Infinityd, Infinityl.
48465         * tests/test-vasprintf-posix.c: Include infinity.h.
48466         (test_function): Use Infinityd, Infinityl.
48467         * modules/ceilf-tests (Files): Add tests/infinity.h.
48468         * modules/ceil-tests (Files): Likewise.
48469         * modules/ceill-tests (Files): Likewise.
48470         * modules/dprintf-posix-tests (Files): Likewise.
48471         * modules/floorf-tests (Files): Likewise.
48472         * modules/floor-tests (Files): Likewise.
48473         * modules/floorl-tests (Files): Likewise.
48474         * modules/fprintf-posix-tests (Files): Likewise.
48475         * modules/frexp-tests (Files): Likewise.
48476         * modules/frexp-nolibm-tests (Files): Likewise.
48477         * modules/frexpl-tests (Files): Likewise.
48478         * modules/frexpl-nolibm-tests (Files): Likewise.
48479         * modules/isfinite-tests (Files): Likewise.
48480         * modules/isinf-tests (Files): Likewise.
48481         * modules/isnan-tests (Files): Likewise.
48482         * modules/isnanf-tests (Files): Likewise.
48483         * modules/isnanf-nolibm-tests (Files): Likewise.
48484         * modules/isnand-tests (Files): Likewise.
48485         * modules/isnand-nolibm-tests (Files): Likewise.
48486         * modules/isnanl-tests (Files): Likewise.
48487         * modules/isnanl-nolibm-tests (Files): Likewise.
48488         * modules/ldexpl-tests (Files): Likewise.
48489         * modules/printf-posix-tests (Files): Likewise.
48490         * modules/roundf-tests (Files): Likewise.
48491         * modules/round-tests (Files): Likewise.
48492         * modules/roundl-tests (Files): Likewise.
48493         * modules/signbit-tests (Files): Likewise.
48494         * modules/snprintf-posix-tests (Files): Likewise.
48495         * modules/sprintf-posix-tests (Files): Likewise.
48496         * modules/truncf-tests (Files): Likewise.
48497         * modules/trunc-tests (Files): Likewise.
48498         * modules/truncl-tests (Files): Likewise.
48499         * modules/vasnprintf-posix-tests (Files): Likewise.
48500         * modules/vasprintf-posix-tests (Files): Likewise.
48501         * modules/vdprintf-posix-tests (Files): Likewise.
48502         * modules/vfprintf-posix-tests (Files): Likewise.
48503         * modules/vprintf-posix-tests (Files): Likewise.
48504         * modules/vsnprintf-posix-tests (Files): Likewise.
48505         * modules/vsprintf-posix-tests (Files): Likewise.
48506         * modules/xprintf-posix-tests (Files): Likewise.
48508 2011-09-11  Bruno Haible  <bruno@clisp.org>
48510         Ensure pid_t gets defined.
48511         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
48512         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
48513         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
48514         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
48515         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
48516         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
48517         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
48518         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
48519         * tests/test-fcntl-h.c: Check that pid_t is defined.
48520         * tests/test-sched.c: Likewise.
48521         * tests/test-termios.c: Likewise.
48522         * tests/test-time.c: Likewise.
48523         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
48524         * doc/posix-headers/signal.texi: Likewise.
48525         * doc/posix-headers/sys_types.texi: Likewise.
48526         * doc/posix-headers/time.texi: Likewise.
48528 2011-09-11  Bruno Haible  <bruno@clisp.org>
48530         acl: Fix compilation on Solaris 10 (older version).
48531         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
48532         of ACE_EVERYONE.
48533         * lib/set-mode-acl.c (qset_acl): Likewise.
48534         Reported by Christian Jullien <eligis@orange.fr>.
48536 2011-09-10  Bruno Haible  <bruno@clisp.org>
48538         iconv, unsetenv: Add support for MSVC compiler.
48539         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
48540         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
48542 2011-09-10  Bruno Haible  <bruno@clisp.org>
48544         *printf: Add support for MSVC compiler.
48545         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
48546         handles the exception caused by the %n directive. When cross-compiling,
48547         guess no on native Windows.
48548         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
48549         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
48550         emulate it through vsnprintf.
48551         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
48552         * doc/posix-functions/dprintf.texi: Update documentation regarding
48553         MSVC 9.
48554         * doc/posix-functions/fprintf.texi: Likewise.
48555         * doc/posix-functions/printf.texi: Likewise.
48556         * doc/posix-functions/snprintf.texi: Likewise.
48557         * doc/posix-functions/sprintf.texi: Likewise.
48558         * doc/posix-functions/swprintf.texi: Likewise.
48559         * doc/posix-functions/vdprintf.texi: Likewise.
48560         * doc/posix-functions/vfprintf.texi: Likewise.
48561         * doc/posix-functions/vprintf.texi: Likewise.
48562         * doc/posix-functions/vsnprintf.texi: Likewise.
48563         * doc/posix-functions/vsprintf.texi: Likewise.
48564         * doc/glibc-functions/asprintf.texi: Likewise.
48565         * doc/glibc-functions/obstack_printf.texi: Likewise.
48566         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
48567         * doc/glibc-functions/vasprintf.texi: Likewise.
48569 2011-09-10  Bruno Haible  <bruno@clisp.org>
48571         nocrash: Add support for native Windows.
48572         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
48574 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
48575             Bruno Haible  <bruno@clisp.org>
48577         absolute-header, include-next: Add support for MSVC compiler.
48578         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
48579         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
48580         directory separator in #line directives.
48581         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
48582         recognize also backslash as directory separator in #line directives.
48584 2011-09-08  Jim Meyering  <meyering@redhat.com>
48586         maint.mk: mark the post-release commit log with "maint: " prefix
48587         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
48588         one-line commit-log summary.
48590 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
48591             Bruno Haible  <bruno@clisp.org>
48593         Doc about crypt functions.
48594         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
48595         systems.
48596         * doc/posix-functions/encrypt.texi: Likewise.
48597         * doc/posix-functions/setkey.texi: Likewise.
48599 2011-09-08  Simon Josefsson  <simon@josefsson.org>
48601         * lib/gc.h: Fix copyright header.
48603 2011-09-07  Bruno Haible  <bruno@clisp.org>
48605         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
48606         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
48607         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
48609 2011-09-07  Bruno Haible  <bruno@clisp.org>
48611         openat: Work around compilation error with OSF/1 5.1 DTK cc.
48612         * lib/fopen.c: Use different syntax for include of <stdio.h>.
48613         * lib/freopen.c: Likewise.
48614         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
48615         * lib/lstat.c: Likewise.
48616         * lib/stat.c: Likewise.
48617         * lib/open.c: Use different syntax for include of <fcntl.h>.
48618         * lib/openat.c: Include fcntl.h again, explicitly.
48620 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
48622         parse-datetime: document the newly accepted format
48623         * doc/parse-datetime.texi (Combined date and time of day items):
48624         New section.
48626 2011-09-06  Bruno Haible  <bruno@clisp.org>
48628         acl: Fix a test failure on newer Solaris 10 with ZFS.
48629         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
48630         ENOSYS as no ACL.
48631         Reported by Jim Meyering.
48633 2011-09-06  Bruno Haible  <bruno@clisp.org>
48635         acl: Update for AIX >= 5.3 with NFS.
48636         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
48637         ENOSYS as no ACL.
48639         acl: Fix a test failure on AIX >= 5.3 with NFS.
48640         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
48641         as no ACL.
48643 2011-09-06  Bruno Haible  <bruno@clisp.org>
48645         acl: Fix a test failure on IRIX 6.5 with NFS.
48646         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
48647         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
48648         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
48649         * lib/copy-acl.c (qcopy_acl): Likewise.
48651 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
48653         openat: port to AIX 7.1 with large files
48654         AIX 7.1 does a "#define openat open64at" if large files are in use,
48655         so we can't simply #undef openat.  Use the orig_openat trick (similar
48656         to orig_open in lib/open.c) to work around the problem.  Problem
48657         reported by Kevin Brott for GNU tar, in the thread containing
48658         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
48659         * lib/openat.c (__need_system_fcntl_h): Define first.
48660         Include <fcntl.h> and <sys/types.h> before undefining.
48661         (orig_openat) [HAVE_OPENAT]: New inline function.
48662         (openat) [HAVE_OPENAT]: Do not undef.
48663         (rpl_openat): Use orig_openat, not openat.
48665 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
48666             Bruno Haible  <bruno@clisp.org>
48668         acl: Avoid errors on NonStop Kernel.
48669         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
48670         ENOTSUP errors.
48672 2011-09-05  Bruno Haible  <bruno@clisp.org>
48674         acl: Clean up Solaris code.
48675         * lib/acl-internal.h: Remove no-op #if.
48676         * lib/file-has-acl.c: Likewise.
48677         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
48678         * lib/copy-acl.c (qcopy_acl): Likewise.
48680 2011-09-05  Bruno Haible  <bruno@clisp.org>
48682         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
48683         binaries built on the original Solaris 10.
48684         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
48685         trivial.
48687 2011-09-05  Bruno Haible  <bruno@clisp.org>
48689         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
48690         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
48691         10.
48692         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
48693         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
48694         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
48695         instead of acl_get, facl_get, acl_set, facl_set.
48697 2011-09-05  Bruno Haible  <bruno@clisp.org>
48699         copy-file: Try unit tests on more file systems.
48700         * tests/test-copy-file-1.sh: New file.
48701         * tests/test-copy-file-2.sh: New file.
48702         * modules/copy-file-tests (Files): Add them.
48703         (Makefile.am): Add them to TESTS.
48705         acl: Try unit tests on more file systems.
48706         * tests/test-file-has-acl-1.sh: New file.
48707         * tests/test-file-has-acl-2.sh: New file.
48708         * tests/test-set-mode-acl-1.sh: New file.
48709         * tests/test-set-mode-acl-2.sh: New file.
48710         * tests/test-copy-acl-1.sh: New file.
48711         * tests/test-copy-acl-2.sh: New file.
48712         * modules/acl-tests (Files): Add them.
48713         (Makefile.am): Add them to TESTS.
48715 2011-09-04  Bruno Haible  <bruno@clisp.org>
48717         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
48718         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
48719         10.
48720         (OLD_ALLOW, OLD_DENY): New macros.
48721         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
48722         ACE_ACCESS_ALLOWED_ACE_TYPE.
48723         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
48724         ACE_ACCESS_DENIED_ACE_TYPE.
48725         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
48726         (NEW_ACE_EXECUTE): Fix value.
48727         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
48728         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
48729         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
48730         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
48731         NEW_ACE_SYNCHRONIZE): New macros.
48732         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
48733         instead of acl_fromtext, acl_set, facl_set.
48734         Fixes a coreutils/tests/cp/perm failure.
48736 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
48738         openat: test for fstatat (..., 0) bug
48739         Further testing with tar suggests that fstatat (..., 0)
48740         does not work in general, on AIX 7.1; see
48741         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
48742         So, give up entirely on AIX 7.1's fstatat, and fall back on our
48743         replacement fstatat (which is what older AIX releases were using
48744         anyway).
48745         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
48746         use is now changed to orig_fstatat.  This was probably the right
48747         thing to do anyway.
48748         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
48749         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
48750         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
48751         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
48752         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
48753         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
48754         if the bug is found.
48756         openat: test for fstatat (AT_FDCWD, ..., 0) bug
48757         This tests for another fstatat bug on AIX 7.1:
48758         fstatat (AT_FDCWD, ..., 0) does not work.  See
48759         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
48760         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
48761         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
48762         (rpl_fstatat): Adjust so that it works around either (or both)
48763         bugs if present.
48764         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
48766 2011-09-03  Karl Berry  <karl@gnu.org>
48768         * doc/regex.texi (Character Class Operators): Avoid literal ":"
48769         in index entries.
48771 2011-09-02  Bruno Haible  <bruno@clisp.org>
48773         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
48774         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
48775         values of AR, ARFLAGS, RANLIB.
48776         Reported by John W. Eaton <jwe@gnu.org> for Octave.
48778 2011-09-02  Bruno Haible  <bruno@clisp.org>
48780         Find 'ar' program that fits with --host argument.
48781         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
48783 2011-09-02  Bruno Haible  <bruno@clisp.org>
48785         tests: init.sh: Support any non-GNU diff.
48786         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
48787         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
48788         Solaris 8.
48790 2011-09-02  Bruno Haible  <bruno@clisp.org>
48792         tests: init.sh: work also with any non-GNU diff that supports -u
48793         * tests/init.sh: Relax check for diff -u support.
48794         Rather than checking for GNU diff via --version, simply check
48795         for support for -u itself.  Useful at least on OpenBSD 4.9,
48796         AIX 7.1, IRIX 6.5, and Solaris 10.
48798 2011-09-01  Bruno Haible  <bruno@clisp.org>
48800         strtoimax, strtoumax: Document problem on HP-UX 11.
48801         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
48802         * doc/posix-functions/strtoumax.texi: Likewise.
48804 2011-09-01  Bruno Haible  <bruno@clisp.org>
48806         strtoumax: Avoid link error on OSF/1 with DTK cc.
48807         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
48808         defined as a function.
48809         * modules/strtoumax (Depends-on, configure.ac): Test only whether
48810         strtoumax is defined, not whether it is declared.
48812 2011-09-01  Bruno Haible  <bruno@clisp.org>
48814         strtoimax: Avoid link error on OSF/1 with DTK cc.
48815         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
48816         defined as a function.
48817         * modules/strtoimax (Depends-on, configure.ac): Test only whether
48818         strtoimax is defined, not whether it is declared.
48820 2011-09-01  Bruno Haible  <bruno@clisp.org>
48822         imaxdiv: Avoid link error on OSF/1 with DTK cc.
48823         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
48824         as a function.
48825         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
48826         whether it is declared.
48828 2011-09-01  Bruno Haible  <bruno@clisp.org>
48830         imaxabs: Avoid link error on OSF/1 with DTK cc.
48831         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
48832         as a function.
48833         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
48834         whether it is declared.
48836 2011-09-01  Bruno Haible  <bruno@clisp.org>
48838         Tests for module 'strtoumax'.
48839         * modules/strtoumax-tests: New file.
48840         * tests/test-strtoumax.c: New file.
48842         Tests for module 'strtoimax'.
48843         * modules/strtoimax-tests: New file.
48844         * tests/test-strtoimax.c: New file.
48846         Tests for module 'imaxdiv'.
48847         * modules/imaxdiv-tests: New file.
48848         * tests/test-imaxdiv.c: New file.
48850         Tests for module 'imaxabs'.
48851         * modules/imaxabs-tests: New file.
48852         * tests/test-imaxabs.c: New file.
48854 2011-09-01  Bruno Haible  <bruno@clisp.org>
48856         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
48857         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
48858         pthread_create.
48860 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48862         openat: work around AIX 7.1 fstatat issue
48863         This should fix the problem that was not properly fixed
48864         in the previous change, dated 2011-08-30.
48865         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
48866         __need_system_stat_h defined.
48867         (orig_fstatat) [HAVE_FSTATAT]: New function.
48868         (rpl_fstatat): Go back to the old way of doing things,
48869         except call orig_fstatat instead of fstatat.
48870         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
48871         Remove unnecessary check whether fstatat fills in st_size etc.
48873 2011-09-01  Bruno Haible  <bruno@clisp.org>
48875         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
48876         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
48877         just include the system's header.
48879 2011-08-31  Jim Meyering  <meyering@redhat.com>
48881         tests: avoid spurious assertion failure in test-float.c on ppc64
48882         * tests/test-float.c (test_long_double): Comment out an assertion,
48883         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
48884         with gcc-4.4.4.
48886         maint: indent with spaces, not TABs
48887         I need to get in the habit of running gnulib's "make check".
48888         Both of these would have been caught.
48889         * m4/largefile.m4: Indent with spaces, not TABs.
48890         * lib/parse-datetime.y (iso_8601_time): Likewise.
48891         Spotted by Pádraig Brady.
48893         test-parse-datetime.c: accommodate a relatively strict gcc warning
48894         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
48895         to avoid a warning from gcc's -Werror=missing-declarations.
48896         Insert a few spaces-before-funcall-parenthesis.
48898 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
48900         parse-datetime: accept ISO 8601 date and time rep with "T" separator
48901         The parser now accepts ISO 8601 date-time strings with "T" as the
48902         separator.  It has long parsed dates like "2004-02-29 16:21:42"
48903         with a space between the date and time strings.  Now it also parses
48904         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
48905         variants like "2004-02-29T16:21:42.333-07:00"
48906         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
48907         of day representation using the 'T' separator character.
48908         * doc/parse-datetime.texi (General date syntax): replace use of
48909         deprecated --iso-8601 option with --rfc-3339 in example of date
48910         command output formats that can be parsed.
48911         * tests/test-parse-datetime.c (tm_diff): New function, taken from
48912         lib/parse-datetime.y.
48913         (gmt_offset): New function.
48914         (main): Add additional test cases to validate ISO8601 extended
48915         date and time of day parsing.
48917 2011-08-31  Bruno Haible  <bruno@clisp.org>
48919         freopen: Documentation.
48920         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
48921         name.
48922         Reported by Claudio Bley <claudio.bley@gmail.com>.
48924 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
48926         freopen: Don't crash if the filename argument is NULL.
48927         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
48928         NULL.
48930 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48932         openat: work around AIX 7.1 fstatat bug
48933         Problem reported by Kevin Brott for GNU tar, in the thread containing
48934         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
48935         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
48936         FSTATAT_ST_SIZE_ETC_BROKEN.
48937         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
48938         rpl_fstatat.
48939         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
48940         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
48941         AC_CHECK_FUNCS_ONCE for fstatat.
48942         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
48943         fchmodat, mkdirat, openat and unlinkat.
48945 2011-08-30  Bruno Haible  <bruno@clisp.org>
48947         Avoid endless recursions if config.h includes some header files.
48948         * lib/fopen.c (__need_FILE): Define already before including config.h.
48949         * lib/freopen.c (__need_FILE): Likewise.
48950         * lib/open.c (__need_system_fcntl_h): Likewise.
48951         * lib/stat.c (__need_system_sys_stat_h): Likewise.
48952         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
48953         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
48955 2011-08-25  Karl Berry  <karl@gnu.org>
48957         * config/srclist.txt (ylwrap): new try.
48958         * build-aux/ylwrap: new file.
48960 2011-08-23  Bruno Haible  <bruno@clisp.org>
48962         tmpdir: Use a good default directory on native Windows.
48963         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
48964         (P_tmpdir): Default to _P_tmpdir on native Windows.
48965         (path_search): On native Windows, try the value returned by GetTempPath
48966         before trying P_tmpdir.
48967         * modules/tmpdir (Depends-on): Add pathmax.
48968         Suggested by John Darrington <john@darrington.wattle.id.au>.
48970 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
48972         doc: fix typo in README-release
48973         * top/README-release: Capitalize first word of a sentence.
48975 2011-08-19  Jim Meyering  <meyering@redhat.com>
48977         fts: do not exhaust memory when processing million-entry directories
48978         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
48979         directory would require about 256*N bytes of memory.  Thus, it was
48980         easy to construct a directory too large to be processed by any of
48981         those tools.  With this change, fts' maximum memory utilization is
48982         now limited to around 30MB.
48983         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
48984         (fts_read): When we've processed the final entry (i.e., when
48985         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
48986         using the parent entry to read any remaining entries.  Dispatch
48987         depending on what fts_build returns:
48988         - NULL+stop, aka failure: stop
48989         - NULL otherwise: move up in the dir hierarchy
48990         - non-NULL: handle this new entry
48991         (fts_build): Declare and use new local, continue_readdir.
48992         Prepare to be called from fts_read, when the entries
48993         from a partially-read directory have just been exhausted.
48994         In that case, we'll skip the opendir and instead use the parent's
48995         fts_dirp and derive dir_fd from that.
48996         Finally, in the readdir loop, if we read max_entries entries,
48997         exit the loop ensuring *not* to call closedir.  This is required
48998         so that fts_dirp can be reused on a subsequent call.
48999         Prompted by Ben England's report of memory exhaustion in find
49000         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
49002         maint: fts: move decl of `dp' down into while loop; split a long line
49003         * lib/fts.c (fts_build): No semantic change.
49005         fts: add/use new struct member, fts_dirp
49006         We are about to use this to manage any directory with
49007         too many entries to read all of them into memory at once.
49008         To do that, we'll need to save the DIR* pointer in each
49009         affected FTSENT struct.
49010         * lib/fts_.h: Include <dirent.h>.
49011         (struct FTSENT) [fts_dirp]: New member.
49012         * lib/fts.c (closedir_and_clear): Define.
49013         Use it in place of closedir so that we are sure to
49014         clear the new fts_dirp member when done with it.
49015         (fts_alloc): Initialize the new member.
49016         (fts_lfree): Free, if needed.
49018         maint: fts: give __opendir2 a new parameter and rename
49019         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
49020         than surreptitiously using sole caller's "dir_fd".
49021         (fts_opendir): Rename from __opendir2.
49023         maint: fts.c: remove __opendir2's now-unused parameter, oflag
49024         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
49026         maint: fts.c: correct off-by-one indentation
49027         * lib/fts.c (fts_build): Correct indentation, change style
49028         of a couple of block comments, and bracing style.
49030         maint: fts.c: move __opendir2 #define "up" out of function body
49031         * lib/fts.c (__opendir2): Move "up".  No semantic change.
49033         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
49034         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
49035         out for a long time and besides was useful only on BSD systems.
49037 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
49039         regex: port to Stratus OpenVOS
49040         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
49041         define to empty, rather than attempting nonportable optimizations.
49042         Problem reported by Paul Green in:
49043         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
49044         and fix suggested by Eric Blake in:
49045         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
49047 2011-08-17  Eric Blake  <eblake@redhat.com>
49049         getcwd: fix test failures on mingw
49050         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
49051         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
49052         test if long directory cannot be created, and allow mingw errno.
49054         getcwd-lgpl: fix m4 to match relaxed test for BSD
49055         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
49056         (gl_FUNC_GETCWD_SIGNATURE): New macro.
49057         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
49058         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
49059         signature problem.
49061         getcwd: fix compilation on mingw64
49062         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
49063         getcwd.
49064         Reported by Marc-André Lureau.
49066         pipe2: silence compiler warning
49067         * lib/pipe2.c (pipe2): Hide label if it is not used.
49069 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
49071         relocatable-prog: fix link error
49072         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
49073         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
49074         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
49075         into modules/relocatable-lib without noticing that
49076         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
49077         also needs to build relocatable.c.
49079 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
49081         getaddrinfo: fix sh typo in gai_strerrorA decl checking
49082         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
49083         shell code: it contained a 'break' that was not in a loop.
49084         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
49085         via a shell-language loop; this may have been true in old Autoconf
49086         versions, but it's not true in Autoconf 2.68.  I found this bug
49087         when testing coreutils git on Solaris 8, whose shell complains
49088         about the syntax error.
49090 2011-08-12  Simon Josefsson  <simon@josefsson.org>
49092         * lib/base64.c: Fix comment to reference RFC 4648.
49093         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
49094         <gvtulder@gmail.com>.
49096 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
49098         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
49100         po/Makefile.in.in: fix make -q problem
49101         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
49102         rule, since there's no file named 'check-macro-version' and its
49103         use as a file breaks make -q.
49104         (all): Don't depend on check-macro-version.
49105         (CHECK_MACRO_VERSION): New macro.
49106         (stamp-po): Use it.
49108         configmake: fix make -q problem
49109         * modules/configmake (configmake.h): Update configmake.h's time stamp
49110         even if the file does not change.  Otherwise, 'make -q' fails.
49111         Problem reported by Simon Josefsson in
49112         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
49114 2011-08-11  Jim Meyering  <meyering@redhat.com>
49116         git-version-gen: correct the advice in a comment
49117         * build-aux/git-version-gen: Correct comment.
49118         Don't recommend to list .tarball-version in .gitignore.
49120 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49122         base64: fix off-by-one buffer size bug
49123         Problem and (trivial) fix reported by Gijs van Tulder in
49124         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
49125         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
49126         * tests/test-base64.c (main): Catch the bug.
49128 2011-08-10  Eric Blake  <eblake@redhat.com>
49130         closein: correct comments
49131         * lib/closein.c (close_stdin): Improve comments.
49133 2011-08-09  Bruno Haible  <bruno@clisp.org>
49135         More tests for 'fseeko'.
49136         * tests/test-fseeko3.c: New file, from Eric Blake.
49137         * tests/test-fseeko3.sh: New file.
49138         * modules/fseeko-tests (Files): Add them.
49139         (TESTS): Add test-fseeko3.sh.
49140         (check_PROGRAMS): Add test-fseeko3.
49142 2011-08-09  Eric Blake  <eblake@redhat.com>
49144         fseeko: remove unneeded hack
49145         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
49147         fseeko: fix bug on glibc
49148         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
49149         Reported by John W. Eaton.
49151 2011-08-08  Bruno Haible  <bruno@clisp.org>
49153         unictype/base: Fix interoperability with preinstalled libunistring.
49154         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
49155         Reported by Simon Josefsson.
49157 2011-08-08  Bruno Haible  <bruno@clisp.org>
49159         iswblank: Detect declaration correctly.
49160         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
49161         AC_CHECK_DECLS invocation.
49163 2011-08-08  Bruno Haible  <bruno@clisp.org>
49165         tcgetsid: Detect declaration correctly.
49166         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
49167         AC_CHECK_DECLS invocation.
49168         Reported by Simon Josefsson.
49170 2011-08-08  Eric Blake  <eblake@redhat.com>
49172         largefile: fix typo that regressed large file support
49173         * modules/largefile (configure.ac-early): Fix section name.
49175 2011-08-06  Karl Berry  <karl@gnu.org>
49177         * MODULES.html.sh (func_all_files): _Noreturn is no longer
49178         a separate module.
49180 2011-08-05  Simon Josefsson  <simon@josefsson.org>
49182         openat: Fix warnings and commens when building unlinkat.c on Hurd.
49183         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
49184         get prototype for free.
49186 2011-08-04  Bruno Haible  <bruno@clisp.org>
49188         Tests for module 'pathmax'.
49189         * modules/pathmax-tests: New file.
49190         * tests/test-pathmax.c: New file.
49192         canonicalize-lgpl: Support larger filenames on the Hurd.
49193         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
49194         Reported by Paul Eggert.
49196         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
49197         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
49198         * lib/chdir-long.h: Include pathmax.h.
49199         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
49200         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
49201         (PATH_MAX): Remove code that is done by pathmax.h.
49202         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
49203         * lib/tmpfile.c: Add a comment.
49204         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
49205         * modules/chdir-long (Depends-on): Add pathmax.
49206         * modules/getcwd (Depends-on): Add pathmax.
49207         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
49208         is not defined.
49209         * doc/posix-headers/limits.texi: Mention the pathmax module.
49210         * NEWS: Mention the change.
49212 2011-08-02  Bruno Haible  <bruno@clisp.org>
49214         pthread_sigmask: Actually use results of gl_THREADLIB.
49215         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
49216         gl_THREADLIB, not gl_[]THREADLIB.
49217         Reported by Eric Blake.
49219 2011-08-02  Jim Meyering  <meyering@redhat.com>
49221         maint.mk: relax the default _gl_TS_function_match regexp
49222         * top/maint.mk (_gl_TS_function_match): Don't require at least one
49223         space between function name and "(" in an "extern" declaration.
49224         That would fail to match a decl with no space there: extern void foo();
49226 2011-07-31  Iain Nicol  <iain@thenicols.net>
49228         git-version-gen: document that EXTRA_DIST must include .version
49229         * build-aux/git-version-gen: In the how-to-use comment, document
49230         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
49231         will fail when run from an unpacked distribution tarball.
49233 2011-08-01  Bruno Haible  <bruno@clisp.org>
49235         wctype-h: Fix last change.
49236         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
49237         REPLACE_TOWLOWER to 0.
49238         Reported by Sam Steingold <sds@gnu.org>.
49240 2011-07-31  Bruno Haible  <bruno@clisp.org>
49242         frexpl: Update autoconf test.
49243         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
49244         according to changes of 2011-06-20.
49246 2011-07-31  Bruno Haible  <bruno@clisp.org>
49248         sys_utsname: Add support for Minix.
49249         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
49250         <sys/utsname.h>.
49251         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
49252         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
49254 2011-07-31  Bruno Haible  <bruno@clisp.org>
49256         strings: Add support for Minix.
49257         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
49258         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
49259         * doc/posix-headers/strings.texi: Document the Minix problem.
49261 2011-07-31  Bruno Haible  <bruno@clisp.org>
49263         wctype-h: Add support for Minix.
49264         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
49265         REPLACE_TOWLOWER.
49266         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
49267         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
49268         REPLACE_ISWCNTRL.
49270 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
49272         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
49273         This is a performance improvement for 64-bit hosts: it causes the
49274         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
49276 2011-07-31  Bruno Haible  <bruno@clisp.org>
49278         stdioext: Add support for Minix.
49279         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
49280         * lib/fpurge.c (fpurge): Likewise.
49281         * lib/freadahead.c (freadahead): Likewise.
49282         * lib/freadable.c (freadable): Likewise.
49283         * lib/freading.c (freading): Likewise.
49284         * lib/freadptr.c (freadptr): Likewise.
49285         * lib/freadseek.c (freadptrinc): Likewise.
49286         * lib/fseeko.c (rpl_fseeko): Likewise.
49287         * lib/fseterr.c (fseterr): Likewise.
49288         * lib/fwritable.c (fwritable): Likewise.
49289         * lib/fwriting.c (fwriting): Likewise.
49290         * lib/fflush.c (clear_ungetc_buffer): Update comment.
49291         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
49293 2011-07-31  Bruno Haible  <bruno@clisp.org>
49295         errno: Port to Minix.
49296         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
49297         ECONNABORTED are defined.
49298         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
49299         GNULIB_defined_ECONNABORTED): New macros.
49300         * lib/strerror-override.h (strerror_override): Test also
49301         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
49302         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
49303         ECONNABORTED.
49304         * doc/posix-headers/errno.texi: Mention the Minix problem.
49306 2011-07-31  Bruno Haible  <bruno@clisp.org>
49308         Work around declaration collisions on Minix.
49309         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
49310         defined, set REPLACE_MBSINIT.
49311         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
49312         defined, set REPLACE_MBRTOWC.
49313         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
49314         set REPLACE_MBRLEN.
49315         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
49316         defined, set REPLACE_MBSRTOWCS.
49317         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
49318         defined, set REPLACE_WCRTOMB.
49319         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
49320         defined, set REPLACE_WCSRTOMBS.
49322 2011-07-31  Bruno Haible  <bruno@clisp.org>
49324         Add support for Minix with ACK compiler.
49325         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
49326         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
49327         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
49329 2011-07-31  Bruno Haible  <bruno@clisp.org>
49331         Documentation about Minix.
49332         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
49333         * doc/glibc-headers/*.texi: Likewise.
49334         * doc/posix-functions/*.texi: Likewise.
49335         * doc/glibc-functions/*.texi: Likewise.
49337 2011-07-31  Bruno Haible  <bruno@clisp.org>
49339         snippet/warn-on-use: Fix indentation.
49340         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
49342 2011-07-25  Jim Meyering  <meyering@redhat.com>
49344         tests: test-update-copyright.sh: remove unnecessary "rm" commands
49345         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
49346         commands.
49348 2011-07-27  Jim Meyering  <meyering@redhat.com>
49350         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
49351         * top/maint.mk (gl_extract_significant_defines_): Now that
49352         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
49353         gnulib/lib/signal.in.h, and now that we recommend to
49354         define-if-undefined those two symbols in application code,
49355         we must filter them out of the "significant" list.
49356         This avoids a "make syntax-check" failure in coreutils.
49358 2011-07-26  Eric Blake  <eblake@redhat.com>
49360         warnings: add comments about previous patch
49361         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
49362         * m4/include_next.m4: Likewise.
49363         * m4/warn-on-use.m4: Likewise.
49364         * m4/warnings.m4: Likewise, and simplify use.
49365         Suggested by Stefano Lattarini.
49367         include-next, warnings: support older autoconf
49368         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
49369         AS_VAR_PUSHDEF in a way that works with older autoconf.
49370         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
49371         Reported by Daniel P. Berrange.
49373 2011-07-25  Bruno Haible  <bruno@clisp.org>
49375         fseek, ftell: Fix doc.
49376         * doc/posix-functions/fseek.texi: Reword statement about
49377         AC_SYS_LARGEFILE.
49378         * doc/posix-functions/ftell.texi: Likewise.
49380 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
49381             Bruno Haible  <bruno@clisp.org>
49383         Add dependencies to the 'largefile' module.
49384         * modules/fopen (Depends-on): Add 'largefile'.
49385         * modules/freopen (Depends-on): Likewise.
49386         * modules/fseeko (Depends-on): Likewise.
49387         * modules/ftello (Depends-on): Likewise.
49388         * modules/glob (Depends-on): Likewise.
49389         * modules/lseek (Depends-on): Likewise.
49390         * modules/lstat (Depends-on): Likewise.
49391         * modules/mkostemp (Depends-on): Likewise.
49392         * modules/mkostemps (Depends-on): Likewise.
49393         * modules/mkstemp (Depends-on): Likewise.
49394         * modules/mkstemps (Depends-on): Likewise.
49395         * modules/open (Depends-on): Likewise.
49396         * modules/openat (Depends-on): Likewise.
49397         * modules/pread (Depends-on): Likewise.
49398         * modules/pwrite (Depends-on): Likewise.
49399         * modules/scandir (Depends-on): Likewise.
49400         * modules/stat (Depends-on): Likewise.
49401         * modules/tmpfile (Depends-on): Likewise.
49402         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
49403         since the containing module now depends on the largefile module.
49404         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
49405         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
49406         off_t is fixed by gnulib.
49407         * doc/posix-functions/freopen.texi: Likewise.
49408         * doc/posix-functions/fseeko.texi: Likewise.
49409         * doc/posix-functions/fstatat.texi: Likewise.
49410         * doc/posix-functions/ftello.texi: Likewise.
49411         * doc/posix-functions/glob.texi: Likewise.
49412         * doc/posix-functions/lseek.texi: Likewise.
49413         * doc/posix-functions/lstat.texi: Likewise.
49414         * doc/posix-functions/mkstemp.texi: Likewise.
49415         * doc/posix-functions/open.texi: Likewise.
49416         * doc/posix-functions/openat.texi: Likewise.
49417         * doc/posix-functions/pread.texi: Likewise.
49418         * doc/posix-functions/pwrite.texi: Likewise.
49419         * doc/posix-functions/scandir.texi: Likewise.
49420         * doc/posix-functions/stat.texi: Likewise.
49421         * doc/posix-functions/tmpfile.texi: Likewise.
49422         * doc/glibc-functions/mkostemp.texi: Likewise.
49423         * doc/glibc-functions/mkostemps.texi: Likewise.
49424         * doc/glibc-functions/mkstemps.texi: Likewise.
49426 2011-07-25  Bruno Haible  <bruno@clisp.org>
49428         fcntl: Move AC_LIBOBJ invocation to module description.
49429         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
49430         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
49432         fcntl: Remove call-in from fchdir.m4.
49433         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
49434         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
49436         dup3: Remove potential call-in from fchdir.m4.
49437         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
49438         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
49440         dup2: Move AC_LIBOBJ invocation to module description.
49441         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
49442         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
49443         Don't invoke AC_LIBOBJ.
49444         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
49446         dup2: Remove call-in from fchdir.m4.
49447         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
49448         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
49450         fclose: Move AC_LIBOBJ invocation to module description.
49451         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
49452         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
49453         to 1.
49454         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
49456         fclose: Remove call-in from close.m4.
49457         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
49458         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
49460         close: Move AC_LIBOBJ invocation to module description.
49461         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
49462         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
49463         1.
49464         * modules/close (configure.ac): Invoke AC_LIBOBJ.
49466         close: Remove call-in from fchdir.m4.
49467         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
49468         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
49470         open: Move AC_LIBOBJ invocation to module description.
49471         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
49472         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
49473         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
49475         open: Remove call-in from fchdir.m4.
49476         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
49477         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
49479         fchdir: Start to remove gl_REPLACE_* idiom.
49480         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
49481         (gl_FUNC_FCHDIR): Invoke it.
49483 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
49485         * lib/ftell.c (ftell): Comment out cast.
49487         close: use gl_REPLACE_FCLOSE only if defined
49488         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
49489         is defined.  The close module doesn't depend on the fclose module
49490         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
49491         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
49492         I reproduced the problem with "./gnulib-tool --test close sys_socket".
49494 2011-07-24  Jim Meyering  <meyering@redhat.com>
49496         test-select.h: avoid warning when using gcc's -Wmissing-declarations
49497         * tests/test-select.h (test_function): Declare as "static".
49499 2011-07-24  Bruno Haible  <bruno@clisp.org>
49501         doc: Mention the effects of AC_SYS_LARGEFILE.
49502         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
49503         on this function.
49504         * doc/posix-functions/aio_error.texi: Likewise.
49505         * doc/posix-functions/aio_fsync.texi: Likewise.
49506         * doc/posix-functions/aio_read.texi: Likewise.
49507         * doc/posix-functions/aio_return.texi: Likewise.
49508         * doc/posix-functions/aio_suspend.texi: Likewise.
49509         * doc/posix-functions/aio_write.texi: Likewise.
49510         * doc/posix-functions/fgetpos.texi: Likewise.
49511         * doc/posix-functions/fopen.texi: Likewise.
49512         * doc/posix-functions/freopen.texi: Likewise.
49513         * doc/posix-functions/fsetpos.texi: Likewise.
49514         * doc/posix-functions/fstatvfs.texi: Likewise.
49515         * doc/posix-functions/ftruncate.texi: Likewise.
49516         * doc/posix-functions/ftw.texi: Likewise.
49517         * doc/posix-functions/getrlimit.texi: Likewise.
49518         * doc/posix-functions/glob.texi: Likewise.
49519         * doc/posix-functions/lio_listio.texi: Likewise.
49520         * doc/posix-functions/lockf.texi: Likewise.
49521         * doc/posix-functions/mkstemp.texi: Likewise.
49522         * doc/posix-functions/mmap.texi: Likewise.
49523         * doc/posix-functions/nftw.texi: Likewise.
49524         * doc/posix-functions/openat.texi: Likewise.
49525         * doc/posix-functions/opendir.texi: Likewise.
49526         * doc/posix-functions/posix_fadvise.texi: Likewise.
49527         * doc/posix-functions/posix_fallocate.texi: Likewise.
49528         * doc/posix-functions/pread.texi: Likewise.
49529         * doc/posix-functions/pwrite.texi: Likewise.
49530         * doc/posix-functions/readdir.texi: Likewise.
49531         * doc/posix-functions/readdir_r.texi: Likewise.
49532         * doc/posix-functions/rewinddir.texi: Likewise.
49533         * doc/posix-functions/scandir.texi: Likewise.
49534         * doc/posix-functions/seekdir.texi: Likewise.
49535         * doc/posix-functions/setrlimit.texi: Likewise.
49536         * doc/posix-functions/statvfs.texi: Likewise.
49537         * doc/posix-functions/telldir.texi: Likewise.
49538         * doc/posix-functions/tmpfile.texi: Likewise.
49539         * doc/posix-functions/truncate.texi: Likewise.
49540         * doc/glibc-functions/fallocate.texi: Likewise.
49541         * doc/glibc-functions/fstatfs.texi: Likewise.
49542         * doc/glibc-functions/fts_children.texi: Likewise.
49543         * doc/glibc-functions/fts_read.texi: Likewise.
49544         * doc/glibc-functions/getdirentries.texi: Likewise.
49545         * doc/glibc-functions/mkostemp.texi: Likewise.
49546         * doc/glibc-functions/mkostemps.texi: Likewise.
49547         * doc/glibc-functions/mkstemps.texi: Likewise.
49548         * doc/glibc-functions/preadv.texi: Likewise.
49549         * doc/glibc-functions/pwritev.texi: Likewise.
49550         * doc/glibc-functions/sendfile.texi: Likewise.
49551         * doc/glibc-functions/statfs.texi: Likewise.
49553 2011-07-24  Bruno Haible  <bruno@clisp.org>
49555         doc: Fix typo.
49556         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
49558 2011-07-24  Bruno Haible  <bruno@clisp.org>
49560         doc: Mention fsusage.
49561         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
49563 2011-07-24  Bruno Haible  <bruno@clisp.org>
49565         doc: Mention new glibc headers and functions.
49566         * doc/glibc-headers/gshadow.texi: New file.
49567         * doc/glibc-functions/endsgent.texi: New file.
49568         * doc/glibc-functions/fgetsgent.texi: New file.
49569         * doc/glibc-functions/fgetsgent_r.texi: New file.
49570         * doc/glibc-functions/getsgent.texi: New file.
49571         * doc/glibc-functions/getsgent_r.texi: New file.
49572         * doc/glibc-functions/getsgnam.texi: New file.
49573         * doc/glibc-functions/getsgnam_r.texi: New file.
49574         * doc/glibc-functions/putsgent.texi: New file.
49575         * doc/glibc-functions/setsgent.texi: New file.
49576         * doc/glibc-functions/sgetsgent.texi: New file.
49577         * doc/glibc-functions/sgetsgent_r.texi: New file.
49578         * doc/glibc-functions/malloc_info.texi: New file.
49579         * doc/glibc-functions/preadv.texi: New file.
49580         * doc/glibc-functions/pwritev.texi: New file.
49581         * doc/glibc-functions/register_printf_modifier.texi: New file.
49582         * doc/glibc-functions/register_printf_specifier.texi: New file.
49583         * doc/glibc-functions/register_printf_type.texi: New file.
49584         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
49585         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
49586         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
49587         * doc/glibc-functions/pthread_getname_np.texi: New file.
49588         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
49589         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
49590         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
49591         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
49592         * doc/glibc-functions/pthread_setname_np.texi: New file.
49593         * doc/glibc-functions/pthread_sigqueue.texi: New file.
49594         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
49595         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
49596         * doc/glibc-functions/qsort_r.texi: New file.
49597         * doc/glibc-functions/quick_exit.texi: New file.
49598         * doc/glibc-functions/syncfs.texi: New file.
49599         * doc/gnulib.texi: Include them.
49600         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
49601         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
49602         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
49603         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
49604         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
49605         * doc/glibc-functions/execvpe.texi: Likewise.
49607 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
49609         ftell: don't include <unistd.h>
49610         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
49611         guaranteed to define off_t, and the ftell module depends on the
49612         stdio module.
49614         ftell: do not assume wraparound signed arithmetic
49615         * lib/ftell.c: Include <limits.h>.
49616         (ftell): Don't assume wraparound signed arithmetic.
49618 2011-07-24  Bruno Haible  <bruno@clisp.org>
49620         close: No longer depend on module 'fclose'.
49621         * modules/close (Depends-on): Remove fclose.
49622         * NEWS: Mention the change.
49623         Suggested by Sam Steingold <sds@gnu.org>.
49625 2011-07-24  Bruno Haible  <bruno@clisp.org>
49627         fsusage: Enable large volume support on AIX >= 5.2.
49628         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
49629         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
49630         instead of STAT_STATVFS.
49631         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
49633         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
49634         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
49635         f_blocks field only on MacOS X.
49637         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
49638         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
49639         * modules/fsusage (Depends-on): Add largefile.
49641 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
49643         * README: Modernize discussion of signed integers.
49644         Assuming overflow wraparound is no longer safe.
49645         Mention ones' complement and signed magnitude.
49647 2011-07-22  Bruno Haible  <bruno@clisp.org>
49649         select tests, pselect tests: Refactor.
49650         * tests/test-select.h: New file, extracted from tests/test-select.c.
49651         (select_fn): New type.
49652         (test, do_select, do_select_nowait, do_select_wait, test_tty,
49653         test_connect_first, test_accept_first, test_pair, test_socket_pair,
49654         test_pipe): Add my_select argument.
49655         (test_function): Renamed from main. Add my_select argument.
49656         * tests/test-select.c: Move most code to tests/test-select.h. Include
49657         test-select.h.
49658         * modules/select-tests (Files): Add tests/test-select.h.
49659         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
49660         (my_select, main): New functions.
49661         * modules/pselect-tests (Files): Add tests/test-select.h,
49662         tests/macros.h, tests/signature.h.
49663         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
49664         (configure.ac): Check for <sys/wait.h>.
49666 2011-07-22  Bruno Haible  <bruno@clisp.org>
49668         sys_select tests: Check the signature of FD_*.
49669         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
49670         signature tests from here...
49671         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
49672         here.
49673         * modules/sys_select-tests (Files): Add tests/signature.h.
49675 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49677         largefile: new module, replacing large-inode
49678         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
49679         * MODULES.html.sh: Add largefile, remove large-inode.
49680         * modules/largefile, m4/largefile.m4: New files.
49681         * modules/large-inode, m4/large-inode.m4: Remove.
49683         fsusage: port to MacOS X 10.7 with 4 TiB file systems
49684         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
49685         implementations that use only 32 bits to count blocks.
49686         On typical hosts with 1024-byte blocks, this fails with file
49687         systems as small as 4 TiB.  Problem reported by Herb Wartens
49688         <http://debbugs.gnu.org/9140> and this should also fix a similar
49689         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
49691         large-inode: New module
49692         * MODULES.html.sh: Add it.
49693         * modules/large-inode, m4/large-inode.m4: New files.
49695         extensions: Enable extensions on MacOS X 10.5 and later.
49696         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
49698 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
49700         file-has-acl: use acl_extended_file_nofollow if available
49701         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
49702         (acl_extended_file): New macro.
49703         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
49704         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
49706 2011-07-21  Bruno Haible  <bruno@clisp.org>
49708         Declare system functions in a way that works with C++.
49709         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
49710         declare fdopendir as extern "C".
49711         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
49712         declare frexpl as extern "C".
49713         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
49714         declare gai_strerror as extern "C".
49715         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
49716         programs, declare gai_strerror as extern "C".
49717         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
49718         declare getlogin_r as extern "C".
49719         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
49720         as extern "C".
49721         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
49722         declare ldexpl as extern "C".
49723         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
49724         as extern "C".
49725         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
49726         program, declare getmntinfo as extern "C".
49727         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
49728         stpncpy as extern "C".
49729         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
49730         program, declare __xpg_strerror_r as extern "C".
49731         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
49732         strndup as extern "C".
49733         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
49734         declare memset and bzero as extern "C".
49735         Reported by Sam Steingold <sds@gnu.org>.
49737 2011-07-12  Jim Meyering  <meyering@redhat.com>
49739         maint.mk: prohibit inclusion of "verify.h" without use
49740         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
49742 2011-07-19  Pádraig Brady  <P@draigBrady.com>
49744         timer-time: A new module to check for timer_settime()
49745         * m4/timer_time.m4: Check for the posix function.
49746         * modules/timer-time: Add the new module.
49747         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
49748         Mention it.
49750 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
49751             Bruno Haible  <bruno@clisp.org>
49753         pthread_sigmask: assume POSIX threads if --avoid=threadlib
49754         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
49755         not defined, assume POSIX threads and look for pthread_sigmask in
49756         $LIBS, without changing $CPPFLAGS.
49758 2011-07-19  Bruno Haible  <bruno@clisp.org>
49760         strstr: Update cross-compilation guess.
49761         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
49762         CPUs, guess no, in view of glibc
49763         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
49764         Suggested by Eric Blake. Reported by Reuben Thomas.
49766 2011-07-19  Pádraig Brady  <P@draigBrady.com>
49768         getopt-gnu: suppress core dumps from detection code
49769         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
49770         to suppress core dumps that may well occur on glibc systems.
49771         * modules/getopt-gnu: Depend on nocrash.
49773 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
49775         pthread_sigmask: ensure usleep is declared
49776         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
49777         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
49779 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
49781         doc: Document NonStop portability issues.
49782         * doc/posix-functions/sigaction.texi (sigaction):
49783         * doc/posix-headers/signal.texi (signal.h):
49784         Document NonStop.  See Joachim Schmitz in
49785         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
49787 2011-07-15  Bruno Haible  <bruno@clisp.org>
49789         ffsl, ffsll: Avoid unportable behaviour.
49790         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
49792 2011-07-15  Bruno Haible  <bruno@clisp.org>
49794         ffs: More tests.
49795         * tests/test-ffs.c (NBITS): New macro.
49796         (main): Add more tests.
49797         * tests/test-ffsl.c (NBITS): New macro.
49798         (main): Add more tests.
49799         * tests/test-ffsll.c (NBITS): New macro.
49800         (main): Add more tests.
49802 2011-07-15  Eric Blake  <eblake@redhat.com>
49804         ffsl, ffsll: new modules
49805         * modules/ffsl: New file.
49806         * modules/ffsll: Likewise.
49807         * m4/ffsl.m4: Likewise.
49808         * m4/ffsll.m4: Likewise.
49809         * lib/ffsl.c: Likewise.
49810         * lib/ffsl.h: Likewise.
49811         * lib/ffsll.c: Likewise.
49812         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
49813         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
49814         * modules/string (Makefile.am): Substitute witnesses.
49815         * lib/strings.in.h (ffsl, ffsll): Declare.
49816         * modules/ffsl-tests: New test file.
49817         * modules/ffsll-tests: Likewise.
49818         * tests/test-ffsl.c: Likewise.
49819         * tests/test-ffsll.c: Likewise.
49820         * MODULES.html.sh (Integer arithmetic functions): Mention it.
49821         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
49822         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
49824         ffs: fix m4 prerequisite
49825         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
49827         ffs: avoid undefined behavior
49828         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
49829         * tests/test-ffs.c (naive, main): Avoid signed shifts.
49830         Reported by Bruno Haible.
49832 2011-07-12  Bruno Haible  <bruno@clisp.org>
49834         pthread_sigmask: Rely on module 'threadlib'.
49835         * modules/pthread_sigmask (Depends-on): Add threadlib.
49836         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
49837         is defined.
49839 2011-07-12  Bruno Haible  <bruno@clisp.org>
49841         regex: Depend on module 'strcase'.
49842         * modules/regex (Depends-on): Add strcase, for strcasecmp().
49844 2011-07-12  Jim Meyering  <meyering@redhat.com>
49846         warn-on-use: fix typo in file name
49847         * modules/snippet/warn-on-use (Files): Correct file name:
49848         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
49850 2011-07-12  Bruno Haible  <bruno@clisp.org>
49852         strings: Document module.
49853         * doc/posix-headers/strings.texi: Mention module 'strings'.
49855 2011-07-12  Bruno Haible  <bruno@clisp.org>
49857         Rename module '_Noreturn' to 'snippet/_Noreturn'.
49858         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
49859         (Files, Makefile.am): Update.
49860         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
49861         * modules/stdlib (Depends-on): Update.
49863 2011-07-12  Bruno Haible  <bruno@clisp.org>
49865         * NEWS: Mention the changes.
49867         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
49868         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
49869         (Files, Makefile.am): Update.
49870         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
49871         * modules/arpa_inet (Depends-on): Update.
49872         * modules/ctype (Depends-on): Update.
49873         * modules/dirent (Depends-on): Update.
49874         * modules/fcntl-h (Depends-on): Update.
49875         * modules/glob (Depends-on): Update.
49876         * modules/iconv-h (Depends-on): Update.
49877         * modules/inttypes-incomplete (Depends-on): Update.
49878         * modules/langinfo (Depends-on): Update.
49879         * modules/locale (Depends-on): Update.
49880         * modules/math (Depends-on): Update.
49881         * modules/netdb (Depends-on): Update.
49882         * modules/poll-h (Depends-on): Update.
49883         * modules/pty (Depends-on): Update.
49884         * modules/search (Depends-on): Update.
49885         * modules/signal (Depends-on): Update.
49886         * modules/spawn (Depends-on): Update.
49887         * modules/stdio (Depends-on): Update.
49888         * modules/stdlib (Depends-on): Update.
49889         * modules/string (Depends-on): Update.
49890         * modules/strings (Depends-on): Update.
49891         * modules/sys_file (Depends-on): Update.
49892         * modules/sys_ioctl (Depends-on): Update.
49893         * modules/sys_select (Depends-on): Update.
49894         * modules/sys_socket (Depends-on): Update.
49895         * modules/sys_stat (Depends-on): Update.
49896         * modules/sys_time (Depends-on): Update.
49897         * modules/sys_times (Depends-on): Update.
49898         * modules/sys_utsname (Depends-on): Update.
49899         * modules/sys_wait (Depends-on): Update.
49900         * modules/termios (Depends-on): Update.
49901         * modules/time (Depends-on): Update.
49902         * modules/unistd (Depends-on): Update.
49903         * modules/wchar (Depends-on): Update.
49904         * modules/wctype-h (Depends-on): Update.
49905         * MODULES.html.sh (Support for building libraries and executables):
49906         Update.
49908         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
49909         * modules/snippet/unused-parameter: Renamed from
49910         modules/unused-parameter.
49911         (Files, Makefile.am): Update.
49912         * build-aux/snippet/unused-parameter.h: Renamed from
49913         build-aux/unused-parameter.h.
49914         * modules/selinux-h (Depends-on): Update.
49915         * modules/unistr/base (Depends-on): Update.
49916         * MODULES.html.sh (Core language properties): Update.
49918         Rename module 'link-warning' to 'snippet/link-warning'.
49919         * modules/snippet/link-warning: Renamed from modules/link-warning.
49920         (Files, Makefile.am): Update.
49921         * build-aux/snippet/link-warning.h: Renamed from
49922         build-aux/link-warning.h.
49923         * MODULES.html.sh (Support for building libraries and executables):
49924         Update.
49926         Rename module 'c++defs' to 'snippet/c++defs'.
49927         * modules/snippet/c++defs: Renamed from modules/c++defs.
49928         (Files, Makefile.am): Update.
49929         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
49930         * modules/arpa_inet (Depends-on): Update.
49931         * modules/ctype (Depends-on): Update.
49932         * modules/dirent (Depends-on): Update.
49933         * modules/fcntl-h (Depends-on): Update.
49934         * modules/glob (Depends-on): Update.
49935         * modules/iconv-h (Depends-on): Update.
49936         * modules/langinfo (Depends-on): Update.
49937         * modules/locale (Depends-on): Update.
49938         * modules/math (Depends-on): Update.
49939         * modules/netdb (Depends-on): Update.
49940         * modules/poll-h (Depends-on): Update.
49941         * modules/pty (Depends-on): Update.
49942         * modules/search (Depends-on): Update.
49943         * modules/signal (Depends-on): Update.
49944         * modules/spawn (Depends-on): Update.
49945         * modules/stdio (Depends-on): Update.
49946         * modules/stdlib (Depends-on): Update.
49947         * modules/string (Depends-on): Update.
49948         * modules/strings (Depends-on): Update.
49949         * modules/sys_ioctl (Depends-on): Update.
49950         * modules/sys_select (Depends-on): Update.
49951         * modules/sys_socket (Depends-on): Update.
49952         * modules/sys_stat (Depends-on): Update.
49953         * modules/sys_time (Depends-on): Update.
49954         * modules/sys_wait (Depends-on): Update.
49955         * modules/termios (Depends-on): Update.
49956         * modules/time (Depends-on): Update.
49957         * modules/unistd (Depends-on): Update.
49958         * modules/wchar (Depends-on): Update.
49959         * modules/wctype-h (Depends-on): Update.
49961         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
49962         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
49963         (Files, Makefile.am): Update.
49964         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
49965         * modules/argv-iter (Depends-on): Update.
49966         * modules/arpa_inet (Depends-on): Update.
49967         * modules/dirent (Depends-on): Update.
49968         * modules/fcntl-h (Depends-on): Update.
49969         * modules/fnmatch (Depends-on): Update.
49970         * modules/getopt-posix (Depends-on): Update.
49971         * modules/glob (Depends-on): Update.
49972         * modules/iconv-h (Depends-on): Update.
49973         * modules/inttypes-incomplete (Depends-on): Update.
49974         * modules/locale (Depends-on): Update.
49975         * modules/math (Depends-on): Update.
49976         * modules/netdb (Depends-on): Update.
49977         * modules/search (Depends-on): Update.
49978         * modules/signal (Depends-on): Update.
49979         * modules/spawn (Depends-on): Update.
49980         * modules/stdio (Depends-on): Update.
49981         * modules/stdlib (Depends-on): Update.
49982         * modules/string (Depends-on): Update.
49983         * modules/strings (Depends-on): Update.
49984         * modules/sys_socket (Depends-on): Update.
49985         * modules/sys_stat (Depends-on): Update.
49986         * modules/sys_time (Depends-on): Update.
49987         * modules/sys_times (Depends-on): Update.
49988         * modules/sys_utsname (Depends-on): Update.
49989         * modules/time (Depends-on): Update.
49990         * modules/unistd (Depends-on): Update.
49991         * modules/wchar (Depends-on): Update.
49992         * MODULES.html.sh (Support for building libraries and executables):
49993         Update.
49995 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
49997         Improvements on _Noreturn and related modules.
49999         modules/_Exit-tests: test _Noreturn too
50000         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
50001         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
50002         (main): Use them.
50004         stdnoreturn, stdnoreturn-tests: remove modules
50005         They're not needed here and a bit premature for use elsewhere.  See
50006         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
50007         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
50008         * tests/test-stdnoreturn.c: Remove files.
50009         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
50010         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
50011         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
50012         and using noreturn.
50013         * modules/openat, modules/sigpipe-die, modules/xalloc:
50014         * modules/xmemdup0, modules/xstrtol:
50015         Remove dependency on stdnoreturn.
50017         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
50018         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
50019         Reparenthesize to avoid GCC warning.
50020         Support Microsoft's syntax.
50021         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
50023         _Noreturn-tests: remove module
50024         * modules/_Noreturn-tests: Remove.
50025         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
50026         * tests/test-_Noreturn.c: Remove.
50027         * tests/test-stdnoreturn.c: Merge from the old
50028         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
50030 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
50032         _Noreturn, stdnoreturn, and related modules.
50034         * top/maint.mk: Adjust to new noreturn support.
50035         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
50036         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
50038         xalloc: use stdnoreturn.h
50039         * lib/xalloc.h: Include <stdnoreturn.h>.
50040         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50041         * modules/xalloc (Depends-on): Add stdnoreturn.
50043         xstrtol: use stdnoreturn.h
50044         * lib/xstrtol.h: Include <stdnoreturn.h>.
50045         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50046         * modules/xstrtol (Depends-on): Add stdnoreturn.
50048         xmemdup0: use stdnoreturn.h
50049         * lib/xmemdup0.h: Include <stdnoreturn.h>.
50050         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50051         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
50053         sigpipe-die: use stdnoreturn.h
50054         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
50055         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50056         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
50058         openat: use stdnoreturn.h
50059         * lib/openat.h: Include <stdnoreturn.h>.
50060         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50061         * modules/openat (Depends-on): Add stdnoreturn.
50063         * lib/openat-die.c (openat_save_fail): Modernize comment.
50065         * lib/xalloc-die.c (xalloc_die): Modernize comment.
50067         * lib/glthread/thread.h: Modernize comment.
50069         obstack: use _Noreturn
50070         * lib/obstack.c (__attribute__): Remove macro.
50071         (print_and_abort): Use _Noreturn.
50073         c-stack: use _Noreturn
50074         * lib/c-stack.c (die, overflow_handler, segv_handler):
50075         Use _Noreturn rather than __attribute__((noreturn)).
50077         argmatch-tests, exclude_tests: use _Noreturn
50078         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
50079         Remove.
50080         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
50082         stdlib: use _Noreturn
50083         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
50084         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
50085         * modules/stdlib (Depends-on): Add _Noreturn.
50086         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
50088         stdnoreturn-tests: new module
50089         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
50091         stdnoreturn: new module
50092         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
50093         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
50095         _Noreturn-tests: new module
50096         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
50098         _Noreturn: new module
50099         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
50100         New section, mentioning it.
50101         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
50103         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
50105 2011-07-11  Eric Blake  <eblake@redhat.com>
50107         ffs: new module
50108         * modules/ffs: New file.
50109         * m4/ffs.m4: Likewise.
50110         * lib/ffs.c: Likewise.
50111         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
50112         * modules/strings (Makefile.am): Substitute witness.
50113         (Depends-on): Add c++defs.
50114         * lib/strings.in.h (ffs): Declare.
50115         * modules/ffs-tests: New test file.
50116         * tests/test-ffs.c: Test new module.
50117         * MODULES.html.sh (Integer arithmetic functions): Mention it.
50118         * doc/posix-functions/ffs.texi (ffs): Likewise.
50120         regex: avoid compiler warning
50121         * lib/regex.c (includes): Include <strings.h>, for use of
50122         strcasecmp in regcomp.c.
50123         Reported by Joachim Schmitz.
50125 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50127         stdint: respect system's intmax_t if INTMAX_MAX
50128         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
50129         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
50130         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
50131         long but int64_t is long long, and where we will clash with the
50132         system intmax_t if we override it.  See
50133         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
50134         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
50135         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
50136         similarly for UINTMAX_C.
50138 2011-07-08  Bruno Haible  <bruno@clisp.org>
50140         pthread_sigmask tests: Avoid a compiler warning.
50141         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
50142         non-zero.
50144         sigprocmask tests: A better way to avoid a compiler warning.
50145         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
50146         (main): Complain if system() returns non-zero.
50147         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
50149 2011-07-08  Bruno Haible  <bruno@clisp.org>
50151         pthread_sigmask: Work around IRIX bug.
50152         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
50153         bug.
50154         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
50155         there may be unblocked pending signals.
50156         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
50158 2011-07-08  Bruno Haible  <bruno@clisp.org>
50160         pthread_sigmask: Work around Cygwin bug.
50161         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
50162         bug.
50163         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
50164         the system's pthread_sigmask function.
50165         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
50167 2011-07-08  Bruno Haible  <bruno@clisp.org>
50169         pthread_sigmask: Work around bug in single-threaded implementation.
50170         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
50171         FreeBSD, HP-UX, Solaris bug.
50172         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
50173         * lib/pthread_sigmask.c: Include <stddef.h>.
50174         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
50175         the system's pthread_sigmask function.
50176         * modules/pthread_sigmask (configure.ac): Invoke
50177         gl_PREREQ_PTHREAD_SIGMASK.
50178         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
50179         HP-UX, Solaris.
50181 2011-07-08  Eric Blake  <eblake@redhat.com>
50183         test-sigprocmask: avoid compiler warning
50184         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
50185         * tests/test-sigprocmask.c (main): Use it to silence warning.
50186         Reported by Jim Meyering.
50188         test-snprintf: avoid compiler warning
50189         * tests/test-snprintf.c (main): Avoid shadowed declaration.
50190         * tests/test-vsnprintf.c (main): Likewise.
50191         Reported by Jim Meyering.
50193 2011-07-08  Bruno Haible  <bruno@clisp.org>
50195         Tests for module 'pthread_sigmask'.
50196         * modules/pthread_sigmask-tests: New file.
50197         * tests/test-pthread_sigmask1.c: New file, based on
50198         tests/test-sigprocmask.c.
50199         * tests/test-pthread_sigmask2.c: New file.
50201 2011-07-08  Jim Meyering  <meyering@redhat.com>
50203         test-getopt.h: avoid warning about an unused variable
50204         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
50206 2011-07-07  Jim Meyering  <meyering@redhat.com>
50208         maint: reduce list of files exempt from sc_prohibit_leading_TABs
50209         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
50210         now that it no longer contains leading TABs.
50211         Remove unused "url=FIXME" statement.
50213 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50215         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
50216         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
50217         When gl_THREADLIB is not in use, assume that the POSIX sematics
50218         are desired.  This is better for Emacs, which uses POSIX semantics
50219         on GNUish and/or POSIXish platforms, and does not use threads at
50220         all otherwise.
50222         pthread_sigmask: fix typo when testing for libraries
50223         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
50224         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
50226 2011-07-08  Eric Blake  <eblake@redhat.com>
50228         fts: introduce FTS_NOATIME
50229         * lib/fts_.h (FTS_NOATIME): New bit flag.
50230         (FTS_OPTIONMASK): Adjust.
50231         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
50232         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
50234 2011-07-08  Bruno Haible  <bruno@clisp.org>
50236         Tests for module 'thread'.
50237         * modules/thread-tests: New file.
50238         * tests/test-thread_self.c: New file.
50239         * tests/test-thread_create.cc: New file.
50241 2011-07-08  Bruno Haible  <bruno@clisp.org>
50243         thread: Avoid gcc warnings when using gl_thread_self().
50244         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
50245         'void *'.
50246         (gl_thread_self_pointer): Update.
50248 2011-07-07  Bruno Haible  <bruno@clisp.org>
50250         signal-c++-tests: Check declaration of pthread_sigmask.
50251         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
50252         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
50253         $(LIB_PTHREAD_SIGMASK).
50255 2011-07-07  Bruno Haible  <bruno@clisp.org>
50257         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
50258         * lib/signal.in.h (pthread_sigmask): Override if
50259         REPLACE_PTHREAD_SIGMASK is 1.
50260         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
50261         REPLACE_PTHREAD_SIGMASK.
50262         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
50263         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
50264         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
50265         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
50266         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
50268 2011-07-07  Bruno Haible  <bruno@clisp.org>
50270         pthread_sigmask: Ensure declaration in <signal.h>.
50271         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
50272         include <pthread.h>.
50273         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
50274         problem.
50276 2011-07-07  Bruno Haible  <bruno@clisp.org>
50278         pthread_sigmask: Document the module.
50279         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
50281 2011-07-07  Bruno Haible  <bruno@clisp.org>
50283         pthread_sigmask: Follow gnulib conventions.
50284         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
50285         gl_PTHREAD_SIGMASK.
50286         * modules/pthread_sigmask (configure.ac): Update.
50288 2011-07-07  Bruno Haible  <bruno@clisp.org>
50290         pthread_sigmask: Make declaration C++ safe.
50291         * lib/signal.in.h: In two special conditions, just do an #include_next.
50292         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
50293         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
50294         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
50295         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
50296         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
50297         not REPLACE_PTHREAD_MASK.
50298         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
50299         not REPLACE_PTHREAD_MASK.
50300         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
50302 2011-07-07  Bruno Haible  <bruno@clisp.org>
50304         pthread_sigmask: Fix return value.
50305         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
50306         * lib/pthread_sigmask.c: New file.
50307         * modules/pthread_sigmask (Files): Add it.
50308         (configure.ac): Invoke AC_LIBOBJ.
50310 2011-07-07  Eric Blake  <eblake@redhat.com>
50312         getopt: more portable argv creation
50313         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
50314         const, use char arrays rather than strings.
50315         Suggested by Paul Eggert.
50317 2011-07-07  Bruno Haible  <bruno@clisp.org>
50319         Tests for module 'sigprocmask'.
50320         * modules/sigprocmask-tests: New file.
50321         * tests/test-sigprocmask.c: New file.
50323 2011-07-07  Bruno Haible  <bruno@clisp.org>
50325         float tests: Tweak.
50326         * tests/test-float.c (main): Tweak skip message.
50328 2011-07-07  Eric Blake  <eblake@redhat.com>
50330         getopt: avoid compiler warning during configure
50331         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
50332         assigning string literals to non-const pointer.
50334         getopt-gnu: avoid crash in glibc getopt
50335         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
50336         * tests/test-getopt.h (test_getopt): Enhance test.
50337         * tests/test-getopt_long.h (test_getopt_long): Likewise.
50338         * doc/posix-functions/getopt.texi (getopt): Document it.
50339         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
50340         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
50341         Likewise.
50343 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
50345         getopt: handle W; without long options in getopt [BZ #12922]
50346         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
50347         but no long options are defined, just return 'W'.
50349 2011-07-07  Bruno Haible  <bruno@clisp.org>
50351         Avoid literal tabs.
50352         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
50353         variable containing a tab instead of a literal tab.
50354         Reported by Jim Meyering.
50356 2011-07-07  Bruno Haible  <bruno@clisp.org>
50358         Comments.
50359         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
50361 2011-07-06  Bruno Haible  <bruno@clisp.org>
50363         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
50364         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
50365         <winsock2.h>.
50366         (rpl_fd_isset, FD_ISSET): New definitions, copied from
50367         lib/sys_socket.in.h.
50368         (close, gethostname): Hide declarations from <winsock2.h>.
50369         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
50370         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
50371         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
50372         (select): Don't override if gnulib's <sys/select.h> was already
50373         included.
50374         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
50375         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
50376         setsockopt, shutdown, select): Tweak indentation.
50378 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50380         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
50381         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
50382         in an application that does not use the sys_select module.
50384 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
50386         poll: do not return 0 on timeout=-1
50387         * lib/poll.c: Loop with yield if no events occurred.
50389 2011-07-06  Eric Blake  <eblake@redhat.com>
50391         pthread_sigmask: always replace when not using pthread
50392         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
50393         replacement when using some threading other than pthread.  Fix
50394         logic bug.
50396 2011-07-06  Bruno Haible  <bruno@clisp.org>
50398         Comments.
50399         * m4/printf.m4: Update comments about mingw.
50401 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50403         sys_select: define sigset_t more portably
50404         * lib/sys_select.in.h: Always include <sys/types.h>, since
50405         we now need sigset_t and mingw defines it there.
50406         Include <signal.h> before split inclusion guard, to avoid
50407         mishaps on Solaris, whose <signal.h> eventually includes us.
50408         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
50409         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
50410         which come from ...
50411         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
50412         gl_CHECK_TYPE_SIGSET_T.
50413         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
50414         does the real work.
50415         * modules/sys_select (Depends-on): Add 'signal'.
50417         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
50418         Suggested by Bruno Haible.
50420         pselect: Use pthread_sigmask, not sigprocmask.
50421         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
50422         multithreaded apps better than sigprocmask does.
50423         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
50424         sigprocmask directly.
50426 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50428         * lib/pselect.c (pselect): Use plain name, without "rpl_".
50429         Don't #undef,  since we don't need any underlying pselect.
50430         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
50431         (Depends-on): Add select.
50432         (Link): Add $(LIBSOCKET).
50433         These changes suggested by Bruno Haible.
50435         pselect: document better
50436         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
50437         * doc/posix-functions/pselect.texi (pselect): Document new module.
50439         pthread_sigmask: new module
50440         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
50441         * doc/posix-functions/pthread_sigmask.texi: Document new module.
50442         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
50443         This is done only as a macro; I don't know how well that'll
50444         work for C++.  Move <sys/types.h> include before the include_next,
50445         to avoid mishap on Solaris.
50446         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
50447         * modules/signal (Makefile.am): Substitute the check's results.
50448         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
50450         test-pselect: new module
50451         * modules/pselect-tests, tests/test-pselect.c: New files.
50452         * tests/test-select.c, tests/test-sys_select-c++.cc:
50453         If TEST_PSELECT is defined, test pselect instead of testing select.
50455         * tests/test-sys_select.c (sigset_t): Test for it, too.
50456         Suggested by Bruno Haible.
50458 2011-07-05  Eric Blake  <eblake@redhat.com>
50460         snprintf: guarantee %1$d, for libintl
50461         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
50462         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50463         * doc/posix-functions/snprintf.texi (snprintf): Update.
50464         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
50465         * tests/test-snprintf.c (main): Enhance test.
50466         * tests/test-vsnprintf.c (main): Likewise.
50468 2011-07-05  Jim Meyering  <meyering@redhat.com>
50470         maint: exempt stdio-read.c and stdio-write.c from the cppi check
50471         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
50472         per Bruno's request, to accommodate this idiom (no space after "#")
50473         even when the function is inside an #if block:
50474         char *
50475         gets (char *s)
50476         #undef gets
50477         {
50478           ...
50479         }
50481 2011-07-04  Jim Meyering  <meyering@redhat.com>
50483         maint: indent with spaces, not TABs, and add a rule to check this
50484         * tests/test-userspec.c: Indent with spaces, not TABs.
50485         * tests/test-argp.c: Likewise.
50486         * tests/test-c-stack2.sh: Likewise.
50487         * tests/test-parse-duration.sh: Likewise
50488         * m4/strtod.m4: Likewise.
50489         * m4/alloca.m4: Likewise.
50490         * m4/pselect.m4: Likewise.
50491         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
50493 2011-07-03  Jim Meyering  <meyering@redhat.com>
50495         maint.mk: correct omissions in prohibit_argmatch_without_use check
50496         This rule would mistakenly report that argmatch.h is included without
50497         use even when both the argmatch and invalid_arg macro were used.
50498         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
50499         of argmatch and invalid_arg.
50501 2011-07-03  Bruno Haible  <bruno@clisp.org>
50503         Comments about EINTR.
50504         * lib/safe-read.h: Explain the purpose of this module.
50505         * lib/safe-write.h: Likewise.
50506         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
50507         module.
50508         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
50509         module.
50510         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50512 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
50514         xnanosleep: Rewrite to use new dtotimespec module.
50515         It has the conversion code that used to be in xnanosleep.
50516         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
50517         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
50518         (TIME_T_MAX): Remove.
50519         (xnanosleep): Rewrite in terms of dtotimespec.
50520         * modules/xnanosleep (Depends-on): Add dtotimespec.
50521         Remove intprops, stdbool.
50523         timespec-add, timespec-sub: new modules
50524         * lib/timespec.h (timespec_add, timespec_sub): New decls.
50525         * lib/timespec-add.c, lib/timespec-sub.c:
50526         * modules/timespec-add, modules/timespec-sub: New files.
50528         dtotimespec: new module
50529         * lib/timespec.h (dtotimespec): New decl.
50530         * lib/dtotimespec.c, modules/dtotimespec: New files.
50532         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
50534         pselect: new module
50535         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
50536         (pselect): New decls.
50537         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
50538         since the standard pselect decl uses 'restrict'.
50539         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
50540         HAVE_PSELECT, REPLACE_PSELECT.
50541         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
50542         HAVE_PSELECT, REPLACE_PSELECT.
50543         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
50545         sys_select: don't depend on sys_socket
50546         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
50547         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
50548         This fix works on GNU and GNU-like platforms, but has not been tested
50549         on native Windows.
50550         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
50551         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
50552         gl_HEADER_SYS_SOCKET.
50553         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
50554         gl_PREREQ_SYS_H_WINSOCK2.
50556 2011-06-29  Eric Blake  <eblake@redhat.com>
50558         pipe2: fix C89 compile problem
50559         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
50560         Reported by Bruno Haible.
50562         pipe, pipe2: don't corrupt fd on error
50563         * lib/pipe.c (pipe): Leave fd unchanged on error.
50564         * lib/pipe2.c (pipe2): Likewise.
50565         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
50566         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
50568 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
50570         mmap-anon: do not use regular expressions inadvertently
50571         * m4/mmap-anon.m4: Remove trailing period from strings sought
50572         in the output.
50574 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
50576         nanosleep: fix integer overflow problem
50577         * lib/nanosleep.c (my_usleep): Don't assume signed integer
50578         arithmetic wraps around on overflow.
50580         nanosleep: simplify carrying
50581         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
50582         first call to the underyling nanosleep, not for the last one.
50583         This doesn't fix any bugs, but it simplifies the computation of
50584         the remaining delay.  Found while auditing integer overflow issues.
50586         dup2: remove test for existence of fcntl
50587         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
50588         "#if HAVE_FCNTL", in the configure-time test program.
50589         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
50590         and therefore speeds up "configure" a bit.  Found while
50591         adding the dup2 module to Emacs.
50593 2011-06-24  Eric Blake  <eblake@redhat.com>
50595         maint.mk: enhance useless header checks
50596         * top/maint.mk (_sc_header_without_use): Check both include
50597         styles.
50598         (sc_prohibit_assert_without_use)
50599         (sc_prohibit_close_stream_without_use)
50600         (sc_prohibit_getopt_without_use)
50601         (sc_prohibit_quotearg_without_use)
50602         (sc_prohibit_quote_without_use)
50603         (sc_prohibit_long_options_without_use)
50604         (sc_prohibit_inttostr_without_use)
50605         (sc_prohibit_ignore_value_without_use)
50606         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
50607         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
50608         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
50609         (sc_prohibit_hash_pjw_without_use)
50610         (sc_prohibit_safe_read_without_use)
50611         (sc_prohibit_argmatch_without_use)
50612         (sc_prohibit_canonicalize_without_use)
50613         (sc_prohibit_root_dev_ino_without_use)
50614         (sc_prohibit_openat_without_use)
50615         (sc_prohibit_c_ctype_without_use)
50616         (sc_prohibit_signal_without_use)
50617         (sc_prohibit_stdio--_without_use)
50618         (sc_prohibit_stdio-safer_without_use)
50619         (sc_prohibit_strings_without_use)
50620         (sc_prohibit_intprops_without_use)
50621         (sc_prohibit_stddef_without_use)
50622         (sc_prohibit_xfreopen_without_use): Update clients.
50624 2011-06-24  Jim Meyering  <meyering@redhat.com>
50626         syntax-check: keep one maint.mk rule in sync with its header
50627         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
50628         of the bug Eric has just fixed, with today's commit 25e4c2ec.
50629         I prefer to avoid temporary files here, so use <(...), but that
50630         is not supported by /bin/sh, so...
50631         (SHELL): Define to /bin/bash.
50633 2011-06-24  Eric Blake  <eblake@redhat.com>
50635         maint.mk: update sc_prohibit_intprops_without_use
50636         * top/maint.mk (_intprops_names): Match recent changes.
50638 2011-06-24  Bruno Haible  <bruno@clisp.org>
50640         strerror-override: No-op tweak.
50641         * lib/strerror-override.h (strerror_override): Reorder conditions,
50642         for consistency with lib/strerror-override.c.
50644 2011-06-23  Eric Blake  <eblake@redhat.com>
50646         maint.mk: test further PATH_MAX issues
50647         * top/maint.mk (sc_prohibit_path_max_array): Rename...
50648         (sc_prohibit_path_max_allocation): ...and also test alloca.
50649         Suggested by Jim Meyering.
50651 2011-06-22  Eric Blake  <eblake@redhat.com>
50653         maint.mk: add syntax-check to avoid char[PATH_MAX]
50654         * top/maint.mk (sc_prohibit_path_max_array): New rule.
50656         stat: be robust to PATH_MAX definition
50657         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
50658         * modules/stat (Depends-on): Add verify.
50660         link: work around IRIX bug
50661         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
50662         * lib/link.c (rpl_link): Work around it.
50663         * tests/test-link.h (test_link): Enhance test.
50664         * doc/posix-functions/link.texi (link): Document the bug.
50666         getopt: silence clang warning
50667         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
50668         dereference.
50669         Reported by Gustavo Martin Domato.
50671 2011-06-22  Jim Meyering  <meyering@redhat.com>
50673         bootstrap: do not insert a blank line into each .gitignore file
50674         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
50676 2011-06-21  Eric Blake  <eblake@redhat.com>
50678         perror: test for output mismatch
50679         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
50680         perror on IRIX.
50682         strerror_r: fix OpenBSD behavior on out-of-range
50683         * lib/strerror_r.c (strerror_r): Always use maximal string.
50684         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
50686         strerror_r: fix OpenBSD behavior on 0
50687         * lib/strerror-override.c (strerror_override): Also override 0
50688         when needed.
50689         * lib/strerror-override.h (strerror_override): Likewise.
50690         * lib/strerror.c (strerror): Simplify, now that 0 override is done
50691         earlier.
50692         * lib/strerror_r.c (strerror_r): Likewise.
50693         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
50694         behavior...
50695         (gl_FUNC_STRERROR_0): ...into new macro.
50696         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
50697         is overridden.
50698         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
50699         * modules/strerror-override (Files): Add strerror.m4.
50700         (configure.ac): Also provide override for 0 when needed.
50701         * doc/posix-functions/strerror.texi (strerror): Document this.
50702         * doc/posix-functions/perror.texi (perror): Likewise.
50704         perror: adjust array size
50705         * modules/perror (Depends-on): Add strerror-override.
50706         * lib/perror.c (perror): Use it to avoid magic number.
50708         strerror-override: reduce size
50709         * lib/strerror-override.c (strerror_override): Use fewer lines.
50711 2011-06-20  Bruno Haible  <bruno@clisp.org>
50713         pathmax: Ensure correct value for PATH_MAX on HP-UX.
50714         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
50716 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
50718         alloca: port to compilers that can optimize like GCC 4.6.0
50719         * lib/alloca.c (find_stack_direction): New signature, taken from
50720         Autoconf git.  This works with GCC 4.6.0.  This code should never
50721         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
50722         be used with other compilers that optimize as well as GCC 4.6.0 does.
50723         (alloca): Adjust to new signature.
50724         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
50725         New macro, which patches Autoconf in a similar way.
50727         c-stack: stop worrying about stack direction
50728         * lib/c-stack.c (find_stack_direction): Remove.
50729         (segv_handler): Don't worry about stack direction growth, as it's
50730         too much of a pain to configure this correctly, given how compilers
50731         are optimizing-away our stack-growth detection code.  Instead, assume
50732         that any access to just before or just after the stack is OK.
50733         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
50734         Don't require AC_FUNC_ALLOCA; no longer needed.
50736 2011-06-20  Eric Blake  <eblake@redhat.com>
50738         test-stat: don't allocate PATH_MAX bytes
50739         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
50740         PATH_MAX-sized buffer.
50741         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
50742         * modules/stat-tests (Depends-on): Likewise.
50743         * tests/test-fstatat.c (includes): Drop pathmax.h.
50744         * tests/test-stat.c (includes): Likewise.
50745         Reported by Bruno Haible.
50747 2011-06-20  Bruno Haible  <bruno@clisp.org>
50749         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
50750         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
50751         * lib/float.c: New file.
50752         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
50753         REPLACE_FLOAT_LDBL.
50754         * modules/float (Files): Add lib/float.c.
50755         (configure.ac): Invoke AC_LIBOBJ.
50756         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
50758 2011-06-20  Bruno Haible  <bruno@clisp.org>
50760         Tests for module 'float'.
50761         * modules/float-tests: New file.
50762         * tests/test-float.c: New file.
50764 2011-06-19  Bruno Haible  <bruno@clisp.org>
50766         isinf: Coding style.
50767         * lib/isinf.c: Use GNU coding style.
50769 2011-06-19  Bruno Haible  <bruno@clisp.org>
50771         linkat test: Avoid test failure on AIX 7.1.
50772         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
50773         * tests/test-link.h (test_link): Likewise.
50775 2011-06-19  Bruno Haible  <bruno@clisp.org>
50777         pread test: Avoid test failure on OpenBSD 4.9.
50778         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
50780 2011-06-19  Bruno Haible  <bruno@clisp.org>
50782         sprintf-posix: Fix test failure on AIX 7.1.
50783         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
50784         * doc/posix-functions/dprintf.texi: Mention limited precision problem
50785         on AIX.
50786         * doc/posix-functions/fprintf.texi: Likewise.
50787         * doc/posix-functions/printf.texi: Likewise.
50788         * doc/posix-functions/snprintf.texi: Likewise.
50789         * doc/posix-functions/sprintf.texi: Likewise.
50790         * doc/posix-functions/vdprintf.texi: Likewise.
50791         * doc/posix-functions/vfprintf.texi: Likewise.
50792         * doc/posix-functions/vprintf.texi: Likewise.
50793         * doc/posix-functions/vsnprintf.texi: Likewise.
50794         * doc/posix-functions/vsprintf.texi: Likewise.
50796 2011-06-19  Bruno Haible  <bruno@clisp.org>
50798         roundl-ieee: Fix test failure on AIX 7.1.
50799         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
50800         * doc/posix-functions/roundl.texi: Mention problem with negative
50801         arguments.
50803 2011-06-19  Bruno Haible  <bruno@clisp.org>
50805         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
50806         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
50807         * doc/posix-functions/round.texi: Mention problem with negative
50808         arguments.
50809         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
50811 2011-06-19  Bruno Haible  <bruno@clisp.org>
50813         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
50814         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
50815         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
50816         * doc/posix-functions/roundf.texi: Mention problem with negative
50817         arguments.
50818         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
50820 2011-06-19  Bruno Haible  <bruno@clisp.org>
50822         ceilf-ieee: Work around bug on MacOS X 10.5.
50823         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
50825         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
50826         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
50827         IEEE compliant, avoid compiler optimizations.
50828         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
50829         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
50830         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
50831         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
50832         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
50833         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
50834         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
50835         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
50836         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
50837         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
50839 2011-06-19  Bruno Haible  <bruno@clisp.org>
50841         ceilf-ieee: Work around bug on AIX 7.1.
50842         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
50843         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
50845 2011-06-19  Bruno Haible  <bruno@clisp.org>
50847         ceil-ieee: Work around bug on AIX 7.1.
50848         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
50849         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
50851 2011-06-18  Bruno Haible  <bruno@clisp.org>
50853         fsync test: Avoid test failure on MacOS X and AIX.
50854         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
50855         EINVAL.
50857 2011-06-18  Bruno Haible  <bruno@clisp.org>
50859         openat, fdopendir tests: Fix link errors.
50860         * modules/openat-tests (Depends-on): Add progname.
50861         * modules/fdopendir-tests (Depends-on): Likewise.
50862         * tests/test-fchownat.c: Include progname.h.
50863         (main): Call set_program_name.
50864         * tests/test-fstatat.c: Include progname.h.
50865         (main): Call set_program_name.
50866         * tests/test-mkdirat.c: Include progname.h.
50867         (main): Call set_program_name.
50868         * tests/test-openat.c: Include progname.h.
50869         (main): Call set_program_name.
50870         * tests/test-unlinkat.c: Include progname.h.
50871         (main): Call set_program_name.
50872         * tests/test-fdopendir.c: Include progname.h.
50873         (main): Call set_program_name.
50875 2011-06-18  Bruno Haible  <bruno@clisp.org>
50877         Doc update.
50878         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
50879         HP-UX.
50880         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
50882 2011-06-18  Bruno Haible  <bruno@clisp.org>
50884         getcwd tests: Avoid compilation error on HP-UX 11.31.
50885         * modules/getcwd-tests (Depends-on): Add pathmax.
50886         * tests/test-getcwd.c: Include pathmax.h.
50888 2011-06-18  Bruno Haible  <bruno@clisp.org>
50890         isfinite, isinf: Fix link error on AIX 6 and 7.
50891         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
50892         needed, also test the macro with a 'float' argument.
50893         * m4/isinf.m4 (gl_ISINF): Likewise.
50895 2011-06-18  Bruno Haible  <bruno@clisp.org>
50897         getloadavg: Don't clobber LIBS. Regression from previous commit.
50898         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
50899         AC_CHECK_LIB from here...
50900         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
50901         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
50902         gl_func_getloadavg_done.
50903         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50905 2011-06-18  Bruno Haible  <bruno@clisp.org>
50907         clean-temp: Improve documentation.
50908         * lib/clean-temp.h: Explain better how to use this module.
50909         Reported by John Darrington <john@darrington.wattle.id.au>.
50911 2011-06-17  Bruno Haible  <bruno@clisp.org>
50913         pread, pwrite: Avoid cc warning on AIX.
50914         * lib/unistd.in.h (pread): Undefine before defining as a macro.
50915         (pwrite): Likewise.
50917 2011-06-17  Bruno Haible  <bruno@clisp.org>
50919         spawn-pipe tests: Fix link error.
50920         * tests/test-spawn-pipe-child.c: Undefine fprintf.
50921         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50923 2011-06-17  Bruno Haible  <bruno@clisp.org>
50925         Tests: Remove unnecessary dependency.
50926         * modules/canonicalize-tests (Depends-on): Remove progname.
50927         * modules/chown-tests (Depends-on): Likewise.
50928         * modules/dirname-tests (Depends-on): Likewise.
50929         * modules/fdopendir-tests (Depends-on): Likewise.
50930         * modules/fdutimensat-tests (Depends-on): Likewise.
50931         * modules/hash-tests (Depends-on): Likewise.
50932         * modules/lchown-tests (Depends-on): Likewise.
50933         * modules/linkat-tests (Depends-on): Likewise.
50934         * modules/renameat-tests (Depends-on): Likewise.
50935         * modules/spawn-pipe-tests (Depends-on): Likewise.
50936         * modules/utimensat-tests (Depends-on): Likewise.
50938 2011-06-17  Bruno Haible  <bruno@clisp.org>
50940         spawn-pipe tests: Fix link error.
50941         * tests/test-spawn-pipe-child.c: Undefine fflush.
50943 2011-06-17  Bruno Haible  <bruno@clisp.org>
50945         Fix tests link errors.
50946         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
50947         * modules/chown-tests (Makefile.am): Don't link test-chown with
50948         LIBINTL.
50949         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
50950         LIBINTL.
50951         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
50952         LIBINTL.
50953         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
50954         LIBINTL.
50956 2011-06-16  Bruno Haible  <bruno@clisp.org>
50958         crypto/gc-sha1: Fix recent regression.
50959         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
50960         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
50962         crypto/gc-md5: Fix recent regression.
50963         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
50965         crypto/gc-md4: Fix recent regression.
50966         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
50967         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
50969         crypto/gc-arctwo: Fix recent regression.
50970         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
50971         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
50973         crypto/gc-rijndael: Fix recent regression.
50974         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
50975         (configure.ac): Invoke AC_LIBOBJ here.
50976         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
50977         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50979         crypto/gc-hmac-sha1: Fix recent regression.
50980         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
50981         (configure.ac): Invoke AC_LIBOBJ here.
50982         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
50983         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50985         crypto/gc-hmac-md5: Fix recent regression.
50986         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
50987         (configure.ac): Invoke AC_LIBOBJ here.
50988         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
50989         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50991         crypto/gc-des: Fix recent regression.
50992         * modules/crypto/gc-des (Files): Remove m4/des.m4.
50993         (configure.ac): Invoke AC_LIBOBJ here.
50994         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
50995         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50997         crypto/gc-arcfour: Fix recent regression.
50998         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
50999         (configure.ac): Invoke AC_LIBOBJ here.
51000         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
51001         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51003 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
51005         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
51006         After the 2011-05-21 change, this macro requires
51007         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
51008         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51010 2011-06-16  Bruno Haible  <bruno@clisp.org>
51012         fprintftime: Move AC_LIBOBJ invocations to module description.
51013         * m4/fprintftime.m4: Remove file.
51014         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
51015         (configure.ac): Remove gl_FPRINTFTIME call.
51016         (Makefile.am): Augment lib_SOURCES.
51017         Reported by Jim Meyering.
51019 2011-06-16  Bruno Haible  <bruno@clisp.org>
51021         tmpfile-safer: Finish 2011-05-23 commit.
51022         * m4/stdio-safer.m4: Really remove file.
51023         Reported by Jim Meyering.
51025 2011-06-16  Bruno Haible  <bruno@clisp.org>
51027         syntax-check: Fix typo.
51028         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
51029         printf-posix.m4.
51030         Reported by Jim Meyering.
51032 2011-06-13  Jim Meyering  <meyering@redhat.com>
51034         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
51035         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
51037 2011-05-23  Bruno Haible  <bruno@clisp.org>
51039         yesno: Move AC_LIBOBJ invocations to module description.
51040         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
51041         * modules/yesno (Makefile.am): Augment lib_SOURCES.
51043 2011-05-23  Bruno Haible  <bruno@clisp.org>
51045         xstrtol: Move AC_LIBOBJ invocations to module description.
51046         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
51047         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
51049 2011-05-23  Bruno Haible  <bruno@clisp.org>
51051         xstrtold: Move AC_LIBOBJ invocations to module description.
51052         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
51053         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
51055 2011-05-23  Bruno Haible  <bruno@clisp.org>
51057         xstrtod: Move AC_LIBOBJ invocations to module description.
51058         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
51059         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
51061 2011-05-23  Bruno Haible  <bruno@clisp.org>
51063         xnanosleep: Move AC_LIBOBJ invocations to module description.
51064         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
51065         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
51067 2011-05-23  Bruno Haible  <bruno@clisp.org>
51069         xgetcwd: Move AC_LIBOBJ invocations to module description.
51070         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
51071         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
51073 2011-05-23  Bruno Haible  <bruno@clisp.org>
51075         xalloc: Move AC_LIBOBJ invocations to module description.
51076         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
51077         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
51079 2011-05-23  Bruno Haible  <bruno@clisp.org>
51081         write-any-file: Move AC_LIBOBJ invocations to module description.
51082         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
51083         invocation.
51084         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
51086 2011-05-23  Bruno Haible  <bruno@clisp.org>
51088         utimens: Move AC_LIBOBJ invocations to module description.
51089         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
51090         * modules/utimens (Makefile.am): Augment lib_SOURCES.
51092 2011-05-23  Bruno Haible  <bruno@clisp.org>
51094         utimecmp: Move AC_LIBOBJ invocations to module description.
51095         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
51096         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
51098 2011-05-23  Bruno Haible  <bruno@clisp.org>
51100         userspec: Move AC_LIBOBJ invocations to module description.
51101         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
51102         * modules/userspec (Makefile.am): Augment lib_SOURCES.
51104 2011-05-23  Bruno Haible  <bruno@clisp.org>
51106         unlinkdir: Move AC_LIBOBJ invocations to module description.
51107         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
51108         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
51110 2011-05-23  Bruno Haible  <bruno@clisp.org>
51112         unistd-safer: Move AC_LIBOBJ invocations to module description.
51113         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
51114         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
51116 2011-05-23  Bruno Haible  <bruno@clisp.org>
51118         tempname: Move AC_LIBOBJ invocations to module description.
51119         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
51120         * modules/tempname (Makefile.am): Augment lib_SOURCES.
51122 2011-05-23  Bruno Haible  <bruno@clisp.org>
51124         strftime: Move AC_LIBOBJ invocations to module description.
51125         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
51126         * modules/strftime (Makefile.am): Augment lib_SOURCES.
51128 2011-05-23  Bruno Haible  <bruno@clisp.org>
51130         stdlib-safer: Move AC_LIBOBJ invocations to module description.
51131         * m4/stdlib-safer.m4: Remove file.
51132         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
51133         (configure.ac): Remove gl_STDLIB_SAFER call.
51134         (Makefile.am): Augment lib_SOURCES.
51136 2011-05-23  Bruno Haible  <bruno@clisp.org>
51138         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
51139         * m4/stdio-safer.m4: Remove file.
51140         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
51141         (configure.ac): Remove gl_TMPFILE_SAFER call.
51142         (Makefile.am): Augment lib_SOURCES.
51144 2011-05-23  Bruno Haible  <bruno@clisp.org>
51146         popen-safer: Move AC_LIBOBJ invocations to module description.
51147         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
51148         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
51149         (configure.ac): Remove gl_POPEN_SAFER call.
51150         (Makefile.am): Augment lib_SOURCES.
51152 2011-05-23  Bruno Haible  <bruno@clisp.org>
51154         freopen-safer: Move AC_LIBOBJ invocations to module description.
51155         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
51156         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
51157         (configure.ac): Remove gl_FREOPEN_SAFER call.
51158         (Makefile.am): Augment lib_SOURCES.
51160 2011-05-23  Bruno Haible  <bruno@clisp.org>
51162         fopen-safer: Move AC_LIBOBJ invocations to module description.
51163         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
51164         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
51165         (configure.ac): Remove gl_FOPEN_SAFER call.
51166         (Makefile.am): Augment lib_SOURCES.
51168 2011-05-23  Bruno Haible  <bruno@clisp.org>
51170         crypto/sha512: Move AC_LIBOBJ invocations to module description.
51171         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
51172         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
51174 2011-05-23  Bruno Haible  <bruno@clisp.org>
51176         crypto/sha256: Move AC_LIBOBJ invocations to module description.
51177         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
51178         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
51180 2011-05-23  Bruno Haible  <bruno@clisp.org>
51182         crypto/sha1: Move AC_LIBOBJ invocations to module description.
51183         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
51184         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
51186 2011-05-23  Bruno Haible  <bruno@clisp.org>
51188         settime: Move AC_LIBOBJ invocations to module description.
51189         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
51190         * modules/settime (Makefile.am): Augment lib_SOURCES.
51192 2011-05-23  Bruno Haible  <bruno@clisp.org>
51194         savedir: Move AC_LIBOBJ invocations to module description.
51195         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
51196         * modules/savedir (Makefile.am): Augment lib_SOURCES.
51198 2011-05-23  Bruno Haible  <bruno@clisp.org>
51200         save-cwd: Move AC_LIBOBJ invocations to module description.
51201         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
51202         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
51204 2011-05-23  Bruno Haible  <bruno@clisp.org>
51206         same: Move AC_LIBOBJ invocations to module description.
51207         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
51208         * modules/same (Makefile.am): Augment lib_SOURCES.
51210 2011-05-23  Bruno Haible  <bruno@clisp.org>
51212         safe-write: Move AC_LIBOBJ invocations to module description.
51213         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
51214         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
51215         instead of gl_SAFE_WRITE.
51216         (Makefile.am): Augment lib_SOURCES.
51218 2011-05-23  Bruno Haible  <bruno@clisp.org>
51220         safe-read: Move AC_LIBOBJ invocations to module description.
51221         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
51222         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
51223         of gl_SAFE_READ.
51224         (Makefile.am): Augment lib_SOURCES.
51226 2011-05-23  Bruno Haible  <bruno@clisp.org>
51228         safe-alloc: Move AC_LIBOBJ invocations to module description.
51229         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
51230         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
51232 2011-05-23  Bruno Haible  <bruno@clisp.org>
51234         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
51235         * m4/rijndael.m4: Remove file.
51236         * modules/crypto/rijndael (Files): Remove it.
51237         (configure.ac): Remove gl_RIJNDAEL call.
51238         (Makefile.am): Augment lib_SOURCES.
51240 2011-05-23  Bruno Haible  <bruno@clisp.org>
51242         readtokens: Move AC_LIBOBJ invocations to module description.
51243         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
51244         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
51246 2011-05-23  Bruno Haible  <bruno@clisp.org>
51248         read-file: Move AC_LIBOBJ invocations to module description.
51249         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
51250         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
51251         of gl_FUNC_READ_FILE.
51252         (Makefile.am): Augment lib_SOURCES.
51254 2011-05-23  Bruno Haible  <bruno@clisp.org>
51256         quotearg: Move AC_LIBOBJ invocations to module description.
51257         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
51258         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
51260 2011-05-23  Bruno Haible  <bruno@clisp.org>
51262         quote: Move AC_LIBOBJ invocations to module description.
51263         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
51264         * modules/quote (Makefile.am): Augment lib_SOURCES.
51266 2011-05-23  Bruno Haible  <bruno@clisp.org>
51268         posixver: Move AC_LIBOBJ invocations to module description.
51269         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
51270         * modules/posixver (Makefile.am): Augment lib_SOURCES.
51272 2011-05-23  Bruno Haible  <bruno@clisp.org>
51274         posixtm: Move AC_LIBOBJ invocations to module description.
51275         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
51276         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
51278 2011-05-23  Bruno Haible  <bruno@clisp.org>
51280         physmem: Move AC_LIBOBJ invocations to module description.
51281         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
51282         * modules/physmem (Makefile.am): Augment lib_SOURCES.
51284 2011-05-23  Bruno Haible  <bruno@clisp.org>
51286         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
51287         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
51288         invocation.
51289         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
51291 2011-05-23  Bruno Haible  <bruno@clisp.org>
51293         mpsort: Move AC_LIBOBJ invocations to module description.
51294         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
51295         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
51297 2011-05-23  Bruno Haible  <bruno@clisp.org>
51299         modechange: Move AC_LIBOBJ invocations to module description.
51300         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
51301         * modules/modechange (Makefile.am): Augment lib_SOURCES.
51303 2011-05-23  Bruno Haible  <bruno@clisp.org>
51305         mkdir-p: Move AC_LIBOBJ invocations to module description.
51306         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
51307         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
51309 2011-05-23  Bruno Haible  <bruno@clisp.org>
51311         mkancesdirs: Move AC_LIBOBJ invocations to module description.
51312         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
51313         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
51315 2011-05-23  Bruno Haible  <bruno@clisp.org>
51317         mgetgroups: Move AC_LIBOBJ invocations to module description.
51318         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
51319         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
51321 2011-05-23  Bruno Haible  <bruno@clisp.org>
51323         memxor: Move AC_LIBOBJ invocations to module description.
51324         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
51325         * modules/memxor (Makefile.am): Augment lib_SOURCES.
51327 2011-05-23  Bruno Haible  <bruno@clisp.org>
51329         memcoll: Move AC_LIBOBJ invocations to module description.
51330         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
51331         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
51333 2011-05-23  Bruno Haible  <bruno@clisp.org>
51335         memcasecmp: Move AC_LIBOBJ invocations to module description.
51336         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
51337         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
51339 2011-05-23  Bruno Haible  <bruno@clisp.org>
51341         crypto/md5: Move AC_LIBOBJ invocations to module description.
51342         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
51343         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
51345 2011-05-23  Bruno Haible  <bruno@clisp.org>
51347         crypto/md4: Move AC_LIBOBJ invocations to module description.
51348         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
51349         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
51351 2011-05-23  Bruno Haible  <bruno@clisp.org>
51353         crypto/md2: Move AC_LIBOBJ invocations to module description.
51354         * m4/md2.m4: Remove file.
51355         * modules/crypto/md2 (Files): Remove it.
51356         (configure.ac): Remove gl_MD2 call.
51357         (Makefile.am): Augment lib_SOURCES.
51359 2011-05-23  Bruno Haible  <bruno@clisp.org>
51361         long-options: Move AC_LIBOBJ invocations to module description.
51362         * m4/long-options.m4: Remove file.
51363         * modules/long-options (Files): Remove it.
51364         (configure.ac): Remove gl_LONG_OPTIONS call.
51365         (Makefile.am): Augment lib_SOURCES.
51367 2011-05-23  Bruno Haible  <bruno@clisp.org>
51369         i-ring: Move AC_LIBOBJ invocations to module description.
51370         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
51371         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
51373 2011-05-23  Bruno Haible  <bruno@clisp.org>
51375         idcache: Move AC_LIBOBJ invocations to module description.
51376         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
51377         * modules/idcache (Makefile.am): Augment lib_SOURCES.
51379 2011-05-23  Bruno Haible  <bruno@clisp.org>
51381         human: Move AC_LIBOBJ invocations to module description.
51382         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
51383         * modules/human (Makefile.am): Augment lib_SOURCES.
51385 2011-05-23  Bruno Haible  <bruno@clisp.org>
51387         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
51388         * m4/hmac-sha1.m4: Remove file.
51389         * modules/crypto/hmac-sha1 (Files): Remove it.
51390         (configure.ac): Remove gl_HMAC_SHA1 call.
51391         (Makefile.am): Augment lib_SOURCES.
51393 2011-05-23  Bruno Haible  <bruno@clisp.org>
51395         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
51396         * m4/hmac-md5.m4: Remove file.
51397         * modules/crypto/hmac-md5 (Files): Remove it.
51398         (configure.ac): Remove gl_HMAC_MD5 call.
51399         (Makefile.am): Augment lib_SOURCES.
51401 2011-05-23  Bruno Haible  <bruno@clisp.org>
51403         hash: Move AC_LIBOBJ invocations to module description.
51404         * m4/hash.m4: Remove file.
51405         * modules/hash (Files): Remove it.
51406         (configure.ac): Remove gl_HASH call.
51407         (Makefile.am): Augment lib_SOURCES.
51409 2011-05-23  Bruno Haible  <bruno@clisp.org>
51411         hard-locale: Move AC_LIBOBJ invocations to module description.
51412         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
51413         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
51415 2011-05-23  Bruno Haible  <bruno@clisp.org>
51417         getugroups: Move AC_LIBOBJ invocations to module description.
51418         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
51419         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
51421 2011-05-23  Bruno Haible  <bruno@clisp.org>
51423         gettime: Move AC_LIBOBJ invocations to module description.
51424         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
51425         * modules/gettime (Makefile.am): Augment lib_SOURCES.
51427 2011-05-23  Bruno Haible  <bruno@clisp.org>
51429         getndelim2: Move AC_LIBOBJ invocations to module description.
51430         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
51431         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
51433 2011-05-23  Bruno Haible  <bruno@clisp.org>
51435         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
51436         * m4/gc-pbkdf2-sha1.m4: Remove file.
51437         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
51438         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
51439         (Makefile.am): Augment lib_SOURCES.
51441 2011-05-23  Bruno Haible  <bruno@clisp.org>
51443         fts: Move AC_LIBOBJ invocations to module description.
51444         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
51445         * modules/fts (configure.ac): ... to here.
51447 2011-05-23  Bruno Haible  <bruno@clisp.org>
51449         file-type: Move AC_LIBOBJ invocations to module description.
51450         * m4/file-type.m4: Remove file.
51451         * modules/file-type (Files): Remove it.
51452         (configure.ac): Remove gl_FILE_TYPE call.
51453         (Makefile.am): Augment lib_SOURCES.
51455 2011-05-23  Bruno Haible  <bruno@clisp.org>
51457         filenamecat*: Respect rules for use of AC_LIBOBJ.
51458         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
51459         Remove AC_LIBOBJ invocation.
51460         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
51461         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
51463 2011-05-23  Bruno Haible  <bruno@clisp.org>
51465         filemode: Move AC_LIBOBJ invocations to module description.
51466         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
51467         * modules/filemode (Makefile.am): Augment lib_SOURCES.
51469 2011-05-23  Bruno Haible  <bruno@clisp.org>
51471         openat-safer: Move AC_LIBOBJ invocations to module description.
51472         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
51473         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
51475 2011-05-23  Bruno Haible  <bruno@clisp.org>
51477         fcntl-safer: Move AC_LIBOBJ invocations to module description.
51478         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
51479         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
51481 2011-05-23  Bruno Haible  <bruno@clisp.org>
51483         exclude: Move AC_LIBOBJ invocations to module description.
51484         * m4/exclude.m4: Remove file.
51485         * modules/exclude (Files): Remove it.
51486         (configure.ac): Remove gl_EXCLUDE call.
51487         (Makefile.am): Augment lib_SOURCES.
51489 2011-05-23  Bruno Haible  <bruno@clisp.org>
51491         dirname*: Respect rules for use of AC_LIBOBJ.
51492         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
51493         invocations.
51494         * modules/dirname (Makefile.am): Augment lib_SOURCES.
51495         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
51497 2011-05-23  Bruno Haible  <bruno@clisp.org>
51499         dirent-safer: Move AC_LIBOBJ invocations to module description.
51500         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
51501         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
51503 2011-05-23  Bruno Haible  <bruno@clisp.org>
51505         crypto/des: Move AC_LIBOBJ invocations to module description.
51506         * m4/des.m4: Remove file.
51507         * modules/crypto/des (Files): Remove it.
51508         (configure.ac): Remove gl_DES call.
51509         (Makefile.am): Augment lib_SOURCES.
51511 2011-05-23  Bruno Haible  <bruno@clisp.org>
51513         cycle-check: Move AC_LIBOBJ invocations to module description.
51514         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
51515         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
51517 2011-05-23  Bruno Haible  <bruno@clisp.org>
51519         c-strtold: Move AC_LIBOBJ invocations to module description.
51520         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
51521         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
51523 2011-05-23  Bruno Haible  <bruno@clisp.org>
51525         c-strtod: Move AC_LIBOBJ invocations to module description.
51526         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
51527         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
51529 2011-05-23  Bruno Haible  <bruno@clisp.org>
51531         crc: Move AC_LIBOBJ invocations to module description.
51532         * m4/crc.m4: Remove file.
51533         * modules/crc (Files): Remove it.
51534         (configure.ac): Remove gl_CRC call.
51535         (Makefile.am): Augment lib_SOURCES.
51537 2011-05-23  Bruno Haible  <bruno@clisp.org>
51539         close-stream: Move AC_LIBOBJ invocations to module description.
51540         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
51541         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
51543 2011-05-23  Bruno Haible  <bruno@clisp.org>
51545         closeout: Move AC_LIBOBJ invocations to module description.
51546         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
51547         * modules/closeout (Makefile.am): Augment lib_SOURCES.
51549 2011-05-23  Bruno Haible  <bruno@clisp.org>
51551         closein: Move AC_LIBOBJ invocations to module description.
51552         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
51553         * modules/closein (Makefile.am): Augment lib_SOURCES.
51555 2011-05-23  Bruno Haible  <bruno@clisp.org>
51557         cloexec: Move AC_LIBOBJ invocations to module description.
51558         * m4/cloexec.m4: Remove file.
51559         * modules/cloexec (Files): Remove it.
51560         (configure.ac): Remove gl_CLOEXEC call.
51561         (Makefile.am): Augment lib_SOURCES.
51563 2011-05-23  Bruno Haible  <bruno@clisp.org>
51565         check-version: Move AC_LIBOBJ invocations to module description.
51566         * m4/check-version.m4: Remove file.
51567         * modules/check-version (Files): Remove it.
51568         (configure.ac): Remove gl_CHECK_VERSION call.
51569         (Makefile.am): Augment lib_SOURCES.
51571 2011-05-23  Bruno Haible  <bruno@clisp.org>
51573         chdir-safer: Move AC_LIBOBJ invocations to module description.
51574         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
51575         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
51577 2011-05-23  Bruno Haible  <bruno@clisp.org>
51579         canonicalize: Move AC_LIBOBJ invocations to module description.
51580         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
51581         AC_LIBOBJ invocation.
51582         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
51584 2011-05-23  Bruno Haible  <bruno@clisp.org>
51586         canon-host: Move AC_LIBOBJ invocations to module description.
51587         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
51588         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
51589         instead of gl_CANON_HOST.
51590         (Makefile.am): Augment lib_SOURCES.
51592 2011-05-23  Bruno Haible  <bruno@clisp.org>
51594         backupfile: Move AC_LIBOBJ invocations to module description.
51595         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
51596         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
51598 2011-05-23  Bruno Haible  <bruno@clisp.org>
51600         argmatch: Move AC_LIBOBJ invocations to module description.
51601         * m4/argmatch.m4: Remove file.
51602         * modules/argmatch (Files): Remove it.
51603         (configure.ac): Remove gl_ARGMATCH call.
51604         (Makefile.am): Augment lib_SOURCES.
51606 2011-05-23  Bruno Haible  <bruno@clisp.org>
51608         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
51609         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
51610         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
51612 2011-05-23  Bruno Haible  <bruno@clisp.org>
51614         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
51615         * m4/arcfour.m4: Remove file.
51616         * modules/crypto/arcfour (Files): Remove it.
51617         (configure.ac): Remove gl_ARCFOUR call.
51618         (Makefile.am): Augment lib_SOURCES.
51620 2011-05-22  Bruno Haible  <bruno@clisp.org>
51622         write: Move AC_LIBOBJ invocations to module description.
51623         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
51624         * modules/write (configure.ac): ... to here.
51626 2011-05-22  Bruno Haible  <bruno@clisp.org>
51628         wmemset: Move AC_LIBOBJ invocations to module description.
51629         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
51630         here...
51631         * modules/wmemset (configure.ac): ... to here.
51633 2011-05-22  Bruno Haible  <bruno@clisp.org>
51635         wmemmove: Move AC_LIBOBJ invocations to module description.
51636         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
51637         here...
51638         * modules/wmemmove (configure.ac): ... to here.
51640 2011-05-22  Bruno Haible  <bruno@clisp.org>
51642         wmemcpy: Move AC_LIBOBJ invocations to module description.
51643         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
51644         here...
51645         * modules/wmemcpy (configure.ac): ... to here.
51647 2011-05-22  Bruno Haible  <bruno@clisp.org>
51649         wmemcmp: Move AC_LIBOBJ invocations to module description.
51650         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
51651         here...
51652         * modules/wmemcmp (configure.ac): ... to here.
51654 2011-05-22  Bruno Haible  <bruno@clisp.org>
51656         wmemchr: Move AC_LIBOBJ invocations to module description.
51657         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
51658         here...
51659         * modules/wmemchr (configure.ac): ... to here.
51661 2011-05-22  Bruno Haible  <bruno@clisp.org>
51663         wcswidth: Move AC_LIBOBJ invocations to module description.
51664         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
51665         here...
51666         * modules/wcswidth (configure.ac): ... to here.
51668 2011-05-22  Bruno Haible  <bruno@clisp.org>
51670         wcwidth: Respect rules for use of AC_LIBOBJ.
51671         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
51672         invocation from here...
51673         * modules/wcwidth (configure.ac): ... to here.
51674         (Depends-on): Update conditions.
51676 2011-05-22  Bruno Haible  <bruno@clisp.org>
51678         wctype: Move AC_LIBOBJ invocations to module description.
51679         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
51680         invocation from here...
51681         * modules/wctype (configure.ac): ... to here.
51682         (Depends-on): Update conditions.
51684 2011-05-22  Bruno Haible  <bruno@clisp.org>
51686         wctrans: Move AC_LIBOBJ invocations to module description.
51687         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
51688         invocation from here...
51689         * modules/wctrans (configure.ac): ... to here.
51691 2011-05-22  Bruno Haible  <bruno@clisp.org>
51693         wctomb: Move AC_LIBOBJ invocations to module description.
51694         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
51695         invocations from here...
51696         * modules/wctomb (configure.ac): ... to here.
51698 2011-05-22  Bruno Haible  <bruno@clisp.org>
51700         wctob: Move AC_LIBOBJ invocations to module description.
51701         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
51702         gl_PREREQ_WCTOB invocations from here...
51703         * modules/wctob (configure.ac): ... to here.
51704         (Depends-on): Update conditions.
51706 2011-05-22  Bruno Haible  <bruno@clisp.org>
51708         wcsxfrm: Move AC_LIBOBJ invocations to module description.
51709         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
51710         here...
51711         * modules/wcsxfrm (configure.ac): ... to here.
51713 2011-05-22  Bruno Haible  <bruno@clisp.org>
51715         wcstok: Move AC_LIBOBJ invocations to module description.
51716         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
51717         * modules/wcstok (configure.ac): ... to here.
51719 2011-05-22  Bruno Haible  <bruno@clisp.org>
51721         wcsstr: Move AC_LIBOBJ invocations to module description.
51722         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
51723         * modules/wcsstr (configure.ac): ... to here.
51725 2011-05-22  Bruno Haible  <bruno@clisp.org>
51727         wcsspn: Move AC_LIBOBJ invocations to module description.
51728         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
51729         * modules/wcsspn (configure.ac): ... to here.
51731 2011-05-22  Bruno Haible  <bruno@clisp.org>
51733         wcsrtombs: Move AC_LIBOBJ invocations to module description.
51734         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
51735         gl_PREREQ_WCSRTOMBS invocations from here...
51736         * modules/wcsrtombs (configure.ac): ... to here.
51738 2011-05-22  Bruno Haible  <bruno@clisp.org>
51740         wcsrchr: Move AC_LIBOBJ invocations to module description.
51741         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
51742         here...
51743         * modules/wcsrchr (configure.ac): ... to here.
51745 2011-05-22  Bruno Haible  <bruno@clisp.org>
51747         wcspbrk: Move AC_LIBOBJ invocations to module description.
51748         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
51749         here...
51750         * modules/wcspbrk (configure.ac): ... to here.
51752 2011-05-22  Bruno Haible  <bruno@clisp.org>
51754         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
51755         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
51756         gl_PREREQ_WCSNRTOMBS invocations from here...
51757         * modules/wcsnrtombs (configure.ac): ... to here.
51759 2011-05-22  Bruno Haible  <bruno@clisp.org>
51761         wcsnlen: Move AC_LIBOBJ invocations to module description.
51762         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
51763         here...
51764         * modules/wcsnlen (configure.ac): ... to here.
51766 2011-05-22  Bruno Haible  <bruno@clisp.org>
51768         wcsncpy: Move AC_LIBOBJ invocations to module description.
51769         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
51770         here...
51771         * modules/wcsncpy (configure.ac): ... to here.
51773 2011-05-22  Bruno Haible  <bruno@clisp.org>
51775         wcsncmp: Move AC_LIBOBJ invocations to module description.
51776         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
51777         here...
51778         * modules/wcsncmp (configure.ac): ... to here.
51780 2011-05-22  Bruno Haible  <bruno@clisp.org>
51782         wcsncat: Move AC_LIBOBJ invocations to module description.
51783         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
51784         here...
51785         * modules/wcsncat (configure.ac): ... to here.
51787 2011-05-22  Bruno Haible  <bruno@clisp.org>
51789         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
51790         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
51791         from here...
51792         * modules/wcsncasecmp (configure.ac): ... to here.
51794 2011-05-22  Bruno Haible  <bruno@clisp.org>
51796         wcslen: Move AC_LIBOBJ invocations to module description.
51797         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
51798         * modules/wcslen (configure.ac): ... to here.
51800 2011-05-22  Bruno Haible  <bruno@clisp.org>
51802         wcsdup: Move AC_LIBOBJ invocations to module description.
51803         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
51804         * modules/wcsdup (configure.ac): ... to here.
51806 2011-05-22  Bruno Haible  <bruno@clisp.org>
51808         wcscspn: Move AC_LIBOBJ invocations to module description.
51809         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
51810         here...
51811         * modules/wcscspn (configure.ac): ... to here.
51813 2011-05-22  Bruno Haible  <bruno@clisp.org>
51815         wcscpy: Move AC_LIBOBJ invocations to module description.
51816         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
51817         * modules/wcscpy (configure.ac): ... to here.
51819 2011-05-22  Bruno Haible  <bruno@clisp.org>
51821         wcscoll: Move AC_LIBOBJ invocations to module description.
51822         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
51823         here...
51824         * modules/wcscoll (configure.ac): ... to here.
51826 2011-05-22  Bruno Haible  <bruno@clisp.org>
51828         wcscmp: Move AC_LIBOBJ invocations to module description.
51829         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
51830         * modules/wcscmp (configure.ac): ... to here.
51832 2011-05-22  Bruno Haible  <bruno@clisp.org>
51834         wcschr: Move AC_LIBOBJ invocations to module description.
51835         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
51836         * modules/wcschr (configure.ac): ... to here.
51838 2011-05-22  Bruno Haible  <bruno@clisp.org>
51840         wcscat: Move AC_LIBOBJ invocations to module description.
51841         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
51842         * modules/wcscat (configure.ac): ... to here.
51844 2011-05-22  Bruno Haible  <bruno@clisp.org>
51846         wcscasecmp: Move AC_LIBOBJ invocations to module description.
51847         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
51848         here...
51849         * modules/wcscasecmp (configure.ac): ... to here.
51851 2011-05-22  Bruno Haible  <bruno@clisp.org>
51853         wcrtomb: Move AC_LIBOBJ invocations to module description.
51854         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
51855         invocations from here...
51856         * modules/wcrtomb (configure.ac): ... to here.
51858 2011-05-22  Bruno Haible  <bruno@clisp.org>
51860         wcpncpy: Move AC_LIBOBJ invocations to module description.
51861         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
51862         here...
51863         * modules/wcpncpy (configure.ac): ... to here.
51865 2011-05-22  Bruno Haible  <bruno@clisp.org>
51867         wcpcpy: Move AC_LIBOBJ invocations to module description.
51868         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
51869         * modules/wcpcpy (configure.ac): ... to here.
51871 2011-05-22  Bruno Haible  <bruno@clisp.org>
51873         waitpid: Move AC_LIBOBJ invocations to module description.
51874         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
51875         invocation from here...
51876         * modules/waitpid (configure.ac): ... to here.
51878 2011-05-22  Bruno Haible  <bruno@clisp.org>
51880         utimensat: Move AC_LIBOBJ invocations to module description.
51881         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
51882         here...
51883         * modules/utimensat (configure.ac): ... to here.
51885 2011-05-22  Bruno Haible  <bruno@clisp.org>
51887         usleep: Move AC_LIBOBJ invocations to module description.
51888         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
51889         here...
51890         * modules/usleep (configure.ac): ... to here.
51892 2011-05-22  Bruno Haible  <bruno@clisp.org>
51894         unlockpt: Move AC_LIBOBJ invocations to module description.
51895         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
51896         gl_PREREQ_UNLOCKPT invocations from here...
51897         * modules/unlockpt (configure.ac): ... to here.
51899 2011-05-22  Bruno Haible  <bruno@clisp.org>
51901         unlink: Respect rules for use of AC_LIBOBJ.
51902         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
51903         * modules/unlink (configure.ac): ... to here.
51905 2011-05-22  Bruno Haible  <bruno@clisp.org>
51907         uname: Move AC_LIBOBJ invocations to module description.
51908         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
51909         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
51910         here...
51911         * modules/uname (configure.ac): ... to here.
51913 2011-05-22  Bruno Haible  <bruno@clisp.org>
51915         ttyname_r: Move AC_LIBOBJ invocations to module description.
51916         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
51917         gl_PREREQ_TTYNAME_R invocations from here...
51918         * modules/ttyname_r (configure.ac): ... to here.
51920 2011-05-22  Bruno Haible  <bruno@clisp.org>
51922         tsearch: Move AC_LIBOBJ invocations to module description.
51923         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
51924         invocations from here...
51925         * modules/tsearch (configure.ac): ... to here.
51927 2011-05-22  Bruno Haible  <bruno@clisp.org>
51929         towctrans: Move AC_LIBOBJ invocations to module description.
51930         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
51931         AC_LIBOBJ invocation from here...
51932         * modules/towctrans (configure.ac): ... to here.
51934 2011-05-22  Bruno Haible  <bruno@clisp.org>
51936         tmpfile: Move AC_LIBOBJ invocations to module description.
51937         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
51938         invocations from here...
51939         * modules/tmpfile (configure.ac): ... to here.
51941 2011-05-22  Bruno Haible  <bruno@clisp.org>
51943         times: Move AC_LIBOBJ invocations to module description.
51944         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
51945         * modules/times (configure.ac): ... to here.
51947 2011-05-22  Bruno Haible  <bruno@clisp.org>
51949         time_r: Move AC_LIBOBJ invocations to module description.
51950         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
51951         invocations from here...
51952         * modules/time_r (configure.ac): ... to here.
51954 2011-05-22  Bruno Haible  <bruno@clisp.org>
51956         timegm: Move AC_LIBOBJ invocations to module description.
51957         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
51958         invocations from here...
51959         * modules/timegm (configure.ac): ... to here.
51961 2011-05-22  Bruno Haible  <bruno@clisp.org>
51963         tcgetsid: Move AC_LIBOBJ invocations to module description.
51964         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
51965         and gl_PREREQ_TCGETSID invocations from here...
51966         * modules/tcgetsid (configure.ac): ... to here.
51967         (Depends-on): Update conditions.
51969 2011-05-22  Bruno Haible  <bruno@clisp.org>
51971         symlinkat: Move AC_LIBOBJ invocations to module description.
51972         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
51973         here...
51974         * modules/symlinkat (configure.ac): ... to here.
51976 2011-05-22  Bruno Haible  <bruno@clisp.org>
51978         symlink: Move AC_LIBOBJ invocations to module description.
51979         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
51980         here...
51981         * modules/symlink (configure.ac): ... to here.
51983 2011-05-22  Bruno Haible  <bruno@clisp.org>
51985         strverscmp: Move AC_LIBOBJ invocations to module description.
51986         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
51987         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
51988         from here...
51989         * modules/strverscmp (configure.ac): ... to here.
51991 2011-05-22  Bruno Haible  <bruno@clisp.org>
51993         strtok_r: Move AC_LIBOBJ invocations to module description.
51994         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
51995         and gl_PREREQ_STRTOK_R invocations from here...
51996         * modules/strtok_r (configure.ac): ... to here.
51997         (Depends-on): Update conditions.
51999 2011-05-22  Bruno Haible  <bruno@clisp.org>
52001         strtoumax: Move AC_LIBOBJ invocations to module description.
52002         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
52003         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
52004         from here...
52005         * modules/strtoumax (configure.ac): ... to here.
52007 2011-05-22  Bruno Haible  <bruno@clisp.org>
52009         strtoimax: Move AC_LIBOBJ invocations to module description.
52010         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
52011         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
52012         from here...
52013         * modules/strtoimax (configure.ac): ... to here.
52015 2011-05-22  Bruno Haible  <bruno@clisp.org>
52017         strtoull: Move AC_LIBOBJ invocations to module description.
52018         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
52019         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
52020         from here...
52021         * modules/strtoull (configure.ac): ... to here.
52023 2011-05-22  Bruno Haible  <bruno@clisp.org>
52025         strtoll: Move AC_LIBOBJ invocations to module description.
52026         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
52027         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
52028         here...
52029         * modules/strtoll (configure.ac): ... to here.
52031 2011-05-22  Bruno Haible  <bruno@clisp.org>
52033         strtoul: Move AC_LIBOBJ invocations to module description.
52034         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
52035         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
52036         * modules/strtoul (configure.ac): ... to here.
52038 2011-05-22  Bruno Haible  <bruno@clisp.org>
52040         strtol: Move AC_LIBOBJ invocations to module description.
52041         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
52042         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
52043         * modules/strtol (configure.ac): ... to here.
52045 2011-05-22  Bruno Haible  <bruno@clisp.org>
52047         strtod: Move AC_LIBOBJ invocations to module description.
52048         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
52049         invocations from here...
52050         * modules/strtod (configure.ac): ... to here.
52052 2011-05-22  Bruno Haible  <bruno@clisp.org>
52054         strstr*: Move AC_LIBOBJ invocations to module description.
52055         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
52056         invocations from here...
52057         * modules/strstr-simple (configure.ac): ... to here.
52058         * modules/strstr (configure.ac): ... and here.
52060 2011-05-22  Bruno Haible  <bruno@clisp.org>
52062         strsignal: Move AC_LIBOBJ invocations to module description.
52063         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
52064         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
52065         * modules/strsignal (configure.ac): ... to here.
52066         (Depends-on): Update conditions.
52068 2011-05-22  Bruno Haible  <bruno@clisp.org>
52070         strsep: Move AC_LIBOBJ invocations to module description.
52071         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
52072         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
52073         here...
52074         * modules/strsep (configure.ac): ... to here.
52076 2011-05-22  Bruno Haible  <bruno@clisp.org>
52078         strptime: Move AC_LIBOBJ invocations to module description.
52079         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
52080         gl_PREREQ_STRPTIME invocations from here...
52081         * modules/strptime (configure.ac): ... to here.
52083 2011-05-22  Bruno Haible  <bruno@clisp.org>
52085         strpbrk: Move AC_LIBOBJ invocations to module description.
52086         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
52087         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
52088         here...
52089         * modules/strpbrk (configure.ac): ... to here.
52091 2011-05-22  Bruno Haible  <bruno@clisp.org>
52093         strnlen: Move AC_LIBOBJ invocations to module description.
52094         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
52095         invocations from here...
52096         * modules/strnlen (configure.ac): ... to here.
52098 2011-05-22  Bruno Haible  <bruno@clisp.org>
52100         strndup: Move AC_LIBOBJ invocations to module description.
52101         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
52102         invocations from here...
52103         * modules/strndup (configure.ac): ... to here.
52104         (Depends-on): Update conditions.
52106 2011-05-22  Bruno Haible  <bruno@clisp.org>
52108         strncat: Move AC_LIBOBJ invocations to module description.
52109         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
52110         invocations from here...
52111         * modules/strncat (configure.ac): ... to here.
52113 2011-05-22  Bruno Haible  <bruno@clisp.org>
52115         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
52116         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
52117         invocations from here...
52118         * modules/strdup (configure.ac): ... to here.
52119         * modules/strdup-posix (configure.ac): ... and here.
52121 2011-05-22  Bruno Haible  <bruno@clisp.org>
52123         strcspn: Move AC_LIBOBJ invocations to module description.
52124         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
52125         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
52126         here...
52127         * modules/strcspn (configure.ac): ... to here.
52129 2011-05-22  Bruno Haible  <bruno@clisp.org>
52131         strchrnul: Move AC_LIBOBJ invocations to module description.
52132         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
52133         gl_PREREQ_STRCHRNUL invocations from here...
52134         * modules/strchrnul (configure.ac): ... to here.
52136 2011-05-22  Bruno Haible  <bruno@clisp.org>
52138         strcasestr*: Move AC_LIBOBJ invocations to module description.
52139         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
52140         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
52141         * modules/strcasestr-simple (configure.ac): ... to here.
52142         * modules/strcasestr (configure.ac): ... and here.
52144 2011-05-22  Bruno Haible  <bruno@clisp.org>
52146         strcase: Move AC_LIBOBJ invocations to module description.
52147         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
52148         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
52149         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
52150         gl_PREREQ_STRNCASECMP invocations from here...
52151         * modules/strcase (configure.ac): ... to here.
52153 2011-05-22  Bruno Haible  <bruno@clisp.org>
52155         stpncpy: Move AC_LIBOBJ invocations to module description.
52156         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
52157         here...
52158         * modules/stpncpy (configure.ac): ... to here.
52160 2011-05-22  Bruno Haible  <bruno@clisp.org>
52162         stpcpy: Move AC_LIBOBJ invocations to module description.
52163         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
52164         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
52165         here...
52166         * modules/stpcpy (configure.ac): ... to here.
52168 2011-05-21  Bruno Haible  <bruno@clisp.org>
52170         stat: Move AC_LIBOBJ invocations to module description.
52171         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
52172         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
52173         here...
52174         * modules/stat (configure.ac): ... to here.
52176 2011-05-21  Bruno Haible  <bruno@clisp.org>
52178         sleep: Move AC_LIBOBJ invocations to module description.
52179         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
52180         * modules/sleep (configure.ac): ... to here.
52182 2011-05-21  Bruno Haible  <bruno@clisp.org>
52184         signbit: Move AC_LIBOBJ invocations to module description.
52185         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
52186         * modules/signbit (configure.ac): ... to here.
52188 2011-05-21  Bruno Haible  <bruno@clisp.org>
52190         sigprocmask: Move AC_LIBOBJ invocations to module description.
52191         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
52192         gl_PREREQ_SIGPROMASK invocations from here...
52193         * modules/sigprocmask (configure.ac): ... to here.
52195 2011-05-21  Bruno Haible  <bruno@clisp.org>
52197         sigaction: Move AC_LIBOBJ invocations to module description.
52198         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
52199         gl_PREREQ_SIGACTION invocations from here...
52200         * modules/sigaction (configure.ac): ... to here.
52202 2011-05-21  Bruno Haible  <bruno@clisp.org>
52204         sig2str: Move AC_LIBOBJ invocations to module description.
52205         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
52206         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
52207         here...
52208         * modules/sig2str (configure.ac): ... to here.
52210 2011-05-21  Bruno Haible  <bruno@clisp.org>
52212         setlocale: Move AC_LIBOBJ invocations to module description.
52213         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
52214         gl_PREREQ_SETLOCALE invocations from here...
52215         * modules/setlocale (configure.ac): ... to here.
52217 2011-05-21  Bruno Haible  <bruno@clisp.org>
52219         unsetenv: Move AC_LIBOBJ invocations to module description.
52220         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
52221         and gl_PREREQ_UNSETENV invocations from here...
52222         * modules/unsetenv (configure.ac): ... to here.
52223         (Depends-on): Update.
52225 2011-05-21  Bruno Haible  <bruno@clisp.org>
52227         setenv: Move AC_LIBOBJ invocations to module description.
52228         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
52229         here...
52230         * modules/setenv (configure.ac): ... to here.
52232 2011-05-21  Bruno Haible  <bruno@clisp.org>
52234         selinux-h: Move AC_LIBOBJ invocations to module description.
52235         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
52236         AC_LIBOBJ invocation from here...
52237         * modules/selinux-h (configure.ac): ... to here.
52239 2011-05-21  Bruno Haible  <bruno@clisp.org>
52241         select: Respect rules for use of AC_LIBOBJ.
52242         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
52243         here...
52244         * modules/select (configure.ac): ... to here.
52246 2011-05-21  Bruno Haible  <bruno@clisp.org>
52248         scandir: Move AC_LIBOBJ invocations to module description.
52249         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
52250         invocations from here...
52251         * modules/scandir (configure.ac): ... to here.
52253 2011-05-21  Bruno Haible  <bruno@clisp.org>
52255         rpmatch: Move AC_LIBOBJ invocations to module description.
52256         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
52257         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
52258         here...
52259         * modules/rpmatch (configure.ac): ... to here.
52261 2011-05-21  Bruno Haible  <bruno@clisp.org>
52263         rmdir: Respect rules for use of AC_LIBOBJ.
52264         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
52265         * modules/rmdir (configure.ac): ... to here.
52267 2011-05-21  Bruno Haible  <bruno@clisp.org>
52269         renameat: Move AC_LIBOBJ invocations to module description.
52270         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
52271         here...
52272         * modules/renameat (configure.ac): ... to here.
52274 2011-05-21  Bruno Haible  <bruno@clisp.org>
52276         rename: Respect rules for use of AC_LIBOBJ.
52277         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
52278         here...
52279         * modules/rename (configure.ac): ... to here.
52281 2011-05-21  Bruno Haible  <bruno@clisp.org>
52283         remove: Move AC_LIBOBJ invocations to module description.
52284         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
52285         here...
52286         * modules/remove (configure.ac): ... to here.
52288 2011-05-21  Bruno Haible  <bruno@clisp.org>
52290         relocatable-lib: Move AC_LIBOBJ invocations to module description.
52291         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
52292         macro.
52293         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
52294         * modules/relocatable-lib (configure.ac): ... to here.
52295         * modules/relocatable-prog-wrapper (configure.ac): Invoke
52296         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
52298 2011-05-21  Bruno Haible  <bruno@clisp.org>
52300         relocatable-prog: Move AC_LIBOBJ invocations to module description.
52301         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
52302         here...
52303         * modules/relocatable-prog (configure.ac): ... to here.
52305 2011-05-21  Bruno Haible  <bruno@clisp.org>
52307         regex: Move AC_LIBOBJ invocations to module description.
52308         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
52309         invocations from here...
52310         * modules/regex (configure.ac): ... to here.
52312 2011-05-21  Bruno Haible  <bruno@clisp.org>
52314         realloc-*: Move AC_LIBOBJ invocations to module description.
52315         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
52316         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
52317         AC_LIBOBJ invocations from here...
52318         * modules/realloc-gnu (configure.ac): ... to here.
52319         * modules/realloc-posix (configure.ac): ... and here.
52321 2011-05-21  Bruno Haible  <bruno@clisp.org>
52323         readutmp: Move AC_LIBOBJ invocations to module description.
52324         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
52325         * modules/readutmp (configure.ac): ... to here.
52327 2011-05-21  Bruno Haible  <bruno@clisp.org>
52329         readlinkat: Move AC_LIBOBJ invocations to module description.
52330         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
52331         here...
52332         * modules/readlinkat (configure.ac): ... to here.
52334 2011-05-21  Bruno Haible  <bruno@clisp.org>
52336         readlink: Move AC_LIBOBJ invocations to module description.
52337         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
52338         gl_PREREQ_READLINK invocations from here...
52339         * modules/readlink (configure.ac): ... to here.
52341 2011-05-21  Bruno Haible  <bruno@clisp.org>
52343         readline: Move AC_LIBOBJ invocations to module description.
52344         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
52345         gl_PREREQ_READLINE invocations from here...
52346         * modules/readline (configure.ac): ... to here.
52348 2011-05-21  Bruno Haible  <bruno@clisp.org>
52350         read: Move AC_LIBOBJ invocations to module description.
52351         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
52352         * modules/read (configure.ac): ... to here.
52354 2011-05-21  Bruno Haible  <bruno@clisp.org>
52356         rawmemchr: Move AC_LIBOBJ invocations to module description.
52357         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
52358         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
52359         from here...
52360         * modules/rawmemchr (configure.ac): ... to here.
52362 2011-05-21  Bruno Haible  <bruno@clisp.org>
52364         random_r: Move AC_LIBOBJ invocations to module description.
52365         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
52366         gl_PREREQ_RANDOM_R invocations from here...
52367         * modules/random_r (configure.ac): ... to here.
52369 2011-05-21  Bruno Haible  <bruno@clisp.org>
52371         pwrite: Move AC_LIBOBJ invocations to module description.
52372         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
52373         * modules/pwrite (configure.ac): ... to here.
52375 2011-05-21  Bruno Haible  <bruno@clisp.org>
52377         putenv: Move AC_LIBOBJ invocations to module description.
52378         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
52379         * modules/putenv (configure.ac): ... to here.
52381 2011-05-21  Bruno Haible  <bruno@clisp.org>
52383         login_tty: Move AC_LIBOBJ invocations to module description.
52384         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
52385         * modules/login_tty (configure.ac): ... to here.
52387 2011-05-21  Bruno Haible  <bruno@clisp.org>
52389         openpty: Move AC_LIBOBJ invocations to module description.
52390         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
52391         * modules/openpty (configure.ac): ... to here.
52393 2011-05-21  Bruno Haible  <bruno@clisp.org>
52395         forkpty: Move AC_LIBOBJ invocations to module description.
52396         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
52397         * modules/forkpty (configure.ac): ... to here.
52399 2011-05-21  Bruno Haible  <bruno@clisp.org>
52401         ptsname: Move AC_LIBOBJ invocations to module description.
52402         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
52403         invocations from here...
52404         * modules/ptsname (configure.ac): ... to here.
52406 2011-05-21  Bruno Haible  <bruno@clisp.org>
52408         pread: Move AC_LIBOBJ invocations to module description.
52409         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
52410         * modules/pread (configure.ac): ... to here.
52412 2011-05-21  Bruno Haible  <bruno@clisp.org>
52414         posix_spawn*: Move AC_LIBOBJ invocations to module description.
52415         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
52416         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
52417         * modules/posix_spawn (configure.ac): ... to here.
52418         * modules/posix_spawnp (configure.ac): ... and here.
52420 2011-05-21  Bruno Haible  <bruno@clisp.org>
52422         popen: Move AC_LIBOBJ invocations to module description.
52423         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
52424         invocations from here...
52425         * modules/popen (configure.ac): ... to here.
52427 2011-05-21  Bruno Haible  <bruno@clisp.org>
52429         poll: Move AC_LIBOBJ invocations to module description.
52430         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
52431         invocations from here...
52432         * modules/poll (configure.ac): ... to here.
52434 2011-05-21  Bruno Haible  <bruno@clisp.org>
52436         pipe-posix: Move AC_LIBOBJ invocations to module description.
52437         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
52438         * modules/pipe-posix (configure.ac): ... to here.
52440 2011-05-21  Bruno Haible  <bruno@clisp.org>
52442         openat: Respect rules for use of AC_LIBOBJ.
52443         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
52444         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
52445         * modules/openat (configure.ac): ... to here.
52447 2011-05-21  Bruno Haible  <bruno@clisp.org>
52449         obstack-printf*: Move AC_LIBOBJ invocations to module description.
52450         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
52451         invocation from here...
52452         * modules/obstack-printf (configure.ac): ... to here.
52453         * modules/obstack-printf-posix (configure.ac): ... and here.
52455 2011-05-21  Bruno Haible  <bruno@clisp.org>
52457         nl_langinfo: Move AC_LIBOBJ invocations to module description.
52458         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
52459         from here...
52460         * modules/nl_langinfo (configure.ac): ... to here.
52462 2011-05-21  Bruno Haible  <bruno@clisp.org>
52464         nanosleep: Move AC_LIBOBJ invocations to module description.
52465         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
52466         gl_PREREQ_NANOSLEEP invocations from here...
52467         * modules/nanosleep (configure.ac): ... to here.
52469 2011-05-21  Bruno Haible  <bruno@clisp.org>
52471         mountlist: Move AC_LIBOBJ invocations to module description.
52472         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
52473         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
52474         * modules/mountlist (configure.ac): ... to here.
52476 2011-05-21  Bruno Haible  <bruno@clisp.org>
52478         mktime: Respect rules for use of AC_LIBOBJ.
52479         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
52480         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
52481         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
52482         (gl_FUNC_MKTIME_INTERNAL): ... and here...
52483         * modules/mktime (configure.ac): ... to here.
52484         * modules/mktime-internal (configure.ac): ... and here.
52485         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
52487 2011-05-21  Bruno Haible  <bruno@clisp.org>
52489         mkstemps: Move AC_LIBOBJ invocations to module description.
52490         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
52491         here...
52492         * modules/mkstemps (configure.ac): ... to here.
52494 2011-05-21  Bruno Haible  <bruno@clisp.org>
52496         mkstemp: Move AC_LIBOBJ invocations to module description.
52497         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
52498         gl_PREREQ_MKSTEMP invocations from here...
52499         * modules/mkstemp (configure.ac): ... to here.
52501 2011-05-21  Bruno Haible  <bruno@clisp.org>
52503         mkostemps: Move AC_LIBOBJ invocations to module description.
52504         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
52505         here...
52506         * modules/mkostemps (configure.ac): ... to here.
52508 2011-05-21  Bruno Haible  <bruno@clisp.org>
52510         mkostemp: Move AC_LIBOBJ invocations to module description.
52511         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
52512         gl_PREREQ_MKOSTEMP invocations from here...
52513         * modules/mkostemp (configure.ac): ... to here.
52515 2011-05-21  Bruno Haible  <bruno@clisp.org>
52517         mknod: Move AC_LIBOBJ invocations to module description.
52518         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
52519         * modules/mknod (configure.ac): ... to here.
52521 2011-05-21  Bruno Haible  <bruno@clisp.org>
52523         mkfifoat: Move AC_LIBOBJ invocations to module description.
52524         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
52525         here...
52526         * modules/mkfifoat (configure.ac): ... to here.
52528 2011-05-21  Bruno Haible  <bruno@clisp.org>
52530         mkfifo: Respect rules for use of AC_LIBOBJ.
52531         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
52532         here...
52533         * modules/mkfifo (configure.ac): ... to here.
52535 2011-05-21  Bruno Haible  <bruno@clisp.org>
52537         mkdtemp: Move AC_LIBOBJ invocations to module description.
52538         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
52539         invocations from here...
52540         * modules/mkdtemp (configure.ac): ... to here.
52542 2011-05-21  Bruno Haible  <bruno@clisp.org>
52544         mkdir: Move AC_LIBOBJ invocations to module description.
52545         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
52546         * modules/mkdir (configure.ac): ... to here.
52548 2011-05-21  Bruno Haible  <bruno@clisp.org>
52550         memset: Move AC_LIBOBJ invocations to module description.
52551         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
52552         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
52553         here...
52554         * modules/memset (configure.ac): ... to here.
52556 2011-05-21  Bruno Haible  <bruno@clisp.org>
52558         memrchr: Move AC_LIBOBJ invocations to module description.
52559         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
52560         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
52561         here...
52562         * modules/memrchr (configure.ac): ... to here.
52564 2011-05-21  Bruno Haible  <bruno@clisp.org>
52566         mempcpy: Move AC_LIBOBJ invocations to module description.
52567         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
52568         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
52569         here...
52570         * modules/mempcpy (configure.ac): ... to here.
52572 2011-05-21  Bruno Haible  <bruno@clisp.org>
52574         memmove: Move AC_LIBOBJ invocations to module description.
52575         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
52576         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
52577         here...
52578         * modules/memmove (configure.ac): ... to here.
52580 2011-05-21  Bruno Haible  <bruno@clisp.org>
52582         memmem*: Move AC_LIBOBJ invocations to module description.
52583         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
52584         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
52585         here...
52586         (gl_FUNC_MEMMEM): ... and here...
52587         * modules/memmem-simple (configure.ac): ... to here.
52588         * modules/memmem (configure.ac): ... and here.
52590 2011-05-21  Bruno Haible  <bruno@clisp.org>
52592         memcpy: Move AC_LIBOBJ invocations to module description.
52593         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
52594         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
52595         here...
52596         * modules/memcpy (configure.ac): ... to here.
52598 2011-05-21  Bruno Haible  <bruno@clisp.org>
52600         memcmp: Simplify autoconf macro.
52601         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
52602         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
52603         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
52605 2011-05-21  Bruno Haible  <bruno@clisp.org>
52607         memcmp: Move AC_LIBOBJ invocations to module description.
52608         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
52609         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
52610         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
52611         * modules/memcmp (configure.ac): ... to here.
52612         (Depends-on): Update conditions.
52614 2011-05-21  Bruno Haible  <bruno@clisp.org>
52616         memchr: Respect rules for use of AC_LIBOBJ.
52617         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
52618         invocations from here...
52619         * modules/memchr (configure.ac): ... to here.
52621 2011-05-21  Bruno Haible  <bruno@clisp.org>
52623         mbtowc: Move AC_LIBOBJ invocations to module description.
52624         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
52625         invocations from here...
52626         * modules/mbtowc (configure.ac): ... to here.
52628 2011-05-21  Bruno Haible  <bruno@clisp.org>
52630         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
52631         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
52632         gl_PREREQ_MBSRTOWCS invocations from here...
52633         * modules/mbsrtowcs (configure.ac): ... to here.
52635 2011-05-21  Bruno Haible  <bruno@clisp.org>
52637         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
52638         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
52639         gl_PREREQ_MBSNRTOWCS invocations from here...
52640         * modules/mbsnrtowcs (configure.ac): ... to here.
52642 2011-05-21  Bruno Haible  <bruno@clisp.org>
52644         mbsinit: Move AC_LIBOBJ invocations to module description.
52645         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
52646         invocations from here...
52647         * modules/mbsinit (configure.ac): ... to here.
52649 2011-05-21  Bruno Haible  <bruno@clisp.org>
52651         mbrlen: Move AC_LIBOBJ invocations to module description.
52652         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
52653         invocations from here...
52654         * modules/mbrlen (configure.ac): ... to here.
52656 2011-05-21  Bruno Haible  <bruno@clisp.org>
52658         mbrtowc: Respect rules for use of AC_LIBOBJ.
52659         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
52660         invocations from here...
52661         * modules/mbrtowc (configure.ac): ... to here.
52663 2011-05-21  Bruno Haible  <bruno@clisp.org>
52665         malloc-*: Move AC_LIBOBJ invocations to module description.
52666         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
52667         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
52668         AC_LIBOBJ invocations from here...
52669         * modules/malloc-gnu (configure.ac): ... to here.
52670         * modules/malloc-posix (configure.ac): ... and here.
52672 2011-05-21  Bruno Haible  <bruno@clisp.org>
52674         lstat, openat: Respect rules for use of AC_LIBOBJ.
52675         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
52676         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
52677         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
52678         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
52679         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
52680         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
52681         here.
52682         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
52684 2011-05-21  Bruno Haible  <bruno@clisp.org>
52686         lseek: Move AC_LIBOBJ invocations to module description.
52687         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
52688         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
52689         * modules/lseek (configure.ac): ... to here.
52691 2011-05-21  Bruno Haible  <bruno@clisp.org>
52693         linkat: Move AC_LIBOBJ invocations to module description.
52694         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
52695         here...
52696         * modules/linkat (configure.ac): ... to here.
52698 2011-05-21  Bruno Haible  <bruno@clisp.org>
52700         link: Respect rules for use of AC_LIBOBJ.
52701         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
52702         * modules/link (configure.ac): ... to here.
52704 2011-05-21  Bruno Haible  <bruno@clisp.org>
52706         lchown: Move AC_LIBOBJ invocations to module description.
52707         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
52708         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
52709         * modules/lchown (configure.ac): ... to here.
52711 2011-05-21  Bruno Haible  <bruno@clisp.org>
52713         iswctype: Move AC_LIBOBJ invocations to module description.
52714         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
52715         here...
52716         * modules/iswctype (configure.ac): ... to here.
52718 2011-05-21  Bruno Haible  <bruno@clisp.org>
52720         iswblank: Move AC_LIBOBJ invocations to module description.
52721         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
52722         here...
52723         * modules/iswblank (configure.ac): ... to here.
52725 2011-05-21  Bruno Haible  <bruno@clisp.org>
52727         atanl: Move AC_LIBOBJ invocations to module description.
52728         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
52729         * modules/atanl (configure.ac): ... to here.
52731 2011-05-21  Bruno Haible  <bruno@clisp.org>
52733         acosl: Move AC_LIBOBJ invocations to module description.
52734         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
52735         * modules/acosl (configure.ac): ... to here.
52737 2011-05-21  Bruno Haible  <bruno@clisp.org>
52739         asinl: Respect rules for use of AC_LIBOBJ.
52740         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
52741         * modules/asinl (configure.ac): ... to here.
52743 2011-05-21  Bruno Haible  <bruno@clisp.org>
52745         tanl: Move AC_LIBOBJ invocations to module description.
52746         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
52747         * modules/tanl (configure.ac): ... to here.
52749 2011-05-21  Bruno Haible  <bruno@clisp.org>
52751         cosl: Move AC_LIBOBJ invocations to module description.
52752         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
52753         * modules/cosl (configure.ac): ... to here.
52755 2011-05-21  Bruno Haible  <bruno@clisp.org>
52757         sinl: Move AC_LIBOBJ invocations to module description.
52758         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
52759         * modules/sinl (configure.ac): ... to here.
52761 2011-05-21  Bruno Haible  <bruno@clisp.org>
52763         logl: Move AC_LIBOBJ invocations to module description.
52764         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
52765         * modules/logl (configure.ac): ... to here.
52767 2011-05-21  Bruno Haible  <bruno@clisp.org>
52769         expl: Move AC_LIBOBJ invocations to module description.
52770         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
52771         * modules/expl (configure.ac): ... to here.
52773 2011-05-21  Bruno Haible  <bruno@clisp.org>
52775         roundl: Move AC_LIBOBJ invocations to module description.
52776         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
52777         * modules/roundl (configure.ac): ... to here.
52779 2011-05-21  Bruno Haible  <bruno@clisp.org>
52781         round: Move AC_LIBOBJ invocations to module description.
52782         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
52783         * modules/round (configure.ac): ... to here.
52785 2011-05-21  Bruno Haible  <bruno@clisp.org>
52787         roundf: Move AC_LIBOBJ invocations to module description.
52788         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
52789         * modules/roundf (configure.ac): ... to here.
52791 2011-05-21  Bruno Haible  <bruno@clisp.org>
52793         truncl: Move AC_LIBOBJ invocations to module description.
52794         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
52795         * modules/truncl (configure.ac): ... to here.
52797 2011-05-21  Bruno Haible  <bruno@clisp.org>
52799         trunc: Move AC_LIBOBJ invocations to module description.
52800         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
52801         * modules/trunc (configure.ac): ... to here.
52803 2011-05-21  Bruno Haible  <bruno@clisp.org>
52805         truncf: Move AC_LIBOBJ invocations to module description.
52806         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
52807         * modules/truncf (configure.ac): ... to here.
52809 2011-05-21  Bruno Haible  <bruno@clisp.org>
52811         ceill: Move AC_LIBOBJ invocations to module description.
52812         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
52813         * modules/ceill (configure.ac): ... to here.
52815 2011-05-21  Bruno Haible  <bruno@clisp.org>
52817         ceil: Move AC_LIBOBJ invocations to module description.
52818         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
52819         * modules/ceil (configure.ac): ... to here.
52821 2011-05-21  Bruno Haible  <bruno@clisp.org>
52823         ceilf: Move AC_LIBOBJ invocations to module description.
52824         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
52825         * modules/ceilf (configure.ac): ... to here.
52827 2011-05-21  Bruno Haible  <bruno@clisp.org>
52829         floorl: Respect rules for use of AC_LIBOBJ.
52830         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
52831         * modules/floorl (configure.ac): ... to here.
52833 2011-05-21  Bruno Haible  <bruno@clisp.org>
52835         floor: Respect rules for use of AC_LIBOBJ.
52836         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
52837         * modules/floor (configure.ac): ... to here.
52839 2011-05-21  Bruno Haible  <bruno@clisp.org>
52841         floorf: Move AC_LIBOBJ invocations to module description.
52842         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
52843         * modules/floorf (configure.ac): ... to here.
52845 2011-05-20  Bruno Haible  <bruno@clisp.org>
52847         sqrtl: Respect rules for use of AC_LIBOBJ.
52848         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
52849         * modules/sqrtl (configure.ac): ... to here.
52851 2011-05-20  Bruno Haible  <bruno@clisp.org>
52853         ldexpl: Respect rules for use of AC_LIBOBJ.
52854         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
52855         * modules/ldexpl (configure.ac): ... to here.
52857 2011-05-20  Bruno Haible  <bruno@clisp.org>
52859         frexpl*: Respect rules for use of AC_LIBOBJ.
52860         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
52861         invocation from here...
52862         * modules/frexpl (configure.ac): ... to here.
52863         * modules/frexpl-nolibm (configure.ac): ... and here.
52865 2011-05-20  Bruno Haible  <bruno@clisp.org>
52867         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
52868         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
52869         invocation from here...
52870         * modules/frexp (configure.ac): ... to here.
52871         * modules/frexp-nolibm (configure.ac): ... and here.
52873 2011-05-20  Bruno Haible  <bruno@clisp.org>
52875         isnan: Respect rules for use of AC_LIBOBJ.
52876         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
52877         invocations here.
52878         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
52879         REPLACE_ISNAN.
52880         * modules/isnand (configure.ac): Likewise.
52881         * modules/isnanl (configure.ac): Likewise.
52883 2011-05-20  Bruno Haible  <bruno@clisp.org>
52885         isnanl*: Respect rules for use of AC_LIBOBJ.
52886         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
52887         invocation from here...
52888         * modules/isnanl (configure.ac): ... to here.
52889         * modules/isnanl-nolibm (configure.ac): ... and here.
52891 2011-05-20  Bruno Haible  <bruno@clisp.org>
52893         isnand*: Move AC_LIBOBJ invocations to module description.
52894         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
52895         invocation from here...
52896         * modules/isnand (configure.ac): ... to here.
52897         * modules/isnand-nolibm (configure.ac): ... and here.
52899 2011-05-20  Bruno Haible  <bruno@clisp.org>
52901         isnanf*: Move AC_LIBOBJ invocations to module description.
52902         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
52903         invocation from here...
52904         * modules/isnanf (configure.ac): ... to here.
52905         * modules/isnanf-nolibm (configure.ac): ... and here.
52907 2011-05-20  Bruno Haible  <bruno@clisp.org>
52909         isnan*: Separate the AC_LIBOBJ invocations.
52910         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
52911         AC_LIBOBJ invocation.
52912         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
52913         here.
52914         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
52915         AC_LIBOBJ invocation.
52916         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
52917         here.
52918         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
52919         AC_LIBOBJ invocation.
52920         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
52921         here.
52922         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
52924 2011-05-08  Bruno Haible  <bruno@clisp.org>
52926         isinf: Move AC_LIBOBJ invocations to module description.
52927         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
52928         * modules/isinf (configure.ac): ... to here.
52930 2011-05-08  Bruno Haible  <bruno@clisp.org>
52932         isfinite: Move AC_LIBOBJ invocations to module description.
52933         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
52934         * modules/isfinite (configure.ac): ... to here.
52936 2011-05-08  Bruno Haible  <bruno@clisp.org>
52938         isblank: Move AC_LIBOBJ invocations to module description.
52939         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
52940         here...
52941         * modules/isblank (configure.ac): ... to here.
52943 2011-05-08  Bruno Haible  <bruno@clisp.org>
52945         isapipe: Move AC_LIBOBJ invocations to module description.
52946         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
52947         gl_PREREQ_ISAPIPE invocations from here...
52948         * modules/isapipe (configure.ac): ... to here.
52949         (Depends-on): Update condition.
52951 2011-05-08  Bruno Haible  <bruno@clisp.org>
52953         ioctl: Move AC_LIBOBJ invocations to module description.
52954         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
52955         invocations from here...
52956         * modules/ioctl (configure.ac): ... to here.
52957         (Depends-on): Update condition.
52959 2011-05-08  Bruno Haible  <bruno@clisp.org>
52961         imaxdiv: Move AC_LIBOBJ invocations to module description.
52962         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
52963         invocations from here...
52964         * modules/imaxdiv (configure.ac): ... to here.
52966 2011-05-08  Bruno Haible  <bruno@clisp.org>
52968         imaxabs: Move AC_LIBOBJ invocations to module description.
52969         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
52970         invocations from here...
52971         * modules/imaxabs (configure.ac): ... to here.
52973 2011-05-08  Bruno Haible  <bruno@clisp.org>
52975         getaddrinfo: Move AC_LIBOBJ invocations to module description.
52976         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
52977         AC_LIBOBJ invocations from here...
52978         * modules/getaddrinfo (configure.ac): ... to here.
52979         (Depends-on): Add conditions.
52981 2011-05-08  Bruno Haible  <bruno@clisp.org>
52983         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
52984         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
52985         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
52986         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
52987         (gl_PREREQ_INET_PTON): ... from here.
52988         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
52989         gl_PREREQ_INET_PTON here.
52990         (Depends-on): Update condition.
52992 2011-05-08  Bruno Haible  <bruno@clisp.org>
52994         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
52995         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
52996         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
52997         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
52998         (gl_PREREQ_INET_NTOP): ... from here.
52999         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
53000         gl_PREREQ_INET_NTOP here.
53001         (Depends-on): Update condition.
53003 2011-05-08  Bruno Haible  <bruno@clisp.org>
53005         iconv_open: Move AC_LIBOBJ invocations to module description.
53006         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
53007         AC_LIBOBJ invocations from here...
53008         * modules/iconv_open (configure.ac): ... to here.
53010 2011-05-08  Bruno Haible  <bruno@clisp.org>
53012         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
53013         If module 'iconv_open' is among the main modules and module
53014         'iconv_open-utf' is among the tests dependencies, then
53015         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
53016         return the special iconv_t values. Therefore iconv() and iconv_close()
53017         must support these special iconv_t values, already in lib, not only in
53018         tests.
53019         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
53020         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
53021         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
53022         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
53023         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
53024         (Depends-on): Add the dependencies of iconv_open-utf.
53025         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
53026         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
53027         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
53029 2011-05-08  Bruno Haible  <bruno@clisp.org>
53031         group-member: Move AC_LIBOBJ invocations to module description.
53032         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
53033         gl_PREREQ_GROUP_MEMBER invocations from here...
53034         * modules/group-member (configure.ac): ... to here.
53036 2011-05-08  Bruno Haible  <bruno@clisp.org>
53038         grantpt: Move AC_LIBOBJ invocations to module description.
53039         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
53040         invocations from here...
53041         * modules/grantpt (configure.ac): ... to here.
53043 2011-05-08  Bruno Haible  <bruno@clisp.org>
53045         glob: Move AC_LIBOBJ invocations to module description.
53046         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
53047         from here...
53048         * modules/glob (configure.ac): ... to here.
53050 2011-05-08  Bruno Haible  <bruno@clisp.org>
53052         getusershell: Move AC_LIBOBJ invocations to module description.
53053         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
53054         Move AC_LIBOBJ invocation from here...
53055         * modules/getusershell (configure.ac): ... to here.
53056         (Depends-on): Update condition.
53058 2011-05-08  Bruno Haible  <bruno@clisp.org>
53060         gettimeofday: Move AC_LIBOBJ invocations to module description.
53061         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
53062         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
53063         gl_PREREQ_GETTIMEOFDAY invocations from here...
53064         * modules/gettimeofday (configure.ac): ... to here.
53066 2011-05-08  Bruno Haible  <bruno@clisp.org>
53068         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
53069         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
53070         just gl_FUNC_TZSET.
53071         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
53072         (gl_FUNC_TZSET_CLOBBER): Remove actions.
53073         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
53074         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
53076 2011-05-08  Bruno Haible  <bruno@clisp.org>
53078         getsubopt: Move AC_LIBOBJ invocations to module description.
53079         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
53080         gl_PREREQ_GETSUBOPT invocations from here...
53081         * modules/getsubopt (configure.ac): ... to here.
53083 2011-05-08  Bruno Haible  <bruno@clisp.org>
53085         getpass-gnu: Move AC_LIBOBJ invocations to module description.
53086         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
53087         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
53088         * modules/getpass-gnu (configure.ac): ... to here.
53090 2011-05-08  Bruno Haible  <bruno@clisp.org>
53092         getpass: Move AC_LIBOBJ invocations to module description.
53093         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
53094         gl_PREREQ_GETPASS invocations from here...
53095         * modules/getpass (configure.ac): ... to here.
53097 2011-05-08  Bruno Haible  <bruno@clisp.org>
53099         getpagesize: Move AC_LIBOBJ invocations to module description.
53100         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
53101         from here...
53102         * modules/getpagesize (configure.ac): ... to here.
53104 2011-05-08  Bruno Haible  <bruno@clisp.org>
53106         getopt: Move AC_LIBOBJ invocations to module description.
53107         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
53108         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
53109         invocations from here...
53110         * modules/getopt-gnu (configure.ac): ... to here.
53111         * modules/getopt-posix (configure.ac): ... and here.
53112         (Depends-on): Update condition.
53114 2011-05-08  Bruno Haible  <bruno@clisp.org>
53116         getopt, argp: Respect rules for use of AC_LIBOBJ.
53117         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
53118         (gl_REPLACE_GETOPT_ALWAYS): New macro.
53119         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
53120         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
53122 2011-05-08  Bruno Haible  <bruno@clisp.org>
53124         getlogin_r: Move AC_LIBOBJ invocations to module description.
53125         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
53126         gl_PREREQ_GETLOGIN_R invocations from here...
53127         * modules/getlogin_r (configure.ac): ... to here.
53129 2011-05-08  Bruno Haible  <bruno@clisp.org>
53131         getlogin: Move AC_LIBOBJ invocations to module description.
53132         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
53133         here...
53134         * modules/getlogin (configure.ac): ... to here.
53136 2011-05-08  Bruno Haible  <bruno@clisp.org>
53138         getloadavg: Move AC_LIBOBJ invocations to module description.
53139         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
53140         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
53141         * modules/getloadavg (configure.ac): ... to here.
53143 2011-05-08  Bruno Haible  <bruno@clisp.org>
53145         gethrxtime: Move AC_LIBOBJ invocations to module description.
53146         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
53147         LIB_GETHRXTIME from here...
53148         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
53149         invocations from here...
53150         * modules/gethrxtime (configure.ac): ... to here.
53152 2011-05-08  Bruno Haible  <bruno@clisp.org>
53154         gethostname: Move AC_LIBOBJ invocations to module description.
53155         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
53156         gl_PREREQ_GETHOSTNAME invocations from here...
53157         * modules/gethostname (configure.ac): ... to here.
53159 2011-05-08  Bruno Haible  <bruno@clisp.org>
53161         getgroups: Move AC_LIBOBJ invocations to module description.
53162         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
53163         here...
53164         * modules/getgroups (configure.ac): ... to here.
53166 2011-05-08  Bruno Haible  <bruno@clisp.org>
53168         getdtablesize: Move AC_LIBOBJ invocations to module description.
53169         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
53170         invocation from here...
53171         * modules/getdtablesize (configure.ac): ... to here.
53173 2011-05-08  Bruno Haible  <bruno@clisp.org>
53175         getdomainname: Move AC_LIBOBJ invocations to module description.
53176         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
53177         gl_PREREQ_GETDOMAINNAME invocations from here...
53178         * modules/getdomainname (configure.ac): ... to here.
53180 2011-05-08  Bruno Haible  <bruno@clisp.org>
53182         getline: Move AC_LIBOBJ invocations to module description.
53183         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
53184         invocations from here...
53185         * modules/getline (configure.ac): ... to here.
53187 2011-05-08  Bruno Haible  <bruno@clisp.org>
53189         getline: Simplify.
53190         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
53191         It's already handled through the module dependency.
53193 2011-05-08  Bruno Haible  <bruno@clisp.org>
53195         getdelim: Move AC_LIBOBJ invocations to module description.
53196         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
53197         and gl_PREREQ_GETDELIM invocations from here...
53198         * modules/getdelim (configure.ac): ... to here.
53199         (Depends-on): Fix condition.
53201 2011-05-08  Bruno Haible  <bruno@clisp.org>
53203         getcwd: Move AC_LIBOBJ invocations to module description.
53204         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
53205         invocations from here...
53206         * modules/getcwd (configure.ac): ... to here.
53208 2011-05-08  Bruno Haible  <bruno@clisp.org>
53210         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
53211         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
53212         here...
53213         * modules/getcwd-lgpl (configure.ac): ... to here.
53215 2011-05-07  Bruno Haible  <bruno@clisp.org>
53217         crypto/gc: Move AC_LIBOBJ invocations to module description.
53218         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
53219         * modules/crypto/gc (configure.ac): ... to here.
53221 2011-05-07  Bruno Haible  <bruno@clisp.org>
53223         fwriting: Move AC_LIBOBJ invocations to module description.
53224         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
53225         here...
53226         * modules/fwriting (configure.ac): ... to here.
53228 2011-05-07  Bruno Haible  <bruno@clisp.org>
53230         fwritable: Move AC_LIBOBJ invocations to module description.
53231         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
53232         here...
53233         * modules/fwritable (configure.ac): ... to here.
53235 2011-05-07  Bruno Haible  <bruno@clisp.org>
53237         futimens: Move AC_LIBOBJ invocations to module description.
53238         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
53239         here...
53240         * modules/futimens (configure.ac): ... to here.
53242 2011-05-07  Bruno Haible  <bruno@clisp.org>
53244         ftruncate: Move AC_LIBOBJ invocations to module description.
53245         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
53246         gl_PREREQ_FTRUNCATE invocations from here...
53247         * modules/ftruncate (configure.ac): ... to here.
53249 2011-05-07  Bruno Haible  <bruno@clisp.org>
53251         fsync: Move AC_LIBOBJ invocations to module description.
53252         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
53253         invocations from here...
53254         * modules/fsync (configure.ac): ... to here.
53256 2011-05-07  Bruno Haible  <bruno@clisp.org>
53258         fsusage: Move AC_LIBOBJ invocations to module description.
53259         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
53260         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
53261         * modules/fsusage (configure.ac): ... to here.
53263 2011-05-07  Bruno Haible  <bruno@clisp.org>
53265         freopen: Move AC_LIBOBJ invocations to module description.
53266         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
53267         invocations from here...
53268         * modules/freopen (configure.ac): ... to here.
53270 2011-05-07  Bruno Haible  <bruno@clisp.org>
53272         free: Move AC_LIBOBJ invocations to module description.
53273         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
53274         invocations from here...
53275         * modules/free (configure.ac): ... to here.
53277 2011-05-07  Bruno Haible  <bruno@clisp.org>
53279         freadable: Move AC_LIBOBJ invocations to module description.
53280         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
53281         here...
53282         * modules/freadable (configure.ac): ... to here.
53284 2011-05-07  Bruno Haible  <bruno@clisp.org>
53286         fpurge: Move AC_LIBOBJ invocations to module description.
53287         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
53288         invocations from here...
53289         * modules/fpurge (configure.ac): ... to here.
53291 2011-05-07  Bruno Haible  <bruno@clisp.org>
53293         fpending: Move AC_LIBOBJ invocations to module description.
53294         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
53295         gl_FUNC_FPENDING.
53296         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
53297         invocations from here...
53298         * modules/fpending (configure.ac): ... to here.
53300 2011-05-07  Bruno Haible  <bruno@clisp.org>
53302         fopen: Move AC_LIBOBJ invocations to module description.
53303         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
53304         invocations from here...
53305         * modules/fopen (configure.ac): ... to here.
53307 2011-05-07  Bruno Haible  <bruno@clisp.org>
53309         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
53310         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
53311         gl_FUNC_FNMATCH_POSIX.
53312         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
53313         invocations from here...
53314         * modules/fnmatch (configure.ac): ... to here.
53315         * modules/fnmatch-gnu (configure.ac): ... and here.
53317 2011-05-07  Bruno Haible  <bruno@clisp.org>
53319         flock: Move AC_LIBOBJ invocations to module description.
53320         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
53321         invocations from here...
53322         * modules/flock (configure.ac): ... to here.
53324 2011-05-07  Bruno Haible  <bruno@clisp.org>
53326         fileblocks: Move AC_LIBOBJ invocations to module description.
53327         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
53328         gl_PREREQ_FILEBLOCKS invocations from here...
53329         * modules/fileblocks (configure.ac): ... to here.
53331 2011-05-06  Bruno Haible  <bruno@clisp.org>
53333         fflush: Move AC_LIBOBJ invocations to module description.
53334         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
53335         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
53336         invocations from here...
53337         * modules/fflush (configure.ac): ... to here.
53339 2011-05-06  Bruno Haible  <bruno@clisp.org>
53341         fdopendir: Move AC_LIBOBJ invocations to module description.
53342         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
53343         here...
53344         * modules/fdopendir (configure.ac): ... to here.
53345         (Depends-on): Improve conditions.
53347 2011-05-06  Bruno Haible  <bruno@clisp.org>
53349         _Exit: Move AC_LIBOBJ invocations to module description.
53350         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
53351         invocations from here...
53352         * modules/_Exit (configure.ac): ... to here.
53354 2011-05-21  Bruno Haible  <bruno@clisp.org>
53356         euidaccess: Respect rules for use of AC_LIBOBJ.
53357         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
53358         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
53359         from here...
53360         * modules/euidaccess (configure.ac): ... to here.
53362 2011-05-06  Bruno Haible  <bruno@clisp.org>
53364         error: Move AC_LIBOBJ invocations to module description.
53365         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
53366         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
53367         invocations from here...
53368         * modules/error (configure.ac): ... to here.
53370 2011-05-06  Bruno Haible  <bruno@clisp.org>
53372         duplocale: Move AC_LIBOBJ invocations to module description.
53373         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
53374         gl_PREREQ_DUPLOCALE invocations from here...
53375         * modules/duplocale (configure.ac): ... to here.
53377 2011-05-05  Bruno Haible  <bruno@clisp.org>
53379         dirfd: Move AC_LIBOBJ invocations to module description.
53380         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
53381         gl_FUNC_DIRFD.
53382         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
53383         here...
53384         * modules/dirfd (configure.ac): ... to here.
53385         (Depends-on): Fix condition.
53387 2011-05-05  Bruno Haible  <bruno@clisp.org>
53389         chown: Respect rules for use of AC_LIBOBJ.
53390         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
53391         * modules/chown (configure.ac): ... to here.
53393 2011-05-05  Bruno Haible  <bruno@clisp.org>
53395         chdir-long: Move AC_LIBOBJ invocations to module description.
53396         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
53397         gl_PREREQ_CHDIR_LONG invocations from here...
53398         * modules/chdir-long (configure.ac): ... to here.
53400 2011-05-05  Bruno Haible  <bruno@clisp.org>
53402         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
53403         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
53404         from here...
53405         * modules/canonicalize-lgpl (configure.ac): ... to here.
53407 2011-05-05  Bruno Haible  <bruno@clisp.org>
53409         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
53410         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
53411         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
53412         REPLACE_CALLOC.
53413         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
53414         * modules/calloc-gnu (configure.ac): Likewise.
53416 2011-05-05  Bruno Haible  <bruno@clisp.org>
53418         btowc: Move AC_LIBOBJ invocations to module description.
53419         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
53420         invocations from here...
53421         * modules/btowc (configure.ac): ... to here.
53423 2011-05-21  Bruno Haible  <bruno@clisp.org>
53425         atexit: Move AC_LIBOBJ invocations to module description.
53426         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
53427         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
53428         here...
53429         * modules/atexit (configure.ac): ... to here.
53431 2011-05-05  Bruno Haible  <bruno@clisp.org>
53433         atoll: Move AC_LIBOBJ invocations to module description.
53434         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
53435         invocations from here...
53436         * modules/atoll (configure.ac): ... to here.
53438 2011-05-05  Bruno Haible  <bruno@clisp.org>
53440         argz: Move AC_LIBOBJ invocations to module description.
53441         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
53442         * modules/argz (configure.ac): ... to here.
53444 2011-05-05  Bruno Haible  <bruno@clisp.org>
53446         alphasort: Move AC_LIBOBJ invocations to module description.
53447         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
53448         gl_PREREQ_ALPHASORT invocations from here...
53449         * modules/alphasort (configure.ac): ... to here.
53451 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
53453         verify: new macro verify_expr; verify_true deprecated
53454         * NEWS: Mention this.
53455         * doc/verify.texi (Compile-time Assertions): Document this.
53456         * lib/verify.h (verify_true): Deprecate.
53457         (verify_expr): New macro.
53458         * tests/test-verify.c (function): Test verify_expr.
53460 2011-06-14  Jim Meyering  <meyering@redhat.com>
53462         init.sh: give more portable redirection-related advice in a comment
53463         * tests/init.sh (stderr_fileno_): Update the advice in comments.
53464         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
53465         for lots of discussion.  Stefano Lattarini suggested the solution
53466         of putting "9>&2" after the command.  Reported by Bruno Haible.
53468 2011-06-13  Bruno Haible  <bruno@clisp.org>
53470         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
53471         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
53472         'none'.
53474 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
53476         ftoastr: use strtof only if HAVE_STRTOF
53477         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
53478         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
53479         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
53480         * modules/ftoastr (configure.ac): Check for strtof.
53482 2011-06-13  Bruno Haible  <bruno@clisp.org>
53484         gnulib-tool: Addendum to 2011-06-08 commit.
53485         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
53486         and --witness-c-macro have been given, augment AM_CPPFLAGS.
53488 2011-06-13  Bruno Haible  <bruno@clisp.org>
53490         fseeko: Provide a non-inline replacement of fseek().
53491         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
53492         * modules/fseeko (Depends-on): Add fseek.
53493         * modules/fseek (License): Change to LGPLv2+.
53495 2011-06-13  Bruno Haible  <bruno@clisp.org>
53497         ftello: Provide a non-inline replacement of ftell().
53498         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
53499         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
53500         not have ftello() (such as on mingw).
53501         * modules/ftello (Depends-on): Add ftell.
53502         * modules/ftell (License): Change to LGPLv2+.
53504 2011-05-07  Bruno Haible  <bruno@clisp.org>
53506         ftell: Move AC_LIBOBJ invocations to module description.
53507         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
53508         * modules/ftell (configure.ac): ... to here.
53510 2011-05-07  Bruno Haible  <bruno@clisp.org>
53512         ftello: Respect rules for use of AC_LIBOBJ.
53513         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
53514         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
53515         here...
53516         * modules/ftello (configure.ac): ... to here.
53518 2011-05-07  Bruno Haible  <bruno@clisp.org>
53520         fseeko: Simplify.
53521         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
53522         (gl_FUNC_FSEEKO): Inline it here.
53524 2011-05-07  Bruno Haible  <bruno@clisp.org>
53526         fseek: Move AC_LIBOBJ invocations to module description.
53527         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
53528         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
53529         * modules/fseek (configure.ac): ... to here.
53531 2011-05-07  Bruno Haible  <bruno@clisp.org>
53533         fseek: Respect rules for use of AC_LIBOBJ.
53534         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
53535         here...
53536         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
53538 2011-05-07  Bruno Haible  <bruno@clisp.org>
53540         fseeko: Respect rules for use of AC_LIBOBJ.
53541         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
53542         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
53543         here...
53544         * modules/fseeko (configure.ac): ... to here.
53546 2011-06-13  Bruno Haible  <bruno@clisp.org>
53548         gnulib-tool: Allow comments in the 'Depends-on' section.
53549         * doc/gnulib.texi (Module description): Mention comment syntax in the
53550         Depends-on section.
53551         * gnulib-tool (func_get_dependencies): Filter out comment lines.
53553 2011-06-13  Bruno Haible  <bruno@clisp.org>
53555         file-set.h: guard __attibute__ use, now that it's not always defined
53556         * lib/file-set.h (record_file): Use __attribute__ only with compiler
53557         versions that support it.  This fixes a coreutils build failure with
53558         the vendor cc on HP-UX 11.31.
53560 2011-06-12  Bruno Haible  <bruno@clisp.org>
53562         acl: Add support for HP-UX >= 11.11 JFS ACLs.
53563         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
53564         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
53565         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
53566         (acl, aclsort): New declarations.
53567         (aclv_nontrivial): New declaration.
53568         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
53569         (file_has_acl): Read also the second kind of HP-UX ACLs.
53570         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
53571         kind of HP-UX ACLs if the first kind fails.
53572         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
53573         second kind of HP-UX ACLs.
53574         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
53575         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
53576         agree.
53577         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
53578         hpuxjfs.
53579         Handle hpuxjfs.
53580         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
53581         hpuxjfs.
53582         Handle hpuxjfs.
53583         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
53584         (func_test_same_acls): Use both lsacl and getacl.
53585         Handle hpuxjfs.
53586         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
53587         (func_test_same_acls): Use both lsacl and getacl.
53588         Handle hpuxjfs.
53590 2011-06-12  Bruno Haible  <bruno@clisp.org>
53592         acl: Complete the 2010-08-10 fix.
53593         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
53594         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
53595         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
53596         explicitly.
53597         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
53598         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
53600 2011-06-12  Bruno Haible  <bruno@clisp.org>
53602         spawn-pipe tests: Comments.
53603         * tests/test-spawn-pipe-child.c (main): Update comment.
53604         Reported by James Youngman <jay@gnu.org>.
53606 2011-06-11  James Youngman  <jay@gnu.org>
53608         New module 'stat-size'.
53609         * modules/stat-size: New module.  Provides macros for accessing
53610         file size information in instances of struct stat.  Depends on the
53611         fileblocks module because it calls st_blocks.
53612         * lib/stat-size.h: New file, adapted from coreutils' system.h.
53613         * doc/gnulib.texi: Include stat-size.texi.
53614         * doc/stat-size.texi: Documentation for this module.
53615         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
53616         * m4/fileblocks.m4: Mention that stat-size depends on the call to
53617         AC_STRUCT_ST_BLOCKS.
53619 2011-06-09  Bruno Haible  <bruno@clisp.org>
53621         thread: Support pthreads-win32.
53622         * lib/glthread/thread.h (gl_thread_self): Define differently on
53623         pthreads-win32.
53624         (gl_null_thread): New declaration.
53625         (gl_thread_self_pointer): New macro.
53626         * lib/glthread/thread.c (gl_null_thread): New constant.
53627         * tests/test-lock.c: Use gl_thread_self_pointer instead of
53628         gl_thread_self.
53629         * tests/test-tls.c: Likewise.
53630         Suggested by Paul Eggert. Reported by Eric Blake.
53632 2011-06-09  Bruno Haible  <bruno@clisp.org>
53634         thread: Fix confusion between NULL and 0.
53635         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
53636         Reported by Paul Eggert.
53638 2011-06-09  Bruno Haible  <bruno@clisp.org>
53640         spawn-pipe tests: Avoid test failure on HP-UX 11.
53641         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
53642         is closed.
53644 2011-06-09  Bruno Haible  <bruno@clisp.org>
53646         acl tests: Fix compilation error on HP-UX 11.
53647         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
53649 2011-06-09  Bruno Haible  <bruno@clisp.org>
53651         rmdir: Avoid test failure on HP-UX 10.20.
53652         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
53653         EEXIST.
53655 2011-06-08  Eric Blake  <eblake@redhat.com>
53657         perror: fix test on mingw
53658         * modules/perror-tests (Depends-on): Add dup2.
53660         strerror_r-posix: fix on MacOS
53661         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
53662         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
53663         logic bug.
53664         * lib/strerror_r.c (strerror_r): Fix the bug.
53665         * lib/strerror.c (strerror): Likewise.
53666         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
53667         problem.
53668         * doc/posix-functions/strerror.texi (strerror): Likewise.
53669         * doc/posix-functions/perror.texi (perror): Likewise.
53670         * tests/test-strerror.c (main): Enhance test.
53671         * tests/test-strerror_r.c (main): Likewise.
53673 2011-06-08  Bruno Haible  <bruno@clisp.org>
53675         gnulib-tool: Better isolation between different gnulib-tool invocations.
53676         * gnulib-tool: New option --witness-c-macro.
53677         (witness_c_macro): New variable.
53678         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
53679         AM_CPPFLAGS define it as a C macro.
53680         (func_emit_tests_Makefile_am): Likewise.
53681         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
53682         read it from there.
53683         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
53684         m4_define, not AC_DEFUN.
53685         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
53686         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
53687         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
53688         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
53689         s|...|...|, to substitute the values of the GNULIB_* module indicator
53690         variables.
53691         * modules/dirent (Makefile.am): Likewise.
53692         * modules/fcntl-h (Makefile.am): Likewise.
53693         * modules/iconv-h (Makefile.am): Likewise.
53694         * modules/langinfo (Makefile.am): Likewise.
53695         * modules/locale (Makefile.am): Likewise.
53696         * modules/math (Makefile.am): Likewise.
53697         * modules/netdb (Makefile.am): Likewise.
53698         * modules/poll-h (Makefile.am): Likewise.
53699         * modules/pty (Makefile.am): Likewise.
53700         * modules/search (Makefile.am): Likewise.
53701         * modules/signal (Makefile.am): Likewise.
53702         * modules/spawn (Makefile.am): Likewise.
53703         * modules/stdio (Makefile.am): Likewise.
53704         * modules/stdlib (Makefile.am): Likewise.
53705         * modules/string (Makefile.am): Likewise.
53706         * modules/sys_ioctl (Makefile.am): Likewise.
53707         * modules/sys_select (Makefile.am): Likewise.
53708         * modules/sys_socket (Makefile.am): Likewise.
53709         * modules/sys_stat (Makefile.am): Likewise.
53710         * modules/sys_times (Makefile.am): Likewise.
53711         * modules/sys_utsname (Makefile.am): Likewise.
53712         * modules/sys_wait (Makefile.am): Likewise.
53713         * modules/termios (Makefile.am): Likewise.
53714         * modules/time (Makefile.am): Likewise.
53715         * modules/unistd (Makefile.am): Likewise.
53716         * modules/wchar (Makefile.am): Likewise.
53718 2011-06-08  Eric Blake  <eblake@redhat.com>
53720         strerror: simplify replacement
53721         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
53722         * modules/strerror (configure.ac): No prereqs needed here...
53723         * modules/strerror-override (configure.ac): ...but this needs it.
53724         (Files): Add file for needed prereq macro.
53726 2011-06-08  Bruno Haible  <bruno@clisp.org>
53728         strerror_r-posix: Tweaks.
53729         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
53730         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
53731         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
53732         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
53733         (gl_FUNC_STRERROR_R): ... to here.
53734         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
53736 2011-06-07  Eric Blake  <eblake@redhat.com>
53738         perror: document fixed bugs
53739         * doc/posix-functions/perror.texi (perror): Document recent
53740         patches.
53742 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
53744         stat-time: get_stat_birthtime failure is better-defined
53745         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
53746         return a timestamp whose tv_sec and tv_nsec values are both -1.
53747         Previously, the spec said only that the tv_nsec value was negative.
53748         This upward-compatible change simplifies GNU tar a bit.
53750 2011-06-07  Eric Blake  <eblake@redhat.com>
53752         strerror_r-posix: work around cygwin 1.7.9
53753         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
53754         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
53755         bug without replacing strerror_r.
53756         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
53757         strerror_r is buggy, but without requiring strerror_r compilation.
53758         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
53760         test-perror: relax test to ignore cygwin bug
53761         * tests/test-perror2.c (main): Relax test on requiring detection
53762         of stream errors, and use unbuffered stream.
53763         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
53764         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
53765         * doc/posix-functions/fputc.texi (fputc): Likewise.
53766         * doc/posix-functions/fputs.texi (fputs): Likewise.
53767         * doc/posix-functions/fputws.texi (fputws): Likewise.
53768         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
53769         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
53770         * doc/posix-functions/getopt.texi (getopt): Likewise.
53771         * doc/posix-functions/perror.texi (perror): Likewise.
53772         * doc/posix-functions/printf.texi (printf): Likewise.
53773         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
53774         * doc/posix-functions/psignal.texi (psignal): Likewise.
53775         * doc/posix-functions/putc.texi (putc): Likewise.
53776         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
53777         Likewise.
53778         * doc/posix-functions/putchar.texi (putchar): Likewise.
53779         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
53780         Likewise.
53781         * doc/posix-functions/puts.texi (puts): Likewise.
53782         * doc/posix-functions/putwc.texi (putwc): Likewise.
53783         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
53784         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
53785         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
53786         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
53787         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
53788         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
53789         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
53790         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
53792 2011-05-22  Bruno Haible  <bruno@clisp.org>
53794         strerror: Move AC_LIBOBJ invocations to module description.
53795         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
53796         gl_PREREQ_STRERROR invocations from here...
53797         * modules/strerror (configure.ac): ... to here.
53799 2011-05-21  Bruno Haible  <bruno@clisp.org>
53801         perror: Use common idiom.
53802         * modules/perror (configure.ac): Reorder statements.
53804 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
53806         tests: fix usage message in 'mktempd_'
53807         * tests/init.sh (mktempd_): In the usage message, use literal
53808         'mktempd_', not '$ME' (which is even undefined), as the name of
53809         the subroutine.
53811 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
53813         tests init: new function 'fatal_', for hard errors
53814         Before this patch, the only way offered by tests/init.sh to
53815         properly signal a hard error was the `framework_failure_'
53816         function.  But the error message issued by that function,
53817         as its name would suggest, refers to a set-up failure in the
53818         testsuite, while hard errors can obviously also be due to
53819         other reasons.  The best way to fix this inconsistency is to
53820         introduce a new function with a more general error message.
53821         * tests/init.sh (fatal_): New function.
53823 2011-06-06  Eric Blake  <eblake@redhat.com>
53825         canonicalize-lgpl: use common idiom
53826         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
53827         over newer POSIX -Rf.
53828         Reported by Bruno Haible.
53830         canonicalize-lgpl: work around AIX realpath bug
53831         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
53832         * doc/posix-functions/realpath.texi (realpath): Document it.
53833         Reported by Bruno Haible.
53835         strerror: work around FreeBSD bug
53836         * lib/strerror.c (strerror): Special case 0.
53837         Reported by Bruno Haible.
53839         strerror-override: avoid bloating errno module
53840         * modules/errno (Files, configure.ac): Move replacement strings...
53841         * modules/strerror-override: ...to new module.
53842         * modules/strerror (Depends-on): Add strerror-override.
53843         * modules/strerror_r-posix (Depends-on): Likewise.
53844         * MODULES.html.sh: Document new module.
53845         Reported by Bruno Haible.
53847 2011-06-06  Bruno Haible  <bruno@clisp.org>
53849         spawn-pipe tests: Rename program.
53850         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
53851         * tests/test-spawn-pipe-child.c: Update comment.
53852         * tests/test-spawn-pipe.sh: Update.
53853         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
53855         spawn-pipe tests: Link the child program only against libc.
53856         * tests/test-spawn-pipe-child.c: New file, extracted from
53857         tests/test-spawn-pipe.c.
53858         (main): Expect only one argument.
53859         (is_open): New function, copied from tests/test-pipe.c.
53860         * tests/test-spawn-pipe.c: Don't include <errno.h>.
53861         (child_main): Remove function.
53862         (test_pipe): Pass only one argument to the child program.
53863         (main): Remove child process code. Expect the child program's name as
53864         first argument.
53865         * tests/test-spawn-pipe.sh: Pass the child program's name as first
53866         argument.
53867         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
53868         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
53869         test-spawn-pipe-child against no libraries.
53871 2011-06-06  Bruno Haible  <bruno@clisp.org>
53873         careadlinkat: Avoid mismatch between ssize_t and int.
53874         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
53875         * lib/careadlinkat.c (careadlinkatcwd): Define always.
53877 2011-06-06  Jim Meyering  <meyering@redhat.com>
53879         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
53880         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
53881         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
53883 2011-06-05  Bruno Haible  <bruno@clisp.org>
53885         ansi-c++-opt: Interoperability with libtool.
53886         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
53887         set the variable to "no", not to ":".
53888         * NEWS: Mention the change.
53890 2011-06-05  Bruno Haible  <bruno@clisp.org>
53892         acl: Fix test failure on AIX 7.
53893         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
53894         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
53896 2011-06-05  Bruno Haible  <bruno@clisp.org>
53898         pipe-filter-ii: Fix test failure on AIX and IRIX.
53899         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
53900         with EAGAIN, retry with a smaller buffer size.
53902 2011-06-05  Bruno Haible  <bruno@clisp.org>
53904         localename: Fix link dependencies.
53905         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
53906         * modules/localename-tests (Makefile.am): Link test-localename with
53907         $(LIBTHREAD).
53909 2011-06-05  Bruno Haible  <bruno@clisp.org>
53911         error: Avoid gcc warning.
53912         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
53914 2011-06-05  Bruno Haible  <bruno@clisp.org>
53916         unsetenv: Avoid gcc warning.
53917         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
53919 2011-06-05  Bruno Haible  <bruno@clisp.org>
53921         setenv: Avoid gcc warning.
53922         * lib/setenv.c (setenv): Provide declaration if system lacks it.
53924 2011-06-05  Bruno Haible  <bruno@clisp.org>
53926         sys_select: Ensure memset is declared also on AIX 7.
53927         * lib/sys_select.in.h: Include <string.h> also on AIX.
53928         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
53929         self-contained also on AIX 7.1.
53931 2011-06-04  Jim Meyering  <meyering@redhat.com>
53933         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
53934         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
53935         function name, "error".
53936         (_gl_translatable_diag_func_re): New configurable variable.
53938 2011-06-04  Bruno Haible  <bruno@clisp.org>
53940         getopt: Avoid gcc warning.
53941         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
53943 2011-06-04  Bruno Haible  <bruno@clisp.org>
53945         strerror_r: Fix comments.
53946         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
53947         commit.
53949 2011-06-04  Bruno Haible  <bruno@clisp.org>
53951         perror: Fix compilation error.
53952         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
53953         Undefine fprintf, not sprintf.
53954         * modules/perror (Depends-on): Remove intprops, verify.
53956 2011-06-04  Bruno Haible  <bruno@clisp.org>
53958         setlocale: Enable replacement on Cygwin 1.5.
53959         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
53960         Cygwin 1.5.x.
53961         * doc/posix-functions/setlocale.texi: Mention that the problem with the
53962         LC_CTYPE category also exists on Cygwin 1.5.x.
53964 2011-06-04  Bruno Haible  <bruno@clisp.org>
53966         strerror-override: Don't disable symbol renamings.
53967         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
53968         * lib/strerror-override.c: Include config.h.
53969         (strerror_override): Don't undefine.
53971 2011-06-03  Bruno Haible  <bruno@clisp.org>
53973         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
53974         * lib/localename.h: Update copyright header.
53975         * lib/localename.c: Likewise.
53976         * lib/relocatable.h: Likewise.
53977         * lib/relocatable.c: Likewise.
53979 2011-06-02  Bruno Haible  <bruno@clisp.org>
53981         doc: Fix a module name.
53982         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
53984 2011-06-02  Bruno Haible  <bruno@clisp.org>
53986         pipe2: Remove dependency on 'nonblocking' module.
53987         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
53988         O_NONBLOCK is defined by gnulib.
53989         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
53990         is zero.
53991         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
53992         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
53993         defined by gnulib.
53994         (get_nonblocking_flag): New function.
53995         (main): Test O_NONBLOCK flag only if it is nonzero.
53996         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
53998 2011-06-03  Jim Meyering  <meyering@redhat.com>
54000         maint: three new prohibit-header-without-use rules
54001         Prohibit use of cloexec.h, posixver.h, same.h without use.
54002         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
54003         (sc_prohibit_posixver_without_use): Likewise.
54004         (sc_prohibit_same_without_use): Likewise.
54006 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
54008         allocator: 'die' routine is now given requested size
54009         * lib/allocator.h (struct allocator.die): New size arg.
54010         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
54011         If the actual problem is an ssize_t limitation, not a size_t or
54012         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
54014 2011-06-01  Eric Blake  <eblake@redhat.com>
54016         strerror: drop strerror_r dependency
54017         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
54018         * lib/strerror-override.c (strerror_override): ...to new file.
54019         * lib/strerror-override.h: Add prototype.
54020         * lib/strerror-impl.h: Delete.
54021         * lib/strerror.c (strerror): New implementation.
54022         * modules/errno (Files): Add new files.
54023         (configure.ac): Compile new file as appropriate.
54024         * modules/strerror (Files): Drop unused file.
54025         (Depends-on): Drop strerror_r-posix.
54026         * MODULES.html.sh: Document strerror_r-posix.
54027         Requested by Sam Steingold.
54029         perror: call strerror_r directly
54030         * modules/perror (Files): Drop strerror-impl.h.
54031         * lib/perror.c (perror): Use our own stack buffer, rather than
54032         calling a wrapper that uses static storage.
54033         * doc/posix-functions/perror.texi (perror): Document a limitation
54034         of our replacement.
54036         strerror_r: fix includes for FreeBSD
54037         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
54038         since we use abort on some platforms.
54039         Reported by Matthias Bolte.
54041 2011-05-31  Bruno Haible  <bruno@clisp.org>
54043         Fix link errors in tests: openat-die uses gettext-h.
54044         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
54045         against $(LIBINTL).
54046         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
54047         against $(LIBINTL).
54048         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
54049         $(LIBINTL).
54050         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
54051         against $(LIBINTL).
54052         * modules/linkat-tests (Makefile.am): Link test-linkat against
54053         $(LIBINTL).
54054         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
54055         $(LIBINTL).
54056         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
54057         against $(LIBINTL).
54058         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
54059         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
54060         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
54061         $(LIBINTL).
54062         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
54063         $(LIBINTL).
54064         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
54065         $(LIBINTL).
54066         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54068 2011-05-31  Bruno Haible  <bruno@clisp.org>
54070         Fix link errors in tests: wait-process uses gettext-h.
54071         * modules/nonblocking-pipe-tests (Makefile.am): Set
54072         test_nonblocking_pipe_main_LDADD.
54073         * modules/nonblocking-socket-tests (Makefile.am): Link
54074         test-nonblocking-socket-main against $(LIBINTL).
54075         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54077 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
54079         assert-h: work around 'verify' incompatibility
54080         * lib/verify.h: Use @...@ directives, not ifdef.
54081         * modules/assert-h (assert.h): Implement the directives.
54082         (assert.h): Substitute the symbol-prefix more consistently.
54084 2011-05-29  Jim Meyering  <meyering@redhat.com>
54086         trim: remove three superfluous assignments
54087         * lib/trim.c (trim2): Remove three superfluous assignments
54088         and correct brace positioning.
54090 2011-05-29  Bruno Haible  <bruno@clisp.org>
54092         wctype-h: Avoid namespace pollution on Solaris 2.6.
54093         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
54094         identifiers.
54095         * doc/posix-headers/wctype.texi: Mention the problem.
54096         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54098 2011-05-28  Jim Meyering  <meyering@redhat.com>
54100         parse-datetime.y: accommodate -Wstrict-overflow
54101         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
54102         placate -Wstrict-overflow.
54104         trim: avoid a warning from -O2 -Wstrict-overflow
54105         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
54107 2011-05-29  Bruno Haible  <bruno@clisp.org>
54109         gnulib-tool: Fix bug in yesterday's commit.
54110         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
54111         twice.
54113 2011-05-29  Bruno Haible  <bruno@clisp.org>
54115         Allow multiple gnulib generated include files to be combined.
54116         * gnulib-tool (func_compute_include_guard_prefix): New function.
54117         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
54118         ${gl_include_guard_prefix} references.
54119         (func_import, func_create_testdir): Invoke
54120         func_compute_include_guard_prefix.
54121         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
54122         * lib/ctype.in.h: Likewise.
54123         * lib/dirent.in.h: Likewise.
54124         * lib/errno.in.h: Likewise.
54125         * lib/fcntl.in.h: Likewise.
54126         * lib/float.in.h: Likewise.
54127         * lib/getopt.in.h: Likewise.
54128         * lib/iconv.in.h: Likewise.
54129         * lib/langinfo.in.h: Likewise.
54130         * lib/locale.in.h: Likewise.
54131         * lib/math.in.h: Likewise.
54132         * lib/netdb.in.h: Likewise.
54133         * lib/netinet_in.in.h: Likewise.
54134         * lib/poll.in.h: Likewise.
54135         * lib/pthread.in.h: Likewise.
54136         * lib/pty.in.h: Likewise.
54137         * lib/sched.in.h: Likewise.
54138         * lib/se-selinux.in.h: Likewise.
54139         * lib/search.in.h: Likewise.
54140         * lib/signal.in.h: Likewise.
54141         * lib/spawn.in.h: Likewise.
54142         * lib/stdarg.in.h: Likewise.
54143         * lib/stddef.in.h: Likewise.
54144         * lib/stdint.in.h: Likewise.
54145         * lib/stdio.in.h: Likewise.
54146         * lib/stdlib.in.h: Likewise.
54147         * lib/string.in.h: Likewise.
54148         * lib/strings.in.h: Likewise.
54149         * lib/sys_file.in.h: Likewise.
54150         * lib/sys_ioctl.in.h: Likewise.
54151         * lib/sys_select.in.h: Likewise.
54152         * lib/sys_socket.in.h: Likewise.
54153         * lib/sys_stat.in.h: Likewise.
54154         * lib/sys_time.in.h: Likewise.
54155         * lib/sys_times.in.h: Likewise.
54156         * lib/sys_uio.in.h: Likewise.
54157         * lib/sys_utsname.in.h: Likewise.
54158         * lib/sys_wait.in.h: Likewise.
54159         * lib/sysexits.in.h: Likewise.
54160         * lib/termios.in.h: Likewise.
54161         * lib/time.in.h: Likewise.
54162         * lib/unistd.in.h: Likewise.
54163         * lib/wchar.in.h: Likewise.
54164         * lib/wctype.in.h: Likewise.
54165         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
54166         * modules/ctype (Makefile.am): Likewise.
54167         * modules/dirent (Makefile.am): Likewise.
54168         * modules/errno (Makefile.am): Likewise.
54169         * modules/fcntl-h (Makefile.am): Likewise.
54170         * modules/float (Makefile.am): Likewise.
54171         * modules/getopt-posix (Makefile.am): Likewise.
54172         * modules/iconv-h (Makefile.am): Likewise.
54173         * modules/langinfo (Makefile.am): Likewise.
54174         * modules/locale (Makefile.am): Likewise.
54175         * modules/math (Makefile.am): Likewise.
54176         * modules/netdb (Makefile.am): Likewise.
54177         * modules/netinet_in (Makefile.am): Likewise.
54178         * modules/poll-h (Makefile.am): Likewise.
54179         * modules/pthread (Makefile.am): Likewise.
54180         * modules/pty (Makefile.am): Likewise.
54181         * modules/sched (Makefile.am): Likewise.
54182         * modules/search (Makefile.am): Likewise.
54183         * modules/selinux-h (Makefile.am): Likewise.
54184         * modules/signal (Makefile.am): Likewise.
54185         * modules/spawn (Makefile.am): Likewise.
54186         * modules/stdarg (Makefile.am): Likewise.
54187         * modules/stddef (Makefile.am): Likewise.
54188         * modules/stdint (Makefile.am): Likewise.
54189         * modules/stdio (Makefile.am): Likewise.
54190         * modules/stdlib (Makefile.am): Likewise.
54191         * modules/string (Makefile.am): Likewise.
54192         * modules/strings (Makefile.am): Likewise.
54193         * modules/sys_file (Makefile.am): Likewise.
54194         * modules/sys_ioctl (Makefile.am): Likewise.
54195         * modules/sys_select (Makefile.am): Likewise.
54196         * modules/sys_socket (Makefile.am): Likewise.
54197         * modules/sys_stat (Makefile.am): Likewise.
54198         * modules/sys_time (Makefile.am): Likewise.
54199         * modules/sys_times (Makefile.am): Likewise.
54200         * modules/sys_uio (Makefile.am): Likewise.
54201         * modules/sys_utsname (Makefile.am): Likewise.
54202         * modules/sys_wait (Makefile.am): Likewise.
54203         * modules/sysexits (Makefile.am): Likewise.
54204         * modules/termios (Makefile.am): Likewise.
54205         * modules/time (Makefile.am): Likewise.
54206         * modules/unistd (Makefile.am): Likewise.
54207         * modules/wchar (Makefile.am): Likewise.
54208         * modules/wctype-h (Makefile.am): Likewise.
54209         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
54211 2011-05-29  Bruno Haible  <bruno@clisp.org>
54213         assert-h: Allow multiple gnulib generated replacements to coexist.
54214         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
54216 2011-05-29  Bruno Haible  <bruno@clisp.org>
54218         argp: Allow coexistence with strerror_r-posix module.
54219         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
54220         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
54221         by gnulib's <string.h> replacement), assume it has the POSIX signature,
54222         not the glibc signature.
54224 2011-05-28  Bruno Haible  <bruno@clisp.org>
54226         gnulib-tool: Alternative structure of testdirs, similar to --import.
54227         * gnulib-tool: New option --single-configure.
54228         (func_usage): Document it.
54229         (single_configure): New variable.
54230         (func_modules_transitive_closure_separately,
54231         func_modules_transitive_closure_separately,
54232         func_determine_use_libtests, func_modules_add_dummy_separately,
54233         func_modules_to_filelist_separately): New functions, extracted from
54234         func_import.
54235         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
54236         (func_import): Use the new functions.
54237         (func_create_testdir): Set final_modules. Handle $single_configure =
54238         true case.
54240 2011-05-28  Bruno Haible  <bruno@clisp.org>
54242         getloadavg: Remove an unreliable safety check.
54243         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
54244         getloadavg.c is in place.
54245         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
54246         Reported by Sam Steingold <sds@gnu.org>.
54248 2011-05-28  Bruno Haible  <bruno@clisp.org>
54250         doc: Cleanup yet another file produced by texinfo.tex.
54251         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
54253 2011-05-28  Bruno Haible  <bruno@clisp.org>
54255         Finish the conditional dependencies mechanism.
54256         * gnulib-tool: New option --no-conditional-dependencies.
54257         (func_usage): Document it. Don't mark --conditional-dependencies as
54258         experimental.
54259         (cond_dependencies): The possible values can now be true, false, empty.
54260         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
54261         (func_import): Store setting in gnulib-cache.m4 and read it from there.
54262         * doc/gnulib-tool.texi (Conditional dependencies): New section.
54264 2011-05-28  Bruno Haible  <bruno@clisp.org>
54266         doc: Use a recent texinfo.tex.
54267         * doc/Makefile (tex_opts): New variable.
54268         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
54270 2011-05-28  Jim Meyering  <meyering@redhat.com>
54272         intprops.h: adjust comment to match code change
54273         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
54274         only once, it *may* have side effects.  Also fix an unrelated typo.
54275         (_GL_INT_SIGNED): Likewise.
54277 2011-05-26  Simon Josefsson  <simon@josefsson.org>
54279         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
54281 2011-05-26  Bruno Haible  <bruno@clisp.org>
54283         mbsrchr: Avoid collision with system function on Interix.
54284         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
54285         Reported by Markus Duft <mduft@gentoo.org>.
54287 2011-05-15  James Youngman  <jay@gnu.org>
54289         getopt: for ambiguous options, enumerate the possibilities.
54290         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
54291         the ambiguous options when an ambiguous prefix is given. This was
54292         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
54293         glibc change was
54294         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
54296 2011-05-25  Eric Blake  <eblake@redhat.com>
54298         getcwd: work around mingw bug
54299         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
54300         * doc/posix-functions/getcwd.texi (getcwd): Document it.
54301         Reported by Matthias Bolte.
54303 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
54305         test-intprops: disable -Wtype-limits diagnostics
54306         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
54307         diagnostics.  Otherwise, the integer overflow macros generate many
54308         diagnostics.  Reported by Jim Meyering in
54309         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
54311         intprops: shorten, to pacify gcc -Woverlength-strings
54312         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
54313         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
54314         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
54315         likely to run afoul of C compiler limits for string constant lengths.
54316         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
54318 2011-05-24  Eric Blake  <eblake@redhat.com>
54320         docs: document recently fixed glibc printf bug
54321         * doc/posix-functions/fprintf.texi (fprintf): Document it.
54322         * doc/posix-functions/printf.texi (printf): Likewise.
54323         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
54324         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
54326         closein-tests: convert to init.sh
54327         * modules/closein-tests (Files): Add init.sh
54328         * tests/test-closein.sh Use it.
54330         yesno-tests: convert to init.sh
54331         * modules/yesno-tests (Files): Add init.sh.
54332         * tests/test-yesno.sh: Use it.
54334         atexit-tests: ensure reliable exit status
54335         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
54336         Reported by Bruno Haible.
54338 2011-05-24  Bruno Haible  <bruno@clisp.org>
54340         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
54341         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
54342         gl_PREREQ_STRERROR_R invocations from here...
54343         * modules/strerror_r-posix (configure.ac): ... to here.
54345 2011-05-24  Eric Blake  <eblake@redhat.com>
54347         strerror_r: fix missing header
54348         * lib/strerror_r.c: Avoid compiler warning about snprintf.
54350         strerror_r: fix AIX test failures
54351         * lib/strerror_r.c (strerror_r): Convert silent truncation to
54352         ERANGE failure.
54354         strerror_r: fix Solaris test failures
54355         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
54356         failures.
54357         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
54359         strerror_r: enforce POSIX recommendations
54360         * lib/strerror_r.c (safe_copy): New helper method.
54361         (strerror_r): Guarantee a non-empty string.
54362         * tests/test-strerror_r.c (main): Enhance tests to incorporate
54363         recent POSIX rulings and to match our strerror guarantees.
54364         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
54366 2011-05-24  Jim Meyering  <meyering@redhat.com>
54368         test-perror2.c: avoid warning about unused variable
54369         * tests/test-perror2.c (main): Remove declaration of unused "fp".
54371 2011-05-24  Eric Blake  <eblake@redhat.com>
54373         perror: avoid spurious test failure on HP-UX
54374         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
54376         tests: fix logic bug in init.sh
54377         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
54378         shell.
54380 2011-05-24  Jim Meyering  <meyering@redhat.com>
54382         utimensat: do not reference an out-of-scope buffer
54383         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
54384         declared in an inner scope, yet "times" would be dereferenced outside
54385         the scope in which "ts" was valid.
54386         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
54387         of ts[2] "out/up", so that the use of aliased "times" (via
54388         "times = ts;") does not end up referencing an out-of-scope "ts"
54390         opendir-safer.c: don't clobber errno; don't close negative FD
54391         * lib/opendir-safer.c (opendir_safer):
54392         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
54393         file descriptor, and more importantly, don't clobber the
54394         offending errno value with EINVAL.  Before, upon failure
54395         of dup_safer, we would pass the negative file descriptor to
54396         fdopendir, which would clobber errno.
54398 2011-05-23  Bruno Haible  <bruno@clisp.org>
54400         idcache: Fix module description.
54401         * modules/idcache (Include): Set to "idcache.h".
54403 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
54405         gnulib-tool: fix portability problem with MacOS sed
54406         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
54407         before the "}".  Problem reported by Leo in
54408         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
54409         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
54410         sed_extract_condition1, sed_extract_condition2.
54412 2011-05-23  Bruno Haible  <bruno@clisp.org>
54414         hash: Simplify autoconf macro.
54415         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
54417 2011-05-23  Bruno Haible  <bruno@clisp.org>
54419         getugroups: Fix module description.
54420         * modules/getugroups (Include): Set to "getugroups.h".
54422 2011-05-23  Bruno Haible  <bruno@clisp.org>
54424         linkat: Simplify autoconf macro.
54425         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
54427 2011-05-23  Bruno Haible  <bruno@clisp.org>
54428             Eric Blake  <eblake@redhat.com>
54430         linkat, renameat: Update dependencies.
54431         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
54432         * modules/linkat (Depends-on): Likewise. Remove also readlink,
54433         symlinkat.
54435 2011-05-23  Jim Meyering  <meyering@redhat.com>
54437         maint.mk: more tight_scope improvements
54438         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
54439         (_gl_TS_headers): Define only in if-0'd block.
54440         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
54441         sometimes we must *not* use it.  Adjust uses accordingly.
54442         (sc_tight_scope): Use much simpler grep-based test to determine
54443         whether we skip this rule.
54445         maint.mk: generalize/improve the tight-scope rule
54446         * top/maint.mk: Emit a warning when the test is skipped.
54447         (_gl_TS_dir): Add $(srcdir)/ prefix.
54448         (_gl_TS_function_match): Simplify, rather than trying
54449         to enumerate common types.  Otherwise, it would fail to match an
54450         "extern unsigned char const *" declaration in idutils.
54451         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
54452         a way to support use of that type of macro.
54453         (_gl_TS_var_match): Simplify regexp.
54454         (_gl_TS_obj_files): New configurable variable.
54455         (_gl_TS_headers): Likewise.
54457 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
54459         verify: fix bug when gnulib <assert.h> is also included
54460         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
54461         is defined, not if _GL_STATIC_ASSERT_H is not defined.
54462         Perhaps there's a better way, but this fixes the immediate problem.
54463         Problem reported by Bruno Haible in
54464         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
54466 2011-05-22  Bruno Haible  <bruno@clisp.org>
54468         xgetcwd: Simplify autoconf macro.
54469         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
54471 2011-05-22  Bruno Haible  <bruno@clisp.org>
54473         New module 'mktime-internal'.
54474         * modules/mktime-internal: New file.
54475         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
54476         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
54477         mktime_internal as a C macro if libc has __mktime_internal.
54478         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
54479         conditions.
54480         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
54482 2011-05-22  Bruno Haible  <bruno@clisp.org>
54484         timegm: Correct mktime replacement statements.
54485         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
54486         defining mktime as a C macro. This completes a 2009-07-28 commit.
54488 2011-05-22  Bruno Haible  <bruno@clisp.org>
54490         timegm: Simplify autoconf macro.
54491         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
54493 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
54495         clock-time: change to LGPLv2+.
54496         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
54497         BSD-like but we have no mark for that; this is good enough for now.
54499 2011-05-21  Bruno Haible  <bruno@clisp.org>
54501         strerror_r: Fix comments.
54502         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
54504 2011-05-21  Bruno Haible  <bruno@clisp.org>
54506         relocatable-prog-wrapper: Fix possible link error.
54507         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
54508         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
54509         (gl_FUNC_SETENV): ... to here.
54510         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
54511         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
54513 2011-05-21  Bruno Haible  <bruno@clisp.org>
54515         relocatable-prog-wrapper: Assume strerror() exists.
54516         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
54517         m4/strerror.m4.
54518         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
54519         * lib/relocwrapper.c: Remove mention of strerror module.
54520         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
54521         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
54522         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
54523         C macro.
54525 2011-05-21  Bruno Haible  <bruno@clisp.org>
54527         select: Simplify replacement idiom.
54528         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
54529         Win32 platforms.
54530         * lib/sys_select.in.h (select): Simplify accordingly.
54531         * modules/select (Depends-on): Likewise.
54533 2011-05-21  Bruno Haible  <bruno@clisp.org>
54535         mkdir-p: Simplify autoconf macro.
54536         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
54537         gl_FUNC_LCHOWN.
54539 2011-05-21  Eric Blake  <eblake@redhat.com>
54541         strerror_r: avoid clobbering strerror on cygwin
54542         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
54543         fall back instead to sys_errlist.
54544         * modules/strerror (configure.ac): Add witness.
54545         * tests/test-strerror_r.c (main): Enhance test.
54546         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
54547         * tests/test-perror2.c (main): Free memory before exit.
54549 2011-05-21  Bruno Haible  <bruno@clisp.org>
54551         mkdtemp: Use gnulib naming conventions.
54552         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
54553         * modules/mkdtemp (configure.ac): Update.
54555 2011-05-20  Eric Blake  <eblake@redhat.com>
54557         strerror_r: avoid corrupting errno on Solaris
54558         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
54559         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
54561         strerror_r: avoid compiler warning
54562         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
54564         strerror_r: simplify AIX code
54565         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
54567         test-perror: avoid spurious failure on FreeBSD
54568         * modules/perror-tests (Depends-on): Add strerror, now that
54569         strerror_r no longer pulls it in.
54571 2011-05-20  Bruno Haible  <bruno@clisp.org>
54573         strerror_r-posix: Remove unused dependencies.
54574         * modules/strerror_r-posix (Depends-on): Remove strerror.
54575         Reported by Eric Blake.
54577 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
54579         intprops: remove assumption about A|B representation
54580         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
54581         is a valid integer if both A and B are.  Although this is true for
54582         all known practical hosts, the C standard doesn't guarantee it,
54583         and the code need not assume it.  Also, this change may work around
54584         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
54585         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
54587 2011-05-20  Eric Blake  <eblake@redhat.com>
54589         perror: work around FreeBSD bug
54590         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
54591         is broken.  Move AC_LIBOBJ...
54592         * modules/perror (configure.ac): Here.
54593         * doc/posix-functions/perror.texi (perror): Document this.
54594         * tests/test-perror2.c (main): Enhance test.
54596         test-perror: check for strerror interactions
54597         * tests/macros.h (STREQ): Add macro.
54598         * modules/perror-tests (Files): Add second test.
54599         * tests/test-perror2.c (main): New file.
54600         * doc/posix-functions/perror.texi (perror): Document glibc bug.
54602         test-perror: rewrite to use init script
54603         * modules/perror-tests (Files): Add init.sh.
54604         * tests/test-perror.sh: Use temporary directory.
54606 2011-05-20  Jim Meyering  <meyering@redhat.com>
54608         maint: replace misused "a" with "an"
54609         * doc/intprops.texi: "a integer"
54610         * doc/regex.texi: "a explanation"
54611         * lib/alignof.h: "a object"
54612         * lib/argmatch.h: "a explanation"
54613         * lib/argp-help.c: "a option" and "a OPTION_DOC"
54614         * lib/stdint.in.h: "a integer"
54615         * lib/userspec.c: "a owner"
54616         * doc/gnulib.texi: Fix "a idea", and reword.
54618 2011-05-19  Jim Meyering  <meyering@redhat.com>
54620         maint: correct misuse of "a" and "an"
54621         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
54622         * lib/argp-help.c: "an docum...": s/an/a/
54623         * lib/argp-parse.c: "An vector": s/An/A/
54624         * lib/execute.c: "an native": s/an/a/
54625         * lib/spawn-pipe.c: Likewise.
54626         * lib/gc.h: "an Gc_rc": s/an/a/
54627         * lib/unigbrk.in.h: "an grapheme": s/an/a/
54628         * lib/fts.c: "an stat.st_dev": s/an/a/
54630 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54632         intprops-tests: work around HP-UX 11.23 cc bug with constants
54633         * tests/test-intprops.c (VERIFY): New macro.
54634         (main): Use it, instead of verify, to work around the compiler bug; see
54635         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
54637         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
54638         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
54639         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
54640         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
54641         (_GL_REMAINDER_OVERFLOW): Use it.
54643         intprops-tests: revert unsigned part of previous change
54644         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
54645         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
54646         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
54647         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
54649 2011-05-19  Bruno Haible  <bruno@clisp.org>
54651         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
54652         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
54653         strerror_r() returned without filling the buffer.
54654         Reported by Eric Blake.
54656 2011-05-19  Eric Blake  <eblake@redhat.com>
54658         strerror_r: guarantee unchanged errno
54659         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
54660         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
54661         failure.
54662         * tests/test-strerror_r.c (main): Enhance test.
54664 2011-05-19  Bruno Haible  <bruno@clisp.org>
54666         strerror_r: Reorder #if blocks.
54667         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
54668         for consistency with the previous commit.
54670 2011-05-19  Bruno Haible  <bruno@clisp.org>
54672         perror: Avoid clobbering the strerror buffer when possible.
54673         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
54674         * lib/strerror.c: Include it.
54675         * modules/strerror (Files): Add lib/strerror-impl.h.
54676         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
54677         (my_strerror): New function, defined through lib/strerror-impl.h.
54678         (perror): Use it instead of strerror.
54679         * modules/perror (Files): Add lib/strerror-impl.h.
54680         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
54682 2011-05-19  Eric Blake  <eblake@redhat.com>
54684         strerror_r: fix on newer cygwin
54685         * lib/strerror_r.c (strerror_r): Cygwin now has
54686         __xpg_strerror_r, use it.
54688 2011-05-19  Bruno Haible  <bruno@clisp.org>
54690         strerror_r: Avoid clobbering the strerror buffer when possible.
54691         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
54692         (sys_nerr, sys_errlist): New declarations.
54693         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
54694         HP-UX, native Win32, IRIX, and 32-bit Solaris.
54695         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
54697 2011-05-19  Bruno Haible  <bruno@clisp.org>
54699         strerror_r: Fix test failure on mingw.
54700         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
54701         EXTEND_STRERROR_R.
54702         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
54703         macros from errno.in.h instead.
54705 2011-05-19  Eric Blake  <eblake@redhat.com>
54707         strerror: relax test for Solaris
54708         * tests/test-strerror.c (main): Permit Solaris behavior.
54709         * tests/test-strerror_r.c (main): Likewise.
54711         strerror: enforce POSIX ruling on strerror(0)
54712         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
54713         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
54714         * lib/strerror_r.c (rpl_strerror_r): Work around it.
54715         * doc/posix-functions/strerror.texi (strerror): Document it.
54716         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
54717         * tests/test-strerror.c (main): Strengthen test.
54718         * tests/test-strerror_r.c (main): Likewise.
54720 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54722         intprop-tests: port to older and more-pedantic compilers
54723         * modules/intprops-tests (Files): Add tests/macros.h.
54724         * tests/test-intprops.c: Include macros.h.
54725         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
54726         it's no longer documented to expand to an integer constant expression.
54727         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
54728         argument is floating point, as it's no longer documented to expand
54729         to an integer constant expression in that case.
54730         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
54731         compiler bugs reported by Bruno Haible.  See
54732         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
54733         (U0, U1): New constants, to work around the same bugs.  Also,
54734         in tests, use e.g., "(unsigned int) 39" rather than "39u".
54736         intprops: work around C compiler bugs
54737         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
54738         bug in Sun C 5.11 2010/08/13 and other compilers; see
54739         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
54741         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
54742         * doc/intprops.texi (Integer Type Determination): Fix
54743         documentation for TYPE_IS_INTEGER: it returns an constant
54744         expression, not an integer constant expression.  Fix doc for
54745         TYPE_SIGNED: it returns an integer constant expression only if its
54746         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
54747         hardly worth documented that way....)
54749 2011-05-18  Bruno Haible  <bruno@clisp.org>
54751         strerror_r: Avoid clobbering the strerror buffer when possible.
54752         * lib/strerror_r.c (strerror_r): Merge the three implementations.
54753         Handle gnulib defined errno values here. When strerror() returns NULL
54754         or an empty string, return EINVAL.
54755         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
54756         gnulib defined errno values here.
54757         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
54759 2011-05-18  Eric Blake  <eblake@redhat.com>
54761         fnmatch: avoid compiler warning
54762         * lib/fnmatch_loop.c (FCT): Use correct type.
54763         Reported by Matthias Bolte.
54765 2011-05-13  Jim Meyering  <meyering@redhat.com>
54767         maint.mk: three new prohibit_<HDR>_without_use rules
54768         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
54769         (sc_prohibit_stdio-safer_without_use): Likewise.
54770         (sc_prohibit_xfreopen_without_use): Likewise.
54772 2011-05-17  Jim Meyering  <meyering@redhat.com>
54774         announce-gen: fail if the NEWS delta is empty
54775         If there's nothing noteworthy in NEWS, then either you forgot
54776         or you shouldn't be releasing.
54777         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
54779 2011-05-17  Pádraig Brady  <P@draigBrady.com>
54781         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
54782         reserved symbols starting with double underscore from the check.
54784 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54786         intprops: add doc
54787         * doc/intprops.texi: New file, documenting intprops.
54788         * doc/gnulib.texi (Particular Modules): Include it.
54790         verify: add doc to gnulib manual and fix example
54791         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
54792         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
54793         (Compile-time Assertions): Fix example so it can't overflow.
54795 2011-05-17  Jim Meyering  <meyering@redhat.com>
54797         warnings.m4: don't usurp save_CPPFLAGS variable name
54798         * m4/warnings.m4: Prefix local temporary variable name with gl_.
54800         doc: fix typo
54801         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
54803 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54804             Bruno Haible  <bruno@clisp.org>
54806         doc: Tweak recent change.
54807         * README (Portability guidelines): Tweak new text.
54808         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
54809         Interix 6.1.
54811 2011-05-16  Eric Blake  <eblake@redhat.com>
54813         inttypes: avoid autoconf warning
54814         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
54815         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54817 2011-05-16  Sam Steingold  <sds@gnu.org>
54818         and Eric Blake  <eblake@redhat.com>
54820         vc-list-files: accept multiple directory operands
54821         * build-aux/vc-list-files: Iterate over all remaining operands.
54823 2011-05-16  Bruno Haible  <bruno@clisp.org>
54825         Fix confusion regarding deprecated modules.
54826         * modules/calloc (Status, Notice): Mark module as deprecated, not
54827         obsolete.
54828         * modules/fnmatch-posix (Status, Notice): Likewise.
54829         * modules/getdate (Status, Notice): Likewise.
54830         * modules/getopt (Status, Notice): Likewise.
54831         * modules/malloc (Status, Notice): Likewise.
54832         * modules/pipe (Status, Notice): Likewise.
54833         * modules/realloc (Status, Notice): Likewise.
54834         * modules/rename-dest-slash (Status, Notice): Likewise.
54835         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
54836         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
54837         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
54838         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
54839         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
54841 2011-05-16  Bruno Haible  <bruno@clisp.org>
54843         doc: List the target platforms.
54844         * doc/gnulib-intro.texi (Target Platforms): New section.
54845         * doc/gnulib.texi (Introduction): Update menu.
54846         * README (Portability guidelines): Refer to the new section. Update
54847         statement about oldest supported environment. Remove rationale why
54848         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
54849         unportable C89 function.
54850         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
54851         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
54853 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54855         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
54857 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
54859         intprops-tests: new module
54860         * modules/intprops-tests, tests/test-intprops.c: New files.
54862         intprops: add safe, portable integer overflow checking
54863         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
54864         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
54865         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
54866         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
54867         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
54868         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
54869         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
54870         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
54871         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
54872         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
54873         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
54875 2011-05-12  James Youngman  <jay@gnu.org>
54877         Add a test for glibc's Bugzilla bug #12378.
54878         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
54879         doesn't allow the literal matching of a lone "[" (which is
54880         required by POSIX).
54881         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
54883 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
54885         Sync glibc change fixing Bugzilla bug #12378.
54886         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
54887         beginning and fall back to matching as normal character if the
54888         string ends before the matching ']' is found.  This is what POSIX
54889         requires.
54891 2011-05-13  Eric Blake  <eblake@redhat.com>
54893         getcwd-lgpl: relax test for FreeBSD
54894         * doc/posix-functions/getcwd.texi (getcwd): Document portability
54895         issue.
54896         * tests/test-getcwd-lgpl.c (main): Relax test.
54897         Reported by Matthias Bolte.
54899 2011-05-11  Eric Blake  <eblake@redhat.com>
54901         test-fflush: silence compiler warning
54902         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
54904 2011-05-11  Bruno Haible  <bruno@clisp.org>
54906         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
54907         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
54908         * modules/canonicalize (Depends-on): Add 'nocrash'.
54909         * modules/canonicalize-lgpl (Depends-on): Likewise.
54910         * doc/posix-functions/realpath.texi: Update platforms list.
54911         Reported by Ryan Schmidt <ryandesign@macports.org>.
54913 2011-05-11  Bruno Haible  <bruno@clisp.org>
54915         group-member: Declare function in <unistd.h>.
54916         * lib/unistd.in.h (group_member): New declaration.
54917         * lib/group-member.h: Remove file.
54918         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
54919         * tests/test-unistd-c++.cc: Check signature of group_member.
54920         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
54921         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
54922         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
54923         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
54924         HAVE_GROUP_MEMBER.
54925         * modules/group-member (Files): Remove lib/group-member.h.
54926         (Depends-on): Add unistd. Specify conditions.
54927         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54928         (Include): Change to <unistd.h>.
54929         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
54930         HAVE_GROUP_MEMBER.
54931         * NEWS: Mention the change.
54932         * lib/euidaccess.c: Don't include group-member.h.
54934 2011-05-11  Bruno Haible  <bruno@clisp.org>
54936         group-member: Document module.
54937         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
54938         module.
54940 2011-05-11  Bruno Haible  <bruno@clisp.org>
54942         fclose: Fix mistake earlier today.
54943         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
54945 2011-05-11  Eric Blake  <eblake@redhat.com>
54947         fclose: preserve fflush errors
54948         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
54949         Reported by Jim Meyering.
54951         bootstrap: support a prereq of 'rpcgen -' on RHEL5
54952         * build-aux/bootstrap (check_versions): When no specific version
54953         is required, merely check that the app produces an exit status
54954         that indicates its existence.
54956         maint.mk: drop redundant check
54957         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
54958         the same but better.
54960 2011-05-11  Bruno Haible  <bruno@clisp.org>
54962         fclose: Fix possible link error.
54963         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
54964         unregister_shadow_fd. Improve comments.
54965         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
54966         Eric Blake.
54968 2011-05-11  Jim Meyering  <meyering@redhat.com>
54970         maint.mk: improve "can not" detection and generalize rule name
54971         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
54972         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
54973         Use the same technique as in sc_prohibit_doubled_word, so that
54974         we recognize "can not" also when the words are separated by a newline.
54975         Suggested by Eric Blake.
54976         (perl_filename_lineno_text_): Define.  Factored out of...
54977         (prohibit_doubled_word_): ...here.  Use the new definition.
54978         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
54979         (prohibit_undesirable_word_seq_RE_): New overridable variable.
54980         (ignore_undesirable_word_sequence_RE_): New overridable variable.
54982 2011-05-10  Eric Blake  <eblake@redhat.com>
54984         fclose: avoid double close race when possible
54985         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
54986         all but WINDOWS_SOCKETS.
54988 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
54990         openat: correct new comment
54991         * lib/openat-proc.c (openat_proc_name): Correct the comment.
54993 2011-05-10  Jim Meyering  <meyering@redhat.com>
54995         openat: add comments
54996         * lib/openat-proc.c (openat_proc_name): Add comments,
54997         mostly from Eric Blake.
54999 2011-05-09  Eric Blake  <eblake@redhat.com>
55001         openat: reduce syscalls in first probe of /proc
55002         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
55003         be a directory.  Simplify the probe for .. bugs.
55004         * modules/openat (Depends-on): Drop same-inode.
55005         Reported by Bastien ROUCARIES.
55007 2011-05-09  Jim Meyering  <meyering@redhat.com>
55009         maint.mk: change semantics/name of tight_scope variables
55010         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
55011         Rename variables to align with semantics that make them more useful.
55013         maint.mk: tweak new rule's name not to impinge
55014         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
55015         (sc_tight_scope): Use new rule name rather than $@-0.
55017         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
55018         * top/maint.mk (sc_tight_scope): New rule.
55019         (sc_tight_scope-0): New rule, ifdef'd out.
55020         (_gl_TS_dir): Default.
55021         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
55022         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
55024 2011-05-09  Simon Josefsson  <simon@josefsson.org>
55026         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
55027         Haible <bruno@clisp.org>.
55029 2011-05-08  Bruno Haible  <bruno@clisp.org>
55031         Comments.
55032         * m4/isnanf.m4: Add comment.
55033         * m4/isnanl.m4: Likewise.
55035 2011-05-08  Bruno Haible  <bruno@clisp.org>
55037         glob: Remove obsolete macro.
55038         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
55040 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
55042         intprops: Sun C 5.11 supports __typeof__
55043         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
55044         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
55045         which is new.
55046         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
55048         intprops: switch to usual gnulib indenting and naming
55049         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
55050         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
55052         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
55054 2011-05-08  Jim Meyering  <meyering@redhat.com>
55056         maint.mk: suppress "Entering/Leaving directory" diag in announcement
55057         * top/maint.mk (release-prep): Use make's --no-print-directory
55058         option when generating the announcement.  This eliminates the
55059         pesky "make[2]: Entering/Leaving directory" diagnostics in the
55060         generated announcement template.
55062 2011-05-08  Bruno Haible  <bruno@clisp.org>
55064         tzset: Fix gettimeofday wrapper on Solaris 2.6.
55065         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
55066         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
55068 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
55070         ignore-value, verify: Omit include files from lib_SOURCES.
55071         * modules/ignore-value, modules/verify (Makefile.am):
55072         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
55073         that leads Automake to duplicate use of am__objects_... variables
55074         in Makefile.in.  See
55075         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
55077 2011-05-07  Bruno Haible  <bruno@clisp.org>
55079         fclose: Simplify autoconf macro.
55080         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
55081         defined.
55083 2011-05-07  Bruno Haible  <bruno@clisp.org>
55085         canonicalize-lgpl: Fix autoconf macro ordering bug.
55086         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
55087         gl_STDLIB_H_DEFAULTS.
55089 2011-05-06  Eric Blake  <eblake@redhat.com>
55091         maintainer-makefile: make sc_po_check easier to tune
55092         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
55093         to probe for strings, such as an alternate location for gnulib.
55095         fclose: guarantee behavior on seekable stdin
55096         * modules/fclose (Depends-on): Add fflush.
55097         * doc/posix-functions/fclose.texi (fclose): Document this.
55098         * tests/test-fclose.c (main): Make test for this unconditional.
55100 2011-05-06  Bruno Haible  <bruno@clisp.org>
55102         fflush, fpurge: Relicense under LGPLv2+.
55103         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
55104         * modules/fpurge (License): Likewise.
55105         With permission from Eric Blake and Jim Meyering.
55106         Suggested by Eric Blake.
55108 2011-05-06  Karl Berry  <karl@gnu.org>
55110         * MODULES.html.sh (func_all_modules): remove exit.
55112 2011-05-06  Jim Meyering  <meyering@redhat.com>
55114         maint.mk: use info-gnu@ as the default only for a stable release
55115         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
55116         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
55117         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
55118         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
55120 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
55122         assert-h: new module, which supports C1X-style static_assert
55123         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
55124         * lib/verify.h: Revamp so that this can be copied into assert.h,
55125         while retaining the ability to use it standalone as before.
55126         Rename private identifiers so as not to encroach on the
55127         standard C namespace, since this is now used by assert.h.
55128         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
55129         the old verify_true.
55130         (_GL_VERIFY_TRUE): New macro, with much of the contents of
55131         the old verify_true.  Use _GL_VERIFY_TYPE.
55132         (_GL_VERIFY): New macro, with much of the contents of the old verify.
55133         (static_assert): New macro, if _GL_STATIC_ASSERT_H
55134         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
55135         defined when this file is copied into the replacement assert.h.
55136         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
55137         and _Static_assert is not built in.
55138         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
55139         defined, and use the new macros mentioned above.
55140         * doc/posix-headers/assert.texi: Document this.
55142 2011-05-05  Bruno Haible  <bruno@clisp.org>
55144         fclose, fflush: Respect rules for use of AC_LIBOBJ.
55145         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
55146         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
55147         gl_REPLACE_FCLOSE here.
55148         * modules/fflush (Depends-on): Remove fclose.
55149         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
55150         combination with module 'fclose'.
55152 2011-05-05  Bruno Haible  <bruno@clisp.org>
55154         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
55155         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
55156         gl_FUNC_FFLUSH.
55157         (gl_FUNC_FFLUSH): Use it.
55158         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
55159         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
55160         gl_REPLACE_FSEEKO here.
55162 2011-05-05  Bruno Haible  <bruno@clisp.org>
55164         tzset: Relicense under LGPL.
55165         * modules/tzset (License): Change to LGPL.
55166         No agreement needed; it's a no-op.
55168         strtoimax, strtoumax: Relicense under LGPL.
55169         * modules/strtoimax (License): Change to LGPL.
55170         * modules/strtoumax (License): Likewise.
55171         With permission from Jim Meyering, Paul Eggert:
55172         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
55173         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
55175         getgroups: Relicense under LGPL.
55176         * modules/getgroups (License): Change to LGPL.
55177         With permission from Jim Meyering, Paul Eggert, Eric Blake:
55178         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
55179         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
55180         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
55182         nanosleep: Relicense under LGPL.
55183         * modules/nanosleep (License): Change to LGPL.
55184         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
55185         Haible:
55186         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
55187         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
55188         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
55189         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
55191         futimens: Relicense under LGPL.
55192         * modules/futimens (License): Change to LGPL.
55193         With permission from Eric Blake:
55194         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
55196         fflush: Relicense under LGPL.
55197         * modules/fflush (License): Change to LGPL.
55198         With permission from Eric Blake, Bruno Haible, Jim Meyering:
55199         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
55200         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
55201         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
55203         tmpfile: Relicense under LGPL.
55204         * modules/tmpfile (License): Change to LGPL.
55205         With permission from Ben Pfaff:
55206         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
55208         isfinite: Relicense under LGPL.
55209         * modules/isfinite (License): Change to LGPL.
55210         With permission from Ben Pfaff, Bruno Haible:
55211         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
55212         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
55214         acosl..tanl: Relicense under LGPL.
55215         * modules/acosl (License): Change to LGPL.
55216         * modules/asinl (License): Likewise.
55217         * modules/atanl (License): Likewise.
55218         * modules/cosl (License): Likewise.
55219         * modules/expl (License): Likewise.
55220         * modules/logl (License): Likewise.
55221         * modules/sinl (License): Likewise.
55222         * modules/sqrtl (License): Likewise.
55223         * modules/tanl (License): Likewise.
55224         Source code originally from glibc and Paolo Bonzini. Agreements:
55225         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
55226         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
55228 2011-05-05  Bruno Haible  <bruno@clisp.org>
55230         signal: Define sighandler_t.
55231         * lib/signal.in.h (sighandler_t): New type.
55232         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
55233         whether sighandler_t is defined.
55234         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
55235         * modules/signal (Depends-on): Add extensions.
55236         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
55237         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
55238         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
55240 2011-05-05  Eric Blake  <eblake@redhat.com>
55242         maint: remove useless REPLACE_*_H macros
55243         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
55244         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
55245         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
55246         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
55247         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
55248         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
55249         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
55250         * m4/btowc.m4: Update callers.
55251         * m4/dirfd.m4: Likewise.
55252         * m4/duplocale.m4: Likewise.
55253         * m4/fchdir.m4: Likewise.
55254         * m4/fdopendir.m4: Likewise.
55255         * m4/inet_ntop.m4: Likewise.
55256         * m4/inet_pton.m4: Likewise.
55257         * m4/ioctl.m4: Likewise.
55258         * m4/mbrlen.m4: Likewise.
55259         * m4/mbrtowc.m4: Likewise.
55260         * m4/mbsinit.m4: Likewise.
55261         * m4/mbsnrtowcs.m4: Likewise.
55262         * m4/mbsrtowcs.m4: Likewise.
55263         * m4/poll.m4: Likewise.
55264         * m4/setlocale.m4: Likewise.
55265         * m4/wcrtomb.m4: Likewise.
55266         * m4/wcsnrtombs.m4: Likewise.
55267         * m4/wcsrtombs.m4: Likewise.
55268         * m4/wctob.m4: Likewise.
55269         * m4/wcwidth.m4: Likewise.
55270         * modules/posix_spawn: Likewise.
55271         * modules/posix_spawn_file_actions_addclose: Likewise.
55272         * modules/posix_spawn_file_actions_adddup2: Likewise.
55273         * modules/posix_spawn_file_actions_addopen: Likewise.
55274         * modules/posix_spawn_file_actions_destroy: Likewise.
55275         * modules/posix_spawn_file_actions_init: Likewise.
55276         * modules/posix_spawnattr_destroy: Likewise.
55277         * modules/posix_spawnattr_getflags: Likewise.
55278         * modules/posix_spawnattr_getpgroup: Likewise.
55279         * modules/posix_spawnattr_getschedparam: Likewise.
55280         * modules/posix_spawnattr_getschedpolicy: Likewise.
55281         * modules/posix_spawnattr_getsigdefault: Likewise.
55282         * modules/posix_spawnattr_getsigmask: Likewise.
55283         * modules/posix_spawnattr_init: Likewise.
55284         * modules/posix_spawnattr_setflags: Likewise.
55285         * modules/posix_spawnattr_setpgroup: Likewise.
55286         * modules/posix_spawnattr_setschedparam: Likewise.
55287         * modules/posix_spawnattr_setschedpolicy: Likewise.
55288         * modules/posix_spawnattr_setsigdefault: Likewise.
55289         * modules/posix_spawnattr_setsigmask: Likewise.
55290         * modules/posix_spawnp: Likewise.
55292 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
55294         Add option to do-release-commit-and-tag to specify branch.
55295         * build-aux/do-release-commit-and-tag: Add --branch.
55297 2011-05-03  Bruno Haible  <bruno@clisp.org>
55299         Avoid unnecessary compilation units, through conditional dependencies.
55300         * modules/accept (Depends-on): Add conditions to the dependencies.
55301         * modules/acosl (Depends-on): Likewise.
55302         * modules/argz (Depends-on): Likewise.
55303         * modules/asinl (Depends-on): Likewise.
55304         * modules/atanl (Depends-on): Likewise.
55305         * modules/atoll (Depends-on): Likewise.
55306         * modules/bind (Depends-on): Likewise.
55307         * modules/btowc (Depends-on): Likewise.
55308         * modules/canonicalize-lgpl (Depends-on): Likewise.
55309         * modules/ceil (Depends-on): Likewise.
55310         * modules/ceilf (Depends-on): Likewise.
55311         * modules/ceill (Depends-on): Likewise.
55312         * modules/chdir-long (Depends-on): Likewise.
55313         * modules/chown (Depends-on): Likewise.
55314         * modules/close (Depends-on): Likewise.
55315         * modules/connect (Depends-on): Likewise.
55316         * modules/cosl (Depends-on): Likewise.
55317         * modules/dirfd (Depends-on): Likewise.
55318         * modules/dprintf (Depends-on): Likewise.
55319         * modules/dprintf-posix (Depends-on): Likewise.
55320         * modules/error (Depends-on): Likewise.
55321         * modules/euidaccess (Depends-on): Likewise.
55322         * modules/expl (Depends-on): Likewise.
55323         * modules/faccessat (Depends-on): Likewise.
55324         * modules/fchdir (Depends-on): Likewise.
55325         * modules/fclose (Depends-on): Likewise.
55326         * modules/fcntl (Depends-on): Likewise.
55327         * modules/fdopendir (Depends-on): Likewise.
55328         * modules/fflush (Depends-on): Likewise.
55329         * modules/floor (Depends-on): Likewise.
55330         * modules/floorf (Depends-on): Likewise.
55331         * modules/floorl (Depends-on): Likewise.
55332         * modules/fnmatch (Depends-on): Likewise.
55333         * modules/fopen (Depends-on): Likewise.
55334         * modules/fprintf-posix (Depends-on): Likewise.
55335         * modules/frexp (Depends-on): Likewise.
55336         * modules/frexp-nolibm (Depends-on): Likewise.
55337         * modules/frexpl (Depends-on): Likewise.
55338         * modules/frexpl-nolibm (Depends-on): Likewise.
55339         * modules/fseek (Depends-on): Likewise.
55340         * modules/fsusage (Depends-on): Likewise.
55341         * modules/ftell (Depends-on): Likewise.
55342         * modules/ftello (Depends-on): Likewise.
55343         * modules/futimens (Depends-on): Likewise.
55344         * modules/getcwd (Depends-on): Likewise.
55345         * modules/getcwd-lgpl (Depends-on): Likewise.
55346         * modules/getdelim (Depends-on): Likewise.
55347         * modules/getdomainname (Depends-on): Likewise.
55348         * modules/getgroups (Depends-on): Likewise.
55349         * modules/gethostname (Depends-on): Likewise.
55350         * modules/getline (Depends-on): Likewise.
55351         * modules/getlogin_r (Depends-on): Likewise.
55352         * modules/getopt-posix (Depends-on): Likewise.
55353         * modules/getpeername (Depends-on): Likewise.
55354         * modules/getsockname (Depends-on): Likewise.
55355         * modules/getsockopt (Depends-on): Likewise.
55356         * modules/getsubopt (Depends-on): Likewise.
55357         * modules/getusershell (Depends-on): Likewise.
55358         * modules/glob (Depends-on): Likewise.
55359         * modules/grantpt (Depends-on): Likewise.
55360         * modules/iconv_open (Depends-on): Likewise.
55361         * modules/iconv_open-utf (Depends-on): Likewise.
55362         * modules/inet_ntop (Depends-on): Likewise.
55363         * modules/inet_pton (Depends-on): Likewise.
55364         * modules/ioctl (Depends-on): Likewise.
55365         * modules/isapipe (Depends-on): Likewise.
55366         * modules/isfinite (Depends-on): Likewise.
55367         * modules/isinf (Depends-on): Likewise.
55368         * modules/lchown (Depends-on): Likewise.
55369         * modules/ldexpl (Depends-on): Likewise.
55370         * modules/link (Depends-on): Likewise.
55371         * modules/linkat (Depends-on): Likewise.
55372         * modules/listen (Depends-on): Likewise.
55373         * modules/logl (Depends-on): Likewise.
55374         * modules/lstat (Depends-on): Likewise.
55375         * modules/mbrlen (Depends-on): Likewise.
55376         * modules/mbrtowc (Depends-on): Likewise.
55377         * modules/mbsinit (Depends-on): Likewise.
55378         * modules/mbsnrtowcs (Depends-on): Likewise.
55379         * modules/mbsrtowcs (Depends-on): Likewise.
55380         * modules/mbtowc (Depends-on): Likewise.
55381         * modules/memcmp (Depends-on): Likewise.
55382         * modules/mkdir (Depends-on): Likewise.
55383         * modules/mkdtemp (Depends-on): Likewise.
55384         * modules/mkfifo (Depends-on): Likewise.
55385         * modules/mkfifoat (Depends-on): Likewise.
55386         * modules/mknod (Depends-on): Likewise.
55387         * modules/mkostemp (Depends-on): Likewise.
55388         * modules/mkostemps (Depends-on): Likewise.
55389         * modules/mkstemp (Depends-on): Likewise.
55390         * modules/mkstemps (Depends-on): Likewise.
55391         * modules/mktime (Depends-on): Likewise.
55392         * modules/nanosleep (Depends-on): Likewise.
55393         * modules/open (Depends-on): Likewise.
55394         * modules/openat (Depends-on): Likewise.
55395         * modules/perror (Depends-on): Likewise.
55396         * modules/poll (Depends-on): Likewise.
55397         * modules/popen (Depends-on): Likewise.
55398         * modules/posix_spawn (Depends-on): Likewise.
55399         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
55400         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
55401         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
55402         * modules/posix_spawnp (Depends-on): Likewise.
55403         * modules/pread (Depends-on): Likewise.
55404         * modules/printf-posix (Depends-on): Likewise.
55405         * modules/ptsname (Depends-on): Likewise.
55406         * modules/putenv (Depends-on): Likewise.
55407         * modules/pwrite (Depends-on): Likewise.
55408         * modules/readline (Depends-on): Likewise.
55409         * modules/readlink (Depends-on): Likewise.
55410         * modules/readlinkat (Depends-on): Likewise.
55411         * modules/recv (Depends-on): Likewise.
55412         * modules/recvfrom (Depends-on): Likewise.
55413         * modules/regex (Depends-on): Likewise.
55414         * modules/remove (Depends-on): Likewise.
55415         * modules/rename (Depends-on): Likewise.
55416         * modules/renameat (Depends-on): Likewise.
55417         * modules/rmdir (Depends-on): Likewise.
55418         * modules/round (Depends-on): Likewise.
55419         * modules/roundf (Depends-on): Likewise.
55420         * modules/roundl (Depends-on): Likewise.
55421         * modules/rpmatch (Depends-on): Likewise.
55422         * modules/select (Depends-on): Likewise.
55423         * modules/send (Depends-on): Likewise.
55424         * modules/sendto (Depends-on): Likewise.
55425         * modules/setenv (Depends-on): Likewise.
55426         * modules/setlocale (Depends-on): Likewise.
55427         * modules/setsockopt (Depends-on): Likewise.
55428         * modules/shutdown (Depends-on): Likewise.
55429         * modules/sigaction (Depends-on): Likewise.
55430         * modules/signbit (Depends-on): Likewise.
55431         * modules/sigprocmask (Depends-on): Likewise.
55432         * modules/sinl (Depends-on): Likewise.
55433         * modules/sleep (Depends-on): Likewise.
55434         * modules/snprintf (Depends-on): Likewise.
55435         * modules/snprintf-posix (Depends-on): Likewise.
55436         * modules/socket (Depends-on): Likewise.
55437         * modules/sprintf-posix (Depends-on): Likewise.
55438         * modules/sqrtl (Depends-on): Likewise.
55439         * modules/stat (Depends-on): Likewise.
55440         * modules/strchrnul (Depends-on): Likewise.
55441         * modules/strdup-posix (Depends-on): Likewise.
55442         * modules/strerror (Depends-on): Likewise.
55443         * modules/strerror_r-posix (Depends-on): Likewise.
55444         * modules/strndup (Depends-on): Likewise.
55445         * modules/strnlen (Depends-on): Likewise.
55446         * modules/strptime (Depends-on): Likewise.
55447         * modules/strsep (Depends-on): Likewise.
55448         * modules/strsignal (Depends-on): Likewise.
55449         * modules/strstr-simple (Depends-on): Likewise.
55450         * modules/strtod (Depends-on): Likewise.
55451         * modules/strtoimax (Depends-on): Likewise.
55452         * modules/strtok_r (Depends-on): Likewise.
55453         * modules/strtoumax (Depends-on): Likewise.
55454         * modules/symlink (Depends-on): Likewise.
55455         * modules/symlinkat (Depends-on): Likewise.
55456         * modules/tanl (Depends-on): Likewise.
55457         * modules/tcgetsid (Depends-on): Likewise.
55458         * modules/tmpfile (Depends-on): Likewise.
55459         * modules/trunc (Depends-on): Likewise.
55460         * modules/truncf (Depends-on): Likewise.
55461         * modules/truncl (Depends-on): Likewise.
55462         * modules/uname (Depends-on): Likewise.
55463         * modules/unlink (Depends-on): Likewise.
55464         * modules/unlockpt (Depends-on): Likewise.
55465         * modules/unsetenv (Depends-on): Likewise.
55466         * modules/usleep (Depends-on): Likewise.
55467         * modules/utimensat (Depends-on): Likewise.
55468         * modules/vasprintf (Depends-on): Likewise.
55469         * modules/vdprintf (Depends-on): Likewise.
55470         * modules/vdprintf-posix (Depends-on): Likewise.
55471         * modules/vfprintf-posix (Depends-on): Likewise.
55472         * modules/vprintf-posix (Depends-on): Likewise.
55473         * modules/vsnprintf (Depends-on): Likewise.
55474         * modules/vsnprintf-posix (Depends-on): Likewise.
55475         * modules/vsprintf-posix (Depends-on): Likewise.
55476         * modules/wcrtomb (Depends-on): Likewise.
55477         * modules/wcscasecmp (Depends-on): Likewise.
55478         * modules/wcscspn (Depends-on): Likewise.
55479         * modules/wcsdup (Depends-on): Likewise.
55480         * modules/wcsncasecmp (Depends-on): Likewise.
55481         * modules/wcsnrtombs (Depends-on): Likewise.
55482         * modules/wcspbrk (Depends-on): Likewise.
55483         * modules/wcsrtombs (Depends-on): Likewise.
55484         * modules/wcsspn (Depends-on): Likewise.
55485         * modules/wcsstr (Depends-on): Likewise.
55486         * modules/wcstok (Depends-on): Likewise.
55487         * modules/wcswidth (Depends-on): Likewise.
55488         * modules/wctob (Depends-on): Likewise.
55489         * modules/wctomb (Depends-on): Likewise.
55490         * modules/wctype (Depends-on): Likewise.
55491         * modules/wcwidth (Depends-on): Likewise.
55492         * modules/write (Depends-on): Likewise.
55494 2011-05-03  Bruno Haible  <bruno@clisp.org>
55496         Support for conditional dependencies.
55497         * doc/gnulib.texi (Module description): Document the syntax of
55498         conditional dependencies.
55499         * gnulib-tool: New option --conditional-dependencies.
55500         (func_usage): Document it.
55501         (cond_dependencies): New variable.
55502         (func_get_automake_snippet_conditional,
55503         func_get_automake_snippet_unconditional): New functions, extracted from
55504         func_get_automake_snippet.
55505         (func_get_automake_snippet): Use them.
55506         (sed_first_32_chars): New variable.
55507         (func_module_shellfunc_name): New function.
55508         (func_module_shellvar_name): New function.
55509         (func_module_conditional_name): New function.
55510         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
55511         func_cond_module_condition): New functions.
55512         (func_modules_transitive_closure): Add support for conditional
55513         dependencies.
55514         (func_emit_lib_Makefile_am): For a conditional module, enclose the
55515         conditional automake snippet in an automake conditional.
55516         (func_emit_autoconf_snippets): Emit shell functions that contain the
55517         code for conditional modules.
55518         (func_import, func_create_testdir): Update specification.
55520 2011-05-03  Eric Blake  <eblake@redhat.com>
55522         test-getaddrinfo: report error information
55523         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
55525 2011-05-03  Jim Meyering  <meyering@redhat.com>
55527         bootstrap: avoid build failure when $GZIP is set
55528         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
55529         program name.  If defined at all, it is supposed to list gzip options.
55530         Reported by Alan Curry in http://debbugs.gnu.org/8609
55532 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
55534         readme-release: new module with release instructions
55535         * modules/readme-release: New module.
55536         * top/README-release: New file, from coreutils, grep, diffutils.
55537         * MODULES.html.sh (Support for maintaining and releasing): Add it.
55539 2011-05-02  Eric Blake  <eblake@redhat.com>
55541         fflush: also replace fclose when fixing fflush
55542         * modules/fflush (Depends-on): Add fclose.
55543         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
55544         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
55545         memstreams with no backing fd.
55546         * doc/posix-functions/fclose.texi (fclose): Document the use of
55547         fflush module to fix the bug.
55548         * tests/test-fclose.c (main): Relax test when fclose is used in
55549         isolation.
55551         fclose: add some tests
55552         * modules/fclose-tests: New test module.
55553         * tests/test-fclose.c: New file.
55554         * doc/posix-functions/fclose.texi (fclose): Document the bug.
55556         fclose: reduced dependencies
55557         * modules/fclose (Depends-on): Switch from fflush/fseeko to
55558         simpler lseek.
55559         * lib/fclose.c (rpl_fclose): Likewise.
55560         Reported by Simon Josefsson.
55562         exit: drop remaining clients
55563         * modules/argmatch (Depends-on): Replace exit with stdlib.
55564         * modules/copy-file (Depends-on): Likewise.
55565         * modules/execute (Depends-on): Likewise.
55566         * modules/exitfail (Depends-on): Likewise.
55567         * modules/obstack (Depends-on): Likewise.
55568         * modules/pagealign_alloc (Depends-on): Likewise.
55569         * modules/pipe-filter-gi (Depends-on): Likewise.
55570         * modules/pipe-filter-ii (Depends-on): Likewise.
55571         * modules/savewd (Depends-on): Likewise.
55572         * modules/spawn-pipe (Depends-on): Likewise.
55573         * modules/wait-process (Depends-on): Likewise.
55574         * modules/xsetenv (Depends-on): Likewise.
55575         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
55576         * modules/git-merge-changelog (Depends-on): Likewise.
55577         * modules/long-options (Depends-on): Likewise.
55578         * modules/pt_chown (Depends-on): Likewise.
55579         * modules/sysexits (Depends-on): Likewise.
55581         freading: relax license from LGPLv3+ to LGPLv2+
55582         * modules/freading (License): Relax LGPL version.
55584 2011-05-02  Bruno Haible  <bruno@clisp.org>
55586         fchdir: Remove unused dependencies.
55587         * modules/fchdir (Depends-on): Remove include_next.
55589 2011-05-02  Bruno Haible  <bruno@clisp.org>
55591         gnulib-tool: Refactor.
55592         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
55593         from func_emit_autoconf_snippets.
55594         (func_emit_autoconf_snippets): Use it.
55596 2011-05-02  Simon Josefsson  <simon@josefsson.org>
55598         * NEWS: Document removal of 'exit'.
55599         * modules/exit: Remove file.
55601 2011-05-01  Bruno Haible  <bruno@clisp.org>
55603         Update DEPENDENCIES.
55604         * DEPENDENCIES (gettext): Recommend the newest release.
55605         Reported by Simon Josefsson.
55607 2011-05-01  Bruno Haible  <bruno@clisp.org>
55609         gnulib-tool: Reduce code duplication.
55610         * gnulib-tool (func_emit_autoconf_snippets): New function.
55611         (func_import, func_create_testdir): Use it.
55613 2011-04-30  Eric Blake  <eblake@redhat.com>
55615         fclose: don't fail on non-seekable input stream
55616         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
55617         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
55618         since fflush is allowed to fail in that case.
55620 2011-04-30  Bruno Haible  <bruno@clisp.org>
55622         dup3: cleanup
55623         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
55625 2011-04-30  Bruno Haible  <bruno@clisp.org>
55627         netdb: Make it work in C++ mode.
55628         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
55629         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
55630         module.
55631         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
55632         gl_MODULE_INDICATOR_FOR_TESTS.
55633         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
55634         * modules/netdb-c++-tests: New file.
55635         * tests/test-netdb-c++.cc: New file.
55637 2011-04-30  Bruno Haible  <bruno@clisp.org>
55639         New modules 'vfscanf', 'vscanf'.
55640         * modules/vfscanf: New file.
55641         * modules/vscanf: New file.
55642         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
55643         here.
55644         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
55645         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
55647 2011-04-30  Bruno Haible  <bruno@clisp.org>
55649         passfd: Add comments.
55650         * lib/passfd.c: Add comments about platforms.
55652 2011-04-30  Bruno Haible  <bruno@clisp.org>
55654         sys_uio: Make <sys/uio.h> self-contained.
55655         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
55656         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
55658 2011-04-30  Bruno Haible  <bruno@clisp.org>
55660         sys_socket: Ensure 'struct iovec' definition.
55661         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
55662         <sys/socket.h>.
55663         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
55665 2011-04-30  Bruno Haible  <bruno@clisp.org>
55667         sys_uio: Protect definition of 'struct iovec'.
55668         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
55669         it as a C struct.
55671 2011-04-30  Bruno Haible  <bruno@clisp.org>
55673         manywarnings: fix indentation
55674         * m4/manywarnings.m4: Indent by 2 spaces consistently.
55676 2011-04-30  Pádraig Brady  <P@draigBrady.com>
55678         manywarnings: add -Wno-missing-field-initializers if needed.
55679         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
55680         option if it's needed to allow initialization with { 0, }
55682 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
55684         announce-gen: cosmetic improvement
55685         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
55687 2011-04-29  Jim Meyering  <meyering@redhat.com>
55689         vc-list-files: indent with spaces, not TABs
55690         * build-aux/vc-list-files: Convert leading TABs to spaces,
55691         to match the style of most other files in gnulib.
55693         announce-gen: indent with spaces, not TABs
55694         * build-aux/announce-gen: Convert all TABs to spaces, to match
55695         the style of most other files in gnulib.
55697 2011-04-29  Eric Blake  <eblake@redhat.com>
55699         quotearg: avoid uninitialized variable use
55700         * lib/quotearg.c (quoting_options_from_style): Initialize
55701         remaining fields, and ensure that custom styles are only used via
55702         quoting_options rather than quoting_style.
55704 2011-04-29  Jim Meyering  <meyering@redhat.com>
55706         maint.mk: remove unused VC-tag variable
55707         * top/maint.mk (VC-tag): Remove unused variable.
55709 2011-04-29  Bruno Haible  <bruno@clisp.org>
55711         netdb: fix gai_strerror replacements
55712         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
55713         * modules/netdb: Substitute it.
55715 2011-04-29  Jim Meyering  <meyering@redhat.com>
55717         test-getcwd.c: avoid new set-but-not-used warning
55718         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
55719         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
55720         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
55721         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
55723         test-hash.c: avoid a new shadowing warning
55724         * tests/test-hash.c (main): Don't shadow "dup".
55726 2011-04-28  Eric Blake  <eblake@redhat.com>
55728         getaddrinfo: fix gai_strerror signature
55729         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
55730         and work around mingw with UNICODE defined.
55731         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
55732         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
55733         * modules/netdb (Makefile.am): Substitute it.
55734         * lib/netdb.in.h (gai_strerror): Declare replacement.
55735         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
55736         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
55737         the fix.
55739         getsockopt: avoid compiler warning
55740         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
55741         Reported by Matthias Bolte.
55743         tests: drop unused link dependency
55744         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
55745         * modules/dirent-safer-tests (Makefile.am): Likewise.
55746         * modules/fdopendir-tests (Makefile.am): Likewise.
55747         * modules/mkfifoat-tests (Makefile.am): Likewise.
55748         * modules/openat-safer-tests (Makefile.am): Likewise.
55749         * modules/openat-tests (Makefile.am): Likewise.
55750         * modules/readlinkat-tests (Makefile.am): Likewise.
55751         * modules/symlinkat-tests (Makefile.am): Likewise.
55752         * modules/linkat-tests (Makefile.am): Likewise.
55753         (Depends-on): Switch to filenamecat-lgpl.
55754         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
55755         LIBINTL.
55756         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
55757         * tests/test-linkat.c (main): Don't require xalloc.
55759         hash, mgetgroups: drop xalloc dependency
55760         * lib/hash.c (includes): Adjust includes.
55761         * lib/mgetgroups.c (includes): Likewise.
55762         (xgetgroups): Move...
55763         * lib/xgetgroups.c: ...to new file.
55764         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
55765         * modules/xgetgroups: New file, split from...
55766         * modules/mgetgroups: ...here.
55767         (Depends-on): Add xalloc-oversized.
55768         * modules/hash (Depends-on): Likewise.
55769         * modules/hash-tests (Depends-on): Drop xalloc.
55770         (test_hash_LDADD): Drop unused library.
55771         * tests/test-hash.c (main): Break xalloc dependency.
55772         (includes): Drop unused include.
55774         xalloc-oversized: new module
55775         * modules/xalloc-oversized: New module.
55776         * modules/xalloc (Depends-on): Add it.
55777         * lib/xalloc.h (xalloc_oversized): Move...
55778         * lib/xalloc-oversized.h: ...into new file.
55780         utimecmp: drop dependency on xmalloc
55781         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
55782         due to memory pressure.
55783         * modules/utimecmp (Depends-on): Drop xalloc.
55785 2011-04-27  Eric Blake  <eblake@redhat.com>
55787         getcwd: fix mingw bugs
55788         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
55789         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
55790         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
55792 2011-04-27  Bruno Haible  <bruno@clisp.org>
55794         mkstemps: Ensure declaration on MacOS X 10.5.
55795         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
55796         * doc/glibc-functions/mkstemps.texi: Document header file problem on
55797         MacOS X.
55799 2011-04-27  Bruno Haible  <bruno@clisp.org>
55801         mkstemp: More documentation.
55802         * doc/posix-functions/mkstemp.texi: Document header file problem on
55803         MacOS X.
55805 2011-04-27  Bruno Haible  <bruno@clisp.org>
55807         mkstemp: Tweak configure message when cross-compiling.
55808         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
55809         result as a guess.
55811 2011-04-27  Bruno Haible  <bruno@clisp.org>
55813         clean-temp: Clarify what it does.
55814         * lib/clean-temp.h: Add more comments.
55815         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
55816         module.
55817         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
55818         * doc/glibc-functions/mkstemps.texi: Likewise.
55819         * doc/glibc-functions/mkostemps.texi: Likewise.
55821 2011-04-27  Eric Blake  <eblake@redhat.com>
55823         fchdir: avoid extra chdir and fix test
55824         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
55825         getcwd-lgpl.
55826         * lib/fchdir.c (get_name): Any absolute name will do; it does not
55827         have to be canonical.
55828         (canonicalize_file_name): Drop unused macro.
55829         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
55831         filenamecat-lgpl: fix licence
55832         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
55833         when it was first created.
55835         linkat, renameat: add missing dependency
55836         * modules/linkat (Depends-on): Require getcwd-lgpl.
55837         * modules/renameat (Depends-on): Likewise.
55839         tests: reduce dependencies
55840         * tests/test-linkat.c (main): Use lighter-weight getcwd.
55841         * tests/test-renameat.c (main): Likewise.
55842         * modules/linkat-tests (Depends-on): Relax dependency.
55843         * modules/renameat-tests (Depends-on): Likewise.
55844         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
55845         dependency explicit.
55847         save-cwd: reduce default dependency
55848         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
55849         * lib/save-cwd.c: Update comments.
55850         * NEWS: Document the semantic change.
55852         getcwd: enhance tests
55853         * tests/test-getcwd-lgpl.c: New file, taken from...
55854         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
55855         repeat long path stress tests from m4 probe.
55856         * modules/getcwd-lgpl-tests: New module.
55857         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
55858         * m4/getcwd-abort-bug.m4: Update comment.
55859         * m4/getcwd-path-max.m4: Likewise.
55861         getcwd-lgpl: new module
55862         * modules/getcwd-lgpl: New module.
55863         * lib/getcwd-lgpl.c: New file.
55864         * doc/posix-functions/getcwd.texi (getcwd): Document it.
55865         * MODULES.html.sh (lacking POSIX:2008): Likewise.
55866         * modules/getcwd (configure.ac): Set C witness.
55867         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
55869         getcwd: tweak comments
55870         * m4/getcwd-abort-bug.m4: Fix comments.
55871         * m4/getcwd-path-max.m4: Likewise.
55872         * m4/getcwd.m4: Likewise.
55874 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
55875         and Eric Blake  <eblake@redhat.com>
55877         mkstemp: replace if system version uses wrong permissions
55878         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
55879         read/write mode bits set in file created by mkstemp.
55880         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
55882 2011-04-27  Eric Blake  <eblake@redhat.com>
55884         passfd: avoid compiler warning
55885         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
55886         Reported by Laine Stump.
55888 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
55890         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
55891         required by the NetBSD (and perhaps other 4.4BSD derived) join.
55893 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
55894         and Eric Blake  <eblake@redhat.com>
55896         mkstemp: mention clean-temp module
55897         * lib/mkstemp.c: Add comment.
55898         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
55900 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
55902         inttypes: also provide default values for 32-bit tests
55903         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
55904         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
55906 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
55908         strtoumax: remove dependency on strtoimax
55909         This is like the strtoull change of yesterday.
55910         * modules/strtoumax (Files): Add lib/strtoimax.c.
55911         (Depends-on): Remove strtoimax and add verify.
55913         inttypes-incomplete: new module
55914         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
55915         all but the PRI* and SCN* parts of gl_INTTYPES_H.
55916         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
55917         of gl_INTTYPES_H.
55918         (gl_INTTYPES_H): Rewrite in terms of these new macros.
55919         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
55920         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
55921         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
55922         * modules/strtoumax, modules/xstrtol (Depends-on):
55923         Depend on inttypes-incomplete, not inttypes.
55924         * modules/inttypes-incomplete: New module, containing the contents
55925         of the old modules/inttypes module, except that the Files: section
55926         omits m4/inttypes-pri.m4, and the configure.ac section invokes
55927         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
55928         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
55929         (Depends-on): Depend only on inttypes-incomplete.
55930         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
55932         inttypes: omit now-redundant strtoimax and strtoumax work
55933         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
55934         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
55936         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
55937         This supports apps that need pointers to strtoimax and strtoumax,
55938         and ports to HP-UX 11.00 64.bit, which has macros that expand to
55939         nonexistent functions.  See
55940         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
55941         et seq.
55942         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
55943         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
55944         a macro.
55945         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
55947 2011-04-25  Simon Josefsson  <simon@josefsson.org>
55949         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
55951 2011-04-25  Bruno Haible  <bruno@clisp.org>
55953         strtol, strtoul: Mark modules as obsolete.
55954         * modules/strtol (Status, Notice): New sections.
55955         * modules/strtoul (Status, Notice): New sections.
55957 2011-04-25  Bruno Haible  <bruno@clisp.org>
55959         strtod: Remove check for strtod, unless supporting old platforms.
55960         * modules/strtod-obsolete: New file.
55961         * m4/strtod-obsolete.m4: New file.
55962         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
55963         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
55964         * modules/strtod (Depends-on): Add strtod-obsolete.
55965         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
55967 2011-04-25  Bruno Haible  <bruno@clisp.org>
55969         strcase: Make module obsolete.
55970         * modules/strcase (Status, Notice): New sections.
55972 2011-04-25  Bruno Haible  <bruno@clisp.org>
55974         dup2: Remove check for dup2, unless supporting old obsolete platforms.
55975         * modules/dup2-obsolete: New file.
55976         * m4/dup2-obsolete.m4: New file.
55977         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
55978         gl_FUNC_DUP2_OBSOLETE is not also defined.
55979         * modules/dup2 (Depends-on): Add dup2-obsolete.
55980         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
55982 2011-04-25  Bruno Haible  <bruno@clisp.org>
55984         strnlen: Avoid memchr related link error on old obsolete platforms.
55985         * modules/memchr-obsolete: New file.
55986         * m4/memchr-obsolete.m4: New file.
55987         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
55988         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
55989         * modules/memchr (Depends-on): Add memchr-obsolete.
55990         * modules/strnlen (Depends-on): Likewise.
55991         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
55993 2011-04-25  Jim Meyering  <meyering@redhat.com>
55995         maint.mk: makefile_at_at_check extend and clean up
55996         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
55997         in addition to */Makefile.am.
55998         Exempt legitimate uses of @VAR@ notation, e.g.,
55999         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
56000         Remove obsolete coreutils-specific comment.
56001         Prompted by discussion here:
56002         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
56004 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
56006         strtoul: remove dependency on strtol
56007         This is so that 'configure' need not check for strtol merely because
56008         the application needs strtoul.
56009         * modules/strtoul (Files): Add lib/strtol.c.
56010         (Depends-on): Remove strtol.
56012         strtoull: remove dependency on strtoul
56013         This is like the strtoll change.
56014         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
56015         (Depends-on): Remove strtoul.
56017         strtoll: remove dependency on strtol
56018         This is so that 'configure' need not check for strtol merely because
56019         the application needs strtoll.
56020         * modules/strtoll (Files): Add lib/strtol.c.
56021         (Depends-on): Remove strtol.
56023 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56025         inttypes: Move some configure check to module 'imaxdiv'.
56026         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
56027         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
56028         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
56030 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56032         inttypes: Move some configure check to module 'imaxabs'.
56033         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
56034         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
56035         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
56037 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56039         inttypes: Remove configure tests that are not needed since 2009-12-31.
56040         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
56041         gl_cv_header_working_inttypes_h.
56043 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56045         * modules/strnlen (Depends-on): Remove memchr.
56046         The strnlen implementation doesn't need the memchr module's fixes; see
56047         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
56049         strtol: remove dependency on wchar
56050         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
56051         * modules/strtol (Depends-on): Remove wchar.
56053 2011-04-21  Eric Blake  <eblake@redhat.com>
56055         passfd: fix test regression on Linux
56056         * modules/passfd-tests (configure.ac): Correct socketpair check.
56058         passfd: speed up configure and drop unused code
56059         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
56060         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
56061         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
56062         Instead of probing at configure for unix_scm_rights_bsd44_way,
56063         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
56064         check to a struct member probe.
56065         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
56066         (sendfd, recvfd): Update preprocessor checks.
56067         * modules/passfd (Files): Reflect rename, and drop unused file.
56068         (Depends-on): Drop unused dependency.
56070         passfd: allow compilation on mingw
56071         * modules/sys_socket (Depends-on): Add sys_uio.
56072         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
56073         iovec and a minimal struct msghdr.
56074         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
56075         * tests/test-sys_socket.c (main): Enhance test.
56076         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
56077         guaranteed to provide what we need.
56078         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
56079         * modules/passfd-tests (Depends-on): Add sys_wait.
56080         * tests/test-passfd.c (main): Skip test on mingw, for now.
56081         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
56082         partial 'struct msghdr' implementation.
56084         sys_uio: new module
56085         * modules/sys_uio: New module.
56086         * modules/sys_uio-tests: Likewise.
56087         * lib/sys_uio.in.h: New file.
56088         * m4/sys_uio_h.m4: Likewise.
56089         * tests/test-sys_uio.c: Likewise.
56090         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
56091         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
56093 2011-04-20  Jim Meyering  <meyering@redhat.com>
56095         useless-if-before-free: avoid false-positive
56096         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
56097         disjunct so that it too requires a terminating ";".  Without that,
56098         this script would identify as useless one statement from gcc that
56099         was not:
56100           if (aligned_ptr)
56101             free (((void **) aligned_ptr) [-1]);
56103 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
56105         doc: update users.txt.
56106         * users.txt: Add barcode.
56108 2011-04-19  Bruno Haible  <bruno@clisp.org>
56110         ioctl: Remove link dependency on native Windows.
56111         * lib/fd-hook.h: Renamed from lib/close-hook.h.
56112         (gl_close_fn, gl_ioctl_fn): New types.
56113         (struct fd_hook): Renamed from struct close_hook. Change type of
56114         private_close_fn field. Add private_ioctl_fn field.
56115         (close_hook_fn): Add parameter for primary close method.
56116         (execute_close_hooks, execute_all_close_hooks): Likewise.
56117         (ioctl_hook_fn): New type.
56118         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
56119         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
56120         argument.
56121         (unregister_fd_hook): Renamed from unregister_close_hook.
56122         * lib/fd-hook.c: Renamed from lib/close-hook.c.
56123         Don't include <unistd.h>.
56124         (close): Remove undef.
56125         (anchor): Update.
56126         (execute_close_hooks): Add argument for primary close method.
56127         (execute_all_close_hooks): Likewise.
56128         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
56129         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
56130         argument. Allow each argument to be NULL.
56131         (unregister_fd_hook): Renamed from unregister_close_hook.
56132         * lib/close.c (rpl_close): Pass 'close' function pointer to
56133         execute_all_close_hooks.
56134         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
56135         (primary_ioctl): New function.
56136         (ioctl): Don't call ioctlsocket here. Instead, call
56137         execute_all_ioctl_hooks.
56138         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
56139         close method.
56140         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
56141         (fd_sockets_hook): Renamed from close_sockets_hook.
56142         (gl_sockets_startup, gl_sockets_cleanup): Update.
56143         * modules/fd-hook: Renamed from modules/close-hook. Update.
56144         * modules/close (Depends-on): Add fd-hook, remove close-hook.
56145         * modules/sockets (Depends-on): Likewise.
56146         * modules/ioctl (Depends-on): Add fd-hook.
56147         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
56148         GNULIB_SOCKET.
56150 2011-04-19  Bruno Haible  <bruno@clisp.org>
56152         Move the support of O_NONBLOCK in open() to the 'open' module.
56153         * modules/nonblocking (Depends-on): Remove 'open'.
56154         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
56155         gl_cv_have_open_O_NONBLOCK.
56156         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
56157         O_NONBLOCK support.
56158         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
56160 2011-04-17  Bruno Haible  <bruno@clisp.org>
56162         pipe2: Simplify code.
56163         * lib/pipe2.c (pipe2): Reduce code duplication.
56165 2011-04-17  Bruno Haible  <bruno@clisp.org>
56167         nonblocking: Add comment.
56168         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
56170 2011-04-17  Bruno Haible  <bruno@clisp.org>
56172         nonblocking: Add tests for sockets.
56173         * tests/test-nonblocking-socket.sh: New file.
56174         * tests/test-nonblocking-socket-main.c: New file.
56175         * tests/test-nonblocking-socket-child.c: New file.
56176         * tests/test-nonblocking-socket.h: New file.
56177         * tests/socket-server.h: New file.
56178         * tests/socket-client.h: New file.
56179         * modules/nonblocking-socket-tests: New file.
56180         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
56182 2011-04-17  Bruno Haible  <bruno@clisp.org>
56184         nonblocking: Add tests for pipes.
56185         * tests/test-nonblocking-pipe.sh: New file.
56186         * tests/test-nonblocking-pipe-main.c: New file.
56187         * tests/test-nonblocking-pipe-child.c: New file.
56188         * tests/test-nonblocking-pipe.h: New file.
56189         * tests/test-nonblocking-writer.h: New file.
56190         * tests/test-nonblocking-reader.h: New file.
56191         * tests/test-nonblocking-misc.h: New file.
56192         * modules/nonblocking-pipe-tests: New file.
56193         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
56195 2011-04-16  Bruno Haible  <bruno@clisp.org>
56197         gettext: Clarify the needed programmer actions.
56198         * modules/gettext (Notice): New field.
56199         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
56201 2011-04-16  Bruno Haible  <bruno@clisp.org>
56203         strchrnul: Tweak last commit.
56204         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
56205         bug.
56206         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
56207         as in _GL_FUNCDECL_SYS.
56208         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
56209         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
56211 2011-04-15  Eric Blake  <eblake@redhat.com>
56213         strchrnul: work around cygwin bug
56214         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
56215         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
56216         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
56217         * modules/string (Makefile.am): Substitute it.
56218         * lib/string.in.h (strchrnul): Use it.
56220 2011-04-15  Bruno Haible  <bruno@clisp.org>
56222         Don't require lib/stdio-write.c when only module 'stdio' is used.
56223         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
56224         invocation.
56225         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
56227 2011-04-14  Bruno Haible  <bruno@clisp.org>
56229         Support non-blocking pipe I/O in read() on native Windows.
56230         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
56231         (read): New declaration.
56232         * lib/read.c: New file.
56233         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
56234         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
56235         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
56236         vscanf): New declarations.
56237         * lib/stdio-read.c: New file.
56238         * m4/read.m4: New file.
56239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
56240         REPLACE_READ.
56241         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
56242         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
56243         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
56244         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
56245         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
56246         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
56247         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
56248         * modules/read: New file.
56249         * modules/nonblocking (Files): Add lib/stdio-read.c.
56250         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
56251         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
56252         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
56253         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
56254         * modules/pread (Depends-on): Add read.
56255         * modules/safe-read (Depends-on): Likewise.
56256         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
56257         gets, scanf, vfscanf, vscanf): Verify signatures.
56258         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
56259         problem with non-blocking pipes.
56260         * doc/posix-functions/fgetc.texi: Likewise.
56261         * doc/posix-functions/fgets.texi: Likewise.
56262         * doc/posix-functions/fread.texi: Likewise.
56263         * doc/posix-functions/fscanf.texi: Likewise.
56264         * doc/posix-functions/getc.texi: Likewise.
56265         * doc/posix-functions/getchar.texi: Likewise.
56266         * doc/posix-functions/gets.texi: Likewise.
56267         * doc/posix-functions/scanf.texi: Likewise.
56268         * doc/posix-functions/vfscanf.texi: Likewise.
56269         * doc/posix-functions/vscanf.texi: Likewise.
56271 2011-04-14  Bruno Haible  <bruno@clisp.org>
56273         Support non-blocking pipe I/O in write() on native Windows.
56274         * lib/write.c (rpl_write): Split a write request that failed merely
56275         because the byte count was larger than the pipe buffer's size.
56276         * doc/posix-functions/write.texi: Mention the problem with large byte
56277         counts.
56279 2011-04-14  Bruno Haible  <bruno@clisp.org>
56281         wchar: Ensure that wchar_t gets defined on uClibc.
56282         * lib/wchar.in.h: On uClibc, include <stddef.h>.
56283         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
56285 2011-04-13  Bruno Haible  <bruno@clisp.org>
56287         safe-write, full-read: Avoid unnecessary compilation units.
56288         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
56289         (Depends-on): Remove safe-read. Add ssize_t.
56290         * modules/full-read (Files): Add lib/full-write.c.
56291         (Depends-on): Add full-write.
56293 2011-04-13  Bruno Haible  <bruno@clisp.org>
56295         Support non-blocking pipe I/O and SIGPIPE in pwrite().
56296         * modules/pwrite (Depends-on): Add 'write'.
56298 2011-04-13  Bruno Haible  <bruno@clisp.org>
56300         Support non-blocking pipe I/O in write() on native Windows.
56301         * lib/unistd.in.h (write): Enable replacement also if
56302         GNULIB_UNISTD_H_NONBLOCKING is 1.
56303         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
56304         (rpl_write): When failing to write on a non-blocking pipe, change
56305         errno from ENOSPC to EAGAIN.
56306         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
56307         putchar, puts, vfprintf, vprintf): Enable replacement also if
56308         GNULIB_STDIO_H_NONBLOCKING is 1.
56309         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
56310         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
56311         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
56312         CALL_WITH_SIGPIPE_EMULATION.
56313         (CALL_WITH_SIGPIPE_EMULATION): Use them.
56314         * m4/nonblocking.m4: New file.
56315         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
56316         for non-blocking I/O support.
56317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56318         GNULIB_UNISTD_H_NONBLOCKING.
56319         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
56320         required for non-blocking I/O support.
56321         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
56322         * modules/nonblocking (Files): Add m4/nonblocking.m4,
56323         lib/stdio-write.c, m4/asm-underscore.m4.
56324         (Depends-on): Add stdio, unistd.
56325         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
56326         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
56327         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
56328         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
56329         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
56330         problem with non-blocking pipes.
56331         * doc/posix-functions/fputc.texi: Likewise.
56332         * doc/posix-functions/fputs.texi: Likewise.
56333         * doc/posix-functions/fwrite.texi: Likewise.
56334         * doc/posix-functions/printf.texi: Likewise.
56335         * doc/posix-functions/putc.texi: Likewise.
56336         * doc/posix-functions/putchar.texi: Likewise.
56337         * doc/posix-functions/puts.texi: Likewise.
56338         * doc/posix-functions/vfprintf.texi: Likewise.
56339         * doc/posix-functions/vprintf.texi: Likewise.
56340         * doc/posix-functions/write.texi: Likewise.
56342 2011-04-10  Jim Meyering  <meyering@redhat.com>
56344         maint.mk: prohibit doubled words
56345         Detect them also when they're separated by a newline.
56346         There are 3 ways to customize it:
56347           - disable the test on a per file basis, as usual with rules using
56348             $(VC_LIST_EXCEPT)
56349           - replace the default doubled-word-selecting regexp (affects all files)
56350           - ignore a particular file-vs-doubled-word match
56351         I nearly used that last one to ignore the "is is" match in
56352         coreutils' NEWS file, since the text was "ls -is is ..."
56353         To do that, I would have added this line to cfg.mk:
56354           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
56355         but it would have ignored any "is is" match in NEWS.
56356         Low probability, but still...
56357         Instead, I changed the text, slightly:
56358           -  ls -is is now consistent with ls -lis in ignoring values returned
56359           +  "ls -is" is now consistent with ls -lis in ignoring values returned
56360         * top/maint.mk (prohibit_double_word_RE_): Provide default.
56361         (prohibit_doubled_word_): Define.
56362         (sc_prohibit_doubled_word): New rule.
56363         (sc_prohibit_the_the): Remove.  Subsumed by the above.
56365 2011-04-10  Jim Meyering  <meyering@redhat.com>
56367         maint: fix doubled-word typo in comment
56368         * m4/gethostname.m4: s/is is/it is/
56369         * m4/getdomainname.m4: Likewise.
56371 2011-04-10  Jim Meyering  <meyering@redhat.com>
56373         maint: remove doubled word: s/it it/it/
56374         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
56376 2011-04-10  Jim Meyering  <meyering@redhat.com>
56378         maint.mk: remove useless semicolon and backslash
56379         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
56380         semicolon and backslash.
56382 2011-04-10  Bruno Haible  <bruno@clisp.org>
56384         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
56385         * modules/stdint-tests (Depends-on): Add wchar.
56387 2011-04-10  Jim Meyering  <meyering@redhat.com>
56389         maint: remove doubled words in comments, e.g., s/a a/a/
56390         * lib/strptime.c (day_of_the_week): s/the the/the/
56391         * tests/test-chown.h (test_chown): s/a a/a/
56393         test-chown.h: correct a cast
56394         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
56395         when the destination is a stat.st_gid.
56397 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
56399         getaddrinfo: Fix test for sa_len member.
56400         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
56401         include <sys/types.h> before <sys/socket.h>.
56403 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56405         maint: change "can not" to "cannot"
56406         * doc/posix-functions/iconv.texi (iconv): This one crossed line
56407         boundaries.
56409 2011-04-09  Jim Meyering  <meyering@redhat.com>
56411         maint: change "a a" to "a"
56412         * tests/test-lchown.h (test_lchown): s/a a/a/
56414         maint.mk: prohibit \<the the\>
56415         * top/maint.mk (sc_prohibit_the_the): New rule.
56417         maint: fix "the the" in comment
56418         * lib/count-one-bits.h: s/the the/the/
56420         maint: change "can not" to "cannot"
56421         But do not change the occurrences in maintain.texi or in
56422         build-aux/po/Makefile.in.in, which I presume comes from gettext.
56423         * doc/gnulib-tool.texi: s/can not/cannot/
56424         * doc/posix-functions/accept.texi (accept): Likewise.
56425         * doc/posix-functions/socket.texi (socket): Likewise.
56426         * lib/mbrtowc.c: Likewise.
56428         maint.mk: prohibit use of "can not"
56429         * top/maint.mk (sc_prohibit_can_not): New rule.
56430         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
56432 2011-04-09  Bruno Haible  <bruno@clisp.org>
56434         careadlinkat: Guard against misuse of careadlinkatcwd.
56435         * lib/careadlinkat.c: Include <stdlib.h>.
56436         (careadlinkatcwd): Check that the fd argument is as expected.
56438 2011-04-09  Bruno Haible  <bruno@clisp.org>
56440         careadlinkat: Use common coding style.
56441         * lib/careadlinkat.c: Move gnulib includes after system includes.
56443 2011-04-09  Bruno Haible  <bruno@clisp.org>
56445         careadlinkat: Clarify specification.
56446         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
56447         (careadlinkatcwd): Add comment.
56448         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
56450 2011-04-09  Bruno Haible  <bruno@clisp.org>
56452         areadlinkat: Avoid link error on many platforms.
56453         * modules/areadlinkat (Depends-on): Add areadlink.
56455 2011-04-09  Bruno Haible  <bruno@clisp.org>
56457         allocator, careadlinkat: Fix double-inclusion guard.
56458         * lib/allocator.h: Fix double-inclusion guard.
56459         * lib/careadlinkat.h: Likewise.
56461 2011-04-09  Bruno Haible  <bruno@clisp.org>
56463         relocatable-prog-wrapper: Update after module 'areadlink' changed.
56464         * lib/relocwrapper.c: Update dependencies hierarchy.
56465         * build-aux/install-reloc: Update list of files to be compiled.
56466         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
56467         lib/allocator.[hc].
56469 2011-04-08  Eric Blake  <eblake@redhat.com>
56471         strftime: silence gnulib-tool warning
56472         * modules/strftime-tests (Depends-on): Drop automatic dependency.
56474 2011-04-08  Bruno Haible  <bruno@clisp.org>
56476         verify: Fix syntax error with GCC 4.6 in C++ mode.
56477         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
56478         (HAVE_STATIC_ASSERT): New macro.
56479         (verify_true, verify): Use 'static_assert' if it is supported and
56480         '_Static_assert' is not supported.
56482 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
56484         allocator: New module.
56485         * modules/allocator, lib/allocator.c: New files.
56486         * lib/allocator.h (stdlib_allocator): New decl.
56487         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
56488         Remove.  Do not include <stdlib.h>.
56489         (careadlinkat): Use stdlib_allocator instead of rolling our own.
56490         * modules/careadlinkat (Files): Remove lib/allocator.h.
56491         (Depends-on): Add allocator.
56493         stdlib: let modules use system malloc, realloc
56494         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
56495         if !_GL_USE_STDLIB_ALLOC.
56496         (malloc, realloc): Limit this change to a smaller scope.
56498         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
56499         (malloc, realloc): Don't #undef; no longer needed.
56500         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56501         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56502         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
56503         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56504         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56505         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56506         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56507         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
56509         careadlinkat: rename members to avoid problem
56510         * lib/allocator.h (struct allocator): Rename members from
56511         malloc/realloc to allocate/reallocate, to avoid problems if malloc
56512         and realloc are #define'd.  Reported by Eric Blake in
56513         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
56514         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
56516 2011-04-08  Eric Blake  <eblake@redhat.com>
56518         nonblocking: reduce dependency
56519         * tests/test-nonblocking.c: Only test sockets when in use.
56520         * modules/nonblocking-tests (Depends-on): Drop socket.
56521         (Makefile.am): Link even if sockets are not present.
56522         * modules/pipe2-tests (Makefile.am): Likewise.
56523         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
56525         pipe2: fix O_NONBLOCK support on mingw
56526         * modules/pipe2 (Depends-on): Add nonblocking.
56527         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
56528         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
56529         * tests/test-nonblocking.c (main): Likewise.
56530         * modules/pipe2-tests (Makefile.am): Avoid link failure.
56532         fcntl-h: fix O_ACCMODE on cygwin
56533         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
56534         * lib/fcntl.in.h (O_ACCMODE): Fix it.
56536         pipe-filter: drop O_NONBLOCK workarounds
56537         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
56538         * modules/pipe-filter-ii (Depends-on): Likewise.
56539         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
56541         nonblocking: provide O_NONBLOCK for mingw
56542         * modules/nonblocking (Depends-on): Add open.
56543         (configure.ac): Set new witness macro.
56544         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
56545         * modules/fcntl-h (Makefile.am): Substitute it.
56546         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
56547         nonblocking module is in use.
56548         * lib/nonblocking.c: Adjust portability test.
56549         * lib/open.c (open): Don't let native open see gnulib flag.
56550         * tests/test-fcntl-h.c (main): Enhance test.
56551         * tests/test-open.h (test_open): Likewise.
56552         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
56554         careadlinkat: fix compilation error on mingw
56555         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
56556         within struct allocator.
56558 2011-04-06  Eric Blake  <eblake@redhat.com>
56560         binary-io: relicense under LGPLv2+
56561         * modules/binary-io (License): Relax to LGPLv2+.
56562         Requested for libvirt, and required by pipe2.
56564 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
56566         verify: use _Static_assert if available
56567         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
56568         (verify_true, verify): Use it if available.  This generates better
56569         diagnostics with GCC 4.6.0 and later.
56571 2011-04-05  Bruno Haible  <bruno@clisp.org>
56573         Remove leftover generated .h files after config.status changed.
56575         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
56576         GL_GENERATE_ALLOCA_H.
56577         * modules/alloca-opt (Makefile.am): Remove alloca.h if
56578         GL_GENERATE_ALLOCA_H evaluates to false.
56580         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
56581         GL_GENERATE_ARGZ_H.
56582         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
56583         evaluates to false.
56585         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
56586         GL_GENERATE_BYTESWAP_H.
56587         * modules/byteswap (Makefile.am): Remove byteswap.h if
56588         GL_GENERATE_BYTESWAP_H evaluates to false.
56590         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
56591         GL_GENERATE_ERRNO_H.
56592         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
56593         evaluates to false.
56595         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
56596         GL_GENERATE_FLOAT_H.
56597         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
56598         evaluates to false.
56600         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
56601         GL_GENERATE_FNMATCH_H.
56602         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
56603         GL_GENERATE_FNMATCH_H evaluates to false.
56605         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
56606         GL_GENERATE_GLOB_H.
56607         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
56608         evaluates to false.
56610         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
56611         automake conditional GL_GENERATE_ICONV_H.
56612         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
56613         evaluates to false.
56615         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
56616         GL_GENERATE_NETINET_IN_H.
56617         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
56618         GL_GENERATE_NETINET_IN_H evaluates to false.
56620         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
56621         conditional GL_GENERATE_PTHREAD_H.
56622         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
56623         * modules/pthread (Makefile.am): Remove pthread.h if
56624         GL_GENERATE_PTHREAD_H evaluates to false.
56626         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
56627         GL_GENERATE_SCHED_H.
56628         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
56629         evaluates to false.
56631         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
56632         conditional GL_GENERATE_SELINUX_CONTEXT_H.
56633         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
56634         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
56636         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
56637         GL_GENERATE_STDARG_H.
56638         * modules/stdarg (Makefile.am): Remove stdarg.h if
56639         GL_GENERATE_STDARG_H evaluates to false.
56641         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
56642         GL_GENERATE_STDBOOL_H.
56643         * modules/stdbool (Makefile.am): Remove stdbool.h if
56644         GL_GENERATE_STDBOOL_H evaluates to false.
56646         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
56647         conditional GL_GENERATE_STDDEF_H.
56648         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
56649         * modules/stddef (Makefile.am): Remove stddef.h if
56650         GL_GENERATE_STDDEF_H evaluates to false.
56652         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
56653         GL_GENERATE_STDINT_H.
56654         * modules/stdint (Makefile.am): Remove stdint.h if
56655         GL_GENERATE_STDINT_H evaluates to false.
56657         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
56658         GL_GENERATE_SYSEXITS_H.
56659         * modules/sysexits (Makefile.am): Remove sysexits.h if
56660         GL_GENERATE_SYSEXITS_H evaluates to false.
56662         Reported by Karl Berry and Ralf Wildenhues.
56664 2011-04-05  Bruno Haible  <bruno@clisp.org>
56666         Ensure to rebuild generated .h files when config.status has changed.
56667         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
56668         config.status.
56669         * modules/ctype (Makefile.am): Likewise.
56670         * modules/dirent (Makefile.am): Likewise.
56671         * modules/errno (Makefile.am): Likewise.
56672         * modules/fcntl-h (Makefile.am): Likewise.
56673         * modules/float (Makefile.am): Likewise.
56674         * modules/getopt-posix (Makefile.am): Likewise.
56675         * modules/glob (Makefile.am): Likewise.
56676         * modules/iconv-h (Makefile.am): Likewise.
56677         * modules/inttypes (Makefile.am): Likewise.
56678         * modules/langinfo (Makefile.am): Likewise.
56679         * modules/locale (Makefile.am): Likewise.
56680         * modules/math (Makefile.am): Likewise.
56681         * modules/netdb (Makefile.am): Likewise.
56682         * modules/netinet_in (Makefile.am): Likewise.
56683         * modules/poll-h (Makefile.am): Likewise.
56684         * modules/pthread (Makefile.am): Likewise.
56685         * modules/pty (Makefile.am): Likewise.
56686         * modules/sched (Makefile.am): Likewise.
56687         * modules/search (Makefile.am): Likewise.
56688         * modules/selinux-h (Makefile.am): Likewise.
56689         * modules/signal (Makefile.am): Likewise.
56690         * modules/spawn (Makefile.am): Likewise.
56691         * modules/stdarg (Makefile.am): Likewise.
56692         * modules/stdbool (Makefile.am): Likewise.
56693         * modules/stddef (Makefile.am): Likewise.
56694         * modules/stdint (Makefile.am): Likewise.
56695         * modules/stdio (Makefile.am): Likewise.
56696         * modules/stdlib (Makefile.am): Likewise.
56697         * modules/string (Makefile.am): Likewise.
56698         * modules/strings (Makefile.am): Likewise.
56699         * modules/sys_file (Makefile.am): Likewise.
56700         * modules/sys_ioctl (Makefile.am): Likewise.
56701         * modules/sys_select (Makefile.am): Likewise.
56702         * modules/sys_socket (Makefile.am): Likewise.
56703         * modules/sys_stat (Makefile.am): Likewise.
56704         * modules/sys_time (Makefile.am): Likewise.
56705         * modules/sys_times (Makefile.am): Likewise.
56706         * modules/sys_utsname (Makefile.am): Likewise.
56707         * modules/sys_wait (Makefile.am): Likewise.
56708         * modules/sysexits (Makefile.am): Likewise.
56709         * modules/termios (Makefile.am): Likewise.
56710         * modules/time (Makefile.am): Likewise.
56711         * modules/unistd (Makefile.am): Likewise.
56712         * modules/wchar (Makefile.am): Likewise.
56713         * modules/wctype-h (Makefile.am): Likewise.
56714         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
56716 2011-04-05  Bruno Haible  <bruno@clisp.org>
56718         pipe2: Relicense under LGPLv2+.
56719         * modules/pipe2 (License): Change to LGPLv2+.
56720         Requested by Eric Blake, for libvirt.
56722 2011-04-05  Bruce Korb  <bkorb@gnu.org>
56724         bootstrap: compute gnulib_extra_files after updating build_aux
56725         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
56726         change build_aux or also supply gnulib_extra_files.  Handle correctly.
56728 2011-04-05  Eric Blake  <eblake@redhat.com>
56730         bootstrap: preserve git whitelist item sorting
56731         * build-aux/bootstrap (sort_patterns): New function.
56732         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
56734 2011-04-05  Simon Josefsson  <simon@josefsson.org>
56736         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
56737         sc_space_tab check.
56739 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
56741         areadlink, areadlinkat: rewrite in terms of careadlinkat
56742         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
56743         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
56744         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
56745         (malloc, realloc): Remove #undefs.
56746         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
56747         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
56748         readlink, ssize_t, stdint, unistd.
56749         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
56750         areadlink, stdint.
56752         careadlinkat: new module
56753         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
56754         * modules/careadlinkat: New files, written by me with
56755         a review and feedback from Ben Pfaff in
56756         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
56758 2011-04-01  Bruno Haible  <bruno@clisp.org>
56760         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
56761         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
56762         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
56763         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
56764         Reported by Bruce Korb <bruce.korb@gmail.com>.
56766 2011-04-01  Bruno Haible  <bruno@clisp.org>
56768         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
56769         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
56770         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
56771         * modules/wcpcpy (Depends-on): Add extensions.
56772         * modules/wcpncpy (Depends-on): Likewise.
56773         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
56774         systems.
56775         * doc/posix-functions/wcpncpy.texi: Likewise.
56776         * doc/posix-functions/wcwidth.texi: Likewise.
56778 2011-03-31  Eric Blake  <eblake@redhat.com>
56780         nonblocking: fix mingw test failures
56781         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
56782         non-blocking flag on regular file.
56783         (get_nonblocking_flag): Set errno on invalid fd.
56784         * tests/test-nonblocking.c (main): Avoid test failure on
56785         directories if fchdir is not active.
56786         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
56788 2011-03-31  Bruno Haible  <bruno@clisp.org>
56790         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
56791         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
56792         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
56793         Reported by Simon Josefsson <simon@josefsson.org>.
56795 2011-03-31  Bruno Haible  <bruno@clisp.org>
56796         and Eric Blake  <eblake@redhat.com>
56798         nonblocking: new module
56799         * modules/nonblocking: New module.
56800         * modules/nonblocking-tests: Likewise.
56801         * lib/nonblocking.h: New file.
56802         * lib/nonblocking.c: Likewise.
56803         * tests/test-nonblocking.c: New test.
56804         * lib/ioctl.c (ioctl) [mingw]: Update comment.
56806 2011-03-30  Bruno Haible  <bruno@clisp.org>
56808         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
56809         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
56810         instead of 'printf' format for GCC >= 4.4.
56811         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
56812         (fprintf, printf, vfprintf, vprintf): Declare with
56813         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
56814         the system's vfprintf() function.
56815         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
56817 2011-03-30  Eric Blake  <eblake@redhat.com>
56819         passfd: fix scoping bug
56820         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
56821         before sendmsg/recvmsg.
56823         passfd: standardize coding conventions
56824         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
56825         can be learned at compile time.
56826         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
56827         ifdefs.
56828         (sendfd, recvfd): Follow gnulib code conventions.
56830         passfd: fix incorrect sendmsg arguments
56831         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
56832         incorrect msg_controllen value.
56833         * modules/passfd-tests (Depends-on): Check for alarm.
56834         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
56835         Reported by Bastien ROUCARIES.
56837 2011-03-30  Bruno Haible  <bruno@clisp.org>
56839         c-strcasestr: Relicense under LGPLv2+.
56840         * modules/c-strcasestr (License): Change to LGPLv2+.
56841         Requested by Eric Blake, for libvirt.
56843 2011-03-30  Simon Josefsson  <simon@josefsson.org>
56845         * users.txt: Add libidn2.  Fix libtasn1 link.
56847 2011-03-30  Jim Meyering  <meyering@redhat.com>
56849         tests: readlink* ("",... fails with EINVAL on newer kernels
56850         readlink and readlinkat have typically failed with ENOENT for
56851         the invalid, empty file name,  "".  However, with the advent
56852         of linux-2.6.39, they fail with EINVAL.
56853         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
56854         when operating on the empty file name.
56855         * tests/test-readlink.h (test_readlink): Likewise.
56857 2011-03-29  Bruno Haible  <bruno@clisp.org>
56859         Relicense some modules under LGPLv2+, for libidn2.
56860         * modules/array-mergesort (License): Change to LGPLv2+.
56861         * modules/c-strcaseeq (License): Likewise.
56862         * modules/striconveh (License): Likewise.
56863         * modules/striconveha (License): Likewise.
56864         * modules/uniconv/base (License): Likewise.
56865         * modules/uniconv/u8-conv-from-enc (License): Likewise.
56866         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
56867         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
56868         * modules/unictype/base (License): Likewise.
56869         * modules/unictype/bidiclass-of (License): Likewise.
56870         * modules/unictype/category-M (License): Likewise.
56871         * modules/unictype/category-none (License): Likewise.
56872         * modules/unictype/category-of (License): Likewise.
56873         * modules/unictype/category-test (License): Likewise.
56874         * modules/unictype/category-test-withtable (License): Likewise.
56875         * modules/unictype/combining-class (License): Likewise.
56876         * modules/unictype/joiningtype-of (License): Likewise.
56877         * modules/unictype/scripts (License): Likewise.
56878         * modules/uninorm/base (License): Likewise.
56879         * modules/uninorm/canonical-decomposition (License): Likewise.
56880         * modules/uninorm/composition (License): Likewise.
56881         * modules/uninorm/decompose-internal (License): Likewise.
56882         * modules/uninorm/decomposition-table (License): Likewise.
56883         * modules/uninorm/nfc (License): Likewise.
56884         * modules/uninorm/nfd (License): Likewise.
56885         * modules/uninorm/u32-normalize (License): Likewise.
56886         * modules/unistr/base (License): Likewise.
56887         * modules/unistr/u32-cpy (License): Likewise.
56888         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
56889         * modules/unistr/u32-to-u8 (License): Likewise.
56890         * modules/unistr/u32-uctomb (License): Likewise.
56891         * modules/unistr/u8-check (License): Likewise.
56892         * modules/unistr/u8-mblen (License): Likewise.
56893         * modules/unistr/u8-mbtouc (License): Likewise.
56894         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
56895         * modules/unistr/u8-mbtoucr (License): Likewise.
56896         * modules/unistr/u8-prev (License): Likewise.
56897         * modules/unistr/u8-strlen (License): Likewise.
56898         * modules/unistr/u8-to-u32 (License): Likewise.
56899         * modules/unistr/u8-uctomb (License): Likewise.
56900         * modules/unitypes (License): Likewise.
56901         Requested by Simon Josefsson.
56903 2011-03-29  Simon Josefsson  <simon@josefsson.org>
56905         lib-symbol-visibility: Add a notice.
56906         * modules/lib-symbol-visibility (Notice): New field.
56908 2011-03-29  Bruno Haible  <bruno@clisp.org>
56910         getaddrinfo: Doc fix.
56911         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
56912         section "fixed in Gnulib".
56914 2011-03-28  Simon Josefsson  <simon@josefsson.org>
56916         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
56917         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
56919 2011-03-26  Bruno Haible  <bruno@clisp.org>
56921         unictype/property-byname: Reduce the number of load-time relocations.
56922         * lib/unictype/pr_byname.c: Include <stdlib.h>.
56923         (UC_PROPERTY_INDEX_*): New enumeration values.
56924         (uc_property_byname): Convert an index from the lookup table to an
56925         uc_property_t.
56926         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
56927         values.
56929 2011-03-26  Bruno Haible  <bruno@clisp.org>
56931         unictype/property-byname: Allow omitted word separators and aliases.
56932         * lib/unictype/pr_byname.gperf: Add property names without word
56933         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
56934         for 'space'.
56936 2011-03-26  Bruno Haible  <bruno@clisp.org>
56938         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
56939         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
56940         also hyphens to space.
56941         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
56942         without spaces.
56943         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
56945 2011-03-26  Bruno Haible  <bruno@clisp.org>
56947         unictype/joiningtype-byname: Recognize long names as well.
56948         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
56949         a long name.
56950         * lib/unictype/joiningtype_byname.c: Include <string.h>,
56951         unictype/joiningtype_byname.h.
56952         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
56953         * lib/unictype/joiningtype_byname.gperf: New file.
56954         * modules/unictype/joiningtype-byname (Files): Add
56955         lib/unictype/joiningtype_byname.gperf.
56956         (Depends-on): Add gperf.
56957         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
56958         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
56959         long names.
56961         Tests for module 'unictype/joiningtype-longname'.
56962         * modules/unictype/joiningtype-longname-tests: New file.
56963         * tests/unictype/test-joiningtype_longname.c: New file.
56965         New module 'unictype/joiningtype-longname'.
56966         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
56967         * lib/unictype/joiningtype_longname.c: New file.
56968         * modules/unictype/joiningtype-longname: New file.
56969         * modules/unictype/joiningtype-all (Depends-on): Add
56970         unictype/joiningtype-longname.
56972 2011-03-26  Bruno Haible  <bruno@clisp.org>
56974         unictype/bidiclass-byname: Recognize long names as well.
56975         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
56976         name.
56977         * lib/unictype/bidi_byname.c: Include <string.h>,
56978         unictype/bidi_byname.h.
56979         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
56980         * lib/unictype/bidi_byname.gperf: New file.
56981         * modules/unictype/bidiclass-byname (Files): Add
56982         lib/unictype/bidi_byname.gperf.
56983         (Depends-on): Add gperf.
56984         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
56985         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
56986         long names.
56988         Tests for module 'unictype/bidiclass-longname'.
56989         * modules/unictype/bidiclass-longname-tests: New file.
56990         * tests/unictype/test-bidi_longname.c: New file.
56992         New module 'unictype/bidiclass-longname'.
56993         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
56994         * lib/unictype/bidi_longname.c: New file.
56995         * modules/unictype/bidiclass-longname: New file.
56996         * modules/unictype/bidiclass-all (Depends-on): Add
56997         unictype/bidiclass-longname.
56999 2011-03-26  Bruno Haible  <bruno@clisp.org>
57001         unictype/bidi*: Rename modules.
57002         * modules/unictype/bidiclass-all: Renamed from
57003         modules/unictype/bidicategory-all.
57004         * modules/unictype/bidiclass-name: Renamed from
57005         modules/unictype/bidiclass-name.
57006         (Description): Update.
57007         * modules/unictype/bidiclass-name-tests: Renamed from
57008         modules/unictype/bidicategory-name-tests.
57009         * modules/unictype/bidiclass-byname: Renamed from
57010         modules/unictype/bidicategory-byname.
57011         (Description): Update.
57012         * modules/unictype/bidiclass-byname-tests: Renamed from
57013         modules/unictype/bidicategory-byname-tests.
57014         * modules/unictype/bidiclass-of: Renamed from
57015         modules/unictype/bidicategory-of.
57016         (Description): Update.
57017         * modules/unictype/bidiclass-of-tests: Renamed from
57018         modules/unictype/bidicategory-of-tests.
57019         * modules/unictype/bidiclass-test: Renamed from
57020         modules/unictype/bidicategory-test.
57021         (Description): Update.
57022         * modules/unictype/bidiclass-test-tests: Renamed from
57023         modules/unictype/bidicategory-test-tests.
57024         * modules/unictype/bidicategory-all: New file, a simple redirection.
57025         * modules/unictype/bidicategory-name: Likewise.
57026         * modules/unictype/bidicategory-byname: Likewise.
57027         * modules/unictype/bidicategory-of: Likewise.
57028         * modules/unictype/bidicategory-test: Likewise.
57029         * modules/unictype/property-bidi-* (Dependencies): Update.
57030         * lib/unictype/bidi_*.c: Update comment.
57032 2011-03-26  Bruno Haible  <bruno@clisp.org>
57034         unictype/bidi*: Rename functions, part 2.
57035         * modules/unictype/bidicategory-name (configure.ac): Update required
57036         libunistring version.
57037         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
57039 2011-03-25  Bruno Haible  <bruno@clisp.org>
57041         New module 'unictype/combining-class-all'.
57042         * modules/unictype/combining-class-all: New file.
57044         Tests for module 'unictype/combining-class-byname'.
57045         * modules/unictype/combining-class-byname-tests: New file.
57046         * tests/unictype/test-combiningclass_byname.c: New file.
57048         New module 'unictype/combining-class-byname'.
57049         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
57050         * lib/unictype/combiningclass_byname.c: New file.
57051         * lib/unictype/combiningclass_byname.gperf: New file.
57052         * modules/unictype/combining-class-byname: New file.
57054         Tests for module 'unictype/combining-class-longname'.
57055         * modules/unictype/combining-class-longname-tests: New file.
57056         * tests/unictype/test-combiningclass_longname.c: New file.
57058         New module 'unictype/combining-class-longname'.
57059         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
57060         * lib/unictype/combiningclass_longname.c: New file.
57061         * modules/unictype/combining-class-longname: New file.
57063         Tests for module 'unictype/combining-class-name'.
57064         * modules/unictype/combining-class-name-tests: New file.
57065         * tests/unictype/test-combiningclass_name.c: New file.
57067         New module 'unictype/combining-class-name'.
57068         * lib/unictype.in.h (uc_combining_class_name): New declaration.
57069         * lib/unictype/combiningclass_name.c: New file.
57070         * modules/unictype/combining-class-name: New file.
57072 2011-03-25  Bruno Haible  <bruno@clisp.org>
57074         unictype/combining-class: Rename source files.
57075         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
57076         of unictype/combining.h.
57077         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
57078         Update.
57079         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
57080         * modules/unictype/combining-class (Description): Fix.
57081         (Files, Makefile.am): Update.
57082         * tests/unictype/test-combiningclass.c: Renamed from
57083         tests/unictype/test-combining.c.
57084         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
57086 2011-03-25  Bruno Haible  <bruno@clisp.org>
57088         unictype: Update list of canonical combining classes.
57089         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
57091 2011-03-25  Bruno Haible  <bruno@clisp.org>
57093         unictype/category-byname: Recognize long names as well.
57094         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
57095         a long name.
57096         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
57097         unictype/categ_byname.h.
57098         (UC_CATEGORY_INDEX_*): New enumeration values.
57099         (uc_general_category_byname): Use uc_general_category_lookup and
57100         convert from index to value.
57101         * lib/unictype/categ_byname.gperf: New file.
57102         * modules/unictype/category-byname (Files): Add
57103         lib/unictype/categ_byname.gperf.
57104         (Depends-on): Add gperf.
57105         (Makefile.am): Add rule for generating unictype/categ_byname.h.
57106         * tests/unictype/test-categ_byname.c (main): Test the recognition of
57107         long names.
57109         Tests for module 'unictype/category-longname'.
57110         * modules/unictype/category-longname-tests: New file.
57111         * tests/unictype/test-categ_longname.c: New file.
57113         New module 'unictype/category-longname'.
57114         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
57115         * lib/unictype/categ_longname.c: New file.
57116         * modules/unictype/category-longname: New file.
57117         * modules/unictype/category-all (Depends-on): Add it.
57119 2011-03-25  Bruno Haible  <bruno@clisp.org>
57121         Tests for module 'unictype/category-LC'.
57122         * modules/unictype/category-LC-tests: New file.
57123         * tests/unictype/test-categ_LC.c: New file, automatically generated.
57125         New module 'unictype/category-LC'.
57126         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
57127         (UC_CATEGORY_LC): New declaration.
57128         (UC_CASED_LETTER): New macro.
57129         * lib/gen-uni-tables.c (is_category_LC): New function.
57130         (output_categories): Also handle category LC.
57131         (UC_CATEGORY_MASK_LC): New enumeration value.
57132         (general_category_byname): Also handle category LC.
57133         * lib/unictype/categ_LC.c: New file.
57134         * lib/unictype/categ_LC.h: New file, automatically generated.
57135         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
57136         category LC.
57137         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
57138         * modules/unictype/category-LC: New file.
57139         * modules/unictype/category-byname (Depends-on): Add
57140         unictype/category-LC.
57141         * modules/unictype/category-all (Depends-on): Likewise.
57143 2011-03-25  Eric Blake  <eblake@redhat.com>
57145         xmalloc: revert yesterday's regression
57146         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
57147         realloc's underlying behavior (allowing allocation of zero-size
57148         objects, especially if malloc-gnu is also in use).
57150 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
57152         maint.mk: add missing version to VC-tag
57153         * top/maint.mk: git tag was missing actual tag name; add it.
57155         valgrind: do leak checking, and exit with code 1 on error (not 0)
57156         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
57157         to VALGRIND.
57159 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
57161         posix-modules: say what it does.
57162         * posix-modules: Add a line to the --help output saying what it does.
57164 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
57166         xmalloc: Do not leak if underlying realloc is C99 compatible.
57167         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
57168         This avoids a leak on C99-based systems.  See
57169         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
57171 2011-03-24  Eric Blake  <eblake@redhat.com>
57173         realloc: document portability problem
57174         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
57175         passing 0 size to realloc.
57177 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
57179         doc: update users.txt
57180         * users.txt: Add cvsps, tmpwatch
57182 2011-03-23  Matt Rice  <ratmice@gmail.com>
57184         doc: update users.txt
57185         * users.txt: Add gdb.
57187 2011-03-23  Jim Meyering  <meyering@redhat.com>
57189         doc: update users.txt
57190         Looking through matches up to the following URL (there are still
57191         several more pages), I found several projects that use gnulib:
57192         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
57193         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
57194         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
57196 2011-03-22  Bruno Haible  <bruno@clisp.org>
57198         unictype/bidi*: Rename functions.
57199         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
57200         uc_bidi_class, uc_is_bidi_class): New declarations.
57201         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
57202         uc_bidi_category_byname.
57203         (uc_bidi_category_byname): New function.
57204         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
57205         u_bidi_category_name.
57206         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
57207         (uc_bidi_category_name): New function.
57208         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
57209         uc_bidi_category.
57210         (uc_bidi_category): New function.
57211         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
57212         uc_is_bidi_category. Invoke uc_bidi_class.
57213         (uc_is_bidi_category): New function.
57214         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
57215         instead of uc_bidi_category_byname.
57216         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
57217         instead of uc_bidi_category_name.
57218         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
57219         uc_bidi_category.
57220         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
57221         instead of uc_is_bidi_category.
57223 2011-03-21  Bruno Haible  <bruno@clisp.org>
57225         New module 'unictype/joininggroup-all'.
57226         * modules/unictype/joininggroup-all: New file.
57228         Tests for module 'unictype/joininggroup-of'.
57229         * modules/unictype/joininggroup-of-tests: New file.
57230         * tests/unictype/test-joininggroup_of.c: New file.
57231         * tests/unictype/test-joininggroup_of.h: New file, automatically
57232         generated by gen-uni-tables.
57234         New module 'unictype/joininggroup-of'.
57235         * modules/unictype/joininggroup-of: New file.
57236         * lib/unictype/joininggroup_of.c: New file.
57237         * lib/unictype/joininggroup_of.h: New file, automatically generated by
57238         gen-uni-tables.
57240         Tests for module 'unictype/joininggroup-byname'.
57241         * modules/unictype/joininggroup-byname-tests: New file.
57242         * tests/unictype/test-joininggroup_byname.c: New file.
57244         New module 'unictype/joininggroup-byname'.
57245         * modules/unictype/joininggroup-byname: New file.
57246         * lib/unictype/joininggroup_byname.c: New file.
57247         * lib/unictype/joininggroup_byname.gperf: New file.
57249         Tests for module 'unictype/joininggroup-name'.
57250         * modules/unictype/joininggroup-name-tests: New file.
57251         * tests/unictype/test-joininggroup_name.c: New file.
57253         New module 'unictype/joininggroup-name'.
57254         * modules/unictype/joininggroup-name: New file.
57255         * lib/unictype/joininggroup_name.c: New file.
57256         * lib/unictype/joininggroup_name.h: New file.
57258         New module 'unictype/joiningtype-all'.
57259         * modules/unictype/joiningtype-all: New file.
57261         Tests for module 'unictype/joiningtype-of'.
57262         * modules/unictype/joiningtype-of-tests: New file.
57263         * tests/unictype/test-joiningtype_of.c: New file.
57264         * tests/unictype/test-joiningtype_of.h: New file, automatically
57265         generated by gen-uni-tables.
57267         New module 'unictype/joiningtype-of'.
57268         * modules/unictype/joiningtype-of: New file.
57269         * lib/unictype/joiningtype_of.c: New file.
57270         * lib/unictype/joiningtype_of.h: New file, automatically generated by
57271         gen-uni-tables.
57273         Tests for module 'unictype/joiningtype-byname'.
57274         * modules/unictype/joiningtype-byname-tests: New file.
57275         * tests/unictype/test-joiningtype_byname.c: New file.
57277         New module 'unictype/joiningtype-byname'.
57278         * modules/unictype/joiningtype-byname: New file.
57279         * lib/unictype/joiningtype_byname.c: New file.
57281         Tests for module 'unictype/joiningtype-name'.
57282         * modules/unictype/joiningtype-name-tests: New file.
57283         * tests/unictype/test-joiningtype_name.c: New file.
57285         New module 'unictype/joiningtype-name'.
57286         * modules/unictype/joiningtype-name: New file.
57287         * lib/unictype/joiningtype_name.c: New file.
57289         unictype: Add support for Arabic shaping properties.
57290         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
57291         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
57292         declarations.
57293         (UC_JOINING_GROUP_*): New enumeration values.
57294         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
57295         declarations.
57296         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
57297         (unicode_joining_type): New variable.
57298         (UC_JOINING_GROUP_*): New enumeration values.
57299         (unicode_joining_group): New variable.
57300         (fill_arabicshaping, joining_type_as_c_identifier,
57301         output_joining_type_test, output_joining_type,
57302         joining_group_as_c_identifier, output_joining_group_test,
57303         output_joining_group): New functions.
57304         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
57305         fill_arabicshaping and output_joining_type_test, output_joining_type,
57306         output_joining_group_test, output_joining_group.
57307         Reported by Simon Josefsson.
57309 2011-03-21  Jim Meyering  <meyering@redhat.com>
57311         strftime: fix a bug in yesterday's change
57312         * lib/strftime.c (add): Accommodate width's initial value of -1.
57313         Otherwise, nstrftime would copy uninitialized data into
57314         the result buffer.
57316 2011-03-21  Jim Meyering  <meyering@redhat.com>
57318         tests: add strftime-tests module
57319         * tests/test-strftime.c: New file.
57320         * modules/strftime-tests: New module.
57322 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
57324         strftime: don't assume a byte count fits in 'int'
57325         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
57326         found this problem by static analysis, using gcc -Wstrict-overflow
57327         (GCC 4.5.2, x86-64).  This reported an optimization that depended
57328         on an integer overflow having undefined behavior, but it turns out
57329         that the argument is a size, which might not fit in 'int' anyway,
57331 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
57333         stdio: don't require ignore_value around fwrite
57335         This patch works around libc bug 11959
57336         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
57337         Without this patch, applications must often write
57338         ignore_value (fwrite (...)) even though the ignore_value is
57339         not helpful here.  It's common to write many objects, using
57340         fwrite/printf/etc., and then use ferror to detect output error.
57342         I considered making this patch optional, but decided against it,
57343         because libc is obviously being inconsistent here: there is no
57344         reason libc should insist that user code must inspect fwrite
57345         return's value without also insisting that it inspect printf's,
57346         putchar's, etc.  If user code wants to have a strict style where
57347         all these functions' values are checked (so that ferror need not
57348         be checked), we could add support for that style in a new gnulib
57349         module, but in the meantime it's better to be consistent and to
57350         support common usage.
57352         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
57353         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
57354         that we are compiling in checking mode, and if not C++, and
57355         if not already wrapping fwrite for some other reason.
57356         (fwrite): #define to rpl_fwrite if the latter is defined.
57358 2011-03-20  Bruno Haible  <bruno@clisp.org>
57360         verror: Fix compilation error introduced on 2011-02-13.
57361         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
57362         instead of __attribute__.
57363         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57365 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
57366             Bruno Haible  <bruno@clisp.org>
57368         socklen: do not depend on sys_socket
57369         While trying to modify Emacs to use gnulib's socklen module,
57370         I discovered a circular dependency: socklen depends on sys_socket
57371         and vice versa.  Emacs can use socklen, but it does not need
57372         sys_socket because it has its own substitute for sys/socket.h.
57373         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
57374         gl_TYPE_SOCKLEN_T.
57375         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
57376         gl_PREREQ_SYS_H_SOCKET.
57377         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
57378         gl_PREREQ_SYS_H_SOCKET.
57379         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
57380         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
57381         * modules/socklen (Depends-on): Do not depend on sys_socket.
57382         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
57384 2011-03-20  Jim Meyering  <meyering@redhat.com>
57386         maint.mk: sort file names *after* new transformation
57387         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
57388         prefix would have led to an unwarranted failure in GNU parted.
57389         Sort after that transformation.
57391 2011-03-19  Jim Meyering  <meyering@redhat.com>
57393         maint.mk: fix po-file syntax-check rule
57394         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
57395         Patch by Bruno Haible.
57397 2011-03-19  Bruno Haible  <bruno@clisp.org>
57399         socklen: Update comment.
57400         * m4/socklen.m4: Update comment about platforms.
57402 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57403             Bruno Haible  <bruno@clisp.org>
57405         inet_ntop, inet_pton: Simplify.
57406         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
57407         documented to provide socklen_t and we already depend on sys_socket.
57408         * modules/inet_pton (Depends-on): Likewise.
57409         * lib/arpa_inet.in.h: Adjust comment.
57411 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57412             Bruno Haible  <bruno@clisp.org>
57414         netdb: Simplify.
57415         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
57416         documented to provide socklen_t and we already depend on sys_socket.
57417         * lib/netdb.in.h: Adjust comment.
57419 2011-03-19  Bruno Haible  <bruno@clisp.org>
57421         sys_socket, netdb: Document problem with socklen_t.
57422         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
57423         platforms.
57424         * doc/posix-headers/netdb.texi: Likewise.
57426 2011-03-18  Eric Blake  <eblake@redhat.com>
57428         maint.mk: let po check work in VPATH build
57429         * top/maint.mk (po_file): Allow cfg.mk override.
57430         (sc_po_check): Allow VPATH use.
57431         Reported by Jiri Denemark.
57433 2011-03-16  Jim Meyering  <meyering@redhat.com>
57435         maint.mk: allow fine-grained syntax-check exclusion via Make variables
57436         Before, you would have had to create one .x-sc_ file per rule in order
57437         to exempt offending files.  Now, you may instead use a Make variable --
57438         usually defined in cfg.mk -- whose name identifies the affected rule.
57439         * top/maint.mk (_sc_excl): Define.
57440         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
57441         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
57443 2011-03-13  Bruno Haible  <bruno@clisp.org>
57445         ignore-value tests: Avoid warnings.
57446         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
57447         empty for gcc < 3.4.
57449 2011-03-13  Bruno Haible  <bruno@clisp.org>
57451         passfd: Fix link error on Solaris.
57452         * modules/passfd (Description): Correct.
57453         (Depends-on): Add socketlib.
57454         (Link): New section.
57455         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
57457 2011-03-13  Bruno Haible  <bruno@clisp.org>
57459         passfd: Fix link error on AIX 5.2.
57460         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
57462 2011-03-13  Bruno Haible  <bruno@clisp.org>
57464         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
57465         * lib/sys_socket.in.h: Include <stddef.h>.
57466         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
57467         CMSG_FIRSTHDR. Remove unused variable.
57469 2011-03-13  Bruno Haible  <bruno@clisp.org>
57471         passfd: Fix compilation error on OpenBSD.
57472         * lib/passfd.c: Include <sys/uio.h>.
57474 2011-03-13  Bruno Haible  <bruno@clisp.org>
57476         passfd test: Fix warnings.
57477         * tests/test-passfd.c: Include <sys/wait.h>.
57478         (main): Fix typo.
57480 2011-03-13  Bruno Haible  <bruno@clisp.org>
57482         passfd module, part 4, tweaks.
57483         * tests/test-passfd.c: Reorder includes.
57484         (main): Fix perror and printf calls.
57486 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
57488         passfd module, part 4.
57489         * modules/passfd-tests: New file.
57490         * tests/test-passfd.c: New file.
57492 2011-03-13  Jim Meyering  <meyering@redhat.com>
57494         Makefile: rely on GNU make; derive syntax-check rule names
57495         Rather than requiring that each sc_ rule be listed as a dependent
57496         of "check", use features of GNU make to derive the list.
57497         * Makefile (syntax-check-rules): Define.
57498         (check): Depend on the new variable, not the hard-coded list.
57500 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
57501             Bruno Haible  <bruno@clisp.org>
57503         passfd module, part 3.
57504         * lib/passfd.h (recvfd): Add a flags argument.
57505         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
57506         (recvfd): Add a flags argument.
57507         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
57508         exists.
57509         * modules/passfd (Depends-on): Add cloexec.
57510         Suggested by Eric Blake.
57512 2011-03-13  Bruno Haible  <bruno@clisp.org>
57514         passfd module, part 2, tweaks.
57515         * modules/passfd (Files): Reorder.
57516         (Depends-on): Remove errno.
57517         (Include): Remove <sys/socket.h>, <sys/un.h>.
57518         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
57519         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
57520         specification header. Include <sys/socket.h> always. Don't include
57521         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
57522         (sendfd): Clarify that it sets errno when it fails.
57523         (recvfd): Fix specification.
57525 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
57527         passfd module, part 2.
57528         * modules/passfd: New file.
57529         * lib/passfd.h: New file.
57530         * lib/passfd.c: New file.
57532 2011-03-12  Bruno Haible  <bruno@clisp.org>
57534         wcswidth, mbswidth: Avoid integer overflow.
57535         * lib/wcswidth.c: Include <limits.h>.
57536         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
57537         * lib/mbswidth.c: Include <limits.h>.
57538         (mbsnwidth): Avoid 'int' overflow.
57539         Reported by Jim Meyering.
57541 2011-03-12  Bruno Haible  <bruno@clisp.org>
57543         futimens, utimensat: Avoid endless recursion on Solaris 10.
57544         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
57545         Solaris.
57546         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
57547         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
57549 2011-03-11  Jim Meyering  <meyering@redhat.com>
57551         maint.mk: relax a regexp to accommodate other formatting styles
57552         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
57553         between "ngettext" and the following "(".
57555 2011-03-11  Pádraig Brady  <P@draigBrady.com>
57557         maint.mk: suppress a false positive warning
57558         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
57559         diagnostics are marked with ngettext.
57561 2011-03-10  Eric Blake  <eblake@redhat.com>
57563         wchar: add explicit dependencies, for Tru64
57564         * modules/mbmemcasecoll (Depends-on): Add wchar.
57565         * modules/mbtowc (Depends-on): Likewise.
57566         * modules/vasnprintf (Depends-on): Likewise.
57567         * modules/unistdio/u-printf-args (Depends-on): Likewise.
57568         * modules/wctomb (Depends-on): Likewise.
57569         Reported by Peter O'Gorman.
57571 2011-03-08  Bruno Haible  <bruno@clisp.org>
57573         passfd module, part 1, tweaks.
57574         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
57575         Improve indentation. Improve AC_MSG_CHECKING messages.
57576         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
57577         gl_SOCKET_FAMILIES.
57579 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
57581         passfd module, part 1.
57582         * m4/afunix.m4: New file.
57583         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
57584         sockets.
57586 2011-03-08  Bruno Haible  <bruno@clisp.org>
57588         regex-quote: New API.
57589         * lib/regex-quote.h: Include <stdbool.h>.
57590         (struct regex_quote_spec): New type.
57591         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
57592         New declarations.
57593         (regex_quote_length, regex_quote_copy, regex_quote): Take a
57594         'const struct regex_quote_spec *' argument.
57595         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
57596         (pcre_special): New constant.
57597         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
57598         New functions.
57599         (regex_quote_length, regex_quote_copy, regex_quote): Take a
57600         'const struct regex_quote_spec *' argument.
57601         * modules/regex-quote (Depends-on): Add stdbool.
57602         * tests/test-regex-quote.c (check): Update for new API. Add test for
57603         anchored results.
57604         * NEWS: Mention the API change.
57605         Reported by Reuben Thomas and Eric Blake.
57607 2011-03-06  Bruno Haible  <bruno@clisp.org>
57609         regex-quote: Fix creation of POSIX extended regular expressions.
57610         * lib/regex-quote.c (ere_special): Add grouping and alternation
57611         operators.
57613 2011-03-05  Bruno Haible  <bruno@clisp.org>
57615         doc: Improve doc regarding autopoint vs. gnulib.
57616         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
57617         disable autopoint while running autoreconf.
57618         Suggested by Ralf Wildenhues.
57620 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57622         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
57623         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
57625 2011-03-03  Bruce Korb  <bkorb@gnu.org>
57627         parse-duration: remove xalloc.h dependency
57628         * lib/parse-duration.c (parse_period): handle NULL return from
57629         strdup instead of calling xstrdup().
57630         * modules/parse-duration: remove "xalloc" dependency
57632 2011-03-03  Matthew Booth  <mbooth@redhat.com>
57634         bootstrap: honor m4_base when running aclocal
57635         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
57637 2011-03-02  Jim Meyering  <meyering@redhat.com>
57639         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
57640         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
57641         on request from Matt Booth.
57643 2011-03-01  Eric Blake  <eblake@redhat.com>
57645         test-link: work on Hurd
57646         * tests/test-link.h (test_link): Hurd rejects linking directories
57647         with EISDIR instead of the POSIX-mandated EPERM.
57649 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
57651         stdio: simplify by moving files to printf-posix, sigpipe
57652         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
57653         since this symbol is needed only if printf is replaced.
57654         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
57655         Require gl_ASM_SYMBOL_PREFIX.
57656         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
57657         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
57658         (Depends-on): Add 'raise'.
57659         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
57660         * modules/stdio (Files): Remove lib/stdio-write.c,
57661         m4/asm-underscore.m4.
57662         (Depends-on): Remove 'raise'.
57664         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
57665         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
57666         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
57667         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
57669 2011-02-28  Bruno Haible  <bruno@clisp.org>
57671         localcharset: Assume ANSI C behaviour of free().
57672         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
57673         calling free().
57674         Suggested by Simon Josefsson <simon@josefsson.org>.
57676 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
57677             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
57678             Bruno Haible  <bruno@clisp.org>  (tiny change)
57680         On Cygwin, use /proc file system instead of win32 API.
57681         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
57682         Win32 file names.
57683         (DllMain): Simplify by removing Cygwin specific code.
57684         (find_shared_library_fullname): Use Linux specific implementation also
57685         for Cygwin.
57686         (get_shared_library_fullname): Update accordingly.
57687         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
57688         Win32 file names.
57689         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
57690         Cygwin specific code.
57692 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
57693             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
57695         Fix OpenMP flag detection for various Fortran compilers.
57696         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
57697         OpenMP-conditional compilation construct, to force compile
57698         failure with missing OpenMP flag.
57699         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
57701 2011-02-25  Eric Blake  <eblake@redhat.com>
57703         strstr: expand test coverage
57704         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
57705         compilation.
57706         * tests/test-memmem.c (main): Duplicate tests.
57707         * tests/test-strcasestr.c (main): Likewise.
57708         * tests/test-c-strcasestr.c (main): Likewise.
57710 2011-02-25  Jim Meyering  <meyering@redhat.com>
57712         maint.mk: detect missing-NL-at-EOF, too
57713         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
57714         it also detects when a file lacks a newline at EOF.
57715         (require_exactly_one_NL_at_EOF_): Renamed from
57716         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
57717         since people may well have .x-sc_... file names tied to the
57718         existing name.  Suggested by Eric Blake.
57720 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
57722         dirname: move m4/dos.m4 functionality into lib/dosname.h
57724         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
57725         extracts symbols from it, puts them into config.h; but it's much
57726         easier to use the symbols directly.  filename.h already does this,
57727         but it disagrees with dos.m4 in some respects.  This patch
57728         introduces a different include file dosname.h that packages up
57729         dos.m4, and then later we can work on merging filename.h and
57730         dosname.h.  Applications that need only the easy-to-configure
57731         symbols should consider including dosname.h rather than dirname.h.
57732         * NEWS: Mention incompatible changes.
57733         * m4/dos.m4: Remove.
57734         * lib/dosname.h, modules/dosname: New files.
57735         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
57736         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
57737         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
57738         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
57739         Include dosname.h, not dirname.h.
57740         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
57741         Include dosname.h, for definitions of symbols like ISSLASH
57742         that used to be in config.h.
57743         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
57744         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
57745         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
57746         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
57747         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
57748         * modules/rmdir (Files): Likewise.
57749         * modules/stat (Files): Likewise.
57750         * modules/unlink (Files): Likewise.
57751         * modules/dirname-lgpl (Depends-on): Add dosname.
57752         * modules/lstat (Depends-on): Likewise.
57753         * modules/openat (Depends-on): Likewise.
57754         * modules/rmdir (Depends-on): Likewise.
57755         * modules/savewd (Depends-on): Likewise.
57756         * modules/stat (Depends-on): Likewise.
57757         * modules/unlink (Depends-on): Likewise.
57758         * modules/openat (Depends-on): Remove dirname-lgpl.
57759         * modules/savewd (Depends-on): Likewise.
57760         * tests/test-dirname.c: Do not use removed symbols like
57761         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
57762         the remaining symbols, e.g., ISSLASH ('\\').
57764 2011-02-25  Eric Blake  <eblake@redhat.com>
57766         strstr: revert patches that introduced bug and pessimization
57767         * lib/str-two-way.h: Add another reference.
57768         (two_way_short_needle, two_way_long_needle): Revert changes from
57769         2011-02-24; they pessimize search speed.
57770         (critical_factorization): Partially revert changes from
57771         2010-06-22; they violate the requirement that the left half of the
57772         needle be smaller than the period of the needle.
57774 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57776         filenamecat: remove unnecessary dependency on dirname-lgpl
57777         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
57778         is no direct dependency, just an indirect one via filenamecat-lgpl.
57780         remove: remove unnecessary use of m4/dos.m4
57781         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
57782         * modules/remove (FILES): Remove m4/dos.m4.
57784         * lib/openat-proc.c: Don't include dirname.h; not needed.
57786         backupfile: remove unnecessary use of m4/dos.m4
57787         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
57788         of its symbols are used by the backupfile code.  backupfile.c does
57789         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
57790         for the rare case of programs that want all their backup file
57791         names to live within 8+3 limits, and dos.m4 doesn't address that.
57792         * modules/backupfile (Files): Remove m4/dos.m4.
57794 2011-02-24  Jim Meyering  <meyering@redhat.com>
57796         strstr: fix a bug whereby strstr would mistakenly return NULL
57797         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
57798         in period calculation.
57799         (two_way_long_needle): Likewise.
57800         The original problem was reported by Mike Stump in
57801         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
57802         Ralf Wildenhues provided the short needle and haystack.
57803         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
57804         Add a more involved test to trigger the bug in two_way_long_needle.
57806 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
57808         gnulib-tool: remove use of bold display in help screen
57809         * gnulib-tool (func_usage): Do not use bold display anymore in the
57810         help screen.  That was just meant to be a temporary emphasis for a
57811         backward-incompatible change.
57813 2011-02-23  Bruno Haible  <bruno@clisp.org>
57815         Fix misindentation of preprocessor directives.
57816         * lib/argp-namefrob.h: Reindent preprocessor directives.
57817         * lib/getopt_int.h (struct _getopt_data): Likewise.
57818         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
57819         * lib/vasnprintf.c (decode_long_double): Likewise.
57820         * tests/test-argmatch.c: Insert blank lines, for clarity.
57821         * tests/test-exclude.c: Likewise.
57823 2011-02-22  Bruno Haible  <bruno@clisp.org>
57825         ioctl: Fix for MacOS X in 64-bit mode.
57826         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
57827         value.
57828         Suggested by Eric Blake.
57829         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
57831 2011-02-22  Jim Meyering  <meyering@redhat.com>
57833         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
57834         * Makefile (sc_cpp_indent_check): Don't limit the check to files
57835         in lib/.
57837 2011-02-22  Eric Blake  <eblake@redhat.com>
57839         maint: avoid any CDPATH issue
57840         * Makefile (sc_cpp_indent_check): Anchor cd argument.
57842         maint: adjust cpp indentation for my modules, as well
57843         * Makefile (sc_cpp_indent_check): Add my name.
57844         * lib/fbufmode.c: Filter through cppi.
57845         * lib/fpurge.c: Likewise.
57846         * lib/freadable.c: Likewise.
57847         * lib/freading.c: Likewise.
57848         * lib/fwritable.c: Likewise.
57849         * lib/fwriting.c: Likewise.
57850         * lib/sigaction.c: Likewise.
57852 2011-02-22  Jim Meyering  <meyering@redhat.com>
57854         maint: adjust cpp indentation to reflect nesting depth
57855         I.e., in a block of code that begins with an unnested "#if",
57856         put one space between the "#" in column 1 and following token.
57857         For example,
57858         -#include <sys/vfs.h>
57859         +# include <sys/vfs.h>
57860         Do this only in .c files that are part of a module I maintain.
57861         * lib/linkat.c: Filter through cppi.
57862         * lib/nanosleep.c: Likewise.
57863         * lib/openat.c: Likewise.
57864         * lib/openat-die.c: Likewise.
57865         * lib/dup3.c: Likewise.
57866         * lib/fchownat.c: Likewise.
57867         * lib/flock.c: Likewise.
57868         * lib/fsync.c: Likewise.
57869         * lib/fts.c: Likewise.
57870         * lib/getpass.c: Likewise.
57871         * lib/gettimeofday.c: Likewise.
57872         * lib/userspec.c: Likewise.
57873         * Makefile (sc_cpp_indent_check): New rule, to check this.
57875 2011-02-22  Bruno Haible  <bruno@clisp.org>
57877         New module 'wctomb'.
57878         * lib/stdlib.in.h (wctomb): New declaration.
57879         * lib/wctomb.c: New file.
57880         * lib/wctomb-impl.h: New file.
57881         * m4/wctomb.m4: New file.
57882         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
57883         REPLACE_WCTOMB.
57884         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
57885         REPLACE_WCTOMB.
57886         * modules/wctomb: New file.
57887         * tests/test-stdlib-c++.cc: Test signature of wctomb.
57888         * doc/posix-functions/wctomb.texi: Mention the new module.
57889         * modules/wctob (Depends-on): Add wctomb.
57891 2011-02-22  Bruno Haible  <bruno@clisp.org>
57893         New module 'mbtowc'.
57894         * lib/stdlib.in.h (mbtowc): New declaration.
57895         * lib/mbtowc.c: New file.
57896         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
57897         * m4/mbtowc.m4: New file.
57898         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
57899         REPLACE_MBTOWC.
57900         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
57901         REPLACE_MBTOWC.
57902         * modules/mbtowc: New file.
57903         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
57904         * doc/posix-functions/mbtowc.texi: Mention the new module.
57905         * modules/btowc (Depends-on): Add mbtowc.
57907 2011-02-22  Bruno Haible  <bruno@clisp.org>
57909         wcrtomb: Add more tests for native Windows platforms.
57910         * tests/test-wcrtomb-w32-1.sh: New file.
57911         * tests/test-wcrtomb-w32-2.sh: New file.
57912         * tests/test-wcrtomb-w32-3.sh: New file.
57913         * tests/test-wcrtomb-w32-4.sh: New file.
57914         * tests/test-wcrtomb-w32-5.sh: New file.
57915         * tests/test-wcrtomb-w32.c: New file.
57916         * modules/wcrtomb-tests (Files): Add them.
57917         (Makefile.am): Arrange to run these tests.
57918         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
57919         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
57921 2011-02-20  Bruno Haible  <bruno@clisp.org>
57923         wcrtomb: Enhance test.
57924         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
57926 2011-02-20  Bruno Haible  <bruno@clisp.org>
57928         mbrtowc: Tiny optimization.
57929         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
57931 2011-02-20  Jim Meyering  <meyering@redhat.com>
57933         test-exclude.c: remove unmatched #endif
57934         * tests/test-exclude.c: Remove stray #endif, left over from
57935         the change of a week ago.
57937 2011-02-19  Jim Meyering  <meyering@redhat.com>
57939         git-version-gen: skip "-dirty" check when appropriate
57940         * build-aux/git-version-gen: Don't run any git commands when the
57941         version string comes from .tarball-version.  Prior to this, we
57942         would run git update-index --refresh even from a just-unpacked
57943         tarball directory, and that could affect a .git/ directory in a
57944         parent of the build directory.  Reported by Mike Frysinger.
57946 2011-02-19  Bruno Haible  <bruno@clisp.org>
57948         unictype/property-byname: Reduce the size of the 'data' segment.
57949         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
57951 2011-02-19  Bruno Haible  <bruno@clisp.org>
57953         unictype/scripts: Reduce the size of the 'data' segment.
57954         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
57955         '%pic'.
57956         * lib/unictype/scripts_byname.gperf: Regenerated.
57958 2011-02-19  Bruno Haible  <bruno@clisp.org>
57960         stdint: Update documentation.
57961         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
57963 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
57965         stdint: omit redundant check for wchar.h
57966         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
57967         always tests whether wchar.h exists, so remove the now-redundant test.
57969 2011-02-18  Bruno Haible  <bruno@clisp.org>
57971         stdint: Cut dependency to module 'wchar'.
57972         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
57973         include the necessary prerequisites.
57974         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
57975         * modules/stdint (Depends-on): Remove wchar.
57976         (Makefile.am): Substitute HAVE_WCHAR_H.
57977         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
57979 2011-02-18  Eric Blake  <eblake@redhat.com>
57981         longlong: skip, rather than fail, on cross-compilation
57982         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
57983         when cross-compiling; regression from 2011-02-16.
57985 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
57987         * NEWS: Mention 2011-02-08 change to stdlib.
57989 2011-02-17  Bruno Haible  <bruno@clisp.org>
57991         getloadavg: Add comments about platforms.
57992         * m4/getloadavg.m4: Add comment.
57993         * lib/getloadavg.c: Likewise.
57995 2011-02-17  Bruno Haible  <bruno@clisp.org>
57997         getloadavg: Fix link error on Solaris 2.6.
57998         * modules/getloadavg (Link): New section.
57999         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
58000         linking test-getloadavg.
58001         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
58002         getloadavg.
58004 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
58006         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
58007         It was 'int', but this doesn't match the IRIX 6.5 manual.
58008         Suggested by Bruno Haible in
58009         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
58011 2011-02-17  Bruno Haible  <bruno@clisp.org>
58013         havelib: Fix comments.
58014         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
58015         change.
58017 2011-02-17  Bruno Haible  <bruno@clisp.org>
58019         havelib: Update config.rpath.
58020         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
58022 2011-02-17  Bruno Haible  <bruno@clisp.org>
58024         getloadavg test: Add some plausibility checks.
58025         * tests/test-getloadavg.c (check_avg): Print a warning when the value
58026         is improbable.
58028 2011-02-16  Eric Blake  <eblake@redhat.com>
58030         maintainer-makefile: make syntax-check a no-op from tarballs
58031         * top/maint.mk (no-vc-detected): New rule.
58032         (local-checks-available): Use it to avoid hanging if someone tries
58033         'make syntax-check' from a tarball.  Also append to any non-syntax
58034         checks already defined in cfg.mk.
58036 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
58038         longlong: tune, particularly for common case of c99
58040         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
58041         or running anything if c99, or if unsigned long long int does not
58042         work.  In either case, we know the answer without further tests.
58043         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
58044         it at most once, and use its results for both long long int and
58045         unsigned long long int.  This is more likely to be efficient in
58046         the common case where the program wants to check for both long
58047         long int and unsigned long long int.
58048         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
58049         since the answer is already known.
58051 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
58053         getloadavg: set errno
58054         * lib/getloadavg.c: Set errno when returning -1.  If no other
58055         error number looks appropriate, set it to ENOSYS if the getloadavg
58056         looks like it can't possibly ever work, ENOTSUP otherwise.
58057         Suggested by Bruno Haible in
58058         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
58060         getloadavg: trim unused parts and speed up 'configure'
58061         * NEWS: Document this.
58062         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
58063         always compiled if getloadavg is absent.
58064         Move test code to ...
58065         * tests/test-getloadavg.c: New file, containing previous
58066         contents of test from lib/getloadavg.c.  It also contains
58067         suggestions by Bruno Haible in
58068         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
58069         * modules/getloadavg-tests: New file.
58070         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
58071         Do tests in the same order as they're needed for getloadavg.c.
58072         Omit setgid-related tests that generate symbols KMEM_GROUP,
58073         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
58074         Do only the tests that are needed to see whether the system has
58075         getloadavg, moving the other tests into ...
58076         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
58077         NLIST_NAME_UNION; nobody should be using it.  Do not define
58078         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
58079         relevant, as the user of this module shouldn't care how getloadavg
58080         is implemented.
58082         getloadavg: omit unused var
58083         * lib/getloadavg.c (getloadavg): Omit unused local variable.
58085 2011-02-15  Jim Meyering  <meyering@redhat.com>
58087         doc: update users.txt
58088         * users.txt: Update iwhd's URL.
58090 2011-02-13  Bruno Haible  <bruno@clisp.org>
58092         Consistent macro naming for macros that use GCC __attribute__.
58093         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
58094         _ATTRIBUTE_NONNULL_.
58095         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
58096         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
58097         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
58098         ATTRIBUTE_DEPRECATED.
58099         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
58100         ATTRIBUTE_NORETURN.
58101         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58102         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58103         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58104         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58105         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
58106         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
58107         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
58108         ATTRIBUTE_SENTINEL.
58109         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
58110         ATTRIBUTE_RETURN_CHECK.
58111         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
58112         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
58113         ATTRIBUTE_NORETURN.
58114         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
58115         Reported by Paul Eggert.
58117 2011-02-13  Bruno Haible  <bruno@clisp.org>
58119         Don't interfere with a program's definition of __attribute__.
58120         * lib/argp.h (__attribute__): Remove definition.
58121         (_GL_ATTRIBUTE_FORMAT): New macro.
58122         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
58123         * lib/argp-fmtstream.h (__attribute__): Remove definition.
58124         (_GL_ATTRIBUTE_FORMAT): New macro.
58125         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
58126         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
58127         GCC 3 or newer.
58128         * lib/error.h (__attribute__): Remove definition.
58129         (_GL_ATTRIBUTE_FORMAT): New macro.
58130         (error, error_at_line): Use it.
58131         * lib/hash.h (__attribute__): Remove definition.
58132         (ATTRIBUTE_WUR): Update definition. Define always.
58133         * lib/openat.h (__attribute__): Remove definition.
58134         (ATTRIBUTE_NORETURN): Update definition. Define always.
58135         * lib/sigpipe-die.h (__attribute__): Remove definition.
58136         (ATTRIBUTE_NORETURN): Update definition. Define always.
58137         * lib/vasnprintf.h (__attribute__): Remove definition.
58138         (_GL_ATTRIBUTE_FORMAT): New macro.
58139         (asnprintf, vasnprintf): Use it.
58140         * lib/xalloc.h (__attribute__): Remove definition.
58141         (ATTRIBUTE_NORETURN): Update definition. Define always.
58142         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
58143         * lib/xmemdup0.h (__attribute__): Remove definition.
58144         (ATTRIBUTE_NORETURN): Update definition. Define always.
58145         * lib/xprintf.h (__attribute__): Remove definition.
58146         (_GL_ATTRIBUTE_FORMAT): New macro.
58147         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
58148         * lib/xstrtol.h (__attribute__): Remove definition.
58149         (ATTRIBUTE_NORETURN): Update definition. Define always.
58150         * lib/xvasprintf.h (__attribute__): Remove definition.
58151         (_GL_ATTRIBUTE_FORMAT): New macro.
58152         (xasprintf, xvasprintf): Use it.
58153         * tests/test-argmatch.c (__attribute__): Remove definition.
58154         (ATTRIBUTE_NORETURN): Update definition. Define always.
58155         * tests/test-exclude.c (__attribute__): Remove definition.
58156         (ATTRIBUTE_NORETURN): Update definition. Define always.
58157         Reported by Paul Eggert.
58159 2011-02-13  Bruno Haible  <bruno@clisp.org>
58161         mbrtowc: Add more tests for native Windows platforms.
58162         * tests/test-mbrtowc-w32-1.sh: New file.
58163         * tests/test-mbrtowc-w32-2.sh: New file.
58164         * tests/test-mbrtowc-w32-3.sh: New file.
58165         * tests/test-mbrtowc-w32-4.sh: New file.
58166         * tests/test-mbrtowc-w32-5.sh: New file.
58167         * tests/test-mbrtowc-w32.c: New file.
58168         * modules/mbrtowc-tests (Files): Add them.
58169         (Makefile.am): Arrange to run these tests.
58170         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
58171         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
58173 2011-02-13  Bruno Haible  <bruno@clisp.org>
58175         mbrtowc: Work around native Windows bug.
58176         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
58177         guess when no suitable locale for testing was found.
58178         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
58180 2011-02-13  Bruno Haible  <bruno@clisp.org>
58182         mbsinit: Work around mingw bug.
58183         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
58184         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
58185         Windows.
58186         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
58188 2011-02-13  Bruno Haible  <bruno@clisp.org>
58190         mbsinit: Don't crash for a NULL argument.
58191         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
58192         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
58194 2011-02-13  Bruno Haible  <bruno@clisp.org>
58196         Don't interfere with a program's definition of __attribute__.
58197         * lib/stdio.in.h (__attribute__): Remove definition.
58198         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
58199         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
58200         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
58201         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
58202         * lib/string.in.h (__attribute__): Remove definition.
58203         Reported by Paul Eggert.
58205 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
58207         stdlib: don't get in the way of non-GCC __attribute__
58208         See thread starting at
58209         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
58210         Revert previous stdlib change, installing the following instead:
58211         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
58212         to get in the way of a non-GCC compiler that supports __attribute__.
58213         (_GL_ATTRIBUTE_RETURN): New macro.
58214         (_Exit): Use it instead of __attribute__.
58216 2011-02-12  Bruno Haible  <bruno@clisp.org>
58218         quotearg test: Avoid test failure on mingw.
58219         * tests/test-quotearg.sh: Convert the locale identifier from native
58220         Windows syntax to Unix syntax.
58222 2011-02-12  Bruno Haible  <bruno@clisp.org>
58224         setlocale: Prefer gnulib's override over libintl's override.
58225         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
58226         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
58227         GNULIB_defined_setlocale is set.
58229 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
58231         stdlib: support non-GCC __attribute__
58233         Fix a serious and tricky problem encountered when attempting to
58234         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
58235         5.5, but it crashed due to memory corruption on Solaris 10 with
58236         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
58237         bits that are otherwise zero.  This tagging is optional inside
58238         Emacs but is preferred and is used when __attribute__ ((__aligned
58239         (8))) works, as it does with both recent-enough GCC and with Sun C
58240         5.11.  However, Sun C 5.11 is not GCC and does not #define
58241         __GNUC__ and __GNUC_MINOR__.
58243         When I added the getloadavg module to Emacs, it brought in
58244         stdlib.in.h, which contained this fragment:
58246            #ifndef __attribute__
58247            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
58248            #  define __attribute__(Spec)   /* empty */
58249            # endif
58250            #endif
58252         When files that include <stdlib.h> were compiled with Sun C 5.11,
58253         the above code disabled __attribute__ ((__aligned (8))), which
58254         caused variables to not be properly aligned, which eventually led
58255         to the pointer corruption mentioned above.  (This was a bit hard
58256         to diagnose, unfortunately.)
58258         Several "#define __attribute__(X) /* empty */" code snippets need
58259         to be eradicated from Gnulib to work with non-GCC compilers that
58260         support __attribute__.  The Autoconf way to do this is to test for
58261         each kind of attribute that we want support for, and selectively
58262         enable that in source code.
58264         Fix this problem just for stdlib.h, by adding a test for the
58265         __noreturn__ attribute, and change stdlib.in.h to use that test
58266         when needed.  This technique can be easily generalized to the
58267         other *.in.h files and attributes, and a similar technique can be
58268         used for *.h and *.c files.  This patch is enough to solve the
58269         problem for Emacs + getloadavg, and I thought I'd publish it for
58270         feedback before undertaking further, similar fixes in other
58271         modules.
58273         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
58274         because it's not needed for stdlib.h.  It merely substitutes the
58275         value directly into stdlib.h.  We may well need to #define it, or
58276         similar symbols, for other modules, but it's nice to also have an
58277         option to not #define it for applications like Emacs that do not
58278         need it.
58280         * lib/stdlib.in.h (__attribute__): Do not #define.
58281         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
58282         be defined only if the _Exit module is also used.
58283         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
58284         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
58285         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
58286         platforms.
58287         * modules/_Exit (Files): Add m4/attribute.m4.
58288         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
58289         * m4/attribute.m4: New file.
58291 2011-02-12  Bruno Haible  <bruno@clisp.org>
58293         wcsrtombs: Work around bug on native Windows.
58294         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
58295         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
58296         instead of len.
58297         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
58299 2011-02-12  Bruno Haible  <bruno@clisp.org>
58301         mbsrtowcs: Work around bug on native Windows.
58302         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
58303         against mingw bug.
58304         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
58306 2011-02-12  Bruno Haible  <bruno@clisp.org>
58308         Avoid setlocale bugs in tests.
58309         * modules/btowc (Dependencies): Add setlocale.
58310         * modules/c-strcase (Dependencies): Likewise.
58311         * modules/mbmemcasecmp (Dependencies): Likewise.
58312         * modules/mbmemcasecoll (Dependencies): Likewise.
58313         * modules/mbrtowc (Dependencies): Likewise.
58314         * modules/mbscasecmp (Dependencies): Likewise.
58315         * modules/mbscasestr (Dependencies): Likewise.
58316         * modules/mbschr (Dependencies): Likewise.
58317         * modules/mbscspn (Dependencies): Likewise.
58318         * modules/mbsinit (Dependencies): Likewise.
58319         * modules/mbsncasecmp (Dependencies): Likewise.
58320         * modules/mbsnrtowcs (Dependencies): Likewise.
58321         * modules/mbspbrk (Dependencies): Likewise.
58322         * modules/mbspcasecmp (Dependencies): Likewise.
58323         * modules/mbsrchr (Dependencies): Likewise.
58324         * modules/mbsrtowcs (Dependencies): Likewise.
58325         * modules/mbsspn (Dependencies): Likewise.
58326         * modules/mbsstr (Dependencies): Likewise.
58327         * modules/nl_langinfo (Dependencies): Likewise.
58328         * modules/quotearg (Dependencies): Likewise.
58329         * modules/unicase/locale-language (Dependencies): Likewise.
58330         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
58331         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
58332         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
58333         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
58334         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
58335         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
58336         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
58337         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
58338         * modules/vasnprintf-posix (Dependencies): Likewise.
58339         * modules/wcrtomb (Dependencies): Likewise.
58340         * modules/wcsnrtombs (Dependencies): Likewise.
58341         * modules/wcsrtombs (Dependencies): Likewise.
58343 2011-02-12  Bruno Haible  <bruno@clisp.org>
58345         setlocale: Workaround native Windows bug.
58346         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
58347         succeeds but sets LC_CTYPE to "C", report a failure.
58348         * tests/test-setlocale2.sh: New file.
58349         * tests/test-setlocale2.c: New file.
58350         * modules/setlocale-tests (Files): Add the new files.
58351         (Makefile.am): Enable test-setlocale2.sh test.
58352         * doc/posix-functions/setlocale.texi: Mention workaround.
58354 2011-02-11  Bruno Haible  <bruno@clisp.org>
58356         Tests for module 'setlocale'.
58357         * modules/setlocale-tests: New file.
58358         * tests/test-setlocale1.sh: New file.
58359         * tests/test-setlocale1.c: New file.
58361         New module 'setlocale'.
58362         * lib/locale.in.h (setlocale): New declaration.
58363         * lib/setlocale.c: New file, based on
58364         gettext/gettext-runtime/intl/setlocale.c.
58365         * m4/setlocale.m4: New file.
58366         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
58367         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
58368         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
58369         REPLACE_SETLOCALE.
58370         * modules/setlocale: New file.
58371         * tests/test-locale-c++.cc: Test the declaration of setlocale.
58372         * doc/posix-functions/setlocale.texi: Mention the new module.
58374 2011-02-11  Bruno Haible  <bruno@clisp.org>
58376         Prepare for locale dependent tests on mingw.
58377         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
58378         because it has the wrong locale encoding.
58379         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
58380         French_France.1252 instead of "fr".
58381         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
58382         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
58383         because it has the wrong locale encoding.
58384         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
58385         native Windows, try Turkish_Turkey.65001.
58386         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
58387         Chinese_China.54936.
58389         Prepare for locale dependent tests on mingw.
58390         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
58391         differently.
58392         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
58393         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
58394         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58395         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58397 2011-02-11  Eric Blake  <eblake@redhat.com>
58399         strptime: avoid compiler warnings
58400         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
58401         compiler warnings about dead code.
58402         Reported by Daniel P. Berrange.
58404 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
58406         doc: update users.txt
58407         * users.txt: Add rcs.
58409 2011-02-10  John W. Eaton  <jwe@gnu.org>
58411         doc: update users.txt
58412         * users.txt: Add octave.
58414 2011-02-10  Jim Meyering  <meyering@redhat.com>
58416         doc: update users.txt
58417         * users.txt: Add iwhd.
58419 2011-02-09  Bruno Haible  <bruno@clisp.org>
58421         gnulib-tool: Make copyright notice adjustment more robust.
58422         * gnulib-tool (func_import): In sed_transform_main_lib_file,
58423         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
58424         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
58425         License".
58426         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
58428 2011-02-06  Bruno Haible  <bruno@clisp.org>
58430         New module 'towctrans'.
58431         * modules/towctrans: New file.
58432         * lib/wctype.in.h (towctrans): New declaration.
58433         * lib/towctrans.c: New file.
58434         * lib/towctrans-impl.h: New file.
58435         * m4/towctrans.m4: New file.
58436         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
58437         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
58438         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
58439         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
58440         * doc/posix-functions/towctrans.texi: Mention the new module.
58442 2011-02-06  Bruno Haible  <bruno@clisp.org>
58444         New module 'wctrans'.
58445         * modules/wctrans: New file.
58446         * lib/wctype.in.h (wctrans): New declaration.
58447         * lib/wctrans.c: New file.
58448         * lib/wctrans-impl.h: New file.
58449         * m4/wctrans.m4: New file.
58450         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
58451         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
58452         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
58453         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
58454         * doc/posix-functions/wctrans.texi: Mention the new module.
58456 2011-02-06  Bruno Haible  <bruno@clisp.org>
58458         New module 'iswctype'.
58459         * modules/iswctype: New file.
58460         * lib/wctype.in.h (iswctype): New declaration.
58461         * lib/iswctype.c: New file.
58462         * lib/iswctype-impl.h: New file.
58463         * m4/iswctype.m4: New file.
58464         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
58465         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
58466         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
58467         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
58468         * doc/posix-functions/iswctype.texi: Mention the new module and the
58469         HP-UX 11.00 problem.
58471 2011-02-06  Bruno Haible  <bruno@clisp.org>
58473         New module 'wctype'.
58474         * modules/wctype: Change to represent the wctype() substitute.
58475         * lib/wctype.in.h (wctype): New declaration.
58476         * lib/wctype.c: New file.
58477         * lib/wctype-impl.h: New file.
58478         * m4/wctype.m4: New file.
58479         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
58480         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
58481         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
58482         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
58483         * doc/posix-functions/wctype.texi: Mention the new module and the
58484         HP-UX 11.00 problem.
58486 2011-02-06  Bruno Haible  <bruno@clisp.org>
58488         wctype-h: Ensure wctype_t and wctrans_t are defined.
58489         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
58490         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
58491         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
58492         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
58493         HAVE_WCTRANS_T.
58494         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
58496 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
58498         flock: fix license typo
58500         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
58501         omitted.
58503 2011-02-08  Bruno Haible  <bruno@clisp.org>
58505         Split large sed scripts, for HP-UX sed.
58506         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
58507         to avoid HP-UX limit of 99 commands, in the near future.
58508         * modules/stdlib (Makefile.am): Likewise.
58509         * modules/unistd (Makefile.am): Likewise.
58510         * modules/wchar (Makefile.am): Likewise.
58511         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58512         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
58513         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
58515 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
58516             Bruno Haible  <bruno@clisp.org>
58518         stdlib: improve random_r modularization
58519         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
58520         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
58521         you also need the random_r module to get this material right.
58522         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
58523         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
58524         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
58526 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
58528         stdlib: don't depend on stdint
58529         * lib/stdlib.in.h: Don't include <stdint.h> merely because
58530         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
58531         be independent of whether stdint.h is needed.
58532         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
58533         here, instead of ...
58534         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
58535         struct random_data should be using the random_r module, not just
58536         the stdlib module (which wouldn't make sense: what package needs
58537         just struct random_data without also needing random_r?).
58538         * modules/stdlib (Depends-on): Remove stdint.
58540         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
58541         See the thread rooted at
58542         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
58543         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
58544         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
58545         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
58546         __VMS)); previously it was always included (via fcntl--.h).
58547         (getloadavg): Do not use c_strtod.  Instead, approximate it by
58548         hand; this is good enough for load averages.  Also, do not use
58549         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
58550         flags directly if available and don't bother otherwise.  (Packages
58551         that need the extra reliability should use the modules that define
58552         these flags on older platforms that lack them.)
58553         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
58554         fcntl-safer.
58556 2011-02-08  Jim Meyering  <meyering@redhat.com>
58558         di-set.h, ino-map.h: add multiple-inclusion guard
58559         Technically, the guard is required only for ino-map.h, due to its
58560         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
58561         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
58562         * lib/ino-map.h: Likewise.
58564 2011-02-06  Bruno Haible  <bruno@clisp.org>
58566         iswblank: Ensure declaration on glibc systems.
58567         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
58568         * modules/iswblank (Dependencies): Add 'extensions'.
58569         * doc/posix-functions/iswblank.texi: Document the glibc problem.
58571 2011-02-06  Bruno Haible  <bruno@clisp.org>
58573         New module 'iswblank'.
58574         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
58575         * modules/iswblank: New file.
58576         * modules/wctype-h (Files): Remove lib/iswblank.c.
58577         (Makefile.am): Substitute GNULIB_ISWBLANK.
58578         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
58579         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
58580         (gl_WCTYPE_H_DEFAULTS): New macro.
58581         (gl_WCTYPE_H): Require it. Remove iswblank related code.
58582         * modules/iswblank-tests: New file.
58583         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
58584         * tests/test-wctype-h.c (main): Remove iswblank tests.
58585         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
58586         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
58587         of 'wctype-h'.
58588         * NEWS: Mention the change.
58589         * modules/mbchar (Depends-on): Add iswblank.
58591 2011-02-08  Bruno Haible  <bruno@clisp.org>
58593         di-set tests: Refactor.
58594         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
58595         unnecessary includes.
58596         (ASSERT): Remove macro.
58597         (main): Make C90 compliant by avoiding variable declaration after
58598         statement.
58599         * modules/di-set-tests (Files): Add tests/macros.h.
58601 2011-02-08  Bruno Haible  <bruno@clisp.org>
58603         ino-map tests: Refactor.
58604         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
58605         unnecessary includes.
58606         (ASSERT): Remove macro.
58607         (main): Make C90 compliant by avoiding variable declaration after
58608         statement.
58609         * modules/ino-map-tests (Files): Add tests/macros.h.
58611 2011-02-08  Jim Meyering  <meyering@redhat.com>
58613         di-set: add "const" to a cast
58614         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
58615         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
58617 2011-02-06  Bruno Haible  <bruno@clisp.org>
58619         Rename module 'wctype' to 'wctype-h'.
58620         * modules/wctype-h: Renamed from modules/wctype.
58621         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
58622         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
58623         (Files, Depends-on, Makefile.am): Update.
58624         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
58625         (Files, Makefile.am): Update.
58626         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
58627         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
58628         * doc/posix-headers/wctype.texi: Update.
58629         * doc/posix-functions/iswalnum.texi: Update.
58630         * doc/posix-functions/iswalpha.texi: Update.
58631         * doc/posix-functions/iswblank.texi: Update.
58632         * doc/posix-functions/iswcntrl.texi: Update.
58633         * doc/posix-functions/iswdigit.texi: Update.
58634         * doc/posix-functions/iswgraph.texi: Update.
58635         * doc/posix-functions/iswlower.texi: Update.
58636         * doc/posix-functions/iswprint.texi: Update.
58637         * doc/posix-functions/iswpunct.texi: Update.
58638         * doc/posix-functions/iswspace.texi: Update.
58639         * doc/posix-functions/iswupper.texi: Update.
58640         * doc/posix-functions/iswxdigit.texi: Update.
58641         * doc/posix-functions/towlower.texi: Update.
58642         * doc/posix-functions/towupper.texi: Update.
58643         * NEWS: Mention the change.
58644         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
58645         * modules/mbchar (Dependencies): Likewise.
58646         * modules/mbswidth (Dependencies): Likewise.
58647         * modules/quotearg (Dependencies): Likewise.
58648         * modules/regex (Dependencies): Likewise.
58649         * modules/wcscasecmp (Dependencies): Likewise.
58650         * modules/wcsncasecmp (Dependencies): Likewise.
58651         * modules/wcwidth (Dependencies): Likewise.
58653 2011-02-06  Bruno Haible  <bruno@clisp.org>
58655         New module 'wcswidth'.
58656         * modules/wcswidth: New file.
58657         * lib/wchar.in.h (wcswidth): New declaration.
58658         * lib/wcswidth.c: New file.
58659         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
58660         * m4/wcswidth.m4: New file.
58661         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
58662         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
58663         REPLACE_WCSWIDTH.
58664         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
58665         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
58666         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
58667         * doc/posix-functions/wcswidth.texi: Mention the new module.
58669 2011-02-06  Bruno Haible  <bruno@clisp.org>
58671         New module 'wcstok'.
58672         * modules/wcstok: New file.
58673         * lib/wchar.in.h (wcstok): New declaration.
58674         * lib/wcstok.c: New file.
58675         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
58676         * m4/wcstok.m4: New file.
58677         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
58678         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
58679         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
58680         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
58681         * doc/posix-functions/wcstok.texi: Mention the new module.
58683 2011-02-06  Bruno Haible  <bruno@clisp.org>
58685         New module 'wcsstr'.
58686         * modules/wcsstr: New file.
58687         * lib/wchar.in.h (wcsstr): New declaration.
58688         * lib/wcsstr.c: New file.
58689         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
58690         * m4/wcsstr.m4: New file.
58691         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
58692         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
58693         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
58694         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
58695         * doc/posix-functions/wcsstr.texi: Mention the new module.
58697 2011-02-06  Bruno Haible  <bruno@clisp.org>
58699         New module 'wcspbrk'.
58700         * modules/wcspbrk: New file.
58701         * lib/wchar.in.h (wcspbrk): New declaration.
58702         * lib/wcspbrk.c: New file.
58703         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
58704         * m4/wcspbrk.m4: New file.
58705         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
58706         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
58707         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
58708         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
58709         * doc/posix-functions/wcspbrk.texi: Mention the new module.
58711 2011-02-06  Bruno Haible  <bruno@clisp.org>
58713         New module 'wcsspn'.
58714         * modules/wcsspn: New file.
58715         * lib/wchar.in.h (wcsspn): New declaration.
58716         * lib/wcsspn.c: New file.
58717         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
58718         * m4/wcsspn.m4: New file.
58719         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
58720         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
58721         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
58722         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
58723         * doc/posix-functions/wcsspn.texi: Mention the new module.
58725 2011-02-06  Bruno Haible  <bruno@clisp.org>
58727         New module 'wcscspn'.
58728         * modules/wcscspn: New file.
58729         * lib/wchar.in.h (wcscspn): New declaration.
58730         * lib/wcscspn.c: New file.
58731         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
58732         * m4/wcscspn.m4: New file.
58733         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
58734         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
58735         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
58736         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
58737         * doc/posix-functions/wcscspn.texi: Mention the new module.
58739 2011-02-06  Bruno Haible  <bruno@clisp.org>
58741         New module 'wcsrchr'.
58742         * modules/wcsrchr: New file.
58743         * lib/wchar.in.h (wcsrchr): New declaration.
58744         * lib/wcsrchr.c: New file.
58745         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
58746         * m4/wcsrchr.m4: New file.
58747         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
58748         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
58749         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
58750         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
58751         * doc/posix-functions/wcsrchr.texi: Mention the new module.
58753 2011-02-06  Bruno Haible  <bruno@clisp.org>
58755         New module 'wcschr'.
58756         * modules/wcschr: New file.
58757         * lib/wchar.in.h (wcschr): New declaration.
58758         * lib/wcschr.c: New file.
58759         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
58760         * m4/wcschr.m4: New file.
58761         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
58762         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
58763         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
58764         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
58765         * doc/posix-functions/wcschr.texi: Mention the new module.
58767 2011-02-06  Bruno Haible  <bruno@clisp.org>
58769         New module 'wcsdup'.
58770         * modules/wcsdup: New file.
58771         * lib/wchar.in.h (wcsdup): New declaration.
58772         * lib/wcsdup.c: New file.
58773         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
58774         * m4/wcsdup.m4: New file.
58775         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
58776         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
58777         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
58778         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
58779         * doc/posix-functions/wcsdup.texi: Mention the new module.
58781 2011-02-06  Bruno Haible  <bruno@clisp.org>
58783         New module 'wcsxfrm'.
58784         * modules/wcsxfrm: New file.
58785         * lib/wchar.in.h (wcsxfrm): New declaration.
58786         * lib/wcsxfrm.c: New file.
58787         * lib/wcsxfrm-impl.h: New file.
58788         * m4/wcsxfrm.m4: New file.
58789         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
58790         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
58791         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
58792         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
58793         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
58795 2011-02-06  Bruno Haible  <bruno@clisp.org>
58797         New module 'wcscoll'.
58798         * modules/wcscoll: New file.
58799         * lib/wchar.in.h (wcscoll): New declaration.
58800         * lib/wcscoll.c: New file.
58801         * lib/wcscoll-impl.h: New file.
58802         * m4/wcscoll.m4: New file.
58803         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
58804         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
58805         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
58806         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
58807         * doc/posix-functions/wcscoll.texi: Mention the new module.
58809 2011-02-06  Bruno Haible  <bruno@clisp.org>
58811         New module 'wcsncasecmp'.
58812         * modules/wcsncasecmp: New file.
58813         * lib/wchar.in.h (wcsncasecmp): New declaration.
58814         * lib/wcsncasecmp.c: New file.
58815         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
58816         * m4/wcsncasecmp.m4: New file.
58817         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
58818         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
58819         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
58820         HAVE_WCSNCASECMP.
58821         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
58822         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
58824 2011-02-06  Bruno Haible  <bruno@clisp.org>
58826         New module 'wcscasecmp'.
58827         * modules/wcscasecmp: New file.
58828         * lib/wchar.in.h (wcscasecmp): New declaration.
58829         * lib/wcscasecmp.c: New file.
58830         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
58831         * m4/wcscasecmp.m4: New file.
58832         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
58833         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
58834         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
58835         HAVE_WCSCASECMP.
58836         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
58837         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
58839 2011-02-05  Bruno Haible  <bruno@clisp.org>
58841         New module 'wcsncmp'.
58842         * modules/wcsncmp: New file.
58843         * lib/wchar.in.h (wcsncmp): New declaration.
58844         * lib/wcsncmp.c: New file.
58845         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
58846         * m4/wcsncmp.m4: New file.
58847         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
58848         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
58849         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
58850         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
58851         * doc/posix-functions/wcsncmp.texi: Mention the new module.
58853 2011-02-05  Bruno Haible  <bruno@clisp.org>
58855         New module 'wcscmp'.
58856         * modules/wcscmp: New file.
58857         * lib/wchar.in.h (wcscmp): New declaration.
58858         * lib/wcscmp.c: New file.
58859         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
58860         * m4/wcscmp.m4: New file.
58861         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
58862         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
58863         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
58864         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
58865         * doc/posix-functions/wcscmp.texi: Mention the new module.
58867 2011-02-05  Bruno Haible  <bruno@clisp.org>
58869         New module 'wcsncat'.
58870         * modules/wcsncat: New file.
58871         * lib/wchar.in.h (wcsncat): New declaration.
58872         * lib/wcsncat.c: New file.
58873         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
58874         * m4/wcsncat.m4: New file.
58875         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
58876         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
58877         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
58878         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
58879         * doc/posix-functions/wcsncat.texi: Mention the new module.
58881 2011-02-05  Bruno Haible  <bruno@clisp.org>
58883         New module 'wcscat'.
58884         * modules/wcscat: New file.
58885         * lib/wchar.in.h (wcscat): New declaration.
58886         * lib/wcscat.c: New file.
58887         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
58888         * m4/wcscat.m4: New file.
58889         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
58890         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
58891         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
58892         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
58893         * doc/posix-functions/wcscat.texi: Mention the new module.
58895 2011-02-05  Bruno Haible  <bruno@clisp.org>
58897         New module 'wcpncpy'.
58898         * modules/wcpncpy: New file.
58899         * lib/wchar.in.h (wcpncpy): New declaration.
58900         * lib/wcpncpy.c: New file.
58901         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
58902         * m4/wcpncpy.m4: New file.
58903         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
58904         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
58905         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
58906         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
58907         * doc/posix-functions/wcpncpy.texi: Mention the new module.
58909 2011-02-05  Bruno Haible  <bruno@clisp.org>
58911         New module 'wcsncpy'.
58912         * modules/wcsncpy: New file.
58913         * lib/wchar.in.h (wcsncpy): New declaration.
58914         * lib/wcsncpy.c: New file.
58915         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
58916         * m4/wcsncpy.m4: New file.
58917         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
58918         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
58919         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
58920         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
58921         * doc/posix-functions/wcsncpy.texi: Mention the new module.
58923 2011-02-05  Bruno Haible  <bruno@clisp.org>
58925         New module 'wcpcpy'.
58926         * modules/wcpcpy: New file.
58927         * lib/wchar.in.h (wcpcpy): New declaration.
58928         * lib/wcpcpy.c: New file.
58929         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
58930         * m4/wcpcpy.m4: New file.
58931         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
58932         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
58933         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
58934         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
58935         * doc/posix-functions/wcpcpy.texi: Mention the new module.
58937 2011-02-05  Bruno Haible  <bruno@clisp.org>
58939         New module 'wcscpy'.
58940         * modules/wcscpy: New file.
58941         * lib/wchar.in.h (wcscpy): New declaration.
58942         * lib/wcscpy.c: New file.
58943         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
58944         * m4/wcscpy.m4: New file.
58945         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
58946         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
58947         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
58948         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
58949         * doc/posix-functions/wcscpy.texi: Mention the new module.
58951 2011-02-05  Bruno Haible  <bruno@clisp.org>
58953         New module 'wcsnlen'.
58954         * modules/wcsnlen: New file.
58955         * lib/wchar.in.h (wcsnlen): New declaration.
58956         * lib/wcsnlen.c: New file.
58957         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
58958         * m4/wcsnlen.m4: New file.
58959         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
58960         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
58961         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
58962         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
58963         * doc/posix-functions/wcsnlen.texi: Mention the new module.
58965 2011-02-05  Bruno Haible  <bruno@clisp.org>
58967         New module 'wcslen'.
58968         * modules/wcslen: New file.
58969         * lib/wchar.in.h (wcslen): New declaration.
58970         * lib/wcslen.c: New file.
58971         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
58972         * m4/wcslen.m4: New file.
58973         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
58974         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
58975         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
58976         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
58977         * doc/posix-functions/wcslen.texi: Mention the new module.
58979 2011-02-05  Bruno Haible  <bruno@clisp.org>
58981         New module 'wmemset'.
58982         * modules/wmemset: New file.
58983         * lib/wchar.in.h (wmemset): New declaration.
58984         * lib/wmemset.c: New file.
58985         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
58986         * m4/wmemset.m4: New file.
58987         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
58988         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
58989         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
58990         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
58991         * doc/posix-functions/wmemset.texi: Mention the new module.
58993 2011-02-05  Bruno Haible  <bruno@clisp.org>
58995         New module 'wmemmove'.
58996         * modules/wmemmove: New file.
58997         * lib/wchar.in.h (wmemmove): New declaration.
58998         * lib/wmemmove.c: New file.
58999         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
59000         * m4/wmemmove.m4: New file.
59001         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
59002         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
59003         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
59004         HAVE_WMEMMOVE.
59005         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
59006         * doc/posix-functions/wmemmove.texi: Mention the new module.
59008 2011-02-05  Bruno Haible  <bruno@clisp.org>
59010         New module 'wmemcpy'.
59011         * modules/wmemcpy: New file.
59012         * lib/wchar.in.h (wmemcpy): New declaration.
59013         * lib/wmemcpy.c: New file.
59014         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
59015         * m4/wmemcpy.m4: New file.
59016         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
59017         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
59018         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
59019         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
59020         * doc/posix-functions/wmemcpy.texi: Mention the new module.
59022 2011-02-05  Bruno Haible  <bruno@clisp.org>
59024         New module 'wmemcmp'.
59025         * modules/wmemcmp: New file.
59026         * lib/wchar.in.h (wmemcmp): New declaration.
59027         * lib/wmemcmp.c: New file.
59028         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
59029         * m4/wmemcmp.m4: New file.
59030         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
59031         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
59032         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
59033         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
59034         * doc/posix-functions/wmemcmp.texi: Mention the new module.
59036 2011-02-07  Jim Meyering  <meyering@redhat.com>
59038         di-set, ino-map: new modules, from coreutils
59039         * lib/di-set.c: New file.
59040         * lib/di-set.h: Likewise.
59041         * lib/ino-map.c: Likewise.
59042         * lib/ino-map.h: Likewise.
59043         * modules/di-set: Likewise.
59044         * modules/di-set-tests: Likewise.
59045         * modules/ino-map: Likewise.
59046         * modules/ino-map-tests: Likewise.
59047         * tests/test-di-set.c: Likewise.
59048         * tests/test-ino-map.c: Likewise.
59050 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
59052         getloadavg: merge minor changes from Emacs
59054         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
59055         (getloadavg): Use memset, not bzero.
59057         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
59058         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
59059         clash (bug#86).
59061 2010-11-14  Bruno Haible  <bruno@clisp.org>
59063         Allow multiple gnulib generated replacements to coexist.
59064         * lib/getopt.in.h (struct option): Avoid identical redefinition.
59065         * lib/inttypes.in.h (imaxdiv_t): Likewise.
59066         * lib/langinfo.in.h (nl_item): Likewise.
59067         * lib/math.in.h (_NaN, NAN): Likewise.
59068         * lib/netdb.in.h (struct addrinfo): Likewise.
59069         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
59070         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
59071         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
59072         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
59073         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
59074         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
59075         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
59076         pthread_mutexattr_init, pthread_mutexattr_settype,
59077         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
59078         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
59079         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
59080         pthread_spin_trylock, pthread_spin_unlock): Likewise.
59081         * lib/sched.in.h (struct sched_param): Likewise.
59082         * lib/se-selinux.in.h (security_class_t, security_context_t,
59083         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
59084         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
59085         lsetfilecon, fsetfilecon, security_check_context,
59086         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
59087         Likewise.
59088         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
59089         Likewise.
59090         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
59091         _gl_function_taking_int_returning_void_t, union sigval,
59092         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
59093         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
59094         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
59095         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
59096         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
59097         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
59098         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
59099         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
59100         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
59101         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
59102         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
59103         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
59104         socklen_t, rpl_fd_isset): Likewise.
59105         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
59106         * lib/sys_time.in.h (struct timeval): Likewise.
59107         * lib/sys_times.in.h (struct tms): Likewise.
59108         * lib/sys_utsname.in.h (struct utsname):
59109         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
59110         * lib/unistd.in.h (getpagesize): Likewise.
59111         * lib/wchar.in.h (mbstate_t): Likewise.
59112         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59113         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
59114         towlower, towupper): Likewise.
59115         Reported by Sam Steingold <sds@gnu.org>.
59117 2011-02-05  Eric Blake  <eblake@redhat.com>
59119         unsetenv: work around Haiku issues
59120         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
59121         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
59123 2010-12-30  Bruce Korb  <bkorb@gnu.org>
59125         libposix: avoid calling error() within libposix
59126         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
59127         is defined.
59129 2011-02-05  Eric Blake  <eblake@redhat.com>
59131         strerror_r-posix: port to cygwin
59132         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
59133         implementation.
59134         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
59135         * tests/test-strerror_r.c (main): Fix test.
59136         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
59137         issue.
59139 2011-02-05  Bruno Haible  <bruno@clisp.org>
59141         New module 'wmemchr'.
59142         * modules/wmemchr: New file.
59143         * lib/wchar.in.h (wmemchr): New declaration.
59144         * lib/wmemchr.c: New file.
59145         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
59146         * m4/wmemchr.m4: New file.
59147         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
59148         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
59149         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
59150         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
59151         * doc/posix-functions/wmemchr.texi: Mention the new module.
59153 2011-02-04  Eric Blake  <eblake@redhat.com>
59155         fdopendir: detect FreeBSD bug
59156         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
59157         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
59159 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59161         stdbool: do not define HAVE_STDBOOL_H
59162         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
59163         AC_HEADER_STDBOOL.  All uses changed.  Do not define
59164         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
59165         imported from the latest Autoconf git.  It was motivated by Emacs,
59166         which uses gnulib but does not need HAVE_STDBOOL_H.
59168 2011-02-04  Bruno Haible  <bruno@clisp.org>
59170         wcsnrtombs: Prepare for new module wwcsnrtombs.
59171         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
59172         * lib/wcsnrtombs.c: Include it.
59173         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
59175         wcsrtombs: Prepare for new module wwcsrtombs.
59176         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
59177         * lib/wcsrtombs.c: Include it.
59178         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
59180         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
59181         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
59182         * lib/mbsnrtowcs.c: Include it.
59183         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
59185         mbsrtowcs: Prepare for new module mbsrtowwcs.
59186         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
59187         * lib/mbsrtowcs.c: Include it.
59188         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
59190 2011-02-04  Bruno Haible  <bruno@clisp.org>
59192         vasnprintf: Reduce use of malloc for small format strings.
59193         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
59194         (arguments): Add room for the first 7 arguments.
59195         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
59196         (char_directives, u8_directives, u16_directives, u32_directives): Add
59197         room for the first 7 directives.
59198         * lib/printf-parse.c: Include <string.h>.
59199         (PRINTF_PARSE): Change memory handling code so that it uses the first
59200         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
59201         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
59202         Reported by Pádraig Brady <P@draigbrady.com>.
59204 2011-01-31  Eric Blake  <eblake@redhat.com>
59206         dup2: work around Haiku bug
59207         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
59208         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
59209         * doc/posix-functions/dup2.texi (dup2): Document the bug.
59210         * tests/test-dup2.c (main): Enhance test.
59212 2011-01-31  Simon Josefsson  <simon@josefsson.org>
59214         doc: off_t is not available in eglibc 2.11.2 stdio.h.
59215         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
59216         declared by eglibc 2.11.2.
59217         * lib/stdio.in.h: Likewise.
59219 2011-01-31  Eric Blake  <eblake@redhat.com>
59221         ignore-value: add missing test dependency
59222         * tests/test-ignore-value.c: Revert previous change; stdio.h
59223         provides off_t.
59224         * modules/ignore-value-tests (Depends-on): Add missing dependency.
59226 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
59228         mktime: clarify long_int width checking
59229         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
59230         the top level, to make it clearer that the assumption about
59231         long_int width is being checked.  See
59232         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
59234 2011-01-30  Simon Josefsson  <simon@josefsson.org>
59236         ignore-value: Fix self-test.
59237         * tests/test-ignore-value.c: Include sys/types.h for off_t.
59239 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
59241         TYPE_MAXIMUM: avoid theoretically undefined behavior
59242         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
59243         negative number, which the C Standard says has undefined behavior.
59244         In practice this is not a problem, but might as well do it by the book.
59245         Reported by Rich Felker and Eric Blake; see
59246         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
59247         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
59248         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
59249         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59250         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
59251         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59252         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
59254         mktime: #undef mktime before #defining it
59255         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
59257         mktime: systematically normalize tm_isdst comparisons
59258         * lib/mktime.c (isdst_differ): New function.
59259         (__mktime_internal): Use it systematically for all isdst comparisons.
59260         This completes the fix for libc BZ #6723, and removes the need for
59261         normalizing tm_isdst.  See
59262         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
59263         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
59265         mktime: fix some integer overflow issues and sidestep the rest
59267         This was prompted by a bug report by Benjamin Lindner for MinGW
59268         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
59269         His bug is due to signed integer overflow (0 - INT_MIN), and I
59270         I scanned through mktime.c looking for other integer overflow
59271         problems, fixing all the bugs I found.
59273         Although the C Standard says the resulting code is still not safe
59274         in the presence of integer overflow, in practice it should be good
59275         enough for all real-world two's-complement implementations, except
59276         for debugging environments that deliberately trap on integer
59277         overflow (e.g., gcc -ftrapv).
59279         * lib/mktime.c (WRAPV): New macro.
59280         (SHR): Also check that long_int and time_t shift right in the
59281         usual way, before using the fast-but-unportable method.
59282         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
59283         used.  The code already assumed two's complement, so there's
59284         no need to test for alternatives.  All uses removed.
59285         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
59286         the C standard.  Problem reported by Rich Felker in
59287         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
59288         (twos_complement_arithmetic): Also check long_int and time_t.
59289         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
59290         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
59291         (__mktime_internal): Avoid integer overflow with unary subtraction
59292         in two instances where -1 - X is an adequate replacement for -X,
59293         since the calculations are approximate.
59295 2011-01-29  Eric Blake  <eblake@redhat.com>
59297         mktime: avoid infinite loop
59298         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
59299         type; behavior is still undefined but portable to all known targets.
59300         Reported by Rich Felker.
59302 2011-01-29  Simon Josefsson  <simon@josefsson.org>
59304         rename, unlink, same-inode: Relicense.
59305         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
59306         * modules/unlink (License): Likewise.
59307         * modules/same-inode (License): Likewise.
59309 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59311         mktime: avoid problems on NetBSD 5 / i386
59312         * lib/mktime.c (long_int): New type.  This works around a problem
59313         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
59314         but time_t is 64 bits, and where I expect the existing code is
59315         wrong in some cases.
59316         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
59317         (ydhms_diff): Bring back the compile-time check for wide-enough
59318         year and yday.
59320         mktime: fix misspelling in comment
59321         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
59322         This merges all recent glibc changes of importance.
59324 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59326         move-if-change: cope with concurrent mv of identical file.
59327         * build-aux/move-if-change (CMPPROG): Accept environment
59328         variable as an override for `cmp'.
59329         (usage): Document CMPPROG.
59330         Adjust comparison to drop stdout.  Cope with failure of mv if
59331         the target file exists and is identical to the source, for
59332         parallel builds.
59333         Report from H.J. Lu against binutils in PR binutils/12283.
59335 2011-01-28  Bruce Korb  <bkorb@gnu.org>
59337         * users.txt: Mention sharutils.
59339 2011-01-28  Simon Josefsson  <simon@josefsson.org>
59341         * users.txt: Mention OATH Toolkit.
59343 2011-01-27  Bruno Haible  <bruno@clisp.org>
59345         Prepare for supporting FreeBSD 10.
59346         * build-aux/config.libpath: Remove handling of freebsd1*.
59348 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
59350         Prepare for supporting FreeBSD 10.
59351         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
59352         match FreeBSD 10.0.
59354 2011-01-27  Bruno Haible  <bruno@clisp.org>
59356         vma-iter, get-rusage-as: Add OpenBSD support.
59357         * modules/vma-iter (configure.ac): Test for mquery.
59358         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
59359         * lib/vma-iter.c: Include <sys/mman.h>.
59360         (vma_iterate): Add an implementation based on mquery().
59361         * lib/resource-ext.h (get_rusage_as): Update comments.
59362         * lib/get-rusage-as.c: Likewise.
59363         * lib/get-rusage-data.c: Likewise.
59365 2011-01-26  Karl Berry  <karl@gnu.org>
59367         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
59368         variables to make it easier to override the makeinfo program used.
59370 2011-01-26  Eric Blake  <eblake@redhat.com>
59372         fcntl: work around Haiku F_DUPFD bugs
59373         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
59374         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
59375         cloexec bit on duplication.
59376         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
59378 2011-01-26  Bruno Haible  <bruno@clisp.org>
59380         Enable memory leak tests on AIX.
59381         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
59382         * tests/test-fprintf-posix3.c (main): Likewise.
59384 2011-01-26  Bruno Haible  <bruno@clisp.org>
59386         Tests for module 'get-rusage-data'.
59387         * modules/get-rusage-data-tests: New file.
59388         * tests/test-get-rusage-data.c: New file.
59390         New module 'get-rusage-data'.
59391         * lib/resource-ext.h (get_rusage_data): New declaration.
59392         * lib/get-rusage-data.c: New file.
59393         * modules/get-rusage-data: New file.
59395 2011-01-25  Bruno Haible  <bruno@clisp.org>
59397         get-rusage-as: Allow for easier testing.
59398         * lib/resource-ext.h (get_rusage_as): Add comment.
59399         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
59400         (main): New function for interactive testing.
59402 2011-01-25  Bruno Haible  <bruno@clisp.org>
59404         vma-iter: Treat Haiku like BeOS.
59405         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
59406         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
59408 2011-01-25  Eric Blake  <eblake@redhat.com>
59410         c-stack: fix regression on cygwin when libsigsegv is present
59411         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
59413 2011-01-24  Bruno Haible  <bruno@clisp.org>
59415         vma-iter: Avoid empty intervals.
59416         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
59417         on an empty interval.
59419 2011-01-24  Jim Meyering  <meyering@redhat.com>
59421         u64: remove unnecessary #include
59422         * lib/u64.h: Don't include <stddef.h>.  It was not used.
59424 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59426         Allow the user to avoid the HAVE_RAW_DECL_* macros.
59427         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
59429 2011-01-23  Bruno Haible  <bruno@clisp.org>
59431         New module 'vma-iter'.
59432         * lib/vma-iter.h: New file.
59433         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
59434         * modules/vma-iter: New file.
59435         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
59436         for get_rusage_as_via_iterator.
59437         (vma_iterate_callback): New function.
59438         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
59439         * modules/get-rusage-as (Depends-on): Add vma-iter.
59441 2011-01-23  Bruno Haible  <bruno@clisp.org>
59443         uninorm: Tweak includes.
59444         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
59445         Reported by Jim Meyering.
59447 2011-01-23  Bruno Haible  <bruno@clisp.org>
59449         get-rusage-as: Improve on NetBSD.
59450         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
59451         /proc, like on FreeBSD.
59453 2011-01-23  Jim Meyering  <meyering@redhat.com>
59455         xreadlink.h: remove unnecessary #include
59456         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
59458         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
59459         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
59461 2011-01-23  Bruno Haible  <bruno@clisp.org>
59463         get-rusage-as: Fix bug.
59464         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
59465         original limit when aborting the first loop.
59467 2011-01-23  Bruno Haible  <bruno@clisp.org>
59469         wctype: Ensure valid C syntax.
59470         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
59471         unconditionally, instead of gl_NEXT_HEADERS conditionally.
59473 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
59475         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
59476         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
59477         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
59478         as they are needed only for configure's test case.
59479         This removes two unnecessary symbols from config.h.
59481         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
59482         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
59483         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
59484         AC_CHECK_HEADERS_ONCE on a header that we also invoke
59485         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
59486         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
59487         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
59488         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
59489         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
59490         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
59491         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
59492         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59493         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
59494         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
59495         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
59496         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59497         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
59498         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
59500 2011-01-21  Eric Blake  <eblake@redhat.com>
59502         maintainer-makefile: work with older git for submodule check
59503         * top/maint.mk (public-submodule-commit): Rewrite to avoid
59504         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
59505         Reported by Matthias Bolte.
59507         bootstrap: minor portability fixes
59508         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
59509         (usage): Omit leading capital and trailing . on help phrases, per
59510         GNU Coding Standards.
59511         (check_versions, top level): Prefix messages with script name.
59513 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
59515         bootstrap: support --no-git option
59516         * build-aux/bootstrap: Add --no-git option, to be used when
59517         --gnulib-srcdir points to the exact desired checkout.
59519 2011-01-21  Eric Blake  <eblake@redhat.com>
59521         strerror_r-posix: work with glibc 2.13
59522         * lib/strerror_r.c (strerror_r): Fix return type.
59524 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59525             Bruno Haible  <bruno@clisp.org>
59527         uN_strstr: New unit tests.
59528         * modules/unistr/u8-strstr-tests: New file.
59529         * modules/unistr/u16-strstr-tests: New file.
59530         * modules/unistr/u32-strstr-tests: New file.
59531         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
59532         * tests/unistr/test-u8-strstr.c: New file.
59533         * tests/unistr/test-u16-strstr.c: New file.
59534         * tests/unistr/test-u32-strstr.c: New file.
59536 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59537             Bruno Haible  <bruno@clisp.org>
59539         Make uN_strstr functions O(n) worst-case.
59540         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
59541         16-bit and 32-bit unit cases, use the unibyte algorithm from
59542         lib/mbsstr.c.
59543         * lib/unistr/u8-strstr.c: Include <string.h>.
59544         (UNIT_IS_UINT8_T): New macro.
59545         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
59546         (U_STRLEN, U_STRNLEN): New macros.
59547         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
59548         (U_STRLEN, U_STRNLEN): New macros.
59549         * modules/unistr/u8-strstr (Depends-on): Add strstr.
59550         (configure.ac): Update required libunistring version.
59551         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
59552         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
59553         malloca.
59554         (configure.ac): Update required libunistring version.
59555         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
59556         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
59557         malloca.
59558         (configure.ac): Update required libunistring version.
59560 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59561             Bruno Haible  <bruno@clisp.org>
59563         Prepare for faster uN_strstr functions.
59564         * lib/str-kmp.h: Support definable UNITs.
59565         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
59566         needle_len argument.
59567         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
59568         * lib/mbscasestr.c (mbscasestr): Likewise.
59570 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59572         malloca-tests: make faster by unsetting MALLOC_PERTURB_
59573         * tests/test-malloca.c (main): Unset the environment variable
59574         to greatly speed up the test.
59575         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
59576         * modules/malloca-tests: Depend on unsetenv.
59578 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59580         ignore-value: remove stdint dependency
59581         * lib/ignore-value.h: Remove <stdint.h>
59582         * modules/ignore-value: Remove stdint dependency.
59584 2011-01-21  Jim Meyering  <meyering@redhat.com>
59586         maint.mk: adjust variable name to be consistent with other gl_ vars
59587         * top/maint.mk (gl_public_submodule_commit): Rename the variable
59588         to be lower case.
59590 2011-01-20  Jim Meyering  <meyering@redhat.com>
59592         maint.mk: make "check" depend on public-submodule-commit by default
59593         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
59595 2011-01-20  Bruno Haible  <bruno@clisp.org>
59597         mbfile, mbiter: Complete change from 2008-12-21.
59598         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
59599         * m4/mbiter.m4 (gl_MBITER): Likewise.
59601 2011-01-20  Jim Meyering  <meyering@redhat.com>
59603         init.sh: insert space between each function name and "()"
59604         * tests/init.sh: Make it a little easier to see that a function's
59605         name is "warn_", and not "warn" when looking at the first part of
59606         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
59608 2011-01-20  Jim Meyering  <meyering@redhat.com>
59610         mountlist: clean up code formatting
59611         * lib/mountlist.c (read_file_system_list): Split a long line,
59612         correct bracing style, use NULL in place of "(struct statfs *)0",
59613         don't parenthesize return value, add spaces around "=" and after
59614         ";-in-for-stmt".
59616 2011-01-14  Markus Duft  <mduft@gentoo.org>
59618         mountlist: add support for Interix
59619         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
59620         Apply statvfs to all entries of /dev/fs.
59621         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
59622         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
59624 2011-01-20  Jim Meyering  <meyering@redhat.com>
59626         maint.mk: improve the public-submodule-commit rule
59627         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
59628         to suppress printing of its commands... unless V=1.
59629         Add git submodule's --quiet option to suppress printing of e.g.,
59630         "Entering gnulib" output.
59631         "cd" into $(srcdir) before running git submodule.
59633 2011-01-20  Bruno Haible  <bruno@clisp.org>
59635         include_next: Fix bug introduced on 2011-01-18.
59636         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
59637         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
59638         ac_cv_header_... variable if the second argument is not 'check'.
59639         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
59640         gl_NEXT_HEADERS_INTERNAL.
59642 2011-01-20  Bruno Haible  <bruno@clisp.org>
59644         Allow the user to avoid the GNULIB_TEST_* macros.
59645         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
59646         Suggested by Paul Eggert.
59648 2011-01-14  Jim Meyering  <meyering@redhat.com>
59650         bootstrap: avoid failure when there is no .gitmodules file
59651         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
59652         has been assigned to, even when its value is the empty string.
59653         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
59654         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
59655         Reported by John W. Eaton <jwe@gnu.org>.
59657 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
59659         assume <ctype.h>, ..., <time.h> exist
59660         For years gnulib has been assuming the existence of the headers
59661         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
59662         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
59663         them, since they don't appear to be needed.
59664         * README (Portability guidelines): Document this.
59665         * lib/flock.c: Assume <fcntl.h> exists.
59666         * lib/regex_internal.h: Assume <locale.h> exists.
59667         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
59668         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
59669         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
59670         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
59671         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
59672         * m4/regex.m4 (gl_REGEX): Likewise.
59673         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
59674         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
59675         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
59676         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
59677         * tests/test-argp.c: Likewise.
59678         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
59680         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
59681         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
59682         AA_APPLE_UNIVERSAL_BUILD.  See
59683         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
59684         * NEWS: Document this.
59686 2011-01-19  Eric Blake  <eblake@redhat.com>
59688         c-stack: assume stack overflow if SA_SIGINFO unsupported
59689         * lib/c-stack.c (SIGACTION_WORKS): Rename...
59690         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
59691         sigaction will work.
59692         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
59693         behavior match Linux.
59694         * tests/test-c-stack.c (main): Prefer NULL for pointers.
59696         stdbool-tests: accommodate Haiku
59697         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
59699         binary-io: fix O_TEXT on Haiku
59700         * modules/binary-io (Depends-on): Add fcntl-h.
59701         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
59702         than blindly undefining O_TEXT.
59703         Reported by Scott McCreary.
59705 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59707         include_next: do not check for standard headers like stddef.h
59709         I found this problem when modifying Emacs to use gnulib.
59710         I noticed that it added HAVE_STDDEF_H to config.h, even though
59711         gnulib always assumes <stddef.h> exists as per README and this
59712         symbol is unnecessary.
59713         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
59714         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
59715         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
59716         faster for headers like stddef.h that are known to exist.
59717         (gl_CHECK_NEXT_HEADERS): Use it.
59718         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
59719         rather than gl_CHECK_NEXT_HEADERS.
59720         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
59721         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
59723 2011-01-18  Eric Blake  <eblake@redhat.com>
59725         ansi-c++-opt: skip C++ dependency style if C++ is unused
59726         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
59727         tests when we know C++ compilation is not desired.
59728         Reported by Scott McCreary.
59730 2011-01-18  Bruno Haible  <bruno@clisp.org>
59732         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
59733         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
59734         (main): Perform test also when getrlimit and setrlimit don't exist or
59735         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
59736         limiting the address space size using setrlimit, compare the address
59737         space size before and after the test.
59738         * tests/test-dprintf-posix2.c: Likewise.
59739         * tests/test-fprintf-posix3.sh: Update skip messages.
59740         * tests/test-dprintf-posix2.sh: Likewise.
59741         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
59742         * modules/dprintf-posix-tests (Depends-on): Likewise.
59743         Reported by Bruce Korb <bkorb@gnu.org> and
59744         Gary V. Vaughan <gary@gnu.org>.
59746 2011-01-18  Bruno Haible  <bruno@clisp.org>
59748         get-rusage-as: Improvement for Cygwin.
59749         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
59750         areas that are merely reserved.
59752 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59754         strftime: remove dependencies on multibyte modules
59756         strftime depended on mbrlen, mbsinit, and wchar, but these modules
59757         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
59758         only if __osf__ is defined, and I suspect OSF doesn't need these
59759         other modules.  If my guess is wrong, we'll need to come up with a
59760         variant of strftime that doesn't need the multibyte modules.
59762         I discovered this problem when attempting modify Emacs to use the
59763         strftime module.  With the previous gnulib, this caused Emacs to
59764         need 31 new files, ranging from lib/config.charset to
59765         m4/wint_t.m4.  This was overkill and I expect would be offputting
59766         to the Emacs maintainers.  After this change, only 6 new files are
59767         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
59768         stdbool.m4, and tm_gmtoff.m4.
59770         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
59771         Suggested by Bruno Haible in
59772         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
59773         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
59774         and do not check for wchar.h.
59775         * modules/strftime (Files): Remove m4/mbstate_t.m4.
59776         (Depends-on): Remove mbrlen, mbsinit, wchar.
59778 2011-01-18  Bruno Haible  <bruno@clisp.org>
59780         Tests for module 'get-rusage-as'.
59781         * modules/get-rusage-as-tests: New file.
59782         * tests/test-get-rusage-as.c: New file.
59784         New module 'get-rusage-as'.
59785         * modules/get-rusage-as: New file.
59786         * lib/resource-ext.h: New file.
59787         * lib/get-rusage-as.c: New file.
59789 2011-01-17  Eric Blake  <eblake@redhat.com>
59791         sigaction: relax license from LGPLv3+ to LGPLv2+
59792         * modules/sigaction (License): Relax to LGPLv2+.
59794 2011-01-14  Bruno Haible  <bruno@clisp.org>
59796         filemode: Make function declarations usable in C++ mode.
59797         * lib/filemode.h: Enclose function declarations in extern "C" block.
59798         Reported by John W. Eaton <jwe@gnu.org>.
59800 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
59802         save-cwd: no longer include "xgetcwd.h"
59803         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
59804         This avoids a compilation failure in projects that use save-cwd
59805         without also using the xgetcwd module.
59807 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
59809         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
59810         This is so that a program like Emacs, which needs only dtoastr,
59811         does not have to bother with distributing and compiling ftoastr
59812         and ldtoastr.
59813         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
59814         * modules/dtoastr, modules/ldtoastr: New files.
59815         * modules/ftoastr: Now works just for 'float'.
59816         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
59817         (Makefile.am): Remove ftoastr.h (not needed and no effect),
59818         dtoastr.c, ldtoastr.c.
59820 2011-01-11  Jim Meyering  <meyering@redhat.com>
59822         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
59823         There is no need to work around the lack of the fchdir function,
59824         since gnulib can now provide a replacement when required.
59825         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
59826         * modules/save-cwd (Depends-on): Add fchdir.
59828 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
59830         openat, save-cwd: avoid xmalloc
59832         This removes a direct (but undocumented) dependency of openat on
59833         xalloc, along with an indirect dependency via save-cwd.  It also
59834         removes a dependency of save-cwd on xgetcwd, and thereby
59835         indirectly on xalloc.  This change causes the openat substitute
59836         to fall back on save_cwd when memory is tight, and for save_cwd to
59837         fail instead of dying when memory is tight, but that's good enough.
59838         Problem and initial idea for fix reported by Bastien Roucaries in
59839         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
59841         * lib/openat-proc.c: Include stdlib.h (for malloc), not
59842         xalloc.h (for xmalloc).
59843         (openat_proc_name): Use malloc, not xmalloc.
59844         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
59845         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
59847         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
59848         This avoids heap allocation for file names whose lengths are in
59849         the range 512..1023, with the upper bound increasing to at most
59850         4031 depending on the platform's PATH_MAX.  (We do not want
59851         pathmax.h here as it might supply a non-constant PATH_MAX.)
59852         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
59853         Perhaps they should be moved to malloca.h?
59854         (OPENAT_BUFFER_SIZE): Use them.
59856 2011-01-10  Bruno Haible  <bruno@clisp.org>
59858         doc: Update users.txt.
59859         * users.txt: Add recutils.
59861 2011-01-09  Karl Berry  <karl@gnu.org>
59863         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
59865         * doc/configmake.texi: New file.
59866         * doc/gnulib.texi: Include it.
59867         * modules/configmake: Move documentation from here.
59869 2011-01-09  Bruno Haible  <bruno@clisp.org>
59871         Update to Unicode 6.0.0.
59872         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
59873         (get_lbp): Update for Unicode 6.0.0.
59874         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
59875         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
59876         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
59877         U+11001, U+11038..U+11046. Remove U+06DE.
59878         (uc_width): Fix bounds of planes.
59879         * tests/uniwidth/test-uc_width2.sh: Same updates as in
59880         lib/uniwidth/width.c.
59881         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
59882         trailing whitespace removed.
59883         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
59884         without comments, but with the original copyright notice.
59885         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
59886         * lib/unicase/ignorable.h: Likewise.
59887         * lib/unicase/tocasefold.h: Likewise.
59888         * lib/unicase/tolower.h: Likewise.
59889         * lib/unicase/totitle.h: Likewise.
59890         * lib/unicase/toupper.h: Likewise.
59891         * lib/unictype/bidi_of.h: Likewise.
59892         * lib/unictype/blocks.h: Likewise.
59893         * lib/unictype/categ_C.h: Likewise.
59894         * lib/unictype/categ_Cn.h: Likewise.
59895         * lib/unictype/categ_L.h: Likewise.
59896         * lib/unictype/categ_Ll.h: Likewise.
59897         * lib/unictype/categ_Lm.h: Likewise.
59898         * lib/unictype/categ_Lo.h: Likewise.
59899         * lib/unictype/categ_Lu.h: Likewise.
59900         * lib/unictype/categ_M.h: Likewise.
59901         * lib/unictype/categ_Mc.h: Likewise.
59902         * lib/unictype/categ_Me.h: Likewise.
59903         * lib/unictype/categ_Mn.h: Likewise.
59904         * lib/unictype/categ_N.h: Likewise.
59905         * lib/unictype/categ_Nd.h: Likewise.
59906         * lib/unictype/categ_No.h: Likewise.
59907         * lib/unictype/categ_P.h: Likewise.
59908         * lib/unictype/categ_Po.h: Likewise.
59909         * lib/unictype/categ_S.h: Likewise.
59910         * lib/unictype/categ_Sc.h: Likewise.
59911         * lib/unictype/categ_Sk.h: Likewise.
59912         * lib/unictype/categ_Sm.h: Likewise.
59913         * lib/unictype/categ_So.h: Likewise.
59914         * lib/unictype/categ_of.h: Likewise.
59915         * lib/unictype/combining.h: Likewise.
59916         * lib/unictype/ctype_alnum.h: Likewise.
59917         * lib/unictype/ctype_alpha.h: Likewise.
59918         * lib/unictype/ctype_graph.h: Likewise.
59919         * lib/unictype/ctype_lower.h: Likewise.
59920         * lib/unictype/ctype_print.h: Likewise.
59921         * lib/unictype/ctype_punct.h: Likewise.
59922         * lib/unictype/ctype_upper.h: Likewise.
59923         * lib/unictype/decdigit.h: Likewise.
59924         * lib/unictype/digit.h: Likewise.
59925         * lib/unictype/numeric.h: Likewise.
59926         * lib/unictype/pr_alphabetic.h: Likewise.
59927         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59928         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59929         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59930         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59931         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59932         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59933         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59934         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59935         * lib/unictype/pr_case_ignorable.h: Likewise.
59936         * lib/unictype/pr_cased.h: Likewise.
59937         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
59938         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
59939         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
59940         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
59941         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
59942         * lib/unictype/pr_combining.h: Likewise.
59943         * lib/unictype/pr_composite.h: Likewise.
59944         * lib/unictype/pr_currency_symbol.h: Likewise.
59945         * lib/unictype/pr_decimal_digit.h: Likewise.
59946         * lib/unictype/pr_deprecated.h: Likewise.
59947         * lib/unictype/pr_format_control.h: Likewise.
59948         * lib/unictype/pr_grapheme_base.h: Likewise.
59949         * lib/unictype/pr_grapheme_extend.h: Likewise.
59950         * lib/unictype/pr_grapheme_link.h: Likewise.
59951         * lib/unictype/pr_id_continue.h: Likewise.
59952         * lib/unictype/pr_id_start.h: Likewise.
59953         * lib/unictype/pr_ideographic.h: Likewise.
59954         * lib/unictype/pr_lowercase.h: Likewise.
59955         * lib/unictype/pr_math.h: Likewise.
59956         * lib/unictype/pr_numeric.h: Likewise.
59957         * lib/unictype/pr_other_alphabetic.h: Likewise.
59958         * lib/unictype/pr_other_id_continue.h: Likewise.
59959         * lib/unictype/pr_other_math.h: Likewise.
59960         * lib/unictype/pr_punctuation.h: Likewise.
59961         * lib/unictype/pr_sentence_terminal.h: Likewise.
59962         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59963         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59964         * lib/unictype/pr_unified_ideograph.h: Likewise.
59965         * lib/unictype/pr_uppercase.h: Likewise.
59966         * lib/unictype/pr_xid_continue.h: Likewise.
59967         * lib/unictype/pr_xid_start.h: Likewise.
59968         * lib/unictype/scripts.h: Likewise.
59969         * lib/unictype/scripts_byname.gperf: Likewise.
59970         * lib/unictype/sy_java_ident.h: Likewise.
59971         * lib/unigbrk/gbrkprop.h: Likewise.
59972         * lib/unilbrk/lbrkprop1.h: Likewise.
59973         * lib/unilbrk/lbrkprop2.h: Likewise.
59974         * lib/uninorm/decomposition-table2.h: Likewise.
59975         * lib/uniwbrk/wbrkprop.h: Likewise.
59976         * tests/unicase/test-cased.c: Likewise.
59977         * tests/unicase/test-ignorable.c: Likewise.
59978         * tests/unicase/test-uc_tolower.c: Likewise.
59979         * tests/unicase/test-uc_totitle.c: Likewise.
59980         * tests/unicase/test-uc_toupper.c: Likewise.
59981         * tests/unictype/test-categ_C.c: Likewise.
59982         * tests/unictype/test-categ_Cn.c: Likewise.
59983         * tests/unictype/test-categ_L.c: Likewise.
59984         * tests/unictype/test-categ_Ll.c: Likewise.
59985         * tests/unictype/test-categ_Lm.c: Likewise.
59986         * tests/unictype/test-categ_Lo.c: Likewise.
59987         * tests/unictype/test-categ_Lu.c: Likewise.
59988         * tests/unictype/test-categ_M.c: Likewise.
59989         * tests/unictype/test-categ_Mc.c: Likewise.
59990         * tests/unictype/test-categ_Me.c: Likewise.
59991         * tests/unictype/test-categ_Mn.c: Likewise.
59992         * tests/unictype/test-categ_N.c: Likewise.
59993         * tests/unictype/test-categ_Nd.c: Likewise.
59994         * tests/unictype/test-categ_No.c: Likewise.
59995         * tests/unictype/test-categ_P.c: Likewise.
59996         * tests/unictype/test-categ_Po.c: Likewise.
59997         * tests/unictype/test-categ_S.c: Likewise.
59998         * tests/unictype/test-categ_Sc.c: Likewise.
59999         * tests/unictype/test-categ_Sk.c: Likewise.
60000         * tests/unictype/test-categ_Sm.c: Likewise.
60001         * tests/unictype/test-categ_So.c: Likewise.
60002         * tests/unictype/test-ctype_alnum.c: Likewise.
60003         * tests/unictype/test-ctype_alpha.c: Likewise.
60004         * tests/unictype/test-ctype_graph.c: Likewise.
60005         * tests/unictype/test-ctype_lower.c: Likewise.
60006         * tests/unictype/test-ctype_print.c: Likewise.
60007         * tests/unictype/test-ctype_punct.c: Likewise.
60008         * tests/unictype/test-ctype_upper.c: Likewise.
60009         * tests/unictype/test-decdigit.h: Likewise.
60010         * tests/unictype/test-digit.h: Likewise.
60011         * tests/unictype/test-numeric.h: Likewise.
60012         * tests/unictype/test-pr_alphabetic.c: Likewise.
60013         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60014         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
60015         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
60016         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60017         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60018         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60019         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60020         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60021         * tests/unictype/test-pr_case_ignorable.c: Likewise.
60022         * tests/unictype/test-pr_cased.c: Likewise.
60023         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
60024         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
60025         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
60026         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
60027         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
60028         * tests/unictype/test-pr_combining.c: Likewise.
60029         * tests/unictype/test-pr_composite.c: Likewise.
60030         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60031         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60032         * tests/unictype/test-pr_deprecated.c: Likewise.
60033         * tests/unictype/test-pr_format_control.c: Likewise.
60034         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60035         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60036         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60037         * tests/unictype/test-pr_id_continue.c: Likewise.
60038         * tests/unictype/test-pr_id_start.c: Likewise.
60039         * tests/unictype/test-pr_ideographic.c: Likewise.
60040         * tests/unictype/test-pr_lowercase.c: Likewise.
60041         * tests/unictype/test-pr_math.c: Likewise.
60042         * tests/unictype/test-pr_numeric.c: Likewise.
60043         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60044         * tests/unictype/test-pr_other_id_continue.c: Likewise.
60045         * tests/unictype/test-pr_other_math.c: Likewise.
60046         * tests/unictype/test-pr_punctuation.c: Likewise.
60047         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60048         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60049         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60050         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60051         * tests/unictype/test-pr_uppercase.c: Likewise.
60052         * tests/unictype/test-pr_xid_continue.c: Likewise.
60053         * tests/unictype/test-pr_xid_start.c: Likewise.
60054         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
60055         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
60056         changes.
60057         * lib/unictype/categ_Cc.h: Likewise.
60058         * lib/unictype/categ_Cf.h: Likewise.
60059         * lib/unictype/categ_Co.h: Likewise.
60060         * lib/unictype/categ_Cs.h: Likewise.
60061         * lib/unictype/categ_Lt.h: Likewise.
60062         * lib/unictype/categ_Nl.h: Likewise.
60063         * lib/unictype/categ_Pc.h: Likewise.
60064         * lib/unictype/categ_Pd.h: Likewise.
60065         * lib/unictype/categ_Pe.h: Likewise.
60066         * lib/unictype/categ_Pf.h: Likewise.
60067         * lib/unictype/categ_Pi.h: Likewise.
60068         * lib/unictype/categ_Ps.h: Likewise.
60069         * lib/unictype/categ_Z.h: Likewise.
60070         * lib/unictype/categ_Zl.h: Likewise.
60071         * lib/unictype/categ_Zp.h: Likewise.
60072         * lib/unictype/categ_Zs.h: Likewise.
60073         * lib/unictype/ctype_blank.h: Likewise.
60074         * lib/unictype/ctype_cntrl.h: Likewise.
60075         * lib/unictype/ctype_digit.h: Likewise.
60076         * lib/unictype/ctype_space.h: Likewise.
60077         * lib/unictype/ctype_xdigit.h: Likewise.
60078         * lib/unictype/mirror.h: Likewise.
60079         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60080         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60081         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60082         * lib/unictype/pr_bidi_control.h: Likewise.
60083         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60084         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60085         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60086         * lib/unictype/pr_bidi_pdf.h: Likewise.
60087         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60088         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60089         * lib/unictype/pr_dash.h: Likewise.
60090         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60091         * lib/unictype/pr_diacritic.h: Likewise.
60092         * lib/unictype/pr_extender.h: Likewise.
60093         * lib/unictype/pr_hex_digit.h: Likewise.
60094         * lib/unictype/pr_hyphen.h: Likewise.
60095         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60096         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60097         * lib/unictype/pr_ignorable_control.h: Likewise.
60098         * lib/unictype/pr_iso_control.h: Likewise.
60099         * lib/unictype/pr_join_control.h: Likewise.
60100         * lib/unictype/pr_left_of_pair.h: Likewise.
60101         * lib/unictype/pr_line_separator.h: Likewise.
60102         * lib/unictype/pr_logical_order_exception.h: Likewise.
60103         * lib/unictype/pr_non_break.h: Likewise.
60104         * lib/unictype/pr_not_a_character.h: Likewise.
60105         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60106         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60107         * lib/unictype/pr_other_id_start.h: Likewise.
60108         * lib/unictype/pr_other_lowercase.h: Likewise.
60109         * lib/unictype/pr_other_uppercase.h: Likewise.
60110         * lib/unictype/pr_paired_punctuation.h: Likewise.
60111         * lib/unictype/pr_paragraph_separator.h: Likewise.
60112         * lib/unictype/pr_pattern_syntax.h: Likewise.
60113         * lib/unictype/pr_pattern_white_space.h: Likewise.
60114         * lib/unictype/pr_private_use.h: Likewise.
60115         * lib/unictype/pr_quotation_mark.h: Likewise.
60116         * lib/unictype/pr_radical.h: Likewise.
60117         * lib/unictype/pr_soft_dotted.h: Likewise.
60118         * lib/unictype/pr_space.h: Likewise.
60119         * lib/unictype/pr_titlecase.h: Likewise.
60120         * lib/unictype/pr_variation_selector.h: Likewise.
60121         * lib/unictype/pr_white_space.h: Likewise.
60122         * lib/unictype/pr_zero_width.h: Likewise.
60123         * lib/unictype/sy_c_ident.h: Likewise.
60124         * lib/unictype/sy_c_whitespace.h: Likewise.
60125         * lib/unictype/sy_java_whitespace.h: Likewise.
60126         * lib/uninorm/composition-table.gperf: Likewise.
60127         * lib/uninorm/decomposition-table1.h: Likewise.
60128         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
60129         LB8.
60130         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60131         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60132         * modules/unictype/*: Bump version number of expected libunistring
60133         version.
60135 2011-01-09  Bruno Haible  <bruno@clisp.org>
60137         Update to Unicode 5.2.0.
60138         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
60139         trailing whitespace removed.
60141 2011-01-09  Bruno Haible  <bruno@clisp.org>
60143         New Unicode character properties, from Unicode 5.2.0.
60144         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
60145         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
60146         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
60147         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
60148         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
60149         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
60150         uc_is_property_cased, uc_is_property_case_ignorable,
60151         uc_is_property_changes_when_lowercased,
60152         uc_is_property_changes_when_uppercased,
60153         uc_is_property_changes_when_titlecased,
60154         uc_is_property_changes_when_casefolded,
60155         uc_is_property_changes_when_casemapped): New declarations.
60156         * lib/unictype/pr_byname.gperf: Add the new properties.
60157         * modules/unictype/property-byname (Depends-on): Depend on the new
60158         properties modules.
60159         * modules/unictype/property-all (Depends-on): Likewise.
60160         * MODULES.html.sh (Unicode string functions): Add
60161         unictype/property-case-ignorable, unictype/property-cased,
60162         unictype/property-changes-when-casefolded,
60163         unictype/property-changes-when-casemapped,
60164         unictype/property-changes-when-lowercased,
60165         unictype/property-changes-when-titlecased,
60166         unictype/property-changes-when-uppercased.
60168         New module 'unictype/property-changes-when-casemapped'.
60169         * modules/unictype/property-changes-when-casemapped: New file.
60170         * lib/unictype/pr_changes_when_casemapped.c: New file.
60171         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
60172         generated by gen-uni-tables.
60173         * modules/unictype/property-changes-when-casemapped-tests: New file.
60174         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
60175         automatically generated by gen-uni-tables.
60177         New module 'unictype/property-changes-when-casefolded'.
60178         * modules/unictype/property-changes-when-casefolded: New file.
60179         * lib/unictype/pr_changes_when_casefolded.c: New file.
60180         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
60181         generated by gen-uni-tables.
60182         * modules/unictype/property-changes-when-casefolded-tests: New file.
60183         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
60184         automatically generated by gen-uni-tables.
60186         New module 'unictype/property-changes-when-titlecased'.
60187         * modules/unictype/property-changes-when-titlecased: New file.
60188         * lib/unictype/pr_changes_when_titlecased.c: New file.
60189         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
60190         generated by gen-uni-tables.
60191         * modules/unictype/property-changes-when-titlecased-tests: New file.
60192         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
60193         automatically generated by gen-uni-tables.
60195         New module 'unictype/property-changes-when-uppercased'.
60196         * modules/unictype/property-changes-when-uppercased: New file.
60197         * lib/unictype/pr_changes_when_uppercased.c: New file.
60198         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
60199         generated by gen-uni-tables.
60200         * modules/unictype/property-changes-when-uppercased-tests: New file.
60201         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
60202         automatically generated by gen-uni-tables.
60204         New module 'unictype/property-changes-when-lowercased'.
60205         * modules/unictype/property-changes-when-lowercased: New file.
60206         * lib/unictype/pr_changes_when_lowercased.c: New file.
60207         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
60208         generated by gen-uni-tables.
60209         * modules/unictype/property-changes-when-lowercased-tests: New file.
60210         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
60211         automatically generated by gen-uni-tables.
60213         New module 'unictype/property-case-ignorable'.
60214         * modules/unictype/property-case-ignorable: New file.
60215         * lib/unictype/pr_case_ignorable.c: New file.
60216         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
60217         by gen-uni-tables.
60218         * modules/unictype/property-case-ignorable-tests: New file.
60219         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
60220         generated by gen-uni-tables.
60222         New module 'unictype/property-cased'.
60223         * modules/unictype/property-cased: New file.
60224         * lib/unictype/pr_cased.c: New file.
60225         * lib/unictype/pr_cased.h: New file, automatically generated by
60226         gen-uni-tables.
60227         * modules/unictype/property-cased-tests: New file.
60228         * tests/unictype/test-pr_cased.c: New file, automatically generated by
60229         gen-uni-tables.
60231 2011-01-09  Bruno Haible  <bruno@clisp.org>
60233         Update to Unicode 5.2.0.
60234         * lib/gen-uni-tables.c (output_predicate, output_category,
60235         output_combclass, output_bidi_category, output_decimal_digit_test,
60236         output_decimal_digit, output_digit_test, output_digit,
60237         output_numeric_test, output_numeric, output_mirror, output_scripts,
60238         output_scripts_byname, output_blocks, output_ident_category): Fix
60239         comment header.
60240         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
60241         get_wbp.
60242         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
60243         items.
60244         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
60245         Changes_When_Lowercased, Changes_When_Uppercased,
60246         Changes_When_Titlecased, Changes_When_Casefolded,
60247         Changes_When_Casemapped.
60248         (is_property_alphabetic, is_property_default_ignorable_code_point):
60249         Update for Unicode 5.2.0.
60250         (is_property_cased, is_property_case_ignorable,
60251         is_property_changes_when_lowercased,
60252         is_property_changes_when_uppercased,
60253         is_property_changes_when_titlecased,
60254         is_property_changes_when_casefolded,
60255         is_property_changes_when_casemapped): New functions.
60256         (output_properties): Output also the properties cased, case_ignorable,
60257         changes_when_lowercased, changes_when_uppercased,
60258         changes_when_titlecased, changes_when_casefolded,
60259         changes_when_casemapped.
60260         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
60261         Unicode TR#11 revision 17 -> 19.
60262         (LBP_CP): New enumeration value.
60263         (LBP_*): Adjust values accordingly.
60264         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
60265         TR#14 revision 22 -> 24.
60266         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
60267         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
60268         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
60269         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
60270         is_WBP_MIDLETTER.
60271         (output_composition_tables): Allow for 24 bits instead of 16 bits in
60272         the code1 and code2 of each composition rule.
60273         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
60274         * lib/unicase/ignorable.h: Likewise.
60275         * lib/unicase/tocasefold.h: Likewise.
60276         * lib/unicase/tolower.h: Likewise.
60277         * lib/unicase/totitle.h: Likewise.
60278         * lib/unicase/toupper.h: Likewise.
60279         * lib/unictype/bidi_of.h: Likewise.
60280         * lib/unictype/blocks.h: Likewise.
60281         * lib/unictype/categ_C.h: Likewise.
60282         * lib/unictype/categ_Cf.h: Likewise.
60283         * lib/unictype/categ_Cn.h: Likewise.
60284         * lib/unictype/categ_L.h: Likewise.
60285         * lib/unictype/categ_Ll.h: Likewise.
60286         * lib/unictype/categ_Lm.h: Likewise.
60287         * lib/unictype/categ_Lo.h: Likewise.
60288         * lib/unictype/categ_Lu.h: Likewise.
60289         * lib/unictype/categ_M.h: Likewise.
60290         * lib/unictype/categ_Mc.h: Likewise.
60291         * lib/unictype/categ_Mn.h: Likewise.
60292         * lib/unictype/categ_N.h: Likewise.
60293         * lib/unictype/categ_Nd.h: Likewise.
60294         * lib/unictype/categ_Nl.h: Likewise.
60295         * lib/unictype/categ_No.h: Likewise.
60296         * lib/unictype/categ_P.h: Likewise.
60297         * lib/unictype/categ_Pd.h: Likewise.
60298         * lib/unictype/categ_Po.h: Likewise.
60299         * lib/unictype/categ_S.h: Likewise.
60300         * lib/unictype/categ_Sc.h: Likewise.
60301         * lib/unictype/categ_So.h: Likewise.
60302         * lib/unictype/categ_of.h: Likewise.
60303         * lib/unictype/combining.h: Likewise.
60304         * lib/unictype/ctype_alnum.h: Likewise.
60305         * lib/unictype/ctype_alpha.h: Likewise.
60306         * lib/unictype/ctype_graph.h: Likewise.
60307         * lib/unictype/ctype_lower.h: Likewise.
60308         * lib/unictype/ctype_print.h: Likewise.
60309         * lib/unictype/ctype_punct.h: Likewise.
60310         * lib/unictype/ctype_upper.h: Likewise.
60311         * lib/unictype/decdigit.h: Likewise.
60312         * lib/unictype/digit.h: Likewise.
60313         * lib/unictype/numeric.h: Likewise.
60314         * lib/unictype/pr_alphabetic.h: Likewise.
60315         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
60316         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
60317         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60318         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60319         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60320         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60321         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60322         * lib/unictype/pr_combining.h: Likewise.
60323         * lib/unictype/pr_composite.h: Likewise.
60324         * lib/unictype/pr_currency_symbol.h: Likewise.
60325         * lib/unictype/pr_dash.h: Likewise.
60326         * lib/unictype/pr_decimal_digit.h: Likewise.
60327         * lib/unictype/pr_deprecated.h: Likewise.
60328         * lib/unictype/pr_diacritic.h: Likewise.
60329         * lib/unictype/pr_extender.h: Likewise.
60330         * lib/unictype/pr_grapheme_base.h: Likewise.
60331         * lib/unictype/pr_grapheme_extend.h: Likewise.
60332         * lib/unictype/pr_grapheme_link.h: Likewise.
60333         * lib/unictype/pr_id_continue.h: Likewise.
60334         * lib/unictype/pr_id_start.h: Likewise.
60335         * lib/unictype/pr_ideographic.h: Likewise.
60336         * lib/unictype/pr_ignorable_control.h: Likewise.
60337         * lib/unictype/pr_logical_order_exception.h: Likewise.
60338         * lib/unictype/pr_lowercase.h: Likewise.
60339         * lib/unictype/pr_numeric.h: Likewise.
60340         * lib/unictype/pr_other_alphabetic.h: Likewise.
60341         * lib/unictype/pr_punctuation.h: Likewise.
60342         * lib/unictype/pr_sentence_terminal.h: Likewise.
60343         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60344         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60345         * lib/unictype/pr_unified_ideograph.h: Likewise.
60346         * lib/unictype/pr_uppercase.h: Likewise.
60347         * lib/unictype/pr_xid_continue.h: Likewise.
60348         * lib/unictype/pr_xid_start.h: Likewise.
60349         * lib/unictype/pr_zero_width.h: Likewise.
60350         * lib/unictype/scripts.h: Likewise.
60351         * lib/unictype/scripts_byname.gperf: Likewise.
60352         * lib/unictype/sy_java_ident.h: Likewise.
60353         * lib/unigbrk/gbrkprop.h: Likewise.
60354         * lib/unilbrk/lbrkprop1.h: Likewise.
60355         * lib/unilbrk/lbrkprop2.h: Likewise.
60356         * lib/unilbrk/lbrktables.h: Likewise.
60357         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
60358         LBP_CP. Implement rule LB30.
60359         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
60360         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
60361         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
60362         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
60363         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
60364         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
60365         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
60366         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
60367         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
60368         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
60369         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
60370         bits instead of 16 bits in the code1 and code2 of each composition
60371         rule.
60372         (uc_composition): Update for Unicode 5.2.0.
60373         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
60374         * lib/uninorm/decomposition-table2.h: Likewise.
60375         * lib/uniwbrk/wbrkprop.h: Likewise.
60376         * tests/unicase/test-cased.c: Likewise.
60377         * tests/unicase/test-ignorable.c: Likewise.
60378         * tests/unicase/test-uc_tolower.c: Likewise.
60379         * tests/unicase/test-uc_totitle.c: Likewise.
60380         * tests/unicase/test-uc_toupper.c: Likewise.
60381         * tests/unictype/test-categ_C.c: Likewise.
60382         * tests/unictype/test-categ_Cf.c: Likewise.
60383         * tests/unictype/test-categ_Cn.c: Likewise.
60384         * tests/unictype/test-categ_L.c: Likewise.
60385         * tests/unictype/test-categ_Ll.c: Likewise.
60386         * tests/unictype/test-categ_Lm.c: Likewise.
60387         * tests/unictype/test-categ_Lo.c: Likewise.
60388         * tests/unictype/test-categ_Lu.c: Likewise.
60389         * tests/unictype/test-categ_M.c: Likewise.
60390         * tests/unictype/test-categ_Mc.c: Likewise.
60391         * tests/unictype/test-categ_Mn.c: Likewise.
60392         * tests/unictype/test-categ_N.c: Likewise.
60393         * tests/unictype/test-categ_Nd.c: Likewise.
60394         * tests/unictype/test-categ_Nl.c: Likewise.
60395         * tests/unictype/test-categ_No.c: Likewise.
60396         * tests/unictype/test-categ_P.c: Likewise.
60397         * tests/unictype/test-categ_Pd.c: Likewise.
60398         * tests/unictype/test-categ_Po.c: Likewise.
60399         * tests/unictype/test-categ_S.c: Likewise.
60400         * tests/unictype/test-categ_Sc.c: Likewise.
60401         * tests/unictype/test-categ_So.c: Likewise.
60402         * tests/unictype/test-ctype_alnum.c: Likewise.
60403         * tests/unictype/test-ctype_alpha.c: Likewise.
60404         * tests/unictype/test-ctype_graph.c: Likewise.
60405         * tests/unictype/test-ctype_lower.c: Likewise.
60406         * tests/unictype/test-ctype_print.c: Likewise.
60407         * tests/unictype/test-ctype_punct.c: Likewise.
60408         * tests/unictype/test-ctype_upper.c: Likewise.
60409         * tests/unictype/test-decdigit.h: Likewise.
60410         * tests/unictype/test-digit.h: Likewise.
60411         * tests/unictype/test-numeric.h: Likewise.
60412         * tests/unictype/test-pr_alphabetic.c: Likewise.
60413         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60414         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60415         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
60416         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60417         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60418         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60419         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60420         * tests/unictype/test-pr_combining.c: Likewise.
60421         * tests/unictype/test-pr_composite.c: Likewise.
60422         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60423         * tests/unictype/test-pr_dash.c: Likewise.
60424         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60425         * tests/unictype/test-pr_deprecated.c: Likewise.
60426         * tests/unictype/test-pr_diacritic.c: Likewise.
60427         * tests/unictype/test-pr_extender.c: Likewise.
60428         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60429         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60430         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60431         * tests/unictype/test-pr_id_continue.c: Likewise.
60432         * tests/unictype/test-pr_id_start.c: Likewise.
60433         * tests/unictype/test-pr_ideographic.c: Likewise.
60434         * tests/unictype/test-pr_ignorable_control.c: Likewise.
60435         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
60436         * tests/unictype/test-pr_lowercase.c: Likewise.
60437         * tests/unictype/test-pr_numeric.c: Likewise.
60438         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60439         * tests/unictype/test-pr_punctuation.c: Likewise.
60440         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60441         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60442         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60443         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60444         * tests/unictype/test-pr_uppercase.c: Likewise.
60445         * tests/unictype/test-pr_xid_continue.c: Likewise.
60446         * tests/unictype/test-pr_xid_start.c: Likewise.
60447         * tests/unictype/test-pr_zero_width.c: Likewise.
60448         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
60449         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
60450         changed behaviour: line breaking is now disallowed between a letter
60451         or '=' and '('.
60452         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60453         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60454         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
60455         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
60456         * tests/uniwidth/test-uc_width2.sh: Same updates as in
60457         lib/uniwidth/width.c.
60458         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
60459         without comments, but with the original copyright notice.
60460         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
60461         changes.
60462         * lib/unictype/categ_Cc.h: Likewise.
60463         * lib/unictype/categ_Co.h: Likewise.
60464         * lib/unictype/categ_Cs.h: Likewise.
60465         * lib/unictype/categ_Lt.h: Likewise.
60466         * lib/unictype/categ_Me.h: Likewise.
60467         * lib/unictype/categ_Pc.h: Likewise.
60468         * lib/unictype/categ_Pe.h: Likewise.
60469         * lib/unictype/categ_Pf.h: Likewise.
60470         * lib/unictype/categ_Pi.h: Likewise.
60471         * lib/unictype/categ_Ps.h: Likewise.
60472         * lib/unictype/categ_Sk.h: Likewise.
60473         * lib/unictype/categ_Sm.h: Likewise.
60474         * lib/unictype/categ_Z.h: Likewise.
60475         * lib/unictype/categ_Zl.h: Likewise.
60476         * lib/unictype/categ_Zp.h: Likewise.
60477         * lib/unictype/categ_Zs.h: Likewise.
60478         * lib/unictype/ctype_blank.h: Likewise.
60479         * lib/unictype/ctype_cntrl.h: Likewise.
60480         * lib/unictype/ctype_digit.h: Likewise.
60481         * lib/unictype/ctype_space.h: Likewise.
60482         * lib/unictype/ctype_xdigit.h: Likewise.
60483         * lib/unictype/mirror.h: Likewise.
60484         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60485         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60486         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60487         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60488         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60489         * lib/unictype/pr_bidi_control.h: Likewise.
60490         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60491         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60492         * lib/unictype/pr_bidi_pdf.h: Likewise.
60493         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60494         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60495         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60496         * lib/unictype/pr_format_control.h: Likewise.
60497         * lib/unictype/pr_hex_digit.h: Likewise.
60498         * lib/unictype/pr_hyphen.h: Likewise.
60499         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60500         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60501         * lib/unictype/pr_iso_control.h: Likewise.
60502         * lib/unictype/pr_join_control.h: Likewise.
60503         * lib/unictype/pr_left_of_pair.h: Likewise.
60504         * lib/unictype/pr_line_separator.h: Likewise.
60505         * lib/unictype/pr_math.h: Likewise.
60506         * lib/unictype/pr_non_break.h: Likewise.
60507         * lib/unictype/pr_not_a_character.h: Likewise.
60508         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60509         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60510         * lib/unictype/pr_other_id_continue.h: Likewise.
60511         * lib/unictype/pr_other_id_start.h: Likewise.
60512         * lib/unictype/pr_other_lowercase.h: Likewise.
60513         * lib/unictype/pr_other_math.h: Likewise.
60514         * lib/unictype/pr_other_uppercase.h: Likewise.
60515         * lib/unictype/pr_paired_punctuation.h: Likewise.
60516         * lib/unictype/pr_paragraph_separator.h: Likewise.
60517         * lib/unictype/pr_pattern_syntax.h: Likewise.
60518         * lib/unictype/pr_pattern_white_space.h: Likewise.
60519         * lib/unictype/pr_private_use.h: Likewise.
60520         * lib/unictype/pr_quotation_mark.h: Likewise.
60521         * lib/unictype/pr_radical.h: Likewise.
60522         * lib/unictype/pr_soft_dotted.h: Likewise.
60523         * lib/unictype/pr_space.h: Likewise.
60524         * lib/unictype/pr_titlecase.h: Likewise.
60525         * lib/unictype/pr_variation_selector.h: Likewise.
60526         * lib/unictype/pr_white_space.h: Likewise.
60527         * lib/unictype/sy_c_ident.h: Likewise.
60528         * lib/unictype/sy_c_whitespace.h: Likewise.
60529         * lib/unictype/sy_java_whitespace.h: Likewise.
60530         * modules/uni*/*: Bump version number of expected libunistring version.
60531         Reported by Simon Josefsson.
60533 2011-01-09  Karl Heuer  <kwzh@gnu.org>
60535         useless-if-before-free: fix typo in --help and make the internal,
60536         automatic version date update process work once again.
60537         --help output contained a NUL character instead of the
60538         backslash-zero that was intended.  Also, the "must lie within
60539         the first 8 lines" line is on line 9, and hence not getting
60540         automatically updated.
60541         * build-aux/useless-if-before-free: Fix the former by adding a
60542         backslash, and the latter by condensing the three lines of what-it-does
60543         to a single line, leaving one line of slack for the future.
60545 2011-01-09  Bruno Haible  <bruno@clisp.org>
60547         uniwidth/width: Fix width of U+1D173..U+1D17A.
60548         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
60549         symbolic_width, output_width_property_test): New functions.
60550         (main): Invoke output_nonspacing_property, output_width_property_test.
60551         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
60552         U+1D173..U+1D17A.
60553         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
60554         1.
60555         * modules/uniwidth/*: Bump version number of expected libunistring
60556         version.
60557         * modules/unilbrk/*: Likewise.
60559 2011-01-08  Bruno Haible  <bruno@clisp.org>
60561         uninorm tests: Preserve copyright of Unicode data file.
60562         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
60563         Mention modifications.
60565 2011-01-08  Bruno Haible  <bruno@clisp.org>
60567         gen-uni-tables: Prepare for Unicode 5.2.0.
60568         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
60569         (debug_output_lbp, output_lbp): Update.
60571 2011-01-08  Bruno Haible  <bruno@clisp.org>
60573         unilbrk: Clarify gen-uni-tables.c code.
60574         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
60575         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
60576         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
60578 2011-01-07  Bruno Haible  <bruno@clisp.org>
60580         strtod: Restore errno when successfully parsing Infinity or NaN.
60581         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
60582         restore the original errno.
60584 2011-01-07  Bruno Haible  <bruno@clisp.org>
60586         remove test: Avoid failure on HP-UX 11.
60587         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
60589 2011-01-07  Bruno Haible  <bruno@clisp.org>
60591         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
60592         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
60593         error code.
60595 2011-01-07  Pádraig Brady  <P@draigBrady.com>
60597         ignore-value: fixup comments, and add Eric Blake
60598         as an author since he rewrote the macros.
60599         * lib/ignore-value.h (ignore_value):  State that
60600         we now support aggregates.  Also specify exactly
60601         when the GCC warn_unused_result feature was added.
60603 2011-01-06  Eric Blake  <eblake@redhat.com>
60605         ignore-value: support aggregate types
60606         * lib/ignore-value.h (ignore_value): Provide separate gcc
60607         definition.
60608         * modules/ignore-value-tests: New test module.
60609         * tests/test-ignore-value.c: New test.
60611         maint.mk: improve sc_prohibit_strcmp regex
60612         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
60613         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
60614         definition of STRNEQ.
60616         signal: work around Haiku issue with SIGBUS
60617         * lib/siglist.h: Add comment.
60618         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
60619         strsignal's favoring of SIGSEGV.
60620         * tests/test-signal.c (main): Avoid test failure.
60621         * doc/posix-headers/signal.texi (signal.h): Document the issue.
60622         Reported by Scott McCreary.
60624         maint.mk: add pre-release check to ensure submodule commits are public
60625         * top/maint.mk (public-submodule-commit): New rule.
60626         (submodule-checks): New variable.
60627         (alpha beta stable): Depend on the variable.
60629 2011-01-05  Pádraig Brady  <P@draigBrady.com>
60630         and Jim Meyering  <meyering@redhat.com>
60632         ignore-value: make ignore_value more generic; deprecate ignore_ptr
60633         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
60634         (ATTRIBUTE_DEPRECATED): Define.
60635         (_ignore_case): New function.
60636         (ignore_value): New macro, to replace the old function.
60637         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
60638         * modules/ignore-value (Depends-on): Add stdint.
60640 2011-01-04  Eric Blake  <eblake@redhat.com>
60642         doc: regenerate INSTALL
60643         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
60644         @firstparagraphindent support, now that autoconf dropped it.
60645         (INSTALL_PRELUDE): Reinstate old macro.
60646         * doc/install.texi: Resync from autoconf.
60647         * doc/INSTALL: Reflect recent autoconf update.
60648         * doc/INSTALL.ISO: Likewise.
60649         * doc/INSTALL.UTF-8: Likewise.
60650         Reported by Karl Berry.
60652 2011-01-04  Bruce Korb  <address@hidden>
60654         git-version-gen: avoid a sub-shell
60655         * build-aux/git-version-gen: Redirect stderr in `...` via
60656         "exec 2>...", rather than via an added sub-shell.
60658 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
60660         git-version-gen: use (...) rather than sh -c '...'
60661         * build-aux/git-version-gen: Rather than hard-coding a shell's name
60662         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
60664 2011-01-03  Jim Meyering  <meyering@redhat.com>
60666         git-version-gen: convert leading TABs to spaces
60667         * build-aux/git-version-gen: Expand leading TABs.
60669         git-version-gen: handle failed "git rev-list"
60670         * build-aux/git-version-gen: Rather than leaking a "fatal" error
60671         from git and proceeding as if it had succeeded but printed no SHA1
60672         checksums, suppress the diagnostic and handle the failure.
60673         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
60675         git-version-gen: include command name in one more diagnostic
60676         * build-aux/git-version-gen: When the required .tarball-version file
60677         was missing or unreadable, you might see the diagnostic from "cat",
60678         but no trace of the name of the invoking script.  Now, you still see
60679         the diagnostic from cat, but also get one from "git-version-gen: ".
60680         Inspired by a patch from Bruce Korb.
60682         update-copyright: adjust test to match changed code
60683         * tests/test-update-copyright.sh: Change test's expected output
60684         to match new actual output.
60686 2011-01-02  Bruno Haible  <bruno@clisp.org>
60688         getlogin_r: Avoid test failure on HP-UX 11.
60689         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
60690         ERANGE when the second argument is zero.
60691         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
60692         portability problem.
60694 2011-01-02  Bruce Korb  <bkorb@gnu.org>
60696         * build-aux/update-copyright: doc Simon's changes
60698 2011-01-02  Simon Josefsson  <simon@josefsson.org>
60700         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
60701         environment variable.
60703 2011-01-02  Bruno Haible  <bruno@clisp.org>
60705         unigbrk: Avoid gcc warnings.
60706         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
60707         unused variable.
60708         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
60709         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
60710         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
60711         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
60712         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
60713         Change type of first argument to 'const char *'.
60714         (main): Remove unused variable.
60715         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
60716         type of first argument to 'const char *'.
60717         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
60718         Likewise.
60719         (main): Change type of variable 's'.
60720         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
60721         to 'int'.
60723 2011-01-02  Bruno Haible  <bruno@clisp.org>
60725         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
60726         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
60727         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
60728         bug.
60729         * lib/pwrite.c: Undo 2010-12-31 patch.
60730         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
60732 2011-01-02  Bruno Haible  <bruno@clisp.org>
60734         pread: Fix test whether it works.
60735         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
60737 2011-01-02  Bruno Haible  <bruno@clisp.org>
60739         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
60740         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
60741         ends in "6". Don't require a specific month name. Try also the locale
60742         names found on HP-UX 11 and Solaris 7.
60744 2011-01-02  Bruno Haible  <bruno@clisp.org>
60746         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
60747         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
60748         C linkage.
60749         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
60751 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
60753         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
60754         for consistency, since the "cluster" term is not used elsewhere.
60755         * lib/unigbrk.in.h: Update name.
60756         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
60757         * lib/unigbrk/u16-grapheme-next.c: Update name.
60758         * lib/unigbrk/u16-grapheme-prev.c: Update name.
60759         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
60760         * lib/unigbrk/u32-grapheme-next.c: Update name.
60761         * lib/unigbrk/u32-grapheme-prev.c: Update name.
60762         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
60763         * lib/unigbrk/u8-grapheme-next.c: Update name.
60764         * lib/unigbrk/u8-grapheme-prev.c: Update name.
60765         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
60766         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
60767         Suggested by Bruno Haible.
60769 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
60771         Remove module 'u8-grapheme-len' as too redundant with
60772         'u8-grapheme-next'.
60773         * modules/unigbrk/u8-grapheme-len: Delete file.
60774         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
60775         * lib/unigbrk.in.h: Remove prototype for deleted function.
60776         * lib/unigbrk/u8-grapheme-len.c: Delete file.
60777         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
60779         Remove module 'u16-grapheme-len' as too redundant with
60780         'u16-grapheme-next'.
60781         * modules/unigbrk/u16-grapheme-len: Delete file.
60782         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
60783         * lib/unigbrk.in.h: Remove prototype for deleted function.
60784         * lib/unigbrk/u16-grapheme-len.c: Delete file.
60785         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
60787         Remove module 'u32-grapheme-len' as too redundant with
60788         'u32-grapheme-next'.
60789         * modules/unigbrk/u32-grapheme-len: Delete file.
60790         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
60791         * lib/unigbrk.in.h: Remove prototype for deleted function.
60792         * lib/unigbrk/u32-grapheme-len.c: Delete file.
60793         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
60795         Suggested by Bruno Haible.
60797 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
60799         * unigbrk.in.h: Fix typo: "ben" => "been".
60800         Reported by Bruno Haible.
60802 2011-01-01  Jim Meyering  <meyering@redhat.com>
60804         maint: update almost all copyright ranges to include 2011
60805         Run the new "make update-copyright" rule.
60807 2011-01-01  Jim Meyering  <meyering@redhat.com>
60809         maint: update-copyright: exempt doc/INSTALL*
60810         * Makefile (update-copyright): Also exclude doc/INSTALL*,
60811         since they are generated.  Suggested by Bruno Haible.
60813 2011-01-01  Jim Meyering  <meyering@redhat.com>
60815         maint: refine the update-copyright rule
60816         * Makefile (update-copyright): Also exclude any file that includes
60817         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
60818         code that merely generates the comment.
60820 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
60822         New module 'u8-grapheme-len'.
60823         * modules/unigbrk/u8-grapheme-len: New file.
60824         * modules/unigbrk/u8-grapheme-len-tests: New file.
60825         * lib/unigbrk.in.h: Add prototype for new function.
60826         * lib/unigbrk/u8-grapheme-len.c: New file.
60827         * tests/unigbrk/test-u8-grapheme-len.c: New file.
60829         New module 'u16-grapheme-len'.
60830         * modules/unigbrk/u16-grapheme-len: New file.
60831         * modules/unigbrk/u16-grapheme-len-tests: New file.
60832         * lib/unigbrk.in.h: Add prototype for new function.
60833         * lib/unigbrk/u16-grapheme-len.c: New file.
60834         * tests/unigbrk/test-u16-grapheme-len.c: New file.
60836         New module 'u32-grapheme-len'.
60837         * modules/unigbrk/u32-grapheme-len: New file.
60838         * modules/unigbrk/u32-grapheme-len-tests: New file.
60839         * lib/unigbrk.in.h: Add prototype for new function.
60840         * lib/unigbrk/u32-grapheme-len.c: New file.
60841         * tests/unigbrk/test-u32-grapheme-len.c: New file.
60843         New module 'u8-grapheme-next'.
60844         * modules/unigbrk/u8-grapheme-next: New file.
60845         * modules/unigbrk/u8-grapheme-next-tests: New file.
60846         * lib/unigbrk.in.h: Add prototype for new function.
60847         * lib/unigbrk/u8-grapheme-next.c: New file.
60848         * tests/unigbrk/test-u8-grapheme-next.c: New file.
60850         New module 'u16-grapheme-next'.
60851         * modules/unigbrk/u16-grapheme-next: New file.
60852         * modules/unigbrk/u16-grapheme-next-tests: New file.
60853         * lib/unigbrk.in.h: Add prototype for new function.
60854         * lib/unigbrk/u16-grapheme-next.c: New file.
60855         * tests/unigbrk/test-u16-grapheme-next.c: New file.
60857         New module 'u32-grapheme-next'.
60858         * modules/unigbrk/u32-grapheme-next: New file.
60859         * modules/unigbrk/u32-grapheme-next-tests: New file.
60860         * lib/unigbrk.in.h: Add prototype for new function.
60861         * lib/unigbrk/u32-grapheme-next.c: New file.
60862         * tests/unigbrk/test-u32-grapheme-next.c: New file.
60864         New module 'u8-grapheme-prev'.
60865         * modules/unigbrk/u8-grapheme-prev: New file.
60866         * modules/unigbrk/u8-grapheme-prev-tests: New file.
60867         * lib/unigbrk.in.h: Add prototype for new function.
60868         * lib/unigbrk/u8-grapheme-prev.c: New file.
60869         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
60871         New module 'u16-grapheme-prev'.
60872         * modules/unigbrk/u16-grapheme-prev: New file.
60873         * modules/unigbrk/u16-grapheme-prev-tests: New file.
60874         * lib/unigbrk.in.h: Add prototype for new function.
60875         * lib/unigbrk/u16-grapheme-prev.c: New file.
60876         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
60878         New module 'u32-grapheme-prev'.
60879         * modules/unigbrk/u32-grapheme-prev: New file.
60880         * modules/unigbrk/u32-grapheme-prev-tests: New file.
60881         * lib/unigbrk.in.h: Add prototype for new function.
60882         * lib/unigbrk/u32-grapheme-prev.c: New file.
60883         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
60885         New module 'u8-grapheme-breaks'.
60886         * modules/unigbrk/u8-grapheme-breaks: New file.
60887         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
60888         * lib/unigbrk.in.h: Add prototype for new function.
60889         * lib/unigbrk/u8-grapheme-breaks.c: New file.
60890         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
60892         New module 'u16-grapheme-breaks'.
60893         * modules/unigbrk/u16-grapheme-breaks: New file.
60894         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
60895         * lib/unigbrk.in.h: Add prototype for new function.
60896         * lib/unigbrk/u16-grapheme-breaks.c: New file.
60897         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
60899         New module 'u32-grapheme-breaks'.
60900         * modules/unigbrk/u32-grapheme-breaks: New file.
60901         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
60902         * lib/unigbrk.in.h: Add prototype for new function.
60903         * lib/unigbrk/u32-grapheme-breaks.c: New file.
60904         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
60906         New module 'ulc-grapheme-breaks'.
60907         * modules/unigbrk/ulc-grapheme-breaks: New file.
60908         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
60909         * m4/locale-ar.m4: New file.
60910         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
60911         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
60912         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
60914 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
60916         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
60917         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
60918         modified how this file was generated before I initially submitted
60919         the module, but failed to regenerate it.  This meant that several
60920         of the level2 entries were wrong.
60921         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
60922         Remove the division-by-2 that is folded into the table now that
60923         gbrkprop.h has been regenerated properly.  Now -1 entries are
60924         handled correctly.
60926         New module 'unigbrk/uc-gbrk-prop-tests'.
60927         * modules/unigbrk/uc-gbrk-prop-tests: New file.
60928         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
60929         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
60930         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
60932 2011-01-01  Bruno Haible  <bruno@clisp.org>
60934         Avoid use of hexadecimal escapes.
60935         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
60936         instead of hexadecimal escapes.
60938 2011-01-01  Jim Meyering  <meyering@redhat.com>
60940         maint: new rule to update copyright year ranges
60941         * Makefile (update-copyright): New rule.
60943         maint: indent with TABs in Makefile
60944         * Makefile: Expand leading sequences of spaces to TABs
60946         version-etc: update the copyright year it reports
60947         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
60949 2010-12-31  Bruno Haible  <bruno@clisp.org>
60951         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
60952         * lib/isfinite.c (zerof, zerod, zerol): New variables.
60953         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
60954         zero.
60956 2010-12-31  Bruno Haible  <bruno@clisp.org>
60958         pwrite: Work around HP-UX 11.11 bug.
60959         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
60960         works and set REPLACE_PWRITE if not.
60961         * lib/pwrite.c (pwrite): Add an implementation that uses the system
60962         function.
60963         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
60965 2010-12-31  Bruno Haible  <bruno@clisp.org>
60967         pread: Work around HP-UX 11 bugs.
60968         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
60969         and set REPLACE_PREAD if not.
60970         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
60972 2010-12-31  Eric Blake  <eblake@redhat.com>
60974         nl_langinfo: fix YESEXPR on Irix 6.5
60975         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
60976         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
60977         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
60978         it.
60980 2010-12-31  Bruno Haible  <bruno@clisp.org>
60982         iconv: Document HP-UX 11 bug.
60983         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
60985 2010-12-31  Bruno Haible  <bruno@clisp.org>
60987         ldexpl: Fix link error on HP-UX 11.
60988         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
60989         LDEXPL_LIBM, using $ISNANL_LIBM.
60991 2010-12-31  Eric Blake  <eblake@redhat.com>
60993         ftello: avoid compilation failure with SunStudio c89
60994         * lib/ftello.c (ftello): Use lseek, not llseek.
60996         tests: avoid failing coreutils tests on cygwin
60997         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
60998         (create_exe_shims_): Return 0 when skipping.
61000 2010-12-31  Bruno Haible  <bruno@clisp.org>
61002         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
61003         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
61005 2010-12-31  Bruno Haible  <bruno@clisp.org>
61007         waitpid: Fix link error in C++ mode.
61008         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
61010 2010-12-31  Bruno Haible  <bruno@clisp.org>
61012         isnan: Use GCC built-ins when possible.
61013         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
61014         __builtin_isnan.
61015         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
61016         (isnan): Define using GCC built-ins for GCC >= 4.0.
61018 2010-12-31  Bruno Haible  <bruno@clisp.org>
61020         isnand: Fix mistake.
61021         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
61022         __builtin_isnand.
61024 2010-12-31  Bruno Haible  <bruno@clisp.org>
61026         open: Avoid C++ error on HP-UX 11.
61027         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
61029 2010-12-31  Bruno Haible  <bruno@clisp.org>
61031         time_r: Add missing declarations on HP-UX 11.
61032         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
61033         instead of HAVE_LOCALTIME_R.
61034         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
61035         HAVE_LOCALTIME_R always.
61036         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
61037         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
61038         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
61039         HAVE_LOCALTIME_R.
61040         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
61041         * doc/posix-functions/localtime_r.texi: Likewise.
61043 2010-12-29  Eric Blake  <eblake@redhat.com>
61045         mountlist: tweak previous commit
61046         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
61047         Reported by Paul Eggert.
61049         mountlist: fix local drive detection on cygwin
61050         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
61051         that works for cygwin.
61053 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61055         ftoastr, snprintf: ftoastr + snprintf module
61056         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
61057         since the snprintf module now should be good enough here.
61058         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
61059         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
61060         and gl_MODULE_INDICATOR([snprintf]), but the former enables
61061         GNULIB_SNPRINTF only for the test directory, and the latter
61062         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
61063         seems to suffice by itself.
61065 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61067         alloca: one step towards thread-safety
61068         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
61069         need for a static variable.  All callers changed.  This does not
61070         make the alloca replacement thread-safe, but it's one step.
61072         tests: minor indenting change
61073         * tests/init.sh: Sync from coreutils housekeeping patch
61074         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
61075         to keep lines within 80 columns.
61077 2010-12-28  Jim Meyering  <meyering@redhat.com>
61079         regex: don't infloop on persistent failing calloc
61080         * lib/regexec.c (build_trtable): Return failure indication upon
61081         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
61082         In glibc, this was fixed for version 2.13:
61083         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
61085 2010-12-28  Bruno Haible  <bruno@clisp.org>
61086             Paul Eggert <eggert@cs.ucla.edu>
61088         linkat: Make implementation robust against system behaviour variations.
61089         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
61090         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
61091         way, and to -2 if it needs a generic runtime test.
61092         * lib/linkat.c (solaris_optimized_link_immediate,
61093         solaris_optimized_link_follow): New functions.
61094         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
61095         (check_same_link): Use it.
61097 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
61099         New module 'unigbrk/base'.
61100         * modules/unigbrk/base: New file.
61101         * lib/unigbrk.in.h: New file.
61103         New module 'unigbrk/uc-gbrk-prop'.
61104         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
61105         * modules/unigbrk/uc-gbrk-prop: New file.
61106         * lib/unigbrk/gbrkprop.h: New file.
61107         * lib/unigbrk/uc-gbrk-prop.c: New file.
61109         New module 'unigbrk/uc-is-grapheme-break'.
61110         * modules/unigbrk/uc-is-grapheme-break: New file.
61111         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
61112         * lib/unigbrk/uc-is-grapheme-break.c: New file.
61113         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
61114         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
61115         * tests/unigbrk/GraphemeBreakTest.txt: New file.
61117         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
61119 2010-12-27  Bruno Haible  <bruno@clisp.org>
61121         linkat test: Avoid failure on Solaris 11 2010-11.
61122         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
61124 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61126         utimens: work around glibc rounding bug on more platforms
61127         * lib/utimens.c (fdutimens): Work around rounding bug even if
61128         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
61129         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
61131 2010-12-27  Bruno Haible  <bruno@clisp.org>
61133         select tests: Improve comments.
61134         * tests/test-select.c (do_select): Add comments.
61136 2010-12-27  Bruno Haible  <bruno@clisp.org>
61138         select tests: Safer way of handling timeout.
61139         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
61140         at every invocation.
61142 2010-12-27  Bruno Haible  <bruno@clisp.org>
61144         select tests: Use 'bool' where appropriate.
61145         * tests/test-select.c (connect_to_socket): Change argument type to
61146         'bool'.
61148 2010-12-27  Bruno Haible  <bruno@clisp.org>
61150         select tests: Use existing modules.
61151         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
61152         (configure.ac): Don't test for unistd.h.
61153         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
61154         declared in <unistd.h>.
61156 2010-12-27  Bruno Haible  <bruno@clisp.org>
61158         mbrtowc: Work around a Solaris 7 bug.
61159         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
61160         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
61161         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
61162         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
61163         MBRTOWC_NULL_ARG1_BUG.
61164         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
61165         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
61166         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
61167         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
61169 2010-12-27  Jim Meyering  <meyering@redhat.com>
61171         read-file.c: tweak syntax
61172         * lib/read-file.c (fread_file): Remove space after "*" in function
61173         definitions.
61175 2010-12-27  Bruno Haible  <bruno@clisp.org>
61177         times test: Avoid gcc warnings on OSF/1.
61178         * tests/test-times.c (main): Cast printf arguments from clock_t to
61179         'long int'.
61181 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61183         utimens: work around glibc rounding bug on older Linux kernels
61184         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
61185         on Linux with a glibc whose utimes might not work, then work
61186         around a longstanding glibc bug involving rounding rather than
61187         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
61188         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
61190 2010-12-26  Bruno Haible  <bruno@clisp.org>
61192         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
61193         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
61194         _GL_CXXALIAS_SYS.
61195         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61197 2010-12-26  Bruno Haible  <bruno@clisp.org>
61199         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
61200         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
61201         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
61202         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
61203         looking for the declaration.
61204         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
61205         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
61206         problem.
61207         * doc/posix-functions/inet_pton.texi: Likewise.
61209 2010-12-26  Bruno Haible  <bruno@clisp.org>
61211         arpa_inet: Use the common idioms with C++ support.
61212         * lib/arpa_inet.in.h: Include c++defs.h.
61213         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
61214         support.
61215         * modules/arpa_inet (Depends-on): Add c++defs.
61216         (Makefile.am): Substitute the contents of c++defs.h.
61217         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
61218         * modules/arpa_inet-c++-tests: New file.
61219         * tests/test-arpa_inet-c++.cc: New file.
61221 2010-12-25  Bruno Haible  <bruno@clisp.org>
61223         Fix more C++ link errors on Solaris 8.
61224         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
61225         $(LIB_EACCESS).
61226         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
61227         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
61228         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
61229         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
61230         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
61232 2010-12-25  Bruno Haible  <bruno@clisp.org>
61234         printf-posix: Fix link error when a non-GCC compiler is used.
61235         * lib/stdio.in.h (printf): When not using GCC, override printf
61236         correctly.
61237         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61239 2010-12-25  Bruno Haible  <bruno@clisp.org>
61241         strerror_r-posix: Update doc.
61242         * doc/posix-functions/strerror_r.texi: Update doc about the return
61243         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
61245 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61247         utimens: simplify the logic of the previous change
61248         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
61249         This should not affect whether the test succeeds or fails.
61251         utimens: configure better on hosts with NFS clock skew
61252         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
61253         uses the clock of the local host.  It might use the clock of the
61254         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
61255         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
61257 2010-12-25  Bruno Haible  <bruno@clisp.org>
61259         ptsname test: Avoid failure on Solaris.
61260         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
61261         open a pseudo-terminal; don't use BSD-style ptys.
61262         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
61264 2010-12-25  Bruno Haible  <bruno@clisp.org>
61266         ptsname: Avoid ERANGE failure on some systems.
61267         * lib/ptsname.c (buffer): Increase size.
61269 2010-12-25  Bruno Haible  <bruno@clisp.org>
61271         rename, renameat: Avoid test failures at NFS mounted locations.
61272         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
61273         so that subsequent mkdir calls succeed.
61275 2010-12-25  Bruno Haible  <bruno@clisp.org>
61277         iswblank: Fix C++ link error on Solaris 8.
61278         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
61279         _GL_FUNCDECL_SYS.
61281 2010-12-25  Bruno Haible  <bruno@clisp.org>
61283         unistd: Fix C++ link error on Solaris 8.
61284         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
61286 2010-12-25  Bruno Haible  <bruno@clisp.org>
61288         readlink doc: Mention an old glibc bug.
61289         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
61291 2010-12-25  Bruno Haible  <bruno@clisp.org>
61293         fcntl-h: Fix for use of C++ on glibc systems.
61294         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
61295         also on glibc systems in C++ mode.
61296         Reported by Gary V. Vaughan <gary@gnu.org>.
61298 2010-12-25  Bruno Haible  <bruno@clisp.org>
61300         roundl-ieee: Make it work on OSF/1 5.1 with cc.
61301         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
61303 2010-12-25  Bruno Haible  <bruno@clisp.org>
61305         truncl-ieee: Make it work on OSF/1 5.1 with cc.
61306         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
61307         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
61308         test whether truncl works according to ISO C 99 with IEC 60559.
61309         * m4/truncl-ieee.m4: New file.
61310         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
61311         m4/signbit.m4.
61312         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
61314 2010-12-25  Bruno Haible  <bruno@clisp.org>
61316         ceill-ieee: Make it work on OSF/1 5.1 with cc.
61317         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
61318         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
61319         test whether ceill works according to ISO C 99 with IEC 60559.
61320         * m4/ceill-ieee.m4: New file.
61321         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
61322         m4/signbit.m4.
61323         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
61325 2010-12-25  Bruno Haible  <bruno@clisp.org>
61327         Ensure all prerequisites of <wchar.h> are included.
61328         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
61329         before <wchar.h>.
61330         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
61331         gl_MBRLEN_NUL_RETVAL): Likewise.
61332         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
61333         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
61334         AC_FUNC_MBRTOWC): Likewise.
61335         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
61336         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
61337         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
61338         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
61339         Likewise.
61340         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
61341         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
61342         (gl_WCHAR_H): Improve comments.
61343         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
61345 2010-12-25  Bruno Haible  <bruno@clisp.org>
61347         strtok_r: Fix C syntax error in autoconf macro.
61348         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
61349         characters in test program.
61351 2010-12-24  Bruno Haible  <bruno@clisp.org>
61353         ceil, trunc, round: Fix gcc warnings.
61354         * lib/ceil.c (MIN): Undefine before redefining.
61355         * lib/trunc.c (MIN): Likewise.
61356         * lib/round.c (MIN): Likewise.
61357         Include <math.h> first.
61359 2010-12-24  Bruno Haible  <bruno@clisp.org>
61361         select tests: Avoid failures on OSF/1 5.1.
61362         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
61363         failure of closing the last socket; it may fail with ECONNRESET.
61365 2010-12-24  Eric Blake  <eblake@redhat.com>
61367         stdint: avoid HP-UX 10.20 preprocessor bug
61368         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
61369         than #if.
61370         * tests/test-floor2.c (main): Likewise.
61371         Reported by Peter O'Gorman.
61373         pipe: make obsoletion transition easier
61374         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
61375         * modules/pipe (Files): Include revived file.
61376         (Include): Drop reference, to mirror getdate's behavior.
61378 2010-12-24  Bruno Haible  <bruno@clisp.org>
61380         sys_socket: Hide mismatch of declarations on NonStop Kernel.
61381         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
61382         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
61383         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61385 2010-12-24  Bruno Haible  <bruno@clisp.org>
61387         gethostname: Ensure declaration on NonStop Kernel.
61388         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
61389         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61391 2010-12-24  Bruno Haible  <bruno@clisp.org>
61393         sys_select: Ensure all necessary types on NonStop Kernel.
61394         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
61395         include <sys/time.h>.
61396         * doc/posix-headers/sys_select.texi: Mention that it's missing on
61397         NonStop Kernel.
61398         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61400 2010-12-24  Bruno Haible  <bruno@clisp.org>
61402         sys_select: Remove unneeded include.
61403         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
61404         have <sys/select.h>.
61406 2010-12-24  Bruno Haible  <bruno@clisp.org>
61408         gethostname: Provide a fallback for HOST_NAME_MAX.
61409         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
61410         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
61411         instead.
61412         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61414 2010-12-24  Bruno Haible  <bruno@clisp.org>
61416         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
61417         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
61418         (SA_RESTART): Likewise.
61419         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61421 2010-12-24  Bruno Haible  <bruno@clisp.org>
61423         signal: Define NSIG.
61424         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
61425         * tests/test-signal.c (nsig): New variable.
61426         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61428 2010-12-24  Bruno Haible  <bruno@clisp.org>
61430         rename, renameat: Avoid test failures on OSF/1 5.1.
61431         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
61432         alternative error codes.
61433         * tests/test-renameat.c (main): Likewise.
61435 2010-12-24  Bruno Haible  <bruno@clisp.org>
61437         *printf: Detect large precisions bug on Solaris 10/SPARC.
61438         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
61439         by Paul Eggert.
61440         * tests/test-snprintf-posix.h (test_function): Add this test code here
61441         too.
61442         * tests/test-sprintf-posix.h (test_function): Likewise.
61443         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61444         * tests/test-vasprintf-posix.c (test_function): Likewise.
61445         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
61446         around by gnulib.
61447         * doc/posix-functions/printf.texi: Likewise.
61448         * doc/posix-functions/snprintf.texi: Likewise.
61449         * doc/posix-functions/sprintf.texi: Likewise.
61450         * doc/posix-functions/vfprintf.texi: Likewise.
61451         * doc/posix-functions/vprintf.texi: Likewise.
61452         * doc/posix-functions/vsnprintf.texi: Likewise.
61453         * doc/posix-functions/vsprintf.texi: Likewise.
61454         * doc/posix-functions/dprintf.texi: Undo last commit.
61455         * doc/posix-functions/vdprintf.texi: Likewise.
61457 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61459         tests: port test-fdutimensat.c to Solaris 8
61460         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
61461         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
61462         On Solaris 8, it fails with errno == ENOSYS, because there is no
61463         futimens (so it can't use the fd), and there is no lutimens (so it
61464         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
61466         vsnprintf: make more consistent with snprintf; doc fixes
61468         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
61469         the byte count return problem was promoted from the snprintf-posix
61470         to the snprintf module.
61471         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
61472         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
61473         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
61474         * tests/test-snprintf.c (main): Check the byte count returned.
61475         * tests/test-vsnprintf.c (main): Likewise.
61477 2010-12-23  Eric Blake  <eblake@redhat.com>
61479         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
61480         * modules/sigpipe (License): Relax license.
61482 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61484         doc: document Solaris printf bug with large float precisions
61485         * doc/posix-functions/dprintf.texi (dprintf):
61486         * doc/posix-functions/fprintf.texi (fprintf):
61487         * doc/posix-functions/printf.texi (printf):
61488         * doc/posix-functions/snprintf.texi (snprintf):
61489         * doc/posix-functions/sprintf.texi (sprintf):
61490         * doc/posix-functions/vdprintf.texi (vdprintf):
61491         * doc/posix-functions/vfprintf.texi (vfprintf):
61492         * doc/posix-functions/vprintf.texi (vprintf):
61493         * doc/posix-functions/vsnprintf.texi (vsnprintf):
61494         * doc/posix-functions/vsprintf.texi (vsprintf):
61495         Mention that these functions mishandle large floating point
61496         precisions on Solaris 10.  The same bug is also present in Solaris
61497         8, and I assume earlier.  This causes "cd gnulib-tests; make
61498         check" to fail on Solaris 8 (and I assume, later) when building
61499         the latest coreutils, in test-vasprintf-posix's call to
61500         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
61501         the wide flavors (e.g., wprintf) so this patch just updates the
61502         documentation for the narrow ones.
61504         test-posixtm.c: add two tests
61505         * tests/test-posixtm.c: Add two tests, to highlight the
61506         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
61507         around this bug; this is merely to document it.
61509 2010-12-22  Bruno Haible  <bruno@clisp.org>
61511         getlogin_r: Work around portability problem on OSF/1.
61512         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
61513         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
61514         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
61515         test for a truncated result.
61516         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
61517         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
61518         * modules/getlogin_r (Depends-on): Add memchr.
61519         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
61521 2010-12-22  Bruno Haible  <bruno@clisp.org>
61523         ptsname: Avoid test failure on OSF/1 5.1.
61524         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
61525         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
61526         (same_slave): New function.
61527         (main): Use it to compare ptsname's result with the expected file name.
61529 2010-12-22  Bruno Haible  <bruno@clisp.org>
61531         Port extended stdio modules to HP NonStop Kernel.
61532         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
61533         macros.
61534         * lib/fbufmode.c: Update comments.
61535         * lib/fflush.c: Likewise.
61536         * lib/fpurge.c: Likewise.
61537         * lib/freadable.c: Likewise.
61538         * lib/freadahead.c: Likewise.
61539         * lib/freading.c: Likewise.
61540         * lib/freadptr.c: Likewise.
61541         * lib/freadseek.c: Likewise.
61542         * lib/fseeko.c: Likewise.
61543         * lib/fseterr.c: Likewise.
61544         * lib/fwritable.c: Likewise.
61545         * lib/fwriting.c: Likewise.
61546         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61548 2010-12-22  Bruno Haible  <bruno@clisp.org>
61550         ttyname_r: Work around bug on OSF/1 5.1.
61551         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
61552         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
61553         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
61554         present.
61555         * lib/ttyname_r.c (ttyname_r): Update comments.
61557 2010-12-22  Bruno Haible  <bruno@clisp.org>
61559         round: Implement result sign according to IEEE 754.
61560         * lib/round.c (MIN, MINUS_ZERO): New macros.
61561         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
61562         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
61563         * tests/test-round-ieee.c (main): Likewise.
61564         * tests/test-roundl-ieee.c (main): Likewise.
61566         trunc: Implement result sign according to IEEE 754.
61567         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
61568         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
61569         * tests/test-trunc2.c: Include minus-zero.h.
61570         (MINUS_ZERO): New macro.
61571         (trunc_reference): Keep in sync with lib/trunc.c.
61572         * tests/test-truncf2.c: Include minus-zero.h.
61573         (MINUS_ZERO): New macro.
61574         (truncf_reference): Keep in sync with lib/trunc.c.
61575         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
61576         * tests/test-trunc-ieee.c (main): Likewise.
61577         * tests/test-truncl-ieee.c (main): Likewise.
61579         ceil: Implement result sign according to IEEE 754.
61580         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
61581         (FUNC): Return -0.0 for -1 < x < 0.
61582         * tests/test-ceil2.c: Include minus-zero.h.
61583         (MINUS_ZERO): New macro.
61584         (ceil_reference): Keep in sync with lib/ceil.c.
61585         * tests/test-ceilf2.c: Include minus-zero.h.
61586         (MINUS_ZERO): New macro.
61587         (ceilf_reference): Keep in sync with lib/ceil.c.
61588         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
61589         * tests/test-ceil-ieee.c (main): Likewise.
61590         * tests/test-ceill-ieee.c (main): Likewise.
61592         floor: Implement result sign according to IEEE 754.
61593         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
61594         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
61595         * tests/test-floorf2.c (floorf_reference): Likewise.
61596         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
61597         * tests/test-floor-ieee.c (main): Likewise.
61598         * tests/test-floorl-ieee.c (main): Likewise.
61600 2010-12-22  Bruno Haible  <bruno@clisp.org>
61602         getaddrinfo: Update doc.
61603         * doc/posix-functions/gai_strerror.texi: Return type is also different
61604         on AIX and HP-UX.
61606 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61608         getaddrinfo, inet_ntop: Update doc for Solaris.
61609         * doc/posix-functions/gai_strerror.texi: Return type is also an
61610         issue on Solaris 9 and earlier.
61611         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
61612         on Solaris 10 and earlier.
61614 2010-12-21  Bruno Haible  <bruno@clisp.org>
61616         New module 'roundl-ieee'.
61617         * modules/roundl-ieee: New file.
61618         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
61619         test whether roundl works according to ISO C 99 with IEC 60559.
61620         * m4/roundl-ieee.m4: New file.
61621         * modules/roundl-ieee-tests: New file.
61622         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
61623         * tests/test-roundl.c (main): Remove signbit tests.
61624         * modules/roundl-tests (Depends-on): Remove signbit.
61625         * doc/posix-functions/roundl.texi: Mention the new module.
61627 2010-12-21  Bruno Haible  <bruno@clisp.org>
61629         New module 'truncl-ieee'.
61630         * modules/truncl-ieee: New file.
61631         * modules/truncl-ieee-tests: New file.
61632         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
61633         * tests/test-truncl.c (main): Remove signbit tests.
61634         * modules/truncl-tests (Depends-on): Remove signbit.
61635         * doc/posix-functions/truncl.texi: Mention the new module.
61637 2010-12-21  Bruno Haible  <bruno@clisp.org>
61639         New module 'ceill-ieee'.
61640         * modules/ceill-ieee: New file.
61641         * modules/ceill-ieee-tests: New file.
61642         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
61643         * tests/test-ceill.c (main): Remove signbit tests.
61644         * modules/ceill-tests (Depends-on): Remove signbit.
61645         * doc/posix-functions/ceill.texi: Mention the new module.
61647 2010-12-21  Bruno Haible  <bruno@clisp.org>
61649         New module 'floorl-ieee'.
61650         * modules/floorl-ieee: New file.
61651         * modules/floorl-ieee-tests: New file.
61652         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
61653         * tests/test-floorl.c (main): Remove signbit tests.
61654         * modules/floorl-tests (Depends-on): Remove signbit.
61655         * doc/posix-functions/floorl.texi: Mention the new module.
61657 2010-12-21  Bruno Haible  <bruno@clisp.org>
61659         New module 'round-ieee'.
61660         * modules/round-ieee: New file.
61661         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
61662         whether round works according to ISO C 99 with IEC 60559.
61663         * m4/round-ieee.m4: New file.
61664         * modules/round-ieee-tests: New file.
61665         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
61666         * tests/test-round1.c (main): Remove signbit tests.
61667         * modules/round-tests (Depends-on): Remove 'signbit'.
61668         * doc/posix-functions/round.texi: Mention the new module.
61670 2010-12-21  Bruno Haible  <bruno@clisp.org>
61672         New module 'trunc-ieee'.
61673         * modules/trunc-ieee: New file.
61674         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
61675         whether trunc works according to ISO C 99 with IEC 60559.
61676         * m4/trunc-ieee.m4: New file.
61677         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
61678         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
61679         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
61680         * modules/trunc-ieee-tests: New file.
61681         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
61682         * tests/test-trunc1.c (main): Remove signbit tests.
61683         * modules/trunc-tests (Depends-on): Remove 'signbit'.
61684         * doc/posix-functions/trunc.texi: Mention the new module.
61686 2010-12-21  Bruno Haible  <bruno@clisp.org>
61688         New module 'ceil-ieee'.
61689         * modules/ceil-ieee: New file.
61690         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
61691         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
61692         ISO C 99 with IEC 60559.
61693         * m4/ceil-ieee.m4: New file.
61694         * modules/ceil (Files): Add lib/ceil.c.
61695         (Depends-on): Add 'float'.
61696         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
61697         * lib/math.in.h (ceil): New declaration.
61698         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
61699         REPLACE_CEIL.
61700         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
61701         * modules/ceil-ieee-tests: New file.
61702         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
61703         * tests/test-math-c++.cc: Check the signature of 'ceil'.
61704         * doc/posix-functions/ceil.texi: Mention the new module.
61706 2010-12-21  Bruno Haible  <bruno@clisp.org>
61708         New module 'floor-ieee'.
61709         * modules/floor-ieee: New file.
61710         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
61711         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
61712         ISO C 99 with IEC 60559.
61713         * m4/floor-ieee.m4: New file.
61714         * modules/floor (Files): Add lib/floor.c.
61715         (Depends-on): Add 'float'.
61716         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
61717         * lib/math.in.h (floor): New declaration.
61718         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
61719         REPLACE_FLOOR.
61720         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
61721         * modules/floor-ieee-tests: New file.
61722         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
61723         * tests/test-math-c++.cc: Check the signature of 'floor'.
61724         * doc/posix-functions/floor.texi: Mention the new module.
61726 2010-12-21  Bruno Haible  <bruno@clisp.org>
61728         New module 'roundf-ieee'.
61729         * modules/roundf-ieee: New file.
61730         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
61731         test whether roundf works according to ISO C 99 with IEC 60559.
61732         * m4/roundf-ieee.m4: New file.
61733         * modules/roundf-ieee-tests: New file.
61734         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
61735         * tests/test-roundf1.c (main): Remove signbit tests.
61736         * modules/roundf-tests (Depends-on): Remove 'signbit'.
61737         * doc/posix-functions/roundf.texi: Mention the new module.
61739 2010-12-21  Bruno Haible  <bruno@clisp.org>
61741         New module 'truncf-ieee'.
61742         * modules/truncf-ieee: New file.
61743         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
61744         test whether truncf works according to ISO C 99 with IEC 60559.
61745         * m4/truncf-ieee.m4: New file.
61746         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
61747         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
61748         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
61749         * modules/truncf-ieee-tests: New file.
61750         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
61751         * tests/test-truncf1.c (main): Remove signbit tests.
61752         * modules/truncf-tests (Depends-on): Remove 'signbit'.
61753         * doc/posix-functions/truncf.texi: Mention the new module.
61755 2010-12-21  Bruno Haible  <bruno@clisp.org>
61757         New module 'ceilf-ieee'.
61758         * modules/ceilf-ieee: New file.
61759         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
61760         test whether ceilf works according to ISO C 99 with IEC 60559.
61761         * m4/ceilf-ieee.m4: New file.
61762         * modules/ceilf-ieee-tests: New file.
61763         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
61764         * tests/test-ceilf1.c (main): Remove signbit tests.
61765         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
61766         * doc/posix-functions/ceilf.texi: Mention the new module.
61768 2010-12-21  Bruno Haible  <bruno@clisp.org>
61770         New module 'floorf-ieee'.
61771         * modules/floorf-ieee: New file.
61772         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
61773         test whether floorf works according to ISO C 99 with IEC 60559.
61774         * m4/floorf-ieee.m4: New file.
61775         * modules/floorf-ieee-tests: New file.
61776         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
61777         * tests/test-floorf1.c (main): Remove signbit tests.
61778         * modules/floorf-tests (Depends-on): Remove 'signbit'.
61779         * doc/posix-functions/floorf.texi: Mention the new module.
61781 2010-12-21  Bruno Haible  <bruno@clisp.org>
61783         Support for minus zero in autoconf macros.
61784         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
61785         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
61786         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
61787         * tests/minus-zero.h: Update comments.
61789 2010-12-21  Bruno Haible  <bruno@clisp.org>
61791         Tests for module 'ceil'.
61792         * modules/ceil-tests: New file.
61793         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
61794         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
61796 2010-12-21  Bruno Haible  <bruno@clisp.org>
61798         Tests for module 'floor'.
61799         * modules/floor-tests: New file.
61800         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
61801         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
61803 2010-12-21  Bruno Haible  <bruno@clisp.org>
61805         math: Fix indentation.
61806         * lib/math.in.h (floorf): Fix indentation.
61808 2010-12-21  Bruno Haible  <bruno@clisp.org>
61810         Fix cross-compilation guesses on Solaris.
61811         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
61812         not match "solaris2.10".
61813         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
61814         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
61815         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
61817 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
61819         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
61820         This fixes a problem observed with the latest coreutils snapshot
61821         that caused a test to fail on Solaris 8.  src/csplit.c's call
61822         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
61823         earlier, instead of returning the number of bytes that would have
61824         been generated; this causes csplit to incorrectly report memory
61825         exhaustion.
61826         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
61827         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
61828         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
61829         comments to match.
61830         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
61831         Fix typo in matching older versions of Solaris: "solaris2.10"
61832         is matched by the shell pattern "solaris2.[0-9]*".  This matters
61833         only for guessing while cross-compiling.
61834         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
61836 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
61838         ftoastr: fix comment again
61839         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
61840         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
61841         Also, simplify example a bit by using flags = 0.
61843 2010-12-20  Bruno Haible  <bruno@clisp.org>
61845         round*, trunc*: Update documentation regarding glibc.
61846         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
61847         * doc/posix-functions/round.texi: Likewise.
61848         * doc/posix-functions/roundl.texi: Likewise.
61849         * doc/posix-functions/truncf.texi: Likewise.
61850         * doc/posix-functions/trunc.texi: Likewise.
61851         * doc/posix-functions/truncl.texi: Likewise.
61853 2010-12-20  Bruno Haible  <bruno@clisp.org>
61855         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
61856         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
61857         * doc/posix-functions/round.texi: Likewise.
61858         * doc/posix-functions/roundl.texi: Likewise.
61860 2010-12-20  Bruno Haible  <bruno@clisp.org>
61862         ttyname_r: Add missing declaration on HP-UX 11.
61863         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
61864         HAVE_TTYNAME_R.
61865         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
61866         declared. Set HAVE_TTYNAME_R always.
61867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61868         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
61869         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
61870         HAVE_TTYNAME_R.
61871         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
61873 2010-12-20  Bruno Haible  <bruno@clisp.org>
61875         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
61876         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
61877         * doc/posix-functions/getlogin_r.texi: Likewise.
61878         * tests/test-getlogin.c: Include <errno.h>.
61879         (main): Avoid test failure on HP-UX 11.11.
61880         * tests/test-getlogin_r.c (main): Likewise.
61882 2010-12-20  Bruno Haible  <bruno@clisp.org>
61884         getlogin_r: Add missing declaration on HP-UX 11.
61885         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
61886         declared also when it exists as a function.
61887         * doc/posix-functions/getlogin_r.texi: Document this workaround.
61889 2010-12-20  Bruno Haible  <bruno@clisp.org>
61891         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
61892         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
61893         through wcrtomb.
61895 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
61897         ftoastr: fix comment
61898         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
61899         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
61901 2010-12-19  Bruno Haible  <bruno@clisp.org>
61903         isnan: Ensure it is a macro.
61904         * lib/math.in.h (isnan): Define as a macro if not already a macro.
61905         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
61906         Solaris.
61908 2010-12-19  Bruno Haible  <bruno@clisp.org>
61910         ldexpl test: Fix link error on OSF/1 5.1.
61911         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
61913 2010-12-19  Bruno Haible  <bruno@clisp.org>
61915         wctype: Make it work in C++ mode on OSF/1 5.1.
61916         * lib/wctype.in.h (iswblank): Declare but not define here.
61917         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
61918         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
61919         * modules/wctype (Files): Add lib/iswblank.c.
61921 2010-12-19  Bruno Haible  <bruno@clisp.org>
61923         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
61924         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
61925         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
61927 2010-12-19  Bruno Haible  <bruno@clisp.org>
61929         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
61930         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
61931         _POSIX_PII_SOCKET.
61932         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
61933         * doc/posix-functions/recvfrom.texi: Likewise.
61934         * doc/posix-functions/send.texi: Likewise.
61935         * doc/posix-functions/sendto.texi: Likewise.
61937 2010-12-19  Bruno Haible  <bruno@clisp.org>
61939         tcgetsid: Add missing declaration on OSF/1 5.1.
61940         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
61941         HAVE_TCGETSID.
61942         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
61943         Don't set HAVE_TCGETSID.
61944         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
61945         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
61946         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
61947         HAVE_TCGETSID.
61948         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
61950 2010-12-19  Bruno Haible  <bruno@clisp.org>
61952         stdio: Fix problem with popen() declaration on OSF/1 5.1.
61953         * lib/stdio.in.h: During the include_next statement, let recursive
61954         includes of this file include only the system header file.
61956 2010-12-19  Bruno Haible  <bruno@clisp.org>
61958         iconv_open: Fix regression from 2010-12-04.
61959         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
61960         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
61962 2010-12-19  Bruno Haible  <bruno@clisp.org>
61964         stdbool test: Avoid a gcc warning.
61965         * tests/test-stdbool.c (main): Fail if e1 is false.
61966         Reported by Jim Meyering.
61968 2010-12-19  Jim Meyering  <meyering@redhat.com>
61970         setenv: restore to working order
61971         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
61972         mistakenly removed.
61973         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
61974         HAVE_SETENV.
61975         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
61976         HAVE_SETENV.
61978 2010-12-19  Bruno Haible  <bruno@clisp.org>
61980         Document some different function declarations on OSF/1 5.1.
61981         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
61982         * doc/posix-functions/inet_ntop.texi: Likewise.
61983         * doc/posix-functions/gethostname.texi: Likewise.
61984         * lib/unistd.in.h (gethostname): Update comment.
61986 2010-12-19  Bruno Haible  <bruno@clisp.org>
61988         doc: Mention vasprintf-posix module.
61989         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
61990         the 'vasprintf-posix' module.
61991         * doc/glibc-functions/vasprintf.texi: Likewise.
61993 2010-12-19  Bruno Haible  <bruno@clisp.org>
61995         unsetenv: Add missing declaration on OSF/1 5.1.
61996         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
61997         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
61998         Don't set HAVE_UNSETENV. In the test program, set _BSD.
61999         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
62000         not HAVE_UNSETENV.
62001         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
62002         HAVE_UNSETENV.
62003         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
62005 2010-12-19  Bruno Haible  <bruno@clisp.org>
62007         setenv: Add missing declaration on OSF/1 5.1.
62008         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
62009         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
62010         declared. Don't set HAVE_SETENV.
62011         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
62012         not HAVE_SETENV.
62013         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
62014         HAVE_SETENV.
62015         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
62017 2010-12-19  Bruno Haible  <bruno@clisp.org>
62019         nl_langinfo tests: Avoid gcc warning.
62020         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
62022 2010-12-19  Bruno Haible  <bruno@clisp.org>
62024         mknod: Avoid error in C++ mode on OSF/1 with GCC.
62025         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
62026         _GL_CXXALIAS_SYS.
62028 2010-12-19  Bruno Haible  <bruno@clisp.org>
62030         stdbool: Relax test.
62031         * tests/test-stdbool.c (e): Don't require that casts from a variable's
62032         address to 'bool' work in static initializer, for compilers other than
62033         GCC.
62035 2010-12-19  Bruno Haible  <bruno@clisp.org>
62037         ftello: Add missing declaration on OSF/1 5.1.
62038         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
62039         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
62040         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
62041         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
62042         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
62044 2010-12-19  Bruno Haible  <bruno@clisp.org>
62046         fseeko: Add missing declaration on OSF/1 5.1.
62047         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
62048         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
62049         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
62050         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
62051         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
62053 2010-12-19  Bruno Haible  <bruno@clisp.org>
62055         fchdir: Add missing declaration on OSF/1 5.1.
62056         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
62057         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
62058         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
62059         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
62060         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
62062 2010-12-19  Bruno Haible  <bruno@clisp.org>
62064         relocatable-prog-wrapper: Separate from relocatable-prog.
62065         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
62066         uninstall-relocwrapper rule here.
62067         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
62068         Reported by Ian Beckwith <ianb@erislabs.net>.
62070 2010-12-19  Bruno Haible  <bruno@clisp.org>
62072         unistr/u8-mbsnlen: Add missing dependency.
62073         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
62074         Reported by Ian Beckwith <ianb@erislabs.net>.
62076 2010-12-19  Bruno Haible  <bruno@clisp.org>
62078         iconv: Make it possible again to use this module without 'iconv-h'.
62079         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
62080         if it is not defined.
62081         Reported by Ian Beckwith <ianb@erislabs.net>.
62083 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62085         acl: port to Solaris 8 when copying from tmpfs to ufs
62086         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
62087         error number.  Problem observed on Solaris 8 with latest
62088         coreutils, with "mv A B", where A is on a tmpfs file system and B
62089         is on a ufs file system.  This caused coreutils' mv/part-symlink
62090         test to fail.
62092         tests: set fail=0 at start
62093         * tests/init.sh (setup_): Move fail=0 initialization here ...
62094         (mktempd_): ... from here, so that tests can rely on fail being
62095         set to 0 initially.  This fixes a problem in coreutils; see:
62096         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
62098 2010-12-18  Bruno Haible  <bruno@clisp.org>
62100         memmem-simple: Stylistic changes.
62101         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
62102         Fix preprocessor directive indentation.
62104 2010-12-15  Pádraig Brady  <P@draigBrady.com>
62106         memmem, memmem-simple: reorganize and expand empty needle check
62107         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
62108         functional checks to memmem-simple so that one has a fully functional
62109         memmem by using just this module.
62110         Restrict the performance only check to the memmem module.
62111         Also expand the empty needle check to ensure the correct
62112         pointer is returned, not just a non NULL pointer.
62113         * doc/glibc-functions/memmem.texi: Rearrange the portability
62114         documentation to correlate with the rearranged checks.
62115         Clarify exactly how the memmem and memmem-simple modules
62116         relate to each other.
62118 2010-12-15  Pádraig Brady  <P@draigBrady.com>
62119             Bruno Haible  <bruno@clisp.org>
62121         Improve cross-compilation guesses for uClibc.
62122         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
62123         that uClibc does not have the glibc bug.
62124         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
62125         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
62127 2010-12-14  Eric Blake  <eblake@redhat.com>
62129         configmake: provide fallbacks for oldest supported autotools
62130         * m4/configmake.m4: New file.
62131         * modules/configmake (Files): Ship it.
62132         (configure.ac): Use it to guarantee fallbacks.
62134 2010-12-13  Pádraig Brady  <P@draigBrady.com>
62136         read-file: Improve handling of large files
62137         * lib/read-file.c (fread_file): Minimize realloc()s
62138         for regular files, and better manage sizes around SIZE_MAX.
62140 2010-12-13  Eric Blake  <eblake@redhat.com>
62142         cloexec, fcntl: relax license
62143         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
62144         consent from all contributors.
62145         * modules/fcntl (License): Likewise.
62147 2010-12-10  Bruno Haible  <bruno@clisp.org>
62149         Tests for module 'pipe-posix'.
62150         * modules/pipe-posix-tests: New file.
62151         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
62153 2010-12-10  Bruno Haible  <bruno@clisp.org>
62155         pipe-posix: Make it work in C++ mode.
62156         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
62157         (pipe): Use common idiom, not a macro definition.
62158         * lib/pipe.c: New file.
62159         * m4/pipe.m4: New file.
62160         * modules/pipe-posix (Description): Enhance.
62161         (Files): Add lib/pipe.c, m4/pipe.m4.
62162         (configure.ac): Invoke gl_FUNC_PIPE.
62163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
62164         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
62165         * tests/test-unistd-c++.cc: Check the signature of pipe.
62167 2010-12-10  Bruno Haible  <bruno@clisp.org>
62169         Rename module 'pipe' to 'spawn-pipe'.
62170         * modules/spawn-pipe: New file, renamed from modules/pipe.
62171         (Files, configure.ac, Makefile.am): Update.
62172         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
62173         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
62174         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
62175         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
62176         "spawn-pipe.h" instead of "pipe.h".
62177         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
62178         to gl_SPAWN_PIPE.
62179         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
62180         (Files, Makefile.am): Update.
62181         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
62182         Update.
62183         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
62184         Include "spawn-pipe.h" instead of "pipe.h".
62185         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
62186         * lib/javacomp.c: Likewise.
62187         * lib/javaversion.c: Likewise.
62188         * lib/pipe-filter-gi.c: Likewise.
62189         * lib/pipe-filter-ii.c: Likewise.
62190         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
62191         * modules/javacomp (Depends-on): Likewise.
62192         * modules/javaversion (Depends-on): Likewise.
62193         * modules/pipe-filter-gi (Depends-on): Likewise.
62194         * modules/pipe-filter-ii (Depends-on): Likewise.
62195         * MODULES.html.sh (Executing programs): Update.
62196         * NEWS: Mention the change.
62198 2010-12-10  Eric Blake  <eblake@redhat.com>
62200         pipe-posix: new module
62201         * modules/pipe-posix: New file.
62202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
62203         (gl_UNISTD_H): Check for declaration.
62204         * modules/unistd (Makefile.am): Substitute it.
62205         * lib/unistd.in.h (pipe): Provide it for mingw.
62206         * doc/posix-functions/pipe.texi (pipe): Update documentation.
62207         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
62209 2010-12-07  Bruno Haible  <bruno@clisp.org>
62211         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
62212         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
62213         u8_strcmp_gnu.
62214         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
62216 2010-12-06  Bruno Haible  <bruno@clisp.org>
62218         Update internal documentation.
62219         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
62221 2010-12-04  Bruno Haible  <bruno@clisp.org>
62223         Put more information about failed tests into the test return codes.
62224         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
62225         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
62226         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
62227         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
62228         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
62229         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62230         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62231         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
62232         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
62233         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62234         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
62235         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
62236         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
62237         * m4/stdint.m4 (gl_STDINT_H): Likewise.
62238         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
62239         returns a bit mask.
62240         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
62241         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
62242         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
62243         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
62244         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
62245         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
62246         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
62247         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
62248         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
62249         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
62250         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
62251         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
62252         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
62253         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
62254         * m4/link.m4 (gl_FUNC_LINK): Likewise.
62255         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
62256         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
62257         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
62258         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
62259         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
62260         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62261         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
62262         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
62263         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
62264         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
62265         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
62266         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
62267         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
62268         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
62269         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
62270         gl_PRINTF_PRECISION): Likewise.
62271         * m4/regex.m4 (gl_REGEX): Likewise.
62272         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
62273         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
62274         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
62275         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
62276         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62277         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
62278         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
62279         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
62280         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
62281         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62282         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
62283         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
62284         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
62285         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
62286         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
62287         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
62288         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
62289         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
62290         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62291         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
62292         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
62293         enumerated value.
62294         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
62296 2010-12-04  Bruno Haible  <bruno@clisp.org>
62298         Update for Solaris 11 2010-11.
62299         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
62300         Express, released in November 2010.
62302 2010-12-04  Bruno Haible  <bruno@clisp.org>
62304         nproc: Relax license.
62305         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
62306         and Paul Eggert.
62307         Requested by Ludovic Courtès <ludo@gnu.org>.
62309 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
62311         utimecmp: fine-grained src to nearby coarse-grained dest
62313         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
62314         and the source is on a file system with higher-resolution time
62315         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
62316         not work, and the time stamps are close together, the algorithm to
62317         determine the exact resolution from the read-back mtime was buggy:
62318         it had a "!=" where it should have had an "==".  This bug has been
62319         in the code ever since it was introduced to gnulib.
62320         Problem reported by Dan Jacobson in
62321         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
62323 2010-11-30  Bruno Haible  <bruno@clisp.org>
62325         strerror_r-posix: Fix autoconf test.
62326         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
62328 2010-11-28  Bruno Haible  <bruno@clisp.org>
62329             Paul Eggert  <eggert@cs.ucla.edu>
62331         Tests for module 'getdomainname'.
62332         * modules/getdomainname-tests: New file.
62333         * tests/test-getdomainname.c: New file, based on
62334         tests/test-gethostname.c.
62336 2010-11-28  Bruno Haible  <bruno@clisp.org>
62337             Paul Eggert  <eggert@cs.ucla.edu>
62339         getdomainname: Use the system function when possible.
62340         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
62341         (getdomainname): Replace if needed. Provide the declaration if it is
62342         missing. Don't use _GL_CXXALIAS_SYS_CAST.
62343         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
62344         (getdomainname): When the system has getdomainname, call the system
62345         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
62346         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
62347         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
62348         found in libnsl. Look for the declaration also in <netdb.h>. Replace
62349         the function if its second argument is of type 'int' or if it is found
62350         in libnsl.
62351         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
62352         <sys/systeminfo.h> and sysinfo().
62353         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
62354         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62355         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
62356         HAVE_GETDOMAINNAME.
62357         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
62358         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
62359         * doc/glibc-functions/getdomainname.texi: Document the problems with
62360         the getdomainname declaration.
62362 2010-11-28  Bruno Haible  <bruno@clisp.org>
62364         sys_socket: Ensure ss_family field on AIX.
62365         * lib/sys_socket.in.h (ss_family): New macro definition.
62366         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
62367         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
62368         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
62369         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
62370         * modules/sys_socket (Makefile.am): Substitute
62371         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
62372         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
62374 2010-11-27  Bruno Haible  <bruno@clisp.org>
62376         readline: Improve configure output.
62377         * m4/readline.m4 (gl_FUNC_READLINE): Make the
62378         "checking for readline..." result understandable.
62380 2010-11-27  Bruno Haible  <bruno@clisp.org>
62382         *printf-posix: Detect a bug on Solaris 10/x86.
62383         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
62384         for floating-point output.
62385         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
62386         directive.
62387         * tests/test-snprintf-posix.h (test_function): Likewise.
62388         * tests/test-sprintf-posix.h (test_function): Likewise.
62389         * tests/test-vasprintf-posix.c (test_function): Likewise.
62390         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
62391         * doc/posix-functions/printf.texi: Likewise.
62392         * doc/posix-functions/snprintf.texi: Likewise.
62393         * doc/posix-functions/sprintf.texi: Likewise.
62394         * doc/posix-functions/vfprintf.texi: Likewise.
62395         * doc/posix-functions/vprintf.texi: Likewise.
62396         * doc/posix-functions/vsnprintf.texi: Likewise.
62397         * doc/posix-functions/vsprintf.texi: Likewise.
62398         * doc/glibc-functions/obstack_printf.texi: Likewise.
62399         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
62401 2010-11-27  Bruno Haible  <bruno@clisp.org>
62403         Fix link error when module libunistring-optional is in use.
62404         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
62405         * modules/striconveha-tests (Makefile.am): Likewise.
62407 2010-11-27  Bruno Haible  <bruno@clisp.org>
62409         regex: Mention link dependencies.
62410         * modules/regex (Link): New section.
62411         * modules/rpmatch (Link): Likewise.
62412         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
62414 2010-11-27  Bruno Haible  <bruno@clisp.org>
62416         ftoastr: Fix compilation error on Solaris.
62417         * lib/ftoastr.c: Include <config.h>.
62419 2010-11-27  Bruno Haible  <bruno@clisp.org>
62421         getloadavg: Update documentation.
62422         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
62424 2010-11-27  Bruno Haible  <bruno@clisp.org>
62426         sys_socket: Fix test whether the functions are declared.
62427         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
62428         not <sys/select.h>.
62430 2010-11-27  Bruno Haible  <bruno@clisp.org>
62432         getpass: Make sure to get system declaration on some platforms.
62433         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
62434         gl_USE_SYSTEM_EXTENSIONS.
62435         * modules/getpass (Depends-on): Add extensions.
62437 2010-11-26  Bruno Haible  <bruno@clisp.org>
62439         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
62440         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
62441         'iconv' module is present.
62442         (ICONV_CONST): New macro.
62443         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
62444         ICONV_CONST.
62445         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
62446         set ICONV_CONST.
62447         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
62448         here.
62449         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
62450         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
62451         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
62452         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
62453         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
62454         present.
62456 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
62458         ftoastr: comment fix
62459         * lib/ftoastr.c: "little" -> "little or no" in comment
62461 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
62463         stdint: port to GCC 4.3 + OSX + Octave
62464         On this platform, stdint.h is buggy and defines int64_t to long
62465         long int.  The replacement defined it to long int, causing
62466         problems with C++ style name mangling.  Instead, trust the system
62467         definition if INT64_MAX is defined, and likewise for the unsigned
62468         variant.   Problem reported by Jarno Rajahalme in
62469         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
62470         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
62471         and don't mess with int64_t and INT64_MAX in this case.
62472         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
62474 2010-11-24  Bruno Haible  <bruno@clisp.org>
62476         doc: Corrections regarding MacOS X 10.4 and 10.5.
62477         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
62478         MacOS X.
62479         Reported by Simon Josefsson.
62481 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
62483         Uninstall ".bin" files installed by relocwrapper.
62484         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
62485         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
62486         unless it is already there.
62488 2010-11-21  Bruno Haible  <bruno@clisp.org>
62490         Update for NetBSD 5.0.
62491         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
62492         NetBSD; the test fails on NetBSD 5.0.
62493         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
62494         about NetBSD.
62496 2010-11-21  Bruno Haible  <bruno@clisp.org>
62498         Update for HP-UX 11.23 and HP-UX 11.31.
62499         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
62500         HP-UX.
62502 2010-11-21  Bruno Haible  <bruno@clisp.org>
62504         Update for MacOS X 10.5.
62505         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
62506         MacOS X; the test fails on MacOS X 10.5.8.
62507         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
62508         about MacOS X.
62510 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
62512         bootstrap: add bootstrap_sync option.
62513         See discussion at
62514         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
62515         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
62516         * build-aux/bootstrap: Accept --bootstrap-sync to update
62517         bootstrap if it is not identical to the local gnulib's
62518         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
62519         enable this by default.  Accept --no-bootstrap-sync to disable
62520         it.
62522 2010-11-20  Bruno Haible  <bruno@clisp.org>
62524         Ensure that <features.h> is included before __GLIBC__ is tested.
62525         * lib/printf-parse.h: Include <features.h>.
62526         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
62527         Reported by Mike Frysinger <vapier@gentoo.org>.
62529         Ensure that <features.h> is included before __GLIBC__ is tested.
62530         * lib/wchar.in.h: Include <features.h>.
62531         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
62532         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
62533         Reported by Mike Frysinger <vapier@gentoo.org>.
62535         Ensure that <features.h> is included before __GLIBC__ is tested.
62536         * lib/arpa_inet.in.h: Include <features.h>.
62537         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
62538         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
62539         Reported by Mike Frysinger <vapier@gentoo.org>.
62541         Ensure that <features.h> is included before __GLIBC__ is tested.
62542         * build-aux/link-warning.h: Include <features.h>.
62543         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
62544         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
62545         Reported by Mike Frysinger <vapier@gentoo.org>.
62547         Ensure that <features.h> is included before __GLIBC__ is tested.
62548         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
62549         Reported by Mike Frysinger <vapier@gentoo.org>.
62551 2010-11-20  Bruno Haible  <bruno@clisp.org>
62553         memmem: Fix autoconf test.
62554         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
62556 2010-11-20  Bruno Haible  <bruno@clisp.org>
62558         Port to uClibc.
62559         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
62560         * lib/fcntl.in.h: Likewise.
62561         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
62562         * lib/mbrtowc.c (mbrtowc): Likewise.
62563         * lib/relocatable.c (find_shared_library_fullname): Likewise.
62564         * lib/strerror_r.c: Likewise.
62565         * lib/unistr/u8-strnlen.c: Likewise.
62566         * lib/vasnprintf.c (decimal_point_char): Likewise.
62567         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
62568         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
62569         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
62570         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
62571         * tests/test-sigaction.c (handler, main): Likewise.
62572         * lib/freading.h: Treat uClibc like a non-glibc platform.
62573         * lib/freading.c: Likewise.
62574         * lib/gettext.h: Likewise.
62575         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
62576         Likewise.
62577         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
62578         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
62579         * lib/propername.c (proper_name_utf8): Likewise.
62580         * lib/spawn.in.h: Likewise.
62581         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
62582         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
62583         mem_cd_iconveh_internal): Likewise.
62584         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
62585         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
62586         strstr, strcasestr): Likewise.
62587         * lib/unicodeio.c (unicode_to_mb): Likewise.
62588         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
62589         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
62590         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
62591         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
62592         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
62593         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
62594         * lib/unistr/u8-stpncpy.c: Likewise.
62595         * lib/vasnprintf.c (VASNPRINTF): Likewise.
62596         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
62597         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62598         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62599         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
62600         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
62601         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
62602         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
62603         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
62604         Likewise.
62605         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
62606         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62607         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
62608         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
62609         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
62610         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
62611         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
62612         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
62613         * tests/test-getopt.h (OPTIND_MIN): Likewise.
62614         * tests/test-striconveha.c (main): Likewise.
62615         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62616         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
62617         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
62618         * doc/posix-functions/getline.texi: Likewise.
62619         Reported by Mike Frysinger <vapier@gentoo.org>.
62621 2010-11-20  Bruno Haible  <bruno@clisp.org>
62623         nproc: Fix condition.
62624         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
62625         HAVE_PTHREAD_AFFINITY_NP.
62627 2010-11-20  Bruno Haible  <bruno@clisp.org>
62629         Fix a comment.
62630         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
62632 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
62634         ftoastr: don't assume snprintf
62635         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
62636         Implement a subset of snprintf here, by using sprintf safely.
62637         * modules/ftoastr (Depends-on): Remove snprintf.
62639 2010-11-19  Jim Meyering  <meyering@redhat.com>
62641         test-rename.h: fix compilation failure
62642         * tests/test-rename.h (test_rename): Add omitted "}".
62644 2010-11-17  Jim Meyering  <meyering@redhat.com>
62646         maint.mk: add a URL discussing the no-@acronym policy
62647         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
62649 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
62651         ftoastr: depend on snprintf, improve comments
62652         * lib/ftoastr.c: Also mention Loitsch's draft.
62653         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
62654         needed in the current implementation, but it might simplify
62655         speeding up the code later.
62656         * modules/ftoastr: Depend on snprintf; this improves portability.
62657         Suggested by Bruno Haible in the same email.
62659         ftoastr: port to hosts lacking strtof and strtold
62660         Problem reported by Bruno Haible in
62661         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
62662         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
62663         environment and strtold (and presumably strtof) are not available.
62664         * modules/ftoastr (Files): Add m4/c-strtod.m4.
62665         (configure.ac): Require gl_C99_STRTOLD.
62667 2010-11-18  Bruno Haible  <bruno@clisp.org>
62669         c-strtold: Avoid link error on AIX 7.
62670         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
62671         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
62672         (gl_C_STRTOLD): Test whether strtold_l exists.
62673         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62675 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62677         intprops: new macro INT_BITS_STRLEN_BOUND
62678         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
62679         ftoastr.h.  This exposes an internal of intprops.h that was formerly
62680         not exposed.  Also, it uses a slightly tighter bound than before;
62681         though this makes no practical difference, we might as well be as
62682         tight as we easily can.
62684         ftoastr: new module, for lossless conversion of floats to short strings
62685         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
62686         * modules/ftoastr: New files.
62688 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62690         bootstrap: port to Solaris sed
62691         * build-aux/bootstrap (get_version): Port to Solaris sed.
62692         See Ralf Wildenhues's note in
62693         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
62695 2010-11-14  Jim Meyering  <meyering@redhat.com>
62697         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
62698         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
62699         and move definition closer to sole use.
62701 2010-11-13  Jim Meyering  <meyering@redhat.com>
62703         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
62704         Now we require at least autoconf-2.59, which means the work-around
62705         is no longer needed.
62706         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
62707         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
62708         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62709         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
62710         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
62712 2010-11-13  Bruno Haible  <bruno@clisp.org>
62714         rename, renameat: Avoid test failures at NFS mounted locations.
62715         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
62716         functions.
62717         (test_rename): Use assert_nonexistent.
62718         * tests/test-rename.c: Include <dirent.h>.
62719         * tests/test-renameat.c: Likewise.
62720         Reported by Gary V. Vaughan <gary@gnu.org>.
62722         rename, renameat: Document Linux bug with NFS
62723         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
62724         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
62725         * doc/posix-functions/renameat.texi: Likewise.
62726         Suggested by Eric Blake.
62728 2010-11-13  Bruno Haible  <bruno@clisp.org>
62730         rename test: Add comments.
62731         * tests/test-rename.h (test_rename): Add structure and comments.
62733 2010-11-13  Eric Blake  <eblake@redhat.com>
62735         maintainer-makefile: cover a few more files
62736         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
62737         scripts generated within C files, for libvirt.
62739 2010-11-13  Bruno Haible  <bruno@clisp.org>
62741         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
62742         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
62743         character, return the number of bytes that belong together, not always
62744         1.
62745         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
62746         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
62747         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
62748         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
62749         number of bytes of an invalid character.
62750         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
62751         (main): Invoke it.
62752         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
62753         results.
62754         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
62755         malformed byte sequences.
62756         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
62757         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
62758         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
62759         Reported by Ben Pfaff and Paolo Bonzini.
62761 2010-11-13  Bruno Haible  <bruno@clisp.org>
62763         openat: Work around glibc bug with fchownat() and empty file names.
62764         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
62765         (gl_FUNC_FCHOWNAT): Invoke it.
62766         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
62767         * doc/posix-functions/fchownat.texi: Document the glibc bug.
62768         Reported by Gary V. Vaughan <gary@gnu.org>.
62770 2010-11-13  Bruno Haible  <bruno@clisp.org>
62772         openat: Ensure autoconf macro ordering.
62773         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
62774         gl_USE_SYSTEM_EXTENSIONS.
62775         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
62777 2010-11-13  Bruno Haible  <bruno@clisp.org>
62779         Update comments.
62780         * lib/unistr/u8-check.c: Update file name in comments.
62781         * lib/unistr/u8-mblen.c: Likewise.
62782         * lib/unistr/u8-prev.c: Likewise.
62783         * lib/unistr/u8-strmblen.c: Likewise.
62784         * lib/unistr/u8-strmbtouc.c: Likewise.
62786 2010-11-13  Jim Meyering  <meyering@redhat.com>
62788         tests: avoid test failure on Solaris 10 due to lack of PATH export
62789         * tests/test-update-copyright.sh: Don't forget to export PATH.
62791         init.sh: ensure that IFS is defined, just in case...
62792         * tests/init.sh (setup_): Ensure that IFS is defined,
62793         so that saving and restoring it works as expected.  This
62794         appears to be useful at least for an old version of dash
62795         from a long time ago (RH 6).  See here for details:
62796         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
62798         maint.mk: tighten "test a == b" check
62799         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
62800         test to files that contain something like #!/bin/sh.
62801         Without this, coreutils would get two false positives in
62802         the comments of C source files.
62804 2010-11-12  Eric Blake  <eblake@redhat.com>
62806         bootstrap: fix typo in previous attempt
62807         * build-aux/bootstrap (buildreq): Correct the grouping.
62808         Reported by Paul Eggert.
62810         maintainer-makefile: prohibit test x == x
62811         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
62812         Based on a report by Matthias Bolte.
62814         bootstrap: allow FreeBSD gzip
62815         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
62816         which has no '.' and goes to stderr.
62817         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
62818         Reported by Matthias Bolte.
62820         maintainer-makefile: check for i18n setup
62821         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
62822         will likely work.
62824 2010-11-12  Bruno Haible  <bruno@clisp.org>
62826         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
62827         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
62828         * lib/nanosleep.c (nanosleep): Likewise.
62830 2010-11-11  Bruno Haible  <bruno@clisp.org>
62832         fcntl-h: Fix for use of C++ on glibc systems.
62833         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
62834         also on glibc systems in C++ mode.
62835         Reported by Gary V. Vaughan <gary@gnu.org>.
62837 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
62839         mknod: avoid false failure with dash
62840         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
62842 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
62844         unlink: Fix "is it should" typo in diagnostic.
62845         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
62846         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
62848 2010-11-11  Bruno Haible  <bruno@clisp.org>
62850         Tests for module 'strerror_r-posix'.
62851         * modules/strerror_r-posix-tests: New file.
62852         * tests/test-strerror_r.c: New file.
62853         * tests/test-string-c++.cc: Check the signature of strerror_r.
62855         New module 'strerror_r-posix'.
62856         * lib/string.in.h (strerror_r): New declaration.
62857         * lib/strerror_r.c: New file.
62858         * m4/strerror_r.m4: New file.
62859         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
62860         of strerror_r.
62861         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
62862         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
62863         * modules/strerror_r-posix: New file.
62864         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
62865         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
62866         * doc/posix-functions/strerror_r.texi: Mention the new module and the
62867         portability problems.
62869 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
62871         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
62872         line is also considered for output. Quoted function name in shell
62873         command, so temporary files for functions like MyClass::operator()
62874         are removed correctly without errors.
62876 2010-11-09  Bruno Haible  <bruno@clisp.org>
62878         * doc/posix-functions/strerror.texi: List more failing platforms.
62880         * doc/posix-functions/strerror.texi: Add a comment.
62882 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62884         fdopendir: fix bug on MacOS X when low on file descriptors
62886         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
62887         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
62888         All callers changed.
62889         (fdopendir): Invoke save_cwd at the top level, not after using
62890         multiple dup() calls to use up file descriptors.  Then retry
62891         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
62892         less than the maximum number of open file descriptors, because
62893         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
62894         on Mac OS X 10.6.4 for tar 1.24
62895         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
62896         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
62897         and for tar 1.25
62898         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
62900 2010-11-07  Bruno Haible  <bruno@clisp.org>
62902         vasnprintf: Support I flag on glibc systems.
62903         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
62904         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
62905         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
62906         snprintf function.
62907         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
62908         glibc systems.
62909         * tests/test-vasnprintf-posix3.c: New file.
62910         * modules/vasnprintf-posix-tests (Files): Add it.
62911         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
62913 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62915         [html] Fix copy/paste bug: Use unique name for compiler warnings.
62916         * MODULES.html.sh: For compiler warnings, use name
62917         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
62919 2010-11-05  Eric Blake  <eblake@redhat.com>
62921         ceil, floor: avoid spurious failure with icc
62922         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
62923         [denormals-as-zero] when optimizing without -mieee-fp option.
62924         * tests/test-floorf2.c (floorf_reference): Likewise.
62925         * tests/test-ceilf1.c (dummy): New function.
62926         (main): Use it to outsmart icc's optimization.
62927         * tests/test-floorf1.c (dummy, main): Likewise.
62929         tests: require working signbit
62930         * modules/ceilf-tests (Depends-on): Add signbit.
62931         * modules/ceill-tests (Depends-on): Likewise.
62932         * modules/floorf-tests (Depends-on): Likewise.
62933         * modules/floorl-tests (Depends-on): Likewise.
62934         * modules/round-tests (Depends-on): Likewise.
62935         * modules/roundf-tests (Depends-on): Likewise.
62936         * modules/roundl-tests (Depends-on): Likewise.
62937         * modules/trunc-tests (Depends-on): Likewise.
62938         * modules/truncf-tests (Depends-on): Likewise.
62939         * modules/truncl-tests (Depends-on): Likewise.
62941         strtod: work around icc bug
62942         * lib/strtod.c (minus_zero): Define to working value.
62943         (strtod): Use it to avoid icc bug.
62945         copysign: enhance tests
62946         * modules/copysign-tests (Files): Add minus-zero.h.
62947         * tests/test-copysign.c (main): Also test zeros.
62949 2010-11-04  Eric Blake  <eblake@redhat.com>
62951         ceil, floor, round, trunc: enhance tests of -0
62952         * tests/test-ceilf1.c (main): Ensure correct sign of result.
62953         * tests/test-ceill.c (main): Likewise.
62954         * tests/test-floorf1.c (main): Likewise.
62955         * tests/test-floorl.c (main): Likewise.
62956         * tests/test-round1.c (main): Likewise.
62957         * tests/test-roundf1.c (main): Likewise.
62958         * tests/test-roundl.c (main): Likewise.
62959         * tests/test-trunc1.c (main): Likewise.
62960         * tests/test-truncf1.c (main): Likewise.
62961         * tests/test-truncl.c (main): Likewise.
62963 2010-11-04  Eric Blake  <eblake@redhat.com>
62965         frexp, tests: work around ICC bug with -zero
62966         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
62967         works with more compilers.
62968         * tests/minus-zero.h: New file.
62969         * modules/ceilf-tests (Files): Include it.
62970         * modules/ceill-tests (Files): Likewise.
62971         * modules/floorf-tests (Files): Likewise.
62972         * modules/floorl-tests (Files): Likewise.
62973         * modules/frexp-nolibm-tests (Files): Likewise.
62974         * modules/frexp-tests (Files): Likewise.
62975         * modules/frexpl-nolibm-tests (Files): Likewise.
62976         * modules/frexpl-tests (Files): Likewise.
62977         * modules/isnan-tests (Files): Likewise.
62978         * modules/isnand-nolibm-tests (Files): Likewise.
62979         * modules/isnand-tests (Files): Likewise.
62980         * modules/isnanf-nolibm-tests (Files): Likewise.
62981         * modules/isnanf-tests (Files): Likewise.
62982         * modules/isnanl-nolibm-tests (Files): Likewise.
62983         * modules/isnanl-tests (Files): Likewise.
62984         * modules/round-tests (Files): Likewise.
62985         * modules/roundf-tests (Files): Likewise.
62986         * modules/roundl-tests (Files): Likewise.
62987         * modules/ldexpl-tests (Files): Likewise.
62988         * modules/signbit-tests (Files): Likewise.
62989         * modules/snprintf-posix-tests (Files): Likewise.
62990         * modules/sprintf-posix-tests (Files): Likewise.
62991         * modules/strtod-tests (Files): Likewise.
62992         * modules/trunc-tests (Files): Likewise.
62993         * modules/truncf-tests (Files): Likewise.
62994         * modules/truncl-tests (Files): Likewise.
62995         * modules/vsnprintf-posix-tests (Files): Likewise.
62996         * modules/vsprintf-posix-tests (Files): Likewise.
62997         * modules/vasnprintf-posix-tests (Files): Likewise.
62998         * modules/vasprintf-posix-tests (Files): Likewise.
62999         * tests/test-ceilf1.c (main): Use it.
63000         * tests/test-ceill.c (main): Likewise.
63001         * tests/test-floorf1.c (main): Likewise.
63002         * tests/test-floorl.c (main): Likewise.
63003         * tests/test-frexp.c (main): Likewise.
63004         * tests/test-frexpl.c (main): Likewise.
63005         * tests/test-isnan.c (main): Likewise.
63006         * tests/test-isnand.h (main): Likewise.
63007         * tests/test-isnanf.h (main): Likewise.
63008         * tests/test-isnanl.h (main): Likewise.
63009         * tests/test-ldexpl.c (main): Likewise.
63010         * tests/test-round.c (main): Likewise.
63011         * tests/test-roundf.c (main): Likewise.
63012         * tests/test-roundl.c (main): Likewise.
63013         * tests/test-signbit.c (test_signbitf, test_signbitd)
63014         (test_signbitl): Likewise.
63015         * tests/test-snprintf-posix.h (test_function): Likewise.
63016         * tests/test-sprintf-posix.h (test_function): Likewise.
63017         * tests/test-strtod.c (main): Likewise.
63018         * tests/test-trunc1.c (main): Likewise.
63019         * tests/test-truncf1.c (main): Likewise.
63020         * tests/test-truncl.c (main): Likewise.
63022         isnanl: work around icc bug
63023         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
63025 2010-11-03  Eric Blake  <eblake@redhat.com>
63027         tests: fix compiler warnings
63028         * tests/test-getopt.h (test_getopt): Fix condition.
63029         * tests/test-getopt_long.h (test_getopt_long): Likewise.
63030         * tests/test-pipe2.c (main): Likewise.
63031         * tests/test-quotearg-simple.c (main): Avoid icc warning.
63033         utimens: fix broken m4 test
63034         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
63036 2010-10-28  Bruno Haible  <bruno@clisp.org>
63038         posix_spawn*, getdtablesize: Relax license.
63039         * modules/posix_spawn (License): Change to LGPLv2+.
63040         * modules/posix_spawnp (License): Likewise.
63041         * modules/posix_spawn-internal (License): Likewise.
63042         * modules/posix_spawnattr_init (License): Likewise.
63043         * modules/posix_spawnattr_getflags (License): Likewise.
63044         * modules/posix_spawnattr_setflags (License): Likewise.
63045         * modules/posix_spawnattr_getpgroup (License): Likewise.
63046         * modules/posix_spawnattr_setpgroup (License): Likewise.
63047         * modules/posix_spawnattr_getschedparam (License): Likewise.
63048         * modules/posix_spawnattr_setschedparam (License): Likewise.
63049         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
63050         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
63051         * modules/posix_spawnattr_getsigdefault (License): Likewise.
63052         * modules/posix_spawnattr_setsigdefault (License): Likewise.
63053         * modules/posix_spawnattr_getsigmask (License): Likewise.
63054         * modules/posix_spawnattr_setsigmask (License): Likewise.
63055         * modules/posix_spawnattr_destroy (License): Likewise.
63056         * modules/posix_spawn_file_actions_init (License): Likewise.
63057         * modules/posix_spawn_file_actions_addclose (License): Likewise.
63058         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
63059         * modules/posix_spawn_file_actions_addopen (License): Likewise.
63060         * modules/posix_spawn_file_actions_destroy (License): Likewise.
63061         * modules/getdtablesize (License): Likewise.
63062         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
63064 2010-10-26  Bruno Haible  <bruno@clisp.org>
63066         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
63067         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
63068         Cygwin and mingw.
63069         Suggested by Eric Blake.
63071 2010-10-26  Bruno Haible  <bruno@clisp.org>
63073         stdio: Work around compilation error due to renameat() on Solaris 10.
63074         * lib/stdio.in.h: Include <unistd.h> on Solaris.
63075         * lib/renameat.c: Don't include <unistd.h> here.
63076         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
63077         Reported by Paul Eggert and Eric Blake.
63079 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
63081         renameat: port to Solaris 10, which declares renameat in unistd.h
63083         * lib/renameat.c: Include unistd.h before stdio.h, because
63084         Solaris 10 declares renameat in unistd.h.  Problem encountered
63085         when building GNU tar 1.24 on Solaris 10.
63087 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
63089         fdopendir: fix C89 compilation
63090         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
63091         compilers.
63093 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
63095         inttostr: simplify by removing unnecessary redundancy
63096         * lib/anytostr.c: Don't include verify.h.
63097         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
63098         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
63099         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
63100         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
63101         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
63102         Likewise.
63103         * modules/inttostr (Depends-on): Remove 'verify'.
63105 2010-10-23  Bruno Haible  <bruno@clisp.org>
63107         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
63108         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
63109         Reported by Eric Blake.
63111 2010-10-23  Bruno Haible  <bruno@clisp.org>
63113         Tests: Fix LOCALE_JA on MirBSD 10.
63114         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
63115         to an UTF-8 locale.
63116         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
63117         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63118         Reported by Eric Blake.
63120 2010-10-21  Bruno Haible  <bruno@clisp.org>
63122         nl_langinfo test: Avoid test failure on NetBSD 5.
63123         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
63124         Reported by Eric Blake.
63126 2010-10-21  Eric Blake  <eblake@redhat.com>
63128         c-stack: work around libsigsegv 2.8 bug
63129         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
63130         overflow on at least PowerPC64.
63132 2010-10-17  Bruno Haible  <bruno@clisp.org>
63134         userspec: Drop redundant file.
63135         * modules/userspec (Files): Remove lib/inttostr.h.
63137 2010-10-17  Bruno Haible  <bruno@clisp.org>
63139         nl_langinfo tests: Silence some warnings.
63140         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
63141         Reported by Jim Meyering.
63143 2010-10-17  Bruno Haible  <bruno@clisp.org>
63145         Make use of GCC's attribute __alloc_size__.
63146         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
63147         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
63148         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
63149         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
63150         __alloc_size__.
63151         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
63152         Suggested by Jim Meyering.
63154 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
63156         bootstrap: anchor .gitignore entries.
63157         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
63158         with...
63159         (insert_vc_ignore): ... this new function, which prepends `/' to
63160         all .gitignore entries before passing them to
63161         insert_sorted_if_absent.
63163 2010-10-16  Bruno Haible  <bruno@clisp.org>
63165         nextafter: Fix configure check.
63166         * modules/nextafter (configure.ac): Correct expected prototype.
63168 2010-10-16  Bruno Haible  <bruno@clisp.org>
63170         termios: Update documentation.
63171         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
63173 2010-10-16  Bruno Haible  <bruno@clisp.org>
63175         tests: Make them compile with TinyCC.
63176         * tests/test-strstr.c (main): Remove parentheses around array
63177         initializer.
63179 2010-10-15  Eric Blake  <eblake@redhat.com>
63181         ignore-value: make header idempotent
63182         * lib/ignore-value.h: Add double-inclusion guards.
63183         Reported by Stefan Berger.
63185 2010-10-15  Jim Meyering  <meyering@redhat.com>
63187         GNUmakefile: handle "stable" target, not "major"
63188         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
63189         lists in maint.mk and announce-gen.  Without this, "make stable"
63190         would fail to ensure that $(VERSION) is up to date.
63192 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
63194         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
63195         & co.
63197 2010-10-14  Bruno Haible  <bruno@clisp.org>
63199         vasnprintf: Don't set errno to 0.
63200         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
63201         block that sets it to 0.
63202         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
63204 2010-10-14  Bruno Haible  <bruno@clisp.org>
63206         socketlib: Fix.
63207         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
63208         gl_PREREQ_SYS_H_WINSOCK2.
63209         Reported by Ian Beckwith <ianb@erislabs.net>.
63211 2010-10-13  Jim Meyering  <meyering@redhat.com>
63213         test-select-stdin.c: avoid warn_unused_result warnings
63214         * tests/test-select-stdin.c: Include "macros.h".
63215         ASSERT that read and fflush succeed.
63217 2010-10-13  Jim Meyering  <meyering@redhat.com>
63219         git-version-gen: do require git-VC'd files in cwd
63220         * build-aux/git-version-gen: Reject a git version string
63221         if there are no commits associated with the current directory.
63222         This avoids an unlikely false-positive (unrelated dir whose parent
63223         repository also contains a tag matching v*), as pointed out
63224         by Giuseppe Scrivano in
63225         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
63227 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
63229         argv-iter: omit nonconforming declaration
63230         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
63231         enum arg_iter_err declaration, which doesn't conform to C99.
63232         Solaris 10 cc warns about this.
63234 2010-10-13  Eric Blake  <eblake@redhat.com>
63236         termios: fix compilation on mingw
63237         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
63238         (gl_TERMIOS_H): Adjust it on mingw.
63239         * modules/termios (Makefile.am): Substitute new key.
63240         * lib/termios.in.h (includes): Make include_next conditional.
63241         * doc/posix-headers/termios.texi (termios.h): Update
63242         documentation.
63243         Reported by Daniel P. Berrange.
63245 2010-10-13  Jim Meyering  <meyering@redhat.com>
63247         git-version-gen: don't require that .git/ be in the current dir
63248         * build-aux/git-version-gen: Adjust this script so that it works
63249         when run from any working directory beneath the top-level .git/-
63250         containing directory.  Inspired by a patch from Giuseppe Scrivano,
63251         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
63253         test-select: avoid warn_unused_result warnings
63254         * tests/test-select.c: Include "macros.h".
63255         ASSERT that each call to read, write, and pipe succeeds.
63256         While not technically required, also check each "close".
63257         * modules/select-tests (Files): Add tests/macros.h.
63259         test-symlinkat: remove declaration of unused local
63260         * tests/test-symlinkat.c (main): Remove unused local, "buf".
63262         test-inttostr: avoid shadowing warnings
63263         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
63264         and use malloc rather than the stack for the same reason as
63265         mentioned in the comment justifying the other allocation.
63267 2010-10-11  Bruno Haible  <bruno@clisp.org>
63269         stdlib: Allow multiple gnulib generated replacements to coexist.
63270         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
63271         Reported by Sam Steingold <sds@gnu.org>.
63273 2010-10-11  Jim Meyering  <meyering@redhat.com>
63275         fix a documentation typo
63276         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
63278 2010-10-11  Eric Blake  <eblake@redhat.com>
63280         futimens: work around Solaris 11 bug
63281         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
63282         * tests/test-futimens.h (test_futimens): Enhance, rather than
63283         weaken test.
63284         * doc/posix-functions/futimens.texi (futimens): Document the bug.
63286 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63288         Indentation.
63289         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
63290         higher-level operators more to the left.
63292 2010-10-11  Jim Meyering  <meyering@redhat.com>
63294         test-futimens: avoid unwarranted test failure on Solaris 5.11
63295         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
63296         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
63297         because it tries to dereference the NULL name argument.
63299 2010-10-11  Bruno Haible  <bruno@clisp.org>
63301         Indentation.
63302         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
63303         indentation.
63305 2010-10-11  Jim Meyering  <meyering@redhat.com>
63307         spawn.in.h: make indentation consistent with parentheses
63308         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
63309         Make indentation consistent with parentheses.
63311 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
63313         Fix mismatched parens in previous commit
63314         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
63315         parens.
63317 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63319         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
63321         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
63322         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
63323         * lib/malloca.c: Include "verify.h".
63324         (verify1): Remove, replacing with a verify call.
63325         * lib/relocwrapper.c (verify1): Likewise.
63326         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
63327         Likewise.
63328         * modules/malloca (Depends-on): Add 'verify'.
63329         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
63330         * modules/vasnprintf (Depends-on): Add 'verify'.
63331         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63332         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63333         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63334         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63335         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63336         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63337         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63339         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
63341         Formerly the style was sometimes 2*X - 1, because the C standard
63342         was wrongly thought to disallow ?: in integral constant expressions.
63343         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
63344         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
63345         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
63346         * lib/stdint.in.h (_verify_intmax_size): Likewise.
63347         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
63348         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
63349         verify that time_t cannot be floating.
63351 2010-10-08  Eric Blake  <eblake@redhat.com>
63353         time: enforce recent POSIX ruling that time_t is integral
63354         * lib/time.in.h (__time_t_must_be_integral): Detect any
63355         problematic systems, allowing the rest of gnulib to assume POSIX.
63357 2010-10-08  Jim Meyering  <meyering@redhat.com>
63359         fdopendir: fix a bug on systems lacking openat and /proc support
63360         OpenBSD 4.7 is one such system.  The most noticeable effect was
63361         failure of any application making nontrivial use of fts: rm, du,
63362         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
63363           ./rm: traversal failed: `a': Bad file descriptor
63364         Debugging that, you see that even though FD 6 was closed just
63365         prior to the opendir call in fd_clone_opendir, its resulting
63366         dir->dd_fd was 8, rather than the expected value of 6:
63368         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
63369         93                close (fd);
63370         (gdb) n
63371         94                dir = fd_clone_opendir (dupfd);
63372         (gdb) n
63373         95                saved_errno = errno;
63374         (gdb) p dir->dd_fd
63375         $11 = 8
63377         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
63378         The problem is that on OpenBSD, fd_clone_opendir has to resort
63379         to using the old-style save/restore CWD mechanism, due to its
63380         lack of openat/proc support, and *that* would steal the FD (6)
63381         that opendir was supposed to use.
63383         The fix is to squirrel away the desired FD so that save_cwd uses a
63384         different one, and then free the dest FD right before calling opendir.
63385         That guarantees opendir will use the required file descriptor.
63387         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
63389 2010-10-08  Bruno Haible  <bruno@clisp.org>
63391         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
63392         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
63394 2010-10-08  Bruno Haible  <bruno@clisp.org>
63396         nanosleep: Make replacement POSIX compliant.
63397         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
63398         is out of range.
63399         Reported by Jim Meyering.
63401 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63403         bootstrap: add hook for altering gnulib.mk, for Bison
63404         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
63405         the Bison bootstrapping process can rewrite file names and variables
63406         in this file before later parts of 'bootstrap' use the file.
63407         Bison wants to include lib/gnulib.mk from the top-level makefile,
63408         so it needs the file names in this file to be relative to the top
63409         level, not relative to lib; plus it needs variable names to be
63410         rewritten.
63411         (slurp): Use the new function.
63413         bootstrap: reformat for readability
63414         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
63416 2010-10-08  Eric Blake  <eblake@redhat.com>
63418         docs: update cygwin progress
63419         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
63420         1.7.7.
63421         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
63422         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
63423         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
63424         * doc/posix-functions/carg.texi (carg): Likewise.
63425         * doc/posix-functions/cargf.texi (cargf): Likewise.
63426         * doc/posix-functions/casin.texi (casin): Likewise.
63427         * doc/posix-functions/casinf.texi (casinf): Likewise.
63428         * doc/posix-functions/casinh.texi (casinh): Likewise.
63429         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
63430         * doc/posix-functions/catan.texi (catan): Likewise.
63431         * doc/posix-functions/catanf.texi (catanf): Likewise.
63432         * doc/posix-functions/catanh.texi (catanh): Likewise.
63433         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
63434         * doc/posix-functions/ccos.texi (ccos): Likewise.
63435         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
63436         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
63437         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
63438         * doc/posix-functions/cexp.texi (cexp): Likewise.
63439         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
63440         * doc/posix-functions/cimag.texi (cimag): Likewise.
63441         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
63442         * doc/posix-functions/clog.texi (clog): Likewise.
63443         * doc/posix-functions/clogf.texi (clogf): Likewise.
63444         * doc/posix-functions/conj.texi (conj): Likewise.
63445         * doc/posix-functions/conjf.texi (conjf): Likewise.
63446         * doc/posix-functions/cpow.texi (cpow): Likewise.
63447         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
63448         * doc/posix-functions/cproj.texi (cproj): Likewise.
63449         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
63450         * doc/posix-functions/creal.texi (creal): Likewise.
63451         * doc/posix-functions/crealf.texi (crealf): Likewise.
63452         * doc/posix-functions/csin.texi (csin): Likewise.
63453         * doc/posix-functions/csinf.texi (csinf): Likewise.
63454         * doc/posix-functions/csinh.texi (csinh): Likewise.
63455         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
63456         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
63457         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
63458         * doc/posix-functions/ctan.texi (ctan): Likewise.
63459         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
63460         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
63461         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
63462         * doc/posix-headers/complex.texi (complex.h): Likewise.
63464 2010-10-07  Jim Meyering  <meyering@redhat.com>
63466         parse-datetime: avoid compilation failure on OpenBSD 4.7
63467         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
63468         This works around a compilation failure on OpenBSD 4.7:
63469         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
63471 2010-10-07  Eric Blake  <eblake@redhat.com>
63473         docs: update cygwin progress
63474         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
63475         1.7.6.
63476         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
63477         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
63478         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
63479         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
63480         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
63481         Likewise.
63482         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
63483         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
63484         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
63485         Likewise.
63486         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
63487         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
63488         Likewise.
63489         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
63490         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
63491         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
63492         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
63493         Likewise.
63494         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
63495         Likewise.
63496         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
63498         docs: update parse-datetime history
63499         * doc/parse-datetime.texi (Authors of parse_datetime): Better
63500         documentation of this function's history and alternatives.
63502         cygwin: use more robust version check
63503         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
63504         exclude an eventual cygwin 1.9.1.
63505         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
63506         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
63507         (gl_FUNC_STRCASESTR): Likewise.
63508         Reported by Bruno Haible.
63510 2010-10-06  Bruno Haible  <bruno@clisp.org>
63512         string, sys_select: Avoid #including large headers unless necessary.
63513         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
63514         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
63515         OSF/1, BeOS, Haiku.
63516         Reported by Jim Meyering.
63518 2010-10-05  Eric Blake  <eblake@redhat.com>
63520         memmem, strstr, strcasestr: fix bug with long periodic needle
63521         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
63522         periodic needle having false positive.
63523         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
63524         and cygwin 1.7.7.
63525         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
63526         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
63527         (gl_FUNC_STRCASESTR): Likewise.
63528         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
63529         * tests/test-memmem.c (main): Expose the bug.
63530         * tests/test-strcasestr.c (main): Likewise.
63531         * tests/test-strstr.c (main): Likewise.
63532         * tests/test-c-strcasestr.c (main): Likewise.
63533         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
63534         * doc/posix-functions/strstr.texi (strstr): Likewise.
63535         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
63536         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
63538 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63540         parse-datetime: do some more renaming
63541         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
63542         parse_datetime, not get_date.  Mention the renaming.
63543         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
63544         in comments.
63545         * m4/bison.m4: Likewise.
63547 2010-10-05  Eric Blake  <eblake@redhat.com>
63549         parse-datetime: better name than get_date
63550         * NEWS: Reword the deprecation notice.
63551         * modules/get_date: Rename to modules/parse-datetime.
63552         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
63553         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
63554         * lib/get_date.y: Rename to lib/parse-datetime.y.
63555         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
63556         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
63557         * doc/getdate.texi: Provide fallback wrapper.
63558         * lib/getdate.h: Move guts, and wrap...
63559         * lib/parse-datetime.h: ...new file.
63560         * lib/parse-datetime.y (get_date): Rename...
63561         (parse_datetime): ...to this.
63562         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
63563         (gl_PARSE_DATETIME): ...to this.
63564         * doc/posix-functions/getdate.texi (get_date): Provide fallback
63565         documentation.
63566         * modules/getdate (Files): Provide fallback docs and header.
63567         (Notice, Depends-on): Update references.
63568         * tests/test-parse-datetime.c: Likewise.
63569         * DEPENDENCIES: Likewise.
63570         * MODULES.html.sh (Date and time <time.h>): Likewise.
63571         * doc/parse-datetime.texi (Date input formats)
63572         (Authors of parse_datetime): Likewise.
63573         * modules/parse-datetime (Files, configure.ac, Makefile.am)
63574         (Include): Likewise.
63575         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
63576         * gnulib-tool: Likewise.
63577         * m4/bison.m4 (gl_BISON): Likewise.
63578         Suggested by Bruno Haible.
63580 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63582         more ports to Solaris tr, which needs [] around ranges
63583         * gnulib-tool: Solaris tr needs [] around ranges.
63584         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
63585         * tests/test-pipe-filter-gi1.c (main): Likewise.
63586         * tests/test-pipe-filter-ii1.c (main): Likewise.
63588 2010-10-05  Eric Blake  <eblake@redhat.com>
63590         bootstrap: fix Solaris regression
63591         * build-aux/bootstrap (check_versions): Solaris tr still needs []
63592         around ranges.
63593         Reported by Pádraig Brady.
63595         bootstrap: work with pkg-config
63596         * build-aux/bootstrap (check_versions): Also transliterate - in
63597         prerequisite name.
63598         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
63599         prerequisites that were already found, to avoid confusion.
63600         Reported by Justin Clift.
63602         faccessat: remove unused wrappers
63603         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
63604         presence of these wrappers dragged in -lgen on Solaris.
63605         Reported by Clemens Brogi; fix suggested by Paul Eggert.
63607 2010-10-05  Jim Meyering  <meyering@redhat.com>
63609         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
63610         * Makefile (sc_pragma_columns): New syntax-check rule.
63612 2010-10-04  Bruno Haible  <bruno@clisp.org>
63614         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
63615         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
63616         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
63617         Reported by Bruce Korb and Eric Blake.
63619 2010-10-04  Bruno Haible  <bruno@clisp.org>
63621         threadlib: Make option --with-libpth-prefix work.
63622         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
63623         use $LIBPTH, not just -lpth.
63625 2010-10-04  Bruno Haible  <bruno@clisp.org>
63627         Avoid line length limitation from HP NonStop system header files.
63628         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
63629         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
63630         * lib/ctype.in.h: Likewise.
63631         * lib/dirent.in.h: Likewise.
63632         * lib/errno.in.h: Likewise.
63633         * lib/fcntl.in.h: Likewise.
63634         * lib/float.in.h: Likewise.
63635         * lib/getopt.in.h: Likewise.
63636         * lib/iconv.in.h: Likewise.
63637         * lib/inttypes.in.h: Likewise.
63638         * lib/langinfo.in.h: Likewise.
63639         * lib/locale.in.h: Likewise.
63640         * lib/math.in.h: Likewise.
63641         * lib/netdb.in.h: Likewise.
63642         * lib/netinet_in.in.h: Likewise.
63643         * lib/poll.in.h: Likewise.
63644         * lib/pthread.in.h: Likewise.
63645         * lib/pty.in.h: Likewise.
63646         * lib/sched.in.h: Likewise.
63647         * lib/se-selinux.in.h: Likewise.
63648         * lib/search.in.h: Likewise.
63649         * lib/signal.in.h: Likewise.
63650         * lib/spawn.in.h: Likewise.
63651         * lib/stdarg.in.h: Likewise.
63652         * lib/stddef.in.h: Likewise.
63653         * lib/stdint.in.h: Likewise.
63654         * lib/stdio.in.h: Likewise.
63655         * lib/stdlib.in.h: Likewise.
63656         * lib/string.in.h: Likewise.
63657         * lib/strings.in.h: Likewise.
63658         * lib/sys_file.in.h: Likewise.
63659         * lib/sys_ioctl.in.h: Likewise.
63660         * lib/sys_select.in.h: Likewise.
63661         * lib/sys_socket.in.h: Likewise.
63662         * lib/sys_stat.in.h: Likewise.
63663         * lib/sys_time.in.h: Likewise.
63664         * lib/sys_times.in.h: Likewise.
63665         * lib/sys_utsname.in.h: Likewise.
63666         * lib/sys_wait.in.h: Likewise.
63667         * lib/sysexits.in.h: Likewise.
63668         * lib/termios.in.h: Likewise.
63669         * lib/time.in.h: Likewise.
63670         * lib/unistd.in.h: Likewise.
63671         * lib/wchar.in.h: Likewise.
63672         * lib/wctype.in.h: Likewise.
63673         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
63674         * modules/ctype (Makefile.am): Likewise.
63675         * modules/dirent (Makefile.am): Likewise.
63676         * modules/errno (Makefile.am): Likewise.
63677         * modules/fcntl-h (Makefile.am): Likewise.
63678         * modules/float (Makefile.am): Likewise.
63679         * modules/getopt-posix (Makefile.am): Likewise.
63680         * modules/iconv-h (Makefile.am): Likewise.
63681         * modules/inttypes (Makefile.am): Likewise.
63682         * modules/langinfo (Makefile.am): Likewise.
63683         * modules/locale (Makefile.am): Likewise.
63684         * modules/math (Makefile.am): Likewise.
63685         * modules/netdb (Makefile.am): Likewise.
63686         * modules/netinet_in (Makefile.am): Likewise.
63687         * modules/poll-h (Makefile.am): Likewise.
63688         * modules/pthread (Makefile.am): Likewise.
63689         * modules/pty (Makefile.am): Likewise.
63690         * modules/sched (Makefile.am): Likewise.
63691         * modules/search (Makefile.am): Likewise.
63692         * modules/selinux-h (Makefile.am): Likewise.
63693         * modules/signal (Makefile.am): Likewise.
63694         * modules/spawn (Makefile.am): Likewise.
63695         * modules/stdarg (Makefile.am): Likewise.
63696         * modules/stddef (Makefile.am): Likewise.
63697         * modules/stdint (Makefile.am): Likewise.
63698         * modules/stdio (Makefile.am): Likewise.
63699         * modules/stdlib (Makefile.am): Likewise.
63700         * modules/string (Makefile.am): Likewise.
63701         * modules/strings (Makefile.am): Likewise.
63702         * modules/sys_file (Makefile.am): Likewise.
63703         * modules/sys_ioctl (Makefile.am): Likewise.
63704         * modules/sys_select (Makefile.am): Likewise.
63705         * modules/sys_socket (Makefile.am): Likewise.
63706         * modules/sys_stat (Makefile.am): Likewise.
63707         * modules/sys_time (Makefile.am): Likewise.
63708         * modules/sys_times (Makefile.am): Likewise.
63709         * modules/sys_utsname (Makefile.am): Likewise.
63710         * modules/sys_wait (Makefile.am): Likewise.
63711         * modules/sysexits (Makefile.am): Likewise.
63712         * modules/termios (Makefile.am): Likewise.
63713         * modules/time (Makefile.am): Likewise.
63714         * modules/unistd (Makefile.am): Likewise.
63715         * modules/wchar (Makefile.am): Likewise.
63716         * modules/wctype (Makefile.am): Likewise.
63718 2010-10-04  Bruno Haible  <bruno@clisp.org>
63720         read-file tests: Avoid a test failure on NonStop Kernel.
63721         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
63722         a regular file.
63723         Reported by Joachim Schmitz <schmitz@hp.com>.
63725 2010-10-03  Bruno Haible  <bruno@clisp.org>
63727         gnulib-tool: Fixes for --create-testdir with --libtool.
63728         * gnulib-tool (func_get_automake_snippet): Don't augment
63729         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
63730         an executable.
63731         (func_create_testdir): Handle module 'alloca' like func_import.
63732         Reported by Bruce Korb <bruce.korb@gmail.com>.
63734 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
63736         Avoid some lines longer than 80 characters.
63737         * lib/stdint.in.h: Break long comment lines.
63738         * lib/math.in.h: Likewise.
63739         (_GL_NUM_UINT_WORDS): New macro, for readability.
63740         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
63741         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
63742         * lib/stdlib.in.h: Likewise.
63743         * lib/spawn.in.h: Likewise.
63744         * lib/sys_socket.in.h: Update an URL.
63745         * lib/sys_stat.in.h: Break long line.
63747 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
63749         Improve pmccabe2html.
63750         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
63751         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
63752         when the sources change. Remove the line in the HTML about "Used
63753         ranges" (which implied that there might be other unused ranges),
63754         rename "Resume" to "Summary" (easier to understand for more users).
63755         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
63756         styles, and some unnecessary blank lines.
63758 2010-10-03  Bruno Haible  <bruno@clisp.org>
63759             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
63761         acl: Add support for ACLs on NonStop Kernel.
63762         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
63763         Check whether the function aclsort() exists.
63764         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
63765         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
63766         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
63767         (acl_nontrivial [HAVE_ACLSORT]: New function.
63768         (file_has_acl): Implement for NonStop Kernel.
63769         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
63770         (qset_acl): Implement for NonStop Kernel.
63771         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
63772         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
63773         (main): Implement for NonStop Kernel.
63774         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
63775         Kernel. Handle this flavor.
63776         * tests/test-set-mode-acl.sh: Likewise.
63777         * tests/test-copy-acl.sh: Likewise.
63778         * tests/test-copy-file.sh: Likewise.
63780 2010-10-03  Bruno Haible  <bruno@clisp.org>
63782         Info about ACLs on NonStop Kernel.
63783         * doc/acl-resources.txt: Add info about NonStop Kernel.
63784         References by Joachim Schmitz <schmitz@hp.com>.
63786 2010-10-02  Bruno Haible  <bruno@clisp.org>
63788         Define missing EDQUOT on NonStop Kernel.
63789         * lib/errno.in.h (EDQUOT): Assign a value if missing.
63790         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
63791         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
63792         missing.
63793         * doc/posix-headers/errno.texi: Mention the NSK bug.
63794         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
63795         Reported by Joachim Schmitz <schmitz@hp.com>.
63797 2010-10-02  Bruno Haible  <bruno@clisp.org>
63799         Update doc for POSIX:2008.
63800         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
63801         Update URL of POSIX specification.
63803 2010-10-02  Bruno Haible  <bruno@clisp.org>
63805         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
63806         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
63807         from gnulib, not from Automake.
63809 2010-10-02  Bruno Haible  <bruno@clisp.org>
63811         New module 'system-posix'.
63812         * modules/system-posix: New file.
63813         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
63814         module is present.
63815         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63816         GNULIB_SYSTEM_POSIX.
63817         * modules/stdlib (Depends-on): Remove sys_wait.
63818         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
63819         * doc/posix-functions/system.texi: Mention the new module.
63820         * doc/posix-headers/stdlib.texi: Likewise.
63821         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
63822         define test_sys_wait_macros to a no-op.
63823         Reported by Sam Steingold <sds@gnu.org>.
63825 2010-09-30  Bruno Haible  <bruno@clisp.org>
63827         More renaming from 'getdate' to 'get_date'.
63828         * doc/get_date.texi: Renamed from doc/getdate.texi.
63829         * modules/get_date (Files): Update.
63830         * MODULES.html.sh (Date and time <time.h>): Update.
63831         * DEPENDENCIES: Update.
63832         * gnulib-tool: Update comment.
63833         * m4/bison.m4 (gl_BISON): Likewise.
63834         * m4/get_date.m4 (gl_GET_DATE): Likewise.
63836 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
63838         bootstrap: support ACLOCAL_FLAGS during aclocal
63839         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
63840         can add additional -I dir for third-party .m4 files.
63842 2010-09-30  Eric Blake  <eblake@redhat.com>
63844         bootstrap: use glibtoolize on MacOS
63845         * build-aux/bootstrap (check_versions): Convert libtool into
63846         libtoolize.
63847         (tool search): Move libtool check earlier, and look for
63848         glibtoolize for MacOS.
63849         (gnulib_tool_options): Auto-add --libtool when appropriate.
63850         Reported by Justin Clift.
63852         poll: fix typo that broke test on MacOS
63853         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
63854         Reported by Justin Clift.
63856         getdate: rename to get_date
63857         Note: getdate.h is not renamed, to minimize client impact.
63858         * modules/getdate: Mark obsolete.  Move old contents...
63859         * modules/get_date: ...to new module name.
63860         * modules/getdate-tests: Move...
63861         * modules/get_date-tests: ...here.
63862         * m4/getdate.m4: Move...
63863         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
63864         * lib/getdate.y: Move...
63865         * lib/get_date.y: ...here.
63866         * tests/test-getdate.c: Move...
63867         * tests/test-get_date.c: ...here.
63868         * doc/posix-functions/getdate.texi (getdate): Update name.
63869         * NEWS: Mention the change.
63871 2010-09-29  Bruno Haible  <bruno@clisp.org>
63873         Separate the module 'waitpid' from the module 'sys_wait'.
63874         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
63875         present.
63876         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
63877         gl_MODULE_INDICATOR_FOR_TESTS.
63878         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
63879         * modules/sys_wait (Depends-on): Remove waitpid.
63880         (Makefile.am): Substitute GNULIB_WAITPID.
63881         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
63882         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
63883         signature only if the 'waitpid' module is present.
63884         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
63885         * NEWS: Mention the change.
63886         * modules/grantpt (Depends-on): Add waitpid.
63887         * modules/wait-process (Depends-on): Likewise.
63889 2010-09-29  Bruno Haible  <bruno@clisp.org>
63891         More tests for module 'sys_wait'.
63892         * modules/sys_wait-c++-tests: New file.
63893         * tests/test-sys_wait-c++.cc: New file.
63894         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
63895         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
63897 2010-09-29  Bruno Haible  <bruno@clisp.org>
63899         New module 'waitpid'.
63900         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
63901         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
63902         Don't include <process.h>.
63903         (waitpid): Declare only, using modern idiom.
63904         * m4/waitpid.m4: New file.
63905         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
63906         * modules/waitpid: New file.
63907         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
63908         (Makefile.am): Update.
63909         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
63911 2010-09-28  Bruno Haible  <bruno@clisp.org>
63913         poll: Assume ANSI C.
63914         * lib/poll.c (poll): Use an ANSI C declaration.
63916 2010-09-28  Bruno Haible  <bruno@clisp.org>
63918         poll-h: Create poll.h on all platforms.
63919         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
63920         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
63921         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
63922         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
63923         (gl_REPLACE_POLL_H): Don't set POLL_H.
63924         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
63925         * modules/poll-h (Depends-on): Add include_next.
63926         (Makefile.am): Create poll.h unconditionally. Substitute also
63927         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
63929 2010-09-28  Bruno Haible  <bruno@clisp.org>
63931         Tests for module 'poll-h'.
63932         * modules/poll-h-c++-tests: New file.
63933         * tests/test-poll-h-c++.cc: New file.
63935         Tests for module 'poll-h'.
63936         * modules/poll-h-tests: New file.
63937         * tests/test-poll-h.c: New file.
63939 2010-09-28  Bruno Haible  <bruno@clisp.org>
63941         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
63942         * modules/poll-h (Depends-on): Add 'extensions'.
63944 2010-09-28  Bruno Haible  <bruno@clisp.org>
63946         New module 'poll-h'.
63947         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
63948         (poll): Use modern idiom.
63949         * modules/poll-h: New file.
63950         * modules/poll (Files): Remove lib/poll.in.h.
63951         (Depends-on): Add poll-h.
63952         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
63953         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
63954         * m4/poll_h.m4: New file.
63955         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
63956         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
63957         and invoke gl_REPLACE_POLL_H.
63958         * lib/poll.c: Use common idiom.
63959         * tests/test-poll.c: Likewise.
63960         * doc/posix-headers/poll.texi: Mention the poll-h module.
63961         Suggested by Eric Blake.
63963 2010-09-26  Bruno Haible  <bruno@clisp.org>
63965         sys_wait: Implement WSTOPSIG.
63966         * lib/sys_wait.in.h (WSTOPSIG): New macro.
63967         Reported by Simon Josefsson.
63969 2010-09-26  Simon Josefsson  <simon@josefsson.org>
63971         stdlib, sys_wait: Avoid compilation error on mingw.
63972         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
63974 2010-09-26  Bruno Haible  <bruno@clisp.org>
63976         stdlib tests: Avoid code duplication.
63977         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
63978         * modules/sys_wait-tests (Files): Likewise.
63979         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
63980         * tests/test-stdlib.c: Include test-sys_wait.h.
63981         (main): Invoke test_sys_wait_macros.
63982         * tests/test-sys_wait.c: Include test-sys_wait.h.
63983         (main): Invoke test_sys_wait_macros.
63985 2010-09-25  Simon Josefsson  <simon@josefsson.org>
63987         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
63988         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
63989         sure Windows sockets are working before calling getaddrinfo.
63990         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
63991         * doc/gnulib.texi (Windows sockets): Fix typo.
63993 2010-09-25  Bruno Haible  <bruno@clisp.org>
63995         Tests for module 'regex-quote'.
63996         * modules/regex-quote-tests: New file.
63997         * tests/test-regex-quote.c: New file.
63999         New module 'regex-quote'.
64000         * lib/regex-quote.h: New file.
64001         * lib/regex-quote.c: New file.
64002         * modules/regex-quote: New file.
64003         Suggested by Reuben Thomas <rrt@sc3d.org>.
64005 2010-09-24  Bruno Haible  <bruno@clisp.org>
64007         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
64008         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
64010 2010-09-23  Bruno Haible  <bruno@clisp.org>
64012         setenv: Relax license.
64013         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
64014         Blake.
64015         Requested by Eric Blake.
64017 2010-09-22  Bruno Haible  <bruno@clisp.org>
64019         termios: Relax license.
64020         * modules/termios (License): Change to LGPLv2+.
64021         Requested by Eric Blake.
64023 2010-09-22  Bruno Haible  <bruno@clisp.org>
64025         threadlib: Allow the package to change the default to 'no'.
64026         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
64027         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
64028         Reported by Paul Eggert.
64030 2010-09-22  Pádraig Brady  <P@draigbrady.com>
64031             Bruno Haible  <bruno@clisp.org>
64033         Fix endless loop in mbmemcasecoll.
64034         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
64035         byte.
64036         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
64038 2010-09-22  Bruno Haible  <bruno@clisp.org>
64040         Tests for module 'memcoll'.
64041         * modules/memcoll-tests: New file.
64042         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
64044         memcoll, xmemcoll: Clarify size vs. length.
64045         * modules/memcoll.c (memcoll0): Clarify specification.
64046         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
64047         passed to collate_error.
64049 2010-09-22  Bruno Haible  <bruno@clisp.org>
64051         Tests for module 'memcasecmp'.
64052         * modules/memcasecmp-tests: New file.
64053         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
64055 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64057         * lib/pthread.in.h: Add split double-inclusion guard, and include
64058         system <pthread.h> if there is one.  Use @@-style as in other
64059         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
64060         pthread.h doesn't.
64061         (pthread_mutexattr_destroy, pthread_mutexattr_init):
64062         (pthread_mutexattr_settype, pthread_mutex_trylock):
64063         New static inline functions, if there's no system <pthread.h>.
64064         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
64065         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
64066         Approximate with mutexes if the system lacks spinlocks, as in
64067         MacOS.
64068         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
64069         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
64070         @@-style.  Check for spinlocks separately.
64071         (gl_PTHREAD_DEFAULTS): New macro.
64072         * modules/pthread: Redo to use a more typical style for in.h files.
64074 2010-09-21  Eric Blake  <eblake@redhat.com>
64076         net_if: enhance tests
64077         * tests/test-net_if.c (main): Move signature checks earlier.
64078         Print failures to stderr.
64079         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
64080         Document the bug that we do not yet fix.
64082 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
64084         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
64085         about gnulib, not GSS.
64087 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
64089         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
64090         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
64091         for Emacs.
64092         * build-aux/pmccabe2html: Make Makefile.am example code more
64093         cut-and-paste friendly.
64095 2010-09-21  Simon Josefsson  <simon@josefsson.org>
64097         * tests/test-net_if.c: New file.
64098         * modules/net_if-tests: New file.
64100 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64102         pthread: add pthread_spin_destroy
64103         * lib/pthread.in.h (pthread_spin_destroy): New function.
64105 2010-09-19  Bruno Haible  <bruno@clisp.org>
64107         gnulib-tool: Fix --help output.
64108         * gnulib-tool (func_usage): Fix help message.
64109         Reported by Reuben Thomas <rrt@sc3d.org>.
64111 2010-09-18  Jim Meyering  <meyering@redhat.com>
64113         maint.mk: avoid unexpanded \n in two diagnostics
64114         * top/maint.mk (sc_prohibit_always_true_header_tests):
64115         Don't use a literal \n in a halt=... assignment.  It would not be
64116         expanded, and the two \n bytes would appear in the diagnostic output
64117         rather than the desired newline.  Use halt=$$(printf ... instead.
64118         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
64120 2010-09-18  Bruno Haible  <bruno@clisp.org>
64122         netinet_in: Doc tweak.
64123         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
64124         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64126 2010-09-18  Jim Meyering  <meyering@redhat.com>
64128         init.sh: correct an outdated comment
64129         * tests/init.sh (create_exe_shims_):  s/function/alias/
64131         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
64132         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
64133         a file named "*.exe" is removed between the glob expansion and the
64134         processing of that oddly named file.
64136 2010-09-17  Eric Blake  <eblake@redhat.com>
64138         mirbsd: add some more support
64139         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
64140         in BSD family.
64141         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
64142         devices as OpenBSD.
64143         * m4/host-os.m4 (mirbsd): Add MirBSD.
64145         tests: fix unportable assumption on sys/wait.h
64146         * tests/test-sys_wait.c (main): Relax test.
64147         * tests/test-stdlib.c (main): Likewise.
64149         init.sh: accommodate directory with no .exes
64150         * tests/init.sh: Accomodate directory containing only scripts.
64152         tests: avoid compiler warning
64153         * tests/test-stdlib.c (main): Use the variable.
64155         fdutimens, fdutimensat: update signature, again
64156         * lib/utimens.h (gl_futimens): Delete, and move signature...
64157         (fdutimens): ...here.
64158         (fdutimensat): Rearrange signature.
64159         (lutimensat): Rename variable for clarity.
64160         * lib/fdutimensat.c (fdutimensat): Update signature.
64161         * lib/utimens.c (fdutimens): Likewise.
64162         (gl_futimens): Delete.
64163         (utimens, lutimens): Update callers.
64164         * lib/futimens.c (futimens): Likewise.
64165         * tests/test-fdutimensat.c: Likewise.
64166         * tests/test-utimens.c: Likewise.
64167         * tests/test-futimens.h: Update comment.
64168         * NEWS: Mention this.
64169         Suggested by Paul Eggert.
64171 2010-09-17  Bruno Haible  <bruno@clisp.org>
64173         Take over the maintenance of some older macros from Autoconf.
64174         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
64175         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
64176         GNU Autoconf.
64177         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
64178         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
64180 2010-09-17  Eric Blake  <eblake@redhat.com>
64182         fdutimensat: drop atflag validation
64183         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
64184         with valid fd, to close a race scenario where futimens is
64185         unsupported and FILE was replaced by a symlink.
64186         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
64187         accordingly.
64188         Suggested by Paul Eggert.
64190 2010-09-16  Bruno Haible  <bruno@clisp.org>
64192         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
64193         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
64195 2010-09-16  Bruno Haible  <bruno@clisp.org>
64197         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
64198         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
64199         login_tty exists.
64200         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64202 2010-09-16  Bruno Haible  <bruno@clisp.org>
64204         login_tty: Make the replacement code work on BSD systems.
64205         * lib/login_tty.c: Include <sys/ioctl.h>.
64206         (login_tty): Use ioctl TIOCSCTTY when available.
64207         * modules/login_tty (Depends-on): Add sys_ioctl.
64208         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64210 2010-09-16  Bruno Haible  <bruno@clisp.org>
64212         login_tty: Stricter unit test.
64213         * modules/login_tty-tests (Depends-on): Add tcgetsid.
64214         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
64215         and tcgetsid() after login_tty.
64216         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64218 2010-09-16  Bruno Haible  <bruno@clisp.org>
64220         New module 'tcgetsid'.
64221         * lib/tcgetsid.c: New file.
64222         * m4/tcgetsid.m4: New file.
64223         * modules/tcgetsid: New file.
64224         * modules/termios (Depends-on): Add c++defs, warn-on-use.
64225         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
64226         GNULIB_TCGETSID, HAVE_TCGETSID.
64227         * lib/termios.in.h: Include <sys/types.h>.
64228         (tcgetsid): New declaration.
64229         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
64230         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
64231         * doc/posix-functions/tcgetsid.texi: Mention the new module.
64232         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
64234 2010-09-16  Bruno Haible  <bruno@clisp.org>
64236         Tests for module 'termios'.
64237         * modules/termios-c++-tests: New file.
64238         * modules/termios-tests: New file.
64239         * tests/test-termios-c++.cc: New file.
64240         * tests/test-termios.c: New file.
64242         New module 'termios'.
64243         * modules/termios: New file.
64244         * lib/termios.in.h: New file.
64245         * m4/termios_h.m4: New file.
64246         * doc/posix-headers/termios.texi: Mention the new module.
64248 2010-09-16  Eric Blake  <eblake@redhat.com>
64250         fdutimensat: add an atflag parameter
64251         * lib/fdutimensat.c (fdutimensat): Add new parameter.
64252         * lib/utimens.h (fdutimensat): Update prototype.
64253         * tests/test-fdutimensat.c: Adjust test to match.
64254         * NEWS: Document the change.
64255         Suggested by Paul Eggert.
64257 2010-09-16  Bruno Haible  <bruno@clisp.org>
64259         Fix typos in comments.
64260         * lib/striconveh.h: Fix typo in comment.
64261         * lib/login_tty.c (login_tty): Likewise.
64263 2010-09-15  Bruno Haible  <bruno@clisp.org>
64265         stdlib: clarify MirBSD WEXITSTATUS bug
64266         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
64267         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
64269 2010-09-15  Eric Blake  <eblake@redhat.com>
64271         stdlib: work around MirBSD WEXITSTATUS bug
64272         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
64273         * modules/stdlib (Depends-on): Add sys_wait.
64274         * tests/test-sys_wait.c (main): Enhance test.
64275         * tests/test-stdlib.c (main): Likewise.
64276         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
64278         docs: mention MacOS issue with WEXITSTATUS(constant)
64279         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
64280         issue.
64281         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
64283         strnlen: add tests
64284         * modules/strnlen-tests: New file.
64285         * tests/test-strnlen.c: Likewise.
64287 2010-09-14  Bruno Haible  <bruno@clisp.org>
64289         unistr/base: Avoid link errors when module 'libunistring' is also used.
64290         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
64291         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
64292         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
64293         Declare also when HAVE_LIBUNISTRING is set.
64294         Reported by Pádraig Brady <P@draigbrady.com>.
64296 2010-09-14  Eric Blake  <eblake@redhat.com>
64298         test-rawmemchr: make more robust
64299         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
64300         (Depends-on, configure.ac): Add needed prerequisites to use it.
64301         * modules/memchr-tests (Files, Depends-on, configure.ac):
64302         Likewise, to avoid implicit reliance on memchr module prereqs.
64303         * tests/test-memchr.c (main): Ensure proper masking.
64304         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
64305         reads.
64307         memchr: detect glibc Alpha bug
64308         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
64309         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
64310         Alpha.
64311         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
64312         * tests/test-memchr.c (main): Enhance test.
64313         Reported by Nelson H. F. Beebe.
64315 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64317         fts, getcwd, glob: audit for dirfd returning -1
64318         * lib/fts.c (opendir): Remove #define; no longer used.
64319         (opendirat): New arg PDIR_FD.  All callers changed.
64320         (fts_build, _opendir2): Use new opendirat to avoid the need for
64321         dirfd, or for checking whether dirfd returns a negative value.
64322         Don't use opendir; always use openat followed by fdopendir.
64323         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
64324         it.
64325         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
64326         returns -1 here.
64327         * modules/fts (Depends-on): Remove dirfd.
64328         * modules/getcwd (Depends-on): Likewise.
64330 2010-09-13  Eric Blake  <eblake@redhat.com>
64332         float: fix broken MirBSD header
64333         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
64334         * doc/posix-headers/float.texi (float.h): Document it.
64336 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64338         fts: use O_NOFOLLOW to avoid race condition when opening a directory
64339         * lib/fts.c (opendirat): New arg extra_flags.
64340         (__opendir2): Use it to avoid following symlinks when opening
64341         a directory, if symlinks are not supposed to be followed.  See
64342         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
64344         fdopendir: preserve argument fd before returning
64345         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
64346         (fdopendir_with_dup, fd_clone_opendir): New static functions.
64347         (fdopendir): Use them, arranging for FD to be open to the same
64348         directory that it was when it started.  (It might be temporarily
64349         closed while fdopendir is running, so this not thread- or
64350         signal-safe.)  Be careful to do the right thing even when file
64351         descriptors are scarce and dup fails with errno == EMFILE.  See
64352         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
64354 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
64356         regex: Pass the system regex if its only problem is 32-bit regoff_t.
64357         * NEWS: Document change.
64358         * m4/regex.m4: Disable test for regoff_t size.
64360 2010-09-13  Jim Meyering  <meyering@redhat.com>
64362         fts: don't operate on an invalid file descriptor after failed dup
64363         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
64364         negative file descriptor.
64366 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
64368         savedir: add streamsavedir, deprecate fdsavedir
64369         * NEWS: Mention deprecation of fdsavedir.
64370         * lib/savedir.c (streamsavedir): New extern function, whose name
64371         ends in "savedir" to be consistent with the others.  This differs
64372         from savedirstream in that it doesn't close its argument.  The
64373         next version of GNU tar will use this instead of fdsavedir, to
64374         avoid some race conditions and conserve file descriptors.
64375         (savedirstream): Reimplement as a wrapper around streamsavedir.
64376         (fdsavedir): Add a comment deprecating this function.  As far as
64377         I know, only GNU tar used it, and GNU tar doesn't need it any more.
64378         * lib/savedir.h (streamsavedir): New decl.
64379         (fdsavedir): Add a comment deprecating this.
64381 2010-09-10  Bruno Haible  <bruno@clisp.org>
64383         langinfo: Fix last commit.
64384         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
64385         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
64386         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64388 2010-09-10  Bruno Haible  <bruno@clisp.org>
64390         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
64391         * lib/progreloc.c (O_EXEC): Define fallback.
64393 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
64395         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
64396         * NEWS: Document recent changes to fcntl-h.
64397         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
64398         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
64399         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
64400         Similarly for O_SEARCH; this last was already true, but not documented.
64401         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
64402         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
64403         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
64404         Likewise.
64405         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
64406         is zero, not whether it is defined.
64407         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
64408         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
64409         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
64411 2010-09-10  Bruno Haible  <bruno@clisp.org>
64413         langinfo, nl_langinfo: Fix for IRIX 5.3.
64414         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
64415         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
64416         HAVE_LANGINFO_YESEXPR.
64417         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
64418         HAVE_LANGINFO_YESEXPR.
64419         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
64420         HAVE_LANGINFO_T_FMT_AMPM is 0.
64421         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
64422         HAVE_LANGINFO_YESEXPR is 0.
64423         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
64424         NOEXPR.
64425         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
64426         * doc/posix-functions/nl_langinfo.texi: Likewise.
64427         Reported by Eric Blake.
64429 2010-09-10  Bruno Haible  <bruno@clisp.org>
64431         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
64432         * doc/glibc-functions/login_tty.texi: Mention the include file problem
64433         on FreeBSD 8.0 and OpenBSD 4.6.
64434         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
64435         * m4/pty_h.m4 (gl_PTY_H): Likewise.
64436         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
64437         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
64438         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
64439         ac_includes_default.
64440         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64442 2010-09-09  Eric Blake  <eblake@redhat.com>
64444         strsignal: work around NetBSD bug
64445         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
64446         * lib/string.in.h (includes): Likewise.
64447         * doc/posix-functions/strsignal.texi (strsignal): Document the
64448         bug.
64449         Reported by Nelson H. F. Beebe.
64451         gnulib-tool: work with NetBSD /bin/sh
64452         * gnulib-tool (func_cache_var, func_cache_lookup_module)
64453         (func_get_description, func_get_comment, func_get_status)
64454         (func_get_notice, func_get_applicability, func_get_filelist)
64455         (func_get_dependencies, func_get_autoconf_early_snippet)
64456         (func_get_autoconf_snippet, func_get_automake_snippet)
64457         (func_get_include_directive, func_get_link_directive)
64458         (func_get_license, func_get_maintainer, func_import): Avoid
64459         shell syntax errors from parsing syntax extensions.
64461 2010-09-09  Bruno Haible  <bruno@clisp.org>
64463         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
64464         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
64465         a reliable way to determine whether the 'alias' command works.
64467 2010-09-08  Jim Meyering  <meyering@redhat.com>
64469         init.sh: penalize a set-x-impaired shell; don't disqualify it
64470         * tests/init.sh: Too many shells corrupt application stderr when
64471         you set -x, so we can't afford to disqualify them, since at least
64472         on Irix-6.5, that would disqualify all bourne shells.
64473         Instead, use a two-pass approach.
64474         On the first pass, try to find a shell that meets the stricter
64475         condition that set -x does not corrupt stderr.
64476         If no shell meets the stricter condition, retest each candidate
64477         shell, but without that extra condition.  Finally, when
64478         VERBOSE=yes is requested and set -x might cause trouble, simply
64479         issue a warning and refrain from enabling debug output.
64481 2010-09-08  Eric Blake  <eblake@redhat.com>
64483         unsetenv: fix OpenBSD bug
64484         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
64485         * doc/posix-functions/unsetenv.texi (unsetenv): Update
64486         documentation.
64487         Reported by Jim Meyering.
64489         strtod: work around IRIX 6.5 bug
64490         * lib/strtod.c (strtod): Reparse number on shorter string if
64491         exponent parse was invalid.
64492         * tests/test-strtod.c (main): Add check for "0x1p 2".
64493         Reported by Tom G. Christensen.
64495         getopt: optimize previous patch
64496         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
64497         empty variable.  Speed up awk script.
64498         Reported by Paolo Bonzini.
64500 2010-09-08  Jim Meyering  <meyering@redhat.com>
64502         test.sh: disqualify shells for which set -x corrupts stderr
64503         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
64504         and OpenBSD 4.7.  They make it so with "set -x", environment settings
64505         appear in stderr output.  For example, this command:
64506             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
64507         prints "P=1" on those two systems:
64509 2010-09-08  Bruno Haible  <bruno@clisp.org>
64511         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
64512         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
64513         commands, because some shells ignore redirections when there is an
64514         error in the command lookup.
64515         Reported by Eric Blake.
64517 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
64519         * lib/regex.h: Fix a mention of `regex_compile' (should be
64520         `re_compile_pattern').
64521         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
64522         (re_set_registers): Correct name of parameter in comment.
64524         * doc/regex.texi: Add documentation for missing syntax flags.
64525         Remove commented-out documentation of defunct syntax option
64526         RE_NO_EMPTY_ALTS.
64527         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
64528         Add documentation of re_set_registers.
64529         Document trick to re-use a pattern buffer by setting fastmap manually.
64530         Update documentation of struct re_pattern_buffer per public members.
64531         Uncomment documentation of equivalence class operators and
64532         collating symbol operators, since they are now implemented,
64533         Explain leftmost-longest matching in relation to alternatives.
64534         Tidy documentation of substring matching.
64535         Remove POSIX documentation, which is done better in
64536         glibc, and refer the reader there. Keep BSD API documentation, as
64537         that is not readily available elsewhere.
64539 2010-09-07  Eric Blake  <eblake@redhat.com>
64541         getopt: handle POSIXLY_CORRECT set but not exported
64542         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
64543         export state of POSIXLY_CORRECT, due to bash set -o posix.
64544         Reported by Dustin J. Mitchell.
64546 2010-09-05  Bruno Haible  <bruno@clisp.org>
64548         gnulib-tool: Highlight the changed options.
64549         * gnulib-tool (func_usage): Display the --import, --add-import,
64550         --remove-import explanations in bold font.
64552 2010-09-06  Karl Berry  <karl@gnu.org>
64554         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
64556 2010-09-05  Bruno Haible  <bruno@clisp.org>
64558         uniwidth/width: Update comment.
64559         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
64560         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
64562 2010-09-05  Bruno Haible  <bruno@clisp.org>
64564         isinf, isnan: Relax license.
64565         * modules/isinf (License): Change from GPL to LGPL, with consent from
64566         Ben Pfaff.
64567         * modules/isnan (License): Likewise.
64568         Requested by Ludovic Courtès.
64570 2010-09-04  Bruno Haible  <bruno@clisp.org>
64572         gnulib-tool: Help migration from --import to --add-import or --update.
64573         * gnulib-tool: Emit a verbose error message when --import is used
64574         without any module name.
64576 2010-09-04  Bruno Haible  <bruno@clisp.org>
64578         Update doc about gnulib-tool.
64579         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
64580         'gnulib-tool --update' in more detail.
64581         Reported by Eric Blake.
64583 2010-09-04  Bruno Haible  <bruno@clisp.org>
64585         gnulib-tool: Change --import. New options --add/remove-import.
64586         * gnulib-tool: New options --add-import, --remove-import.
64587         (func_usage): Document them.
64588         (have_associative): Define always.
64589         (func_import): In import mode, don't merge the specified settings with
64590         the cached settings. Implement remove-import mode.
64591         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
64592         Explain when to use them versus --import.
64593         (Simple update): Use --add-import instead of --import.
64594         * NEWS: Mention the change.
64596 2010-09-04  Bruno Haible  <bruno@clisp.org>
64598         * doc/gnulib-tool.texi (Initial import): Update paragraph about
64599         separate gnulib.mk.
64601 2010-09-04  Bruno Haible  <bruno@clisp.org>
64603         gnulib-tool: Don't talk about CVS any more.
64604         * gnulib-tool (func_usage, func_import): Write "version control"
64605         instead of CVS.
64607 2010-09-04  Jim Meyering  <meyering@redhat.com>
64609         maint.mk: avoid obscure sc_copyright_check failure in coreutils
64610         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
64611         false positives (whose names may be ill-chosen) when searching
64612         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
64613         would cause a false-positive.
64615         avoid coreutils "make distcheck" failure
64616         Coreutils tests with an absolute build directory name that contains
64617         a space.  Not quoting this directory name caused a failure.
64618         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
64619         * tests/test-vc-list-files-cvs.sh: Likewise.
64621 2010-09-04  Bruno Haible  <bruno@clisp.org>
64623         gnulib-tool: Avoid error when run in a package without Makefile.am.
64624         * gnulib-tool: When collecting the m4dirs in a package that does not
64625         have a Makefile.am, eliminate those directories that contain no
64626         gnulib-cache.m4. Fix expression that counts these directories.
64628 2010-09-04  Bruno Haible  <bruno@clisp.org>
64630         update-copyright test: Improve output when perl is missing or too old.
64631         * tests/test-update-copyright.sh: Move test of Perl version down after
64632         the test whether Perl exists. Provide an explanation relating Perl's
64633         error message to Automake's SKIP: message.
64635 2010-09-04  Bruno Haible  <bruno@clisp.org>
64637         Don't augment PATH in TESTS_ENVIRONMENT.
64638         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
64639         set abs_aux_dir instead of augmenting PATH.
64640         * modules/vc-list-files-tests (Makefile.am): Likewise.
64641         * tests/test-update-copyright.sh: Augment PATH here.
64642         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
64643         path_prepend_.
64644         * tests/test-vc-list-files-git.sh: Likewise.
64646 2010-09-04  Jim Meyering  <meyering@redhat.com>
64648         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
64649         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
64651 2010-09-04  Bruno Haible  <bruno@clisp.org>
64653         strdup: Fix compilation error in C++ mode.
64654         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
64655         the macro.
64657 2010-09-04  Bruno Haible  <bruno@clisp.org>
64659         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
64660         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
64661         macro into a function.
64662         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
64664 2010-09-04  Bruno Haible  <bruno@clisp.org>
64666         Set PATH_SEPARATOR the same way autoconf does.
64667         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
64668         the value of PATH_SEPARATOR the same way autoconf-generated configure
64669         scripts do.
64670         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
64671         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
64673 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
64675         Set PATH_SEPARATOR the same way autoconf does.
64676         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
64677         the same way autoconf-generated configure scripts do.
64678         * posix-modules: Likewise.
64680 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64682         hash: fix safe_hasher const typo
64683         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
64684         const; otherwise, there is a type error later.
64686 2010-09-02  Jim Meyering  <meyering@redhat.com>
64688         test-update-copyright.sh: require perl 5.8.0
64689         * tests/test-update-copyright.sh: Require 5.8.0,
64690         which Tom G. Christensen has confirmed is adequate,
64691         while 5.6.1 is not.
64693 2010-09-02  Eric Blake  <eblake@redhat.com>
64695         tests: init.sh improvements for re-exec'ing with zsh
64696         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
64697         -vx through shell re-exec.
64698         Reported by Tom G. Christensen.
64700         wctype: fix typo in previous commit
64701         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
64702         Reported by Ludovic Courtès.
64704 2010-09-02  Jim Meyering  <meyering@redhat.com>
64706         test-update-copyright.sh: skip test if Perl is too old
64707         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
64708         Reported by Tom G. Christensen.
64710 2010-09-02  Bruno Haible  <bruno@clisp.org>
64712         wctype: Avoid compilation error on IRIX 6.5.30.
64713         * lib/wctype.in.h (iswblank): Declare with a replacement if
64714         REPLACE_ISWBLANK is set.
64715         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
64716         declared. Set REPLACE_ISWBLANK.
64717         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
64718         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
64719         * doc/posix-headers/wctype.texi: Likewise.
64720         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64722 2010-09-01  Bruno Haible  <bruno@clisp.org>
64724         New module 'socketlib'.
64725         * modules/socketlib: New file.
64726         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
64727         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
64728         * modules/sockets (Depends-on): Add socketlib.
64729         Suggested by Sam Steingold <sds@gnu.org>.
64731 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64733         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
64735         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
64736         when one needs search access to a directory but not read access.
64737         On systems where it is available, it works in some cases where
64738         O_RDONLY does not, namely on directories that are searchable but
64739         not readable, and which need only to be searchable.  If O_SEARCH
64740         is not available, fall back to the traditional method of using
64741         O_RDONLY.
64743         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
64744         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
64745         when opening a directory that needs only to be searchable.
64746         * lib/chdir-safer.c (chdir_no_follow): Likewise.
64747         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
64748         * lib/openat-proc.c (openat_proc_name): Likewise.
64749         * lib/openat.c (openat_needs_fchdir): Likewise.
64750         * lib/save-cwd.c (save_cwd): Likewise.
64751         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
64753 2010-08-28  Bruno Haible  <bruno@clisp.org>
64755         New module 'host-cpu-c-abi'.
64756         * modules/host-cpu-c-abi: New file.
64757         * m4/host-cpu-c-abi.m4: New file, based on part of
64758         clisp/src/m4/general.m4.
64759         Requested by Sam Steingold <sds@gnu.org>.
64761 2010-08-31  Eric Blake  <eblake@redhat.com>
64762         and Jim Meyering  <meyering@redhat.com>
64764         hash: factor, and guard against misbehaving hasher function
64765         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
64766         of table->hasher's return value.  Also protect against a hash value
64767         so large that adding it to table->bucket results in a NULL pointer.
64768         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
64769         Use it in place of open-coded check-and-abort.
64771 2010-08-30  Bruno Haible  <bruno@clisp.org>
64773         hash: silence spurious clang warning
64774         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
64775         Reported by Eric Blake.
64777 2010-08-30  Eric Blake  <eblake@redhat.com>
64779         strstr, memmem, strcasestr: avoid leaked shell message
64780         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
64781         FreeBSD.
64782         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64783         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
64785         tests: silence clang warning
64786         * tests/test-malloca.c (do_allocation): Avoid dead store.
64788 2010-08-29  Bruno Haible  <bruno@clisp.org>
64790         gettext: Fix recent mistake.
64791         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
64793 2010-08-29  Bruno Haible  <bruno@clisp.org>
64795         selinux-h: Offer a --without-selinux option.
64796         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
64797         --without-selinux was specified, skip all tests and define
64798         HAVE_SELINUX_SELINUX_H to 0.
64799         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
64800         set LIB_SELINUX to empty.
64801         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
64802         gl_LIBSELINUX. If --without-selinux was specified, replace
64803         selinux/context.h.
64804         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
64806 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64807             Bruno Haible  <bruno@clisp.org>
64809         Make the module 'realloc-gnu' work again on AIX and OSF/1.
64810         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
64811         of HAVE_REALLOC.
64812         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
64813         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
64814         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
64815         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
64817 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64818             Bruno Haible  <bruno@clisp.org>
64820         Make the module 'calloc-gnu' work again on AIX and OSF/1.
64821         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
64822         HAVE_CALLOC.
64823         * lib/xmalloc.c: Update accordingly.
64824         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
64825         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
64826         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
64828 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64829             Bruno Haible  <bruno@clisp.org>
64831         Make the module 'malloc-gnu' work again on AIX and OSF/1.
64832         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
64833         HAVE_MALLOC.
64834         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
64835         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
64836         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
64838 2010-08-29  Bruno Haible  <bruno@clisp.org>
64840         Update modules list.
64841         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
64842         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
64843         (String handling <string.h>): Add astrxfrm.
64844         (File system functions): Add readlinkat.
64846 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64848         Tests for module 'realloc-gnu'.
64849         * modules/realloc-gnu-tests: New file.
64850         * tests/test-realloc-gnu.c: New file.
64852         Tests for module 'calloc-gnu'.
64853         * modules/calloc-gnu-tests: New file.
64854         * tests/test-calloc-gnu.c: New file.
64856         Tests for module 'malloc-gnu'.
64857         * modules/malloc-gnu-tests: New file.
64858         * tests/test-malloc-gnu.c: New file.
64860 2010-08-28  Bruno Haible  <bruno@clisp.org>
64862         Rename module 'realloc' -> 'realloc-gnu'.
64863         * modules/realloc-gnu: New file, copied from modules/realloc.
64864         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
64865         obsolete.
64866         * modules/mgetgroups (Depends-on): Update.
64867         * doc/posix-functions/realloc.texi: Update.
64868         * NEWS: Mention the change.
64870         Rename module 'calloc' -> 'calloc-gnu'.
64871         * modules/calloc-gnu: New file, copied from modules/calloc.
64872         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
64873         obsolete.
64874         * doc/posix-functions/calloc.texi: Update.
64875         * NEWS: Mention the change.
64877         Rename module 'malloc' -> 'malloc-gnu'.
64878         * modules/malloc-gnu: New file, copied from modules/malloc.
64879         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
64880         obsolete.
64881         * modules/argp (Depends-on): Update.
64882         * modules/regex (Depends-on): Update.
64883         * doc/posix-functions/malloc.texi: Update.
64884         * NEWS: Mention the change.
64886 2010-08-28  Eric Blake  <eblake@redhat.com>
64888         pread, pwrite: add missing dependency
64889         * modules/pread (Depends-on): Add extensions.
64890         * modules/pwrite (Depends-on): Likewise.
64892 2010-08-28  Bruno Haible  <bruno@clisp.org>
64894         unistr/u*-strchr: Fix tests dependencies.
64895         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
64896         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
64897         Reported by Ian Beckwith <ianb@erislabs.net>.
64899 2010-08-28  Bruno Haible  <bruno@clisp.org>
64901         read-file: Don't occupy too much unused memory.
64902         * lib/read-file.c (fread_file): Shrink the buffer at the end.
64904 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
64905             Eric Blake  <eblake@redhat.com>
64906             Bruno Haible  <bruno@clisp.org>
64908         read-file: Avoid memory reallocations with regular files.
64909         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
64910         (fread_file): With regular files, use the remaining length as the
64911         initial buffer size.  Check against overflow.
64912         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
64913         sys_stat.
64915 2010-08-28  Bruno Haible  <bruno@clisp.org>
64917         ftello: Relax license.
64918         * modules/ftello (License): Relax to LGPLv2+.
64919         Reported by Eric Blake.
64921 2010-08-28  Bruno Haible  <bruno@clisp.org>
64923         Avoid relocwrapper link errors due to gnulib replacement functions.
64924         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
64925         function.
64926         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64928 2010-08-28  Bruno Haible  <bruno@clisp.org>
64930         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
64931         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
64932         defined.
64933         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
64934         Suggested by Eric Blake.
64936 2010-08-28  Bruno Haible  <bruno@clisp.org>
64938         sys_socket, netdb: Ensure socklen_t gets defined.
64939         * modules/sys_socket (Depends-on): Add socklen.
64940         * modules/netdb (Depends-on): Likewise.
64941         * modules/getaddrinfo (Depends-on): Remove socklen.
64942         * modules/getsockopt (Depends-on): Likewise.
64943         * modules/setsockopt (Depends-on): Likewise.
64944         * tests/test-sys_socket.c: Check that socklen_t is defined.
64945         * tests/test-netdb.c: Likewise.
64946         * m4/socklen.m4: Update comments.
64947         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64949 2010-08-27  Eric Blake  <eblake@redhat.com>
64951         login_tty: add missing dependency
64952         * modules/login_tty (Depends-on): Add pty.
64954 2010-08-26  Eric Blake  <eblake@redhat.com>
64956         lib-symbol-versions: fix m4 quoting
64957         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
64958         format for AC_LINK_IFELSE.
64960         glob: fix compile test
64961         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
64963         btowc: fix missing file
64964         * modules/btowc (Files): Also ship locale-fr.m4.
64966         lseek: fix link test
64967         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
64968         AC_LINK_IFELSE.
64970         include_next: silence autoconf 2.68 warning
64971         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
64972         AC_COMPILE_IFELSE as special.
64973         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
64974         autoconf < 2.68.
64976         acl: fix compilation test
64977         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
64978         AC_COMPILE_IFELSE.
64980 2010-08-26  Bruno Haible  <bruno@clisp.org>
64982         Modernize AC_TRY_RUN invocations.
64983         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
64984         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
64985         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
64986         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
64987         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
64988         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
64989         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
64990         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
64991         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
64992         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
64993         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
64994         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
64995         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
64996         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
64997         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
64998         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
64999         gl_MBRLEN_NUL_RETVAL): Likewise.
65000         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
65001         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
65002         Likewise.
65003         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
65004         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
65005         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
65006         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
65007         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
65008         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
65009         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
65010         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
65011         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
65012         Likewise.
65013         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
65014         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
65015         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65016         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
65017         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
65018         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
65019         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
65020         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
65021         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
65022         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65024 2010-08-26  Bruno Haible  <bruno@clisp.org>
65026         Modernize AC_TRY_LINK invocations.
65027         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
65028         AC_TRY_LINK.
65029         * m4/argp.m4 (gl_ARGP): Likewise.
65030         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
65031         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
65032         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
65033         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
65034         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
65035         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
65036         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
65037         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
65038         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
65039         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
65040         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
65041         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
65042         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
65043         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
65044         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
65045         * m4/hostent.m4 (gl_HOSTENT): Likewise.
65046         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
65047         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
65048         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
65049         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
65050         Likewise.
65051         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
65052         Likewise.
65053         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
65054         Likewise.
65055         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
65056         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
65057         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
65058         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
65059         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
65060         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
65061         * m4/servent.m4 (gl_SERVENT): Likewise.
65062         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
65063         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
65064         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
65065         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
65066         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
65067         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
65068         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
65069         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
65070         * modules/tsearch-tests (configure.ac): Likewise.
65072 2010-08-26  Bruno Haible  <bruno@clisp.org>
65074         Modernize AC_TRY_COMPILE invocations.
65075         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
65076         AC_TRY_COMPILE.
65077         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
65078         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
65079         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
65080         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
65081         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
65082         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
65083         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
65084         * m4/lock.m4 (gl_LOCK): Likewise.
65085         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
65086         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65087         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
65088         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
65089         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
65090         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
65091         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
65092         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
65093         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
65094         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
65095         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
65096         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65097         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
65098         extraneous semicolon.
65100 2010-08-26  Jim Meyering  <meyering@redhat.com>
65102         stat-time: relax license LGPL
65103         * modules/stat-time (License): Change from GPL to LGPL,
65104         with consent from all contributors, for use in libguile.
65105         Requested by Ludovic Courtès.
65107 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
65109         poll: return immediately on POLLHUP.
65110         * lib/poll.c (poll): Always set timeout before wait_timeout is
65111         computed.
65113 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65115         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
65116         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
65117         rmdir ("dir/.//"), unlinkat.
65119 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65121         stdbool: avoid spurious failure with modern xlc
65122         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
65124 2010-08-24  Bruno Haible  <bruno@clisp.org>
65126         getloadavg: simplify code
65127         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
65128         gl_have_func. Update comments.
65130 2010-08-24  Eric Blake  <eblake@redhat.com>
65132         getloadavg: don't define SVR4 on cygwin
65133         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
65134         only define SVR4 when -lkvm is required.
65135         Reported by Yaakov Selkowitz.
65137 2010-08-24  Bruno Haible  <bruno@clisp.org>
65139         priv-set: fix comment
65140         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
65142 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65144         priv-set: fix comments
65145         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
65146         to match code, as suggested by David Bartley in:
65147         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
65149 2010-08-23  Eric Blake  <eblake@redhat.com>
65151         stdbool: avoid rejecting clang
65152         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
65153         * tests/test-stdbool.c: Enable more tests if using the system
65154         <stdbool.h> instead of the gnulib replacement.
65155         (main): Move xlc bug test to a runtime test for all compilers.
65156         Reported by Anders Kaseorg.
65158         argz: fix shell quoting issue
65159         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
65160         Reported by Charles Wilson.
65162 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
65163             Erik Faye-Lund <kusmabite@gmail.com>
65165         poll, select: handle ERROR_BROKEN_PIPE.
65166         * lib/poll.c (win32_compute_revents): Return POLLHUP when
65167         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
65168         * lib/select.c (win32_compute_revents): Do not mark a pipe
65169         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
65171 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
65173         fts: allow compilation with C++
65174         * lib/fts_.h: Specify extern "C" linkage with C++.
65176 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65178         Fix gnulib-tool sed script de-commentation for AIX sed.
65179         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
65180         sed.
65182 2010-08-17  Eric Blake  <eblake@redhat.com>
65184         test-stddef: test for (some) offsetof bugs
65185         * tests/test-stddef.c: Enhance test to ensure correct type of
65186         offsetof.
65187         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
65188         that we are not fixing at this time.
65190 2010-08-15  Bruno Haible  <bruno@clisp.org>
65192         stpncpy: Allow stpncpy to be defined as a macro.
65193         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
65194         if it's already correctly declared.
65195         * lib/string.in.h (stpncpy): Undefine before redefining.
65196         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
65198 2010-08-14  Bruno Haible  <bruno@clisp.org>
65200         Rename module 'memxfrm' to 'amemxfrm'.
65201         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
65202         (amemxfrm): Renamed from memxfrm.
65203         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
65204         (amemxfrm): Renamed from memxfrm.
65205         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
65206         * NEWS: Mention the change.
65207         * MODULES.html.sh (String handling <string.h>): Update.
65208         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
65209         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
65210         * lib/unicase/u16-casexfrm.c: Likewise.
65211         * lib/unicase/u32-casexfrm.c: Likewise.
65212         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
65213         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
65214         * lib/uninorm/u16-normxfrm.c: Likewise.
65215         * lib/uninorm/u32-normxfrm.c: Likewise.
65216         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
65217         memxfrm.
65218         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
65219         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
65220         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
65221         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
65222         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
65223         Suggested by Paul Eggert.
65225 2010-08-14  Bruno Haible  <bruno@clisp.org>
65227         Tests for module 'astrxfrm'.
65228         * modules/astrxfrm-tests: New file.
65229         * tests/test-astrxfrm.c: New file.
65231         New module 'astrxfrm'.
65232         * lib/astrxfrm.h: New file.
65233         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
65234         * modules/astrxfrm: New file.
65236 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
65238         regex: Tweak doc.
65239         * doc/regex.texi (Overview): Don't mention regex.c.
65240         (GNU Regular Expression Compiling): Likewise.
65241         (Match-end-of-line Operator): Mention 'not_eol'.
65243 2010-08-14  Brian Gough  <bjg@gnu.org>
65244             Bruno Haible  <bruno@clisp.org>
65246         git-merge-changelog: add doc relating to use with bzr and hg.
65247         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
65249 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
65251         pthread: fix pthread.h creation for srcdir != builddir
65252         * modules/pthread (Makefile.am): Fix the rule to work also in a
65253         non-srcdir build.
65255 2010-08-13  Karl Berry  <karl@gnu.org>
65257         * doc/regex.texi (Predefined Syntaxes): @smallexample.
65258         * doc/posix-*/*: force line break before @url of POSIX
65259         specifications.
65260         Suggested by Werner Lemberg.
65262 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65264         strtod: fix const diagnostic
65265         * lib/strtod.c (strtod): Don't assign const char * to char *,
65266         as this elicits a warning from GCC when warnings are enabled.
65268 2010-08-10  Pádraig Brady  <P@draigbrady.com>
65269         and Eric Blake  <eblake@redhat.com>
65271         copy-acl: ignore ENOTSUP on HP-UX
65272         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
65273         so that it is available for HP-UX.
65274         * lib/copy-acl.c (qcopy_acl): Use it.
65275         Reported by Patrick M. Callahan.
65277 2010-08-10  Eric Blake  <eblake@redhat.com>
65279         open, chown: relax license
65280         * modules/open (License): Change to LGPLv2+, with consent by all
65281         authors, for use in augeas.
65282         * modules/chown (License): Likewise.
65283         * modules/lchown (Likewise): Likewise.
65284         Requested by Adam Stokes.
65286 2010-08-09  Karl Berry  <karl@gnu.org>
65288         * build-aux/ar-lib: new file, import from Automake.
65289         * config/srclist.txt: autocheck for updates.
65291 2010-08-09  Eric Blake  <eblake@redhat.com>
65293         readlinkat: adjust client modules
65294         * modules/areadlinkat (Depends-on): Use readlinkat, not
65295         symlinkat.
65296         * modules/areadlinkat-with-size (Depends-on): Likewise.
65298         mknod: be more vocal about danger of running tests as root
65299         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
65300         root, since that is just asking for problems.
65301         Suggested by Bruno Haible, based on a report by Rainer Tammer.
65303         readlinkat: split into its own module
65304         * modules/symlinkat: Split readlinkat...
65305         * modules/readlinkat: ...into separate module.
65306         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
65307         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
65308         * lib/symlinkat.c (readlinkat): Move...
65309         * lib/readlinkat.c: ...into new file.
65310         * modules/symlinkat-tests: Split readlinkat test...
65311         * modules/readlinkat-tests: ...into separate module.
65312         * tests/test-symlinkat.c: Split...
65313         * tests/test-readlinkat.c: ...into new file.
65314         * NEWS: Document the split.
65315         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
65316         * lib/unistd.in.h (readlinkat): Likewise.
65317         Suggested by Bruno Haible.
65319 2010-08-08  Bruno Haible  <bruno@clisp.org>
65321         memxfrm: Speed up.
65322         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
65323         that usually only one call to strxfrm is necessary for each string
65324         part.
65325         Reported by Paul Eggert <eggert@cs.ucla.edu>.
65327 2010-08-07  Karl Berry  <karl@gnu.org>
65329         * doc/posix-headers/limits.texi,
65330         * doc/posix-functions/malloc.texi,
65331         * doc/posix-functions/strsignal.texi: missing @item.
65332         * doc/ld-version-script.texi: spurious leading i.
65333         * doc/regex.texi (Interval Operators): no commas inside @var.
65335 2010-08-01  Bruno Haible  <bruno@clisp.org>
65337         Integrate the regex documentation.
65338         * doc/gnulib.texi: Define 'cn' index.
65339         (Regular expressions): New a chapter that includes regex.texi and
65340         regexprops-generic.texi.
65341         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
65342         syntax.
65344         Whitespace cleanup.
65345         * doc/regex.texi: Remove trailing spaces.
65347         Add regex documentation.
65348         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
65349         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
65350         Written by Kathy A. Hargreaves and Karl Berry.
65352 2010-08-01  Bruno Haible  <bruno@clisp.org>
65354         link: Update documentation.
65355         * doc/posix-functions/link.texi: Update regarding Solaris.
65357 2010-07-31  Bruno Haible  <bruno@clisp.org>
65359         Update modules list.
65360         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
65361         (String handling <string.h>): Add memcmp2, memxfrm.
65362         (Container data structures): Add xlist, xsublist, xoset.
65363         (Core language properties): Add alignof, unused-parameter.
65364         (Process control, Numeric conversion functions <stdlib.h>): Renamed
65365         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
65366         (Unibyte characters <ctype.h>): New section.
65367         (String handling <string.h>): New section.
65368         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
65369         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
65370         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
65371         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
65372         tan, tanh, tanl, y0, y1, yn.
65373         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
65374         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
65375         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
65376         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
65377         unlockpt, vdprintf, vdprintf-posix.
65378         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
65379         (File system functions): Add concat-filename, sys_file, sys_ioctl,
65380         xconcat-filename.
65381         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
65382         getdtablesize, pipe2, pipe2-safer.
65383         (Security): New section.
65384         (Networking functions): Add accept4.
65385         (Signal handling): Add sigpipe.
65386         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
65387         mbmemcasecoll.
65388         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
65389         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
65390         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
65391         pipe-filter-ii.
65392         (Misc): Add argp-version-etc, login_tty, parse-duration.
65394 2010-07-31  Bruno Haible  <bruno@clisp.org>
65396         Improve doc in MODULES.html.
65397         * modules/linkat (Description): Add the word "function".
65398         * modules/mkfifo (Description): Likewise.
65399         * modules/mknod (Description): Likewise.
65400         * modules/remove (Description): Likewise.
65401         * modules/renameat (Description): Likewise.
65402         * modules/stat (Description): Likewise.
65403         * modules/symlink (Description): Likewise.
65404         * modules/unlink (Description): Likewise.
65406 2010-07-31  Bruno Haible  <bruno@clisp.org>
65408         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
65409         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
65410         option --enable/disable-c++ instead of --enable/disable-cxx.
65411         * NEWS: Mention the change.
65413 2010-07-31  Bruno Haible  <bruno@clisp.org>
65415         readlink, areadlink: Relax test a bit.
65416         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
65417         alternative to ENOTDIR.
65418         * tests/test-areadlink.h (test_areadlink): Likewise.
65419         Reported by Rainer Tammer.
65421 2010-07-31  Bruno Haible  <bruno@clisp.org>
65423         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
65424         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
65425         character, perform the search using U_STRCHR.
65426         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
65427         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
65428         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
65429         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
65430         Suggested by Paolo Bonzini.
65432 2010-07-31  Bruno Haible  <bruno@clisp.org>
65434         unistr/u*-strstr: Fix dependencies.
65435         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
65436         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
65437         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
65439 2010-07-31  Bruno Haible  <bruno@clisp.org>
65441         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
65442         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
65443         the beginning of the loop.
65444         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
65445         cases in 'switch' statement.
65447         unistr/u8-strchr: Fix several bugs.
65448         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
65449         the string. When not found, return NULL, not a pointer near the end.
65451         More tests for unistr/u8-strchr.
65452         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
65453         that the function does not read past the first occurrence of the byte
65454         being searched.
65455         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
65456         * tests/unistr/test-u16-strchr.c (main): New function.
65457         * tests/unistr/test-u32-strchr.c (main): New function.
65459 2010-07-31  Bruno Haible  <bruno@clisp.org>
65461         posix-modules: Ignore backup files of documentation files.
65462         * posix-modules: grep only through files named *.texi.
65464 2010-07-31  Bruno Haible  <bruno@clisp.org>
65466         symlinkat: Fix documentation.
65467         * doc/posix-functions/readlinkat.texi: Fix module name.
65469 2010-07-31  Bruno Haible  <bruno@clisp.org>
65471         fchownat: Replace also when chown has the trailing slash bug.
65472         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
65473         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
65474         introduced on 2010-04-10.
65475         Reported by Rainer Tammer.
65477 2010-07-31  Bruno Haible  <bruno@clisp.org>
65479         linkat: Work around AIX 7.1 bug.
65480         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
65481         whether linkat handles trailing slash correctly. If not, replace linkat
65482         and define LINKAT_TRAILING_SLASH_BUG.
65483         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
65484         check whether (fd1,file1) points to a directory if file1 or file2 ends
65485         in a slash. Code taken from lib/link.c.
65486         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
65487         Reported by Rainer Tammer.
65489 2010-07-31  Bruno Haible  <bruno@clisp.org>
65491         Correctly determine whether pow is available in libc on AIX 7 with xlc.
65492         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
65493         This disables an xlc optimization that was causing wrong test results.
65494         Reported by Rainer Tammer.
65496 2010-07-31  Bruno Haible  <bruno@clisp.org>
65498         iconv: Work around AIX 6.1..7.1 bug.
65499         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
65500         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
65501         cross-compiling, guess no on all versions of AIX.
65502         Reported by Rainer Tammer.
65504 2010-07-31  Bruno Haible  <bruno@clisp.org>
65506         readlink: Relax test a bit.
65507         * tests/test-readlink.h (test_readlink): Allow different errno value
65508         when readlink is called with a file name that ends in / and refers to
65509         a file.
65510         Suggested by Eric Blake.
65511         Reported by Rainer Tammer.
65513 2010-07-31  Bruno Haible  <bruno@clisp.org>
65515         copysign: Does not require -lm on glibc systems.
65516         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
65517         gl_COMMON_DOUBLE_MATHFUNC.
65518         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
65520 2010-07-31  Bruno Haible  <bruno@clisp.org>
65522         duplocale: Work around AIX 7.1 bug.
65523         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
65524         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
65525         * lib/duplocale.c (rpl_duplocale): Update comment.
65526         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
65527         Reported by Rainer Tammer.
65529 2010-07-30  Bruno Haible  <bruno@clisp.org>
65531         dirfd: Avoid link error on AIX 7.1.
65532         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
65533         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
65534         exist, set REPLACE_DIRFD.
65535         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
65536         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
65537         * doc/posix-functions/dirfd.texi: Update.
65538         Reported by Rainer Tammer.
65540 2010-07-30  Eric Blake  <eblake@redhat.com>
65542         strtod: next round of AIX fixes
65543         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
65544         exponent.
65545         * tests/test-strtod.c (main): Enhance tests.
65546         * doc/posix-functions/strtod.texi (strtod): Document next bug.
65547         Reported by Rainer Tammer.
65549         futimens: fix configure check
65550         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
65551         Reported by Bruno Haible.
65553 2010-07-30  Bruno Haible  <bruno@clisp.org>
65555         getline: Update regarding AIX.
65556         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
65557         Reported by Rainer Tammer.
65559 2010-07-30  Bruno Haible  <bruno@clisp.org>
65561         wcwidth: Drop replacement on AIX 7.
65562         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
65563         AIX 7.
65564         Reported by Rainer Tammer.
65566 2010-07-30  Bruno Haible  <bruno@clisp.org>
65568         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
65569         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
65570         a 'char *'.
65571         Reported by Rainer Tammer.
65573 2010-07-30  Bruno Haible  <bruno@clisp.org>
65575         unlink: Update regarding AIX.
65576         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
65577         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
65578         Reported by Rainer Tammer.
65580 2010-07-30  Bruno Haible  <bruno@clisp.org>
65582         symlink: Update regarding AIX.
65583         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
65584         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
65585         Reported by Rainer Tammer.
65587 2010-07-30  Bruno Haible  <bruno@clisp.org>
65589         strndup: Update regarding AIX.
65590         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
65591         AIX 7.
65592         Reported by Rainer Tammer.
65594 2010-07-30  Bruno Haible  <bruno@clisp.org>
65596         stat: Update regarding AIX.
65597         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
65598         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
65599         Reported by Rainer Tammer.
65601 2010-07-30  Bruno Haible  <bruno@clisp.org>
65603         truncl: Fix autoconf test.
65604         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
65605         whether truncl works.
65606         Reported by Rainer Tammer.
65608 2010-07-30  Bruno Haible  <bruno@clisp.org>
65610         round: Update regarding AIX.
65611         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
65612         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
65613         Reported by Rainer Tammer.
65615 2010-07-30  Bruno Haible  <bruno@clisp.org>
65617         rename: Update regarding AIX.
65618         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
65619         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
65620         Reported by Rainer Tammer.
65622 2010-07-30  Bruno Haible  <bruno@clisp.org>
65624         printf.m4: Update regarding AIX.
65625         * m4/printf.m4: Update comments regarding AIX.
65626         Reported by Rainer Tammer.
65628 2010-07-30  Bruno Haible  <bruno@clisp.org>
65630         iconv: Update regarding AIX.
65631         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
65632         AIX 7.
65633         Reported by Rainer Tammer.
65635 2010-07-30  Bruno Haible  <bruno@clisp.org>
65637         getopt: Update regarding AIX.
65638         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
65639         no on AIX.
65640         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
65641         Reported by Rainer Tammer.
65643 2010-07-30  Bruno Haible  <bruno@clisp.org>
65645         ldexpl; Update regarding AIX.
65646         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
65647         on AIX 7.
65648         Reported by Rainer Tammer.
65650 2010-07-30  Bruno Haible  <bruno@clisp.org>
65652         frexpl: Update regarding AIX.
65653         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
65654         on AIX 7.
65655         Reported by Rainer Tammer.
65657 2010-07-30  Bruno Haible  <bruno@clisp.org>
65659         open, fopen: Update regarding AIX.
65660         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
65661         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
65662         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
65663         * doc/posix-functions/fopen.texi: Likewise.
65664         Reported by Rainer Tammer.
65666 2010-07-30  Bruno Haible  <bruno@clisp.org>
65668         chown: Update doc regarding AIX.
65669         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
65670         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
65671         Reported by Rainer Tammer.
65673 2010-07-30  Eric Blake  <eblake@redhat.com>
65675         strtod: fix bug in replacement function on AIX
65676         * lib/strtod.c (strtod): Special case broken "0x" parse in
65677         underlying strtod.
65678         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
65679         * doc/posix-functions/strtod.texi (strtod): Likewise.
65680         Reported by Rainer Tammer.
65682 2010-07-30  Bruno Haible  <bruno@clisp.org>
65684         mbrlen: Fix cross-compilation guess for AIX.
65685         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
65686         guess. Leftover from 2008-12-22.
65688 2010-07-30  Bruno Haible  <bruno@clisp.org>
65690         mbrtowc: Fix cross-compilation guess for AIX.
65691         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
65692         guess. Leftover from 2008-12-21.
65694 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
65696         init.sh: work around trap limitation of some shells
65697         * tests/init.sh (setup_): Move exit trap outside of shell function.
65699 2010-07-29  Eric Blake  <eblake@redhat.com>
65701         strtod: aid debugging
65702         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
65703         understanding why strtod is rejected.
65705 2010-07-28  Bruno Haible  <bruno@clisp.org>
65707         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
65708         * lib/unistr/u8-chr.c: Include <string.h>.
65709         * tests/unistr/test-u8-chr.c: Likewise.
65710         * tests/unistr/test-u16-chr.c: Likewise.
65711         * tests/unistr/test-u32-chr.c: Likewise.
65712         * tests/unistr/test-u8-strchr.c: Likewise.
65713         * tests/unistr/test-u16-strchr.c: Likewise.
65714         * tests/unistr/test-u32-strchr.c: Likewise.
65715         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
65716         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
65717         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
65718         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
65720 2010-07-28  Bruno Haible  <bruno@clisp.org>
65722         Use spaces for indentation, not tabs.
65723         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
65725 2010-07-27  Bruno Haible  <bruno@clisp.org>
65727         mbspcasecmp: Fix function specification.
65728         * lib/string.in.h (mbspcasecmp): Fix specification comment.
65729         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
65730         Reported by Eric Blake <eblake@redhat.com>.
65732 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
65734         timespec: use cast and not conditional, as truncation isn't possible
65735         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
65736         instead of a conditional.  Comment about the situation in more detail.
65737         This undoes most of the 2009-10-29 patch.
65739 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
65741         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
65742         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
65743         * lib/unistr/u8-strchr.c: Likewise.
65744         * modules/unistr/u8-chr: Depend on memchr.
65746         unistr/u*-strchr: add tests
65747         * modules/unistr/u8-strchr-tests: New file.
65748         * modules/unistr/u16-strchr-tests: New file.
65749         * modules/unistr/u32-strchr-tests: New file.
65750         * tests/unistr/test-strchr.h: New file.
65751         * tests/unistr/test-u8-strchr.c: New file.
65752         * tests/unistr/test-u16-strchr.c: New file.
65753         * tests/unistr/test-u32-strchr.c: New file.
65755         unistr/u*-chr: test multibyte sequences more
65756         * tests/unistr/test-chr.h: Do complete testing of the characters in the
65757         test vector.
65758         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
65759         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
65760         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
65762         unistr/u*-chr: test multibyte sequences
65763         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
65765         unistr/u*-chr: prepare for multibyte tests
65766         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
65767         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
65768         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
65769         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
65770         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
65771         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
65773 2010-07-18  Bruno Haible  <bruno@clisp.org>
65775         unistr/u8-strchr: Optimize non-ASCII argument case.
65776         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
65777         because the first byte often matches anyway.
65778         Reported by Pádraig Brady <P@draigbrady.com>.
65780 2010-07-15  Karl Berry  <karl@gnu.org>
65782         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
65784 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
65786         getcwd: on Solaris, work better if ancestors are inaccessible
65787         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
65788         buffer and size, try again with a large buffer.  This works better
65789         on Solaris, since its getcwd succeeds even if the path to the root
65790         is inaccessible, and this is helpful in common cases such as .zfs
65791         hidden directories.  Problem reported by J Chapman Flack in
65792         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
65793         Use system getcwd if it's declared, not merely if it's partly
65794         working; use the partly-working test only to avoid needless effort
65795         if the system getcwd fails.
65796         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
65797         comment that was already obsolete and is now even more obsolete.
65798         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
65799         now might call strdup.
65801 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
65803         pthread: Add enough so that coreutils/src/sort.c compiles.
65804         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
65805         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
65806         gnulib. Include <sched.h> and <time.h>, as per POSIX.
65807         Include <sys/types.h>, in case it defines pthread_t.
65808         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
65809         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
65810         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
65811         (pthread_rwlockattr_t, pthread_spinlock_t):
65812         New typedefs, if HAVE_PTHREAD_T is not defined.
65813         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
65814         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
65815         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
65816         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
65817         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
65818         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
65819         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
65820         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
65821         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
65822         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
65823         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
65824         New macros.
65825         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
65826         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
65827         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
65828         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
65829         (pthread_spin_unlock): New dummy functions.
65830         (pthread_create): Return EAGAIN; don't set errno.
65831         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
65832         require AC_C_INLINE.
65833         * modules/pthread (Depends-on): Add sched, time.
65834         (pthread.h): Use AM_V_GEN.
65836 2010-07-13  Bruno Haible  <bruno@clisp.org>
65838         striconveh: Don't malloc memory if the result buffer is sufficient.
65839         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
65840         buffer if its size is sufficient.
65841         Reported by Ludovic Courtès <ludo@gnu.org>.
65843 2010-07-13  Bruno Haible  <bruno@clisp.org>
65845         strtod: Add safety check.
65846         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
65848 2010-07-12  Bruno Haible  <bruno@clisp.org>
65850         Unify tests that set gl_cv_func_ldexpl_no_libm.
65851         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
65852         gl_FUNC_LDEXPL.
65853         (gl_FUNC_LDEXPL): Invoke it.
65854         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65856 2010-07-12  Bruno Haible  <bruno@clisp.org>
65858         Unify tests that set gl_cv_func_ldexp_no_libm.
65859         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
65860         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
65861         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
65862         (configure.ac): Simply invoke gl_FUNC_LDEXP.
65863         * modules/strtod (Files): Add m4/ldexp.m4.
65865 2010-07-12  Bruno Haible  <bruno@clisp.org>
65867         Unify tests that set gl_cv_func_frexpl_no_libm.
65868         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
65869         gl_FUNC_FREXPL_NO_LIBM.
65870         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
65871         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65873 2010-07-12  Bruno Haible  <bruno@clisp.org>
65875         Unify tests that set gl_cv_func_frexp_no_libm.
65876         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
65877         gl_FUNC_FREXP_NO_LIBM.
65878         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
65879         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
65881 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
65883         memcoll: clarify sizes versus lengths, document better, and tweak perf
65884         * lib/memcoll.c (strcoll_loop, memcoll0):
65885         Improve quality of descriptive comments.  Name variables
65886         consistently as to whether they are lengths (which do not include
65887         terminating null) versus sizes (which do).
65888         * lib/xmemcoll.c (xmemcoll0): Likewise.
65889         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
65890         returned when s1size == 0; this is easier to compile and saves
65891         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
65893 2010-07-12  Bruno Haible  <bruno@clisp.org>
65895         Tests for module '_Exit'.
65896         * modules/_Exit-tests: New file.
65897         * tests/test-_Exit.sh: New file.
65898         * tests/test-_Exit.c: New file.
65900         New module '_Exit'.
65901         * lib/stdlib.in.h (__attribute__): New macro.
65902         (_Exit): New declaration.
65903         * lib/_Exit.c: New file.
65904         * m4/_Exit.m4: New file.
65905         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
65906         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
65907         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
65908         * modules/_Exit: New file.
65909         * tests/test-stdlib-c++.cc (_Exit): Check signature.
65910         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
65912 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
65914         strtod: make it more-accurate typically, and don't require libm
65915         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
65916         Include limits.h.  Don't include string.h.
65917         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
65918         (locale_isspace): New function, so that no casts are needed to
65919         check whether *s is a space.
65920         (ldexp): Provide an unused dummy if not available.
65921         (scale_radix_exp, parse_number, underlying_strtod): New functions.
65922         (strtod): Use them.  This implementation prefers to use the
65923         underlying strtod if available, falling back on our own code
65924         only to fix known bugs.  This is more likely to produce an
65925         accurate result.  Also, it avoids the use of libm functions.
65926         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
65927         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
65928         was absent, but it caused a test failure with coreutils.
65929         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
65930         with libm.
65931         * modules/strtod (Makefile.am, Link): libm is no longer needed.
65932         * modules/strtod-tests (Makefile.am): Likewise.
65934 2010-07-11  Pádraig Brady  <P@draigBrady.com>
65935             Bruno Haible  <bruno@clisp.org>
65937         unistr/u8-strchr: Optimize ASCII argument case.
65938         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
65940 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65942         (x)memcoll: minor tweaks
65943         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
65944         is after the type that it qualifies.
65945         (memcoll0): Likewise.
65946         * lib/memcoll.h (memcoll0): Likewise.
65947         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
65948         * lib/xmemcoll.h (xmemcoll0): Likewise.
65949         * lib/memcoll.c (memcoll0): Correct the comment.  This function
65950         differs from memcoll in that the NUL byte is part of the argument.
65951         Omit the abort-checks, as performance is a real issue here.  Plus,
65952         the checks were wrong anyway (an off-by-one error).  Omit local
65953         variable 'diff', as it's a bit clearer that way.
65954         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
65955         no longer needed.
65957 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
65959         (x)memcoll: speedup when input is known to be NUL delimited
65960         * lib/memcoll.c: Include stdlib.
65961         (memcoll0): New function.
65962         (strcoll_loop): New function, refactored for use in both memcoll
65963         and memcoll0.
65964         * lib/memcoll.h (memcoll0): Add prototype.
65965         * lib/xmemcoll.c (xmemcoll0): New function.
65966         (collate_error): New function, refactored for use in both xmemcoll
65967         and xmemcoll0.
65968         * lib/xmemcoll.h (xmemcoll0): Add prototype.
65969         * m4/memcoll.m4: add inline invocation.
65971 2010-07-06  Pádraig Brady  <P@draigBrady.com>
65973         * build-aux/bootstrap: Remove any local translations
65974         from the translation project synchronization directory,
65975         so that local only translations are not distributed.
65977 2010-07-04  Bruno Haible  <bruno@clisp.org>
65979         fsusage: Clarify which code applies to which platforms.
65980         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
65981         platform.
65982         * lib/fsusage.c (get_fs_usage): Likewise.
65984 2010-07-04  Bruno Haible  <bruno@clisp.org>
65986         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
65987         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
65988         Reported by Martin Lambers <marlam@marlam.de>.
65990 2010-07-04  Jim Meyering  <meyering@redhat.com>
65992         hash: once again explicitly disallow insertion of NULL
65993         * lib/hash.c (hash_insert0): Reinstate just-removed test:
65994         inserting a NULL pointer cannot work with these functions.
65995         Add a comment with details.
65996         This reverts part of the 2010-07-01 commit, 5bef1a35
65997         "hash: extend module to deal with non-pointer keys".
65999 2010-07-01  Bruno Haible  <bruno@clisp.org>
66001         stdbool: Update doc.
66002         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
66003         Info from Christian Weisgerber <naddy@mips.inka.de>.
66005 2010-07-01  Jim Meyering  <meyering@redhat.com>
66007         hash: extend module to deal with non-pointer keys
66008         * lib/hash.c (hash_insert0): New interface, much like hash_insert
66009         but that allows insertion of non-pointer entries.
66010         Do not disallow an ENTRY value of NULL.
66011         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
66012         * lib/hash.h (hash_insert0): Declare.
66014 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
66016         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
66017         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
66018         not present (i.e. with autoconf 2.59 and when using gettextize, not
66019         gnulib), require AC_GNU_SOURCE instead.
66021 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
66023         idpriv-drop: Fix tests.
66024         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
66025         not to the test-idpriv-droptemp program.
66027 2010-06-29  Bruno Haible  <bruno@clisp.org>
66029         string: Fix syntax error with g++ 2.96.
66030         * lib/string.in.h (__pure__): Remove definition.
66031         (_GL_ATTRIBUTE_PURE): New macro.
66032         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
66033         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
66034         Reported by Christian Weisgerber <naddy@mips.inka.de>.
66036 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
66038         unitypes: Fix bug introduced on 2010-05-18.
66039         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
66041 2010-06-22  Eric Blake  <eblake@redhat.com>
66043         memmem: slight optimization
66044         * lib/str-two-way.h (critical_factorization): Update comments.
66045         Reduce work during factorization phase.
66046         Reported by Carlos Bueno <carlos@bueno.org>.
66048 2010-06-21  Bruno Haible  <bruno@clisp.org>
66050         Fix HAVE_CALLOC_POSIX misnomer.
66051         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
66052         !HAVE_CALLOC_POSIX.
66053         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
66054         HAVE_CALLOC_POSIX.
66055         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
66056         instead of HAVE_CALLOC_POSIX.
66057         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
66058         HAVE_CALLOC_POSIX.
66060         Use modern idiom for calloc() replacement.
66061         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
66062         AC_FUNC_CALLOC.
66063         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
66064         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
66065         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
66066         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
66067         (gl_REPLACE_CALLOC): New macro.
66069 2010-06-21  Bruno Haible  <bruno@clisp.org>
66071         Fix HAVE_REALLOC_POSIX misnomer.
66072         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
66073         !HAVE_REALLOC_POSIX.
66074         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
66075         HAVE_REALLOC_POSIX.
66076         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
66077         instead of HAVE_REALLOC_POSIX.
66078         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
66079         HAVE_REALLOC_POSIX.
66081         Use modern idiom for realloc() replacement.
66082         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
66083         AC_FUNC_REALLOC.
66084         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
66085         Autoconf's AC_FUNC_REALLOC.
66086         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
66087         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
66088         (gl_REPLACE_REALLOC): New macro.
66089         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
66091 2010-06-21  Bruno Haible  <bruno@clisp.org>
66093         Fix HAVE_MALLOC_POSIX misnomer.
66094         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
66095         !HAVE_MALLOC_POSIX.
66096         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
66097         HAVE_MALLOC_POSIX.
66098         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
66099         instead of HAVE_MALLOC_POSIX.
66100         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
66101         HAVE_MALLOC_POSIX.
66103         Use modern idiom for malloc() replacement.
66104         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
66105         AC_FUNC_MALLOC.
66106         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
66107         Autoconf's AC_FUNC_MALLOC.
66108         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
66109         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
66110         (gl_REPLACE_MALLOC): New macro.
66111         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
66113 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
66115         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
66116         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
66117         This macro takes 3 arguments, not 4.
66119 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
66121         ipv6: fix detection under mingw
66122         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
66123         in6_addr.
66125 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
66127         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
66128         that strtod() works when cross-compiling to a glibc version known
66129         to work.
66131 2010-06-15  Bruno Haible  <bruno@clisp.org>
66133         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
66135 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
66137         select: Correct timeout.
66138         * lib/select.c (rpl_select): Compute wait_timeout correctly.
66140 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
66142         git-version-gen: init shell var to avoid env var influence
66143         * build-aux/git-version-gen (v): Init shell var to empty.
66145 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
66147         priv-set: Don't assume that priv.h exists merely because getppriv does.
66148         See Jan Andersen's bug report about AIX 5L in
66149         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
66150         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
66151         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
66152         * lib/priv-set.h: Likewise.
66153         * tests/test-priv-set.c: Likewise.
66155 2010-06-13  Bruno Haible  <bruno@clisp.org>
66157         relocatable: Make it easier to test whether to install wrappers.
66158         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
66159         RELOCATABLE_VIA_WRAPPER.
66161 2010-06-13  Bruno Haible  <bruno@clisp.org>
66163         gnulib-tool: Display specified modules and dependencies differently.
66164         * gnulib-tool (func_show_module_list): New function.
66165         (func_import, func_create_testdir): Invoke it.
66166         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
66168 2010-06-13  Bruno Haible  <bruno@clisp.org>
66170         gnulib-tool: Align code of func_import and func_create_testdir.
66171         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
66172         specified_modules.
66174 2010-06-12  Jim Meyering  <meyering@redhat.com>
66176         test-inttostr: avoid spurious failure on Solaris 9
66177         * tests/test-inttostr.c (main): Skip the test when snprintf fails
66178         to accept "%ju".  Reported by Bruno Haible.
66180 2010-06-11  Jim Meyering  <meyering@redhat.com>
66182         test-sys_socket: mark variables as used more readably
66183         * tests/test-sys_socket.c (main): Mark otherwise unused variables
66184         as "used" explicitly via (void) statement casts.  This is more
66185         readable than using them in an artificial return expression.
66186         Suggestion from Bruno Haible.
66188 2010-06-11  Bruno Haible  <bruno@clisp.org>
66190         Avoid some more warnings from "gcc -Wwrite-strings".
66191         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
66192         to 'const char *'.
66193         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
66194         * tests/test-c-strcasestr.c (main): Likewise.
66195         * tests/test-mbscasestr1.c (main): Likewise.
66196         * tests/test-mbscasestr2.c (main): Likewise.
66197         * tests/test-memmem.c (main): Likewise.
66198         * tests/test-strstr.c (main): Likewise.
66199         * tests/test-strcasestr.c (main): Likewise.
66201 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66203         init.sh: change framework_failure_ to fail with status 99, not 1
66204         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
66205         automake's parallel-tests rule that this is an unexpected failure,
66206         even if the test is listed in XFAIL_TESTS.
66208 2010-06-11  Jim Meyering  <meyering@redhat.com>
66210         test-inttostr: avoid warnings about 4-6KB literal strings
66211         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
66212         Include "macros.h", for its definition of ASSERT.
66213         (CK): s/assert/ASSERT/
66214         * modules/inttostr-tests (Files): Add macros.h.
66216         init.sh: don't use $ME_ or skip_ before they are defined
66217         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
66218         their first uses.  Also hoist their companions: warn_, fail_,
66219         framework_failure_, $stderr_fileno.  Prompted by a patch from
66220         Stefano Lattarini.
66222         test-sys_socket: avoid set-but-not-used warnings from gcc
66223         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
66224         avoid warning about set-but-not-used variables.
66226         test-xvasprintf: avoid 'const' discard warnings
66227         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
66228         "const" when assigning from literal strings.
66229         (test_xasprintf): Add "void" in function argument list to placate
66230         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
66232         tests: avoid compilation warnings in argmatch and exclude tests...
66233         in packages that define ARGMATCH_DIE_DECL, like coreutils.
66234         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
66235         Since it always exits, declare with the "noreturn" attribute.
66236         * tests/test-argmatch.c: Likewise.
66238         tests: avoid 'const' discard warnings in mbsstr tests
66239         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
66240         * tests/test-mbsstr2.c (main): Likewise.
66242         test-verify: avoid warning from gcc's -Wmissing-declarations
66243         * tests/test-verify.c (function): Declare to be static.
66245         test-inttostr.c: include <string.h> for use of strcmp
66246         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
66248         test-linkat: avoid failed assertion on "other" architectures
66249         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
66250         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
66251         sparc: https://bugs.launchpad.net/bugs/591968
66253 2010-06-11  Jim Meyering  <meyering@redhat.com>
66255         printf.m4: avoid autoconf's "Expanded Before Required" warning
66256         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
66257         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
66258         autoconf warning.
66260 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
66262         Replacement header templates are now named with ".in", not "_".
66263         * doc/gnulib-intro.texi: Correct.
66265 2010-06-10  Jim Meyering  <meyering@redhat.com>
66267         inttostr-tests: depend on snprintf, not snprintf-posix
66268         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
66269         snprintf-posix, to avoid this aclocal failure:
66270           missing file gnulib-tests/vasnprintf.c
66271           configure.ac:45: error: expected source file, required through \
66272           AC_LIBSOURCES, not found
66274 2010-06-10  Jim Meyering  <meyering@redhat.com>
66276         inttostr: add a new function, inttostr, and tests
66277         The namesake function was not available.  The existence of the
66278         template file, inttostr.c makes its addition nontrivial.
66279         * lib/anytostr.c: Rename from inttostr.c.
66280         (anytostr): Rename from inttostr.
66281         * lib/inttostr.c: New file.
66282         * modules/inttostr (Files): Add anytostr.c.
66283         (Makefile.am): Set lib_SOURCES instead of ...
66284         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
66285         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
66286         * lib/offtostr.c: Likewise.
66287         * lib/uinttostr.c: Likewise.
66288         * lib/umaxtostr.c: Likewise.
66289         * modules/inttostr-tests: New file.
66290         * tests/test-inttostr.c: New file.  Test these functions.
66292 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
66293             Bruno Haible  <bruno@clisp.org>
66295         Add "Extending Gnulib" chapter to manual.
66296         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
66297         chapter.
66298         (Extending Gnulib): New chapter.
66299         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
66300         chapter.
66302 2010-06-09  Bruno Haible  <bruno@clisp.org>
66304         Avoid relocwrapper link errors due to gnulib replacement functions.
66305         * lib/areadlink.c: Use the system's malloc, realloc functions.
66306         (areadlink): Set errno to ENOMEM explicitly.
66307         * modules/areadlink (Depends-on): Remove malloc-posix.
66308         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66310 2010-06-09  Bruno Haible  <bruno@clisp.org>
66312         Avoid relocwrapper link errors due to gnulib replacement functions.
66313         * lib/canonicalize-lgpl.c: Use the system's malloc function.
66314         * lib/malloca.c: Likewise.
66315         * lib/relocatable.c: Likewise.
66316         * lib/progreloc.c: Use the system's malloc, sprintf functions.
66317         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
66318         * lib/setenv.c: Use the system's malloc, realloc functions.
66319         * lib/strerror.c: Use the system's sprintf function.
66320         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66322 2010-06-04  Bruno Haible  <bruno@clisp.org>
66324         Prefer documented low-level autoconf macro names.
66325         * m4/lib-link.m4: Use m4_translit instead of translit.
66326         * m4/environ.m4: Likewise.
66327         * m4/mathfunc.m4: Likewise.
66328         * m4/onceonly.m4: Likewise.
66329         * m4/stdint.m4: Likewise.
66330         Suggested by Eric Blake.
66332 2010-06-04  Martin Lambers  <marlam@marlam.de>
66333             Bruno Haible  <bruno@clisp.org>
66335         havelib: Allow library names with '+' characters.
66336         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66337         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
66339 2010-06-09  Bruno Haible  <bruno@clisp.org>
66341         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
66342         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
66343         realloc failed.
66345 2010-06-08  Peter Simons  <simons@cryp.to>
66347         maint.mk: make the news-check rule more configurable
66348         * top/maint.mk (news-check-lines-spec): New variable.
66349         (news-check): Use "sed -n 1,10p" in place of "head".
66351 2010-06-07  Jim Meyering  <meyering@redhat.com>
66353         do-release-commit-and-tag: fix typo in --help
66354         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
66356         regex: avoid new dead-code warning with gcc-4.6.0
66357         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
66358         if-block containing a while-loop.  It's been unused for at least
66359         5 years.
66361 2010-06-05  Bruno Haible  <bruno@clisp.org>
66363         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
66364         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
66366 2010-06-04  Bruno Haible  <bruno@clisp.org>
66368         Update to GNU gettext 0.18.1.
66369         * modules/gettext (configure.ac): Require gettext infrastructure from
66370         version 0.18.1.
66372 2010-06-03  Bruno Haible  <bruno@clisp.org>
66374         Don't use AC_LIBOBJ with file names in subdirectories.
66375         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
66376         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
66377         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
66378         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
66379         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
66380         gl_LIBUNISTRING_LIBSOURCE.
66381         (Makefile.am): Augment lib_SOURCES here, conditionally.
66382         * NEWS: Drop requirement for Automake option 'subdir-objects'.
66384 2010-06-03  Bruno Haible  <bruno@clisp.org>
66386         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
66387         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
66388         expansion does not end with a newline.
66389         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
66390         unnecessary newline.
66392 2010-06-03  Bruno Haible  <bruno@clisp.org>
66394         Reduce dependencies.
66395         * tests/test-quotearg.h: New file, extracted from
66396         tests/test-quotearg.c.
66397         * tests/test-quotearg-simple.c: New file, extracted from
66398         tests/test-quotearg.c.
66399         * tests/test-quotearg.c: Don't include <ctype.h>.
66400         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
66401         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
66402         use_quote_double_quotes, use_quotearg_colon): Moved to
66403         tests/test-quotearg.h.
66404         (results_g, flag_results, custom_quotes, custom_results): Moved
66405         to tests/test-quotearg-simple.c.
66406         (main): Moved the part that does not depend on gettext to
66407         tests/test-quotearg-simple.c. Return 77 if the test cannot be
66408         performed.
66409         * modules/quotearg-simple: New file.
66410         * modules/quotearg-simple-tests: New file.
66411         * modules/quotearg (Depends-on): Add quotearg-simple.
66412         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
66413         (Files): Add tests/test-quotearg.h.
66414         Reported by Paolo Bonzini.
66416 2010-06-03  Bruno Haible  <bruno@clisp.org>
66418         Reduce dependencies.
66419         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
66421 2010-06-03  Bruno Haible  <bruno@clisp.org>
66423         time: Undefine more broken macros.
66424         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
66425         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
66426         Reported by Eric Blake.
66428 2010-06-03  Bruno Haible  <bruno@clisp.org>
66430         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
66431         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
66432         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
66433         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
66434         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
66435         Reported by Ludovic Courtès <ludo@gnu.org>.
66437 2010-06-02  Eric Blake  <eblake@redhat.com>
66439         time: work with mingw + pthreads-win32 library
66440         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
66441         if timespec is defined only in pthread.h.
66442         * modules/time (Makefile.am): Substitute it.
66443         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
66444         <pthread.h>, when needed.
66445         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
66446         from the library.
66448 2010-05-31  Bruno Haible  <bruno@clisp.org>
66450         Avoid expanding two macros in the wrong order.
66451         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
66452         gl_LIBUNISTRING if it is defined.
66453         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
66454         autoconf >= 2.64.
66455         Reported by Ludovic Courtès <ludo@gnu.org>.
66457 2010-05-27  Jim Meyering  <meyering@redhat.com>
66459         maint.mk: also prohibit "#undef" of always-defined symbols
66460         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
66461         Allow more than one space before the symbol name.
66462         (sc_prohibit_always-defined_macros): Use grep's -E, now that
66463         the regexp uses alternation.
66465 2010-05-26  Eric Blake  <eblake@redhat.com>
66467         maint.mk: avoid echo -e
66468         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
66469         Convert all uses of echo -* to printf.
66470         Reported by Matthias Bolte.
66472 2010-05-25  Bruno Haible  <bruno@clisp.org>
66474         Update to GNU gettext 0.18, part 2.
66475         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
66476         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
66478 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66480         Add missing include in test-pwrite.c.
66481         * tests/test-pwrite.c: Include string.h, for strcmp.
66483 2010-05-24  Bruno Haible  <bruno@clisp.org>
66485         * NEWS: Mention requirement for Automake option 'subdir-objects'.
66487 2010-05-24  Bruno Haible  <bruno@clisp.org>
66489         Don't use conversion with transliteration in u{8,16,32}_strcoll.
66490         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
66491         iconveh_error argument.
66492         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
66493         U_STRCONV_TO_LOCALE.
66494         * lib/unistr/u16-strcoll.c: Likewise.
66495         * lib/unistr/u32-strcoll.c: Likewise.
66496         * modules/unistr/u8-strcoll (Depends-on): Add
66497         uniconv/u8-strconv-to-enc, localcharset. Remove
66498         uniconv/u8-strconv-to-locale.
66499         (configure.ac): Bump version number.
66500         * modules/unistr/u16-strcoll (Depends-on): Add
66501         uniconv/u16-strconv-to-enc, localcharset. Remove
66502         uniconv/u16-strconv-to-locale.
66503         (configure.ac): Bump version number.
66504         * modules/unistr/u32-strcoll (Depends-on): Add
66505         uniconv/u32-strconv-to-enc, localcharset. Remove
66506         uniconv/u32-strconv-to-locale.
66507         (configure.ac): Bump version number.
66509 2010-05-24  Bruno Haible  <bruno@clisp.org>
66511         Avoid a test failure on NetBSD 5.0.
66512         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
66513         an iconv() bug.
66515 2010-05-24  Bruno Haible  <bruno@clisp.org>
66517         Adjust #include directive style.
66518         * modules/regex (Includes): Recommend to write <regex.h>.
66520 2010-05-24  Bruno Haible  <bruno@clisp.org>
66522         regex: Don't require alloca.
66523         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
66524         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
66525         only inside if (0).
66527 2010-05-23  Jim Meyering  <meyering@redhat.com>
66529         test-renameat.c: include <sys/stat.h>
66530         * tests/test-renameat.c: Include <sys/stat.h>; required for
66531         definition of S_IS* macros.
66533 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
66535         Update maintainer documentation for 'relocatable-prog' module.
66536         * doc/relocatable-maint.texi: Update.
66537         Comments by Bruno Haible.
66539 2010-05-23  Bruno Haible  <bruno@clisp.org>
66541         git-merge-changelog: Enable --split-merged-entry by default.
66542         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
66543         (usage): Don't mention this option any more.
66544         Reported by Ralf Wildenhues.
66546 2010-05-23  Jim Meyering  <meyering@redhat.com>
66548         test-pwrite: do not leave behind a test file named "out"
66549         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
66550         The trivial-looking use of init.sh is really necessary.
66551         It ensures that the temporary file, "out", is created in
66552         a temporary directory, and removed upon termination.
66553         * tests/test-pwrite.sh: Re-add file.
66554         * modules/pwrite-tests: Reference it.
66556 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66558         Fix output redirection buglet in init.sh.
66559         * tests/init.sh: Fix redirection of stderr.
66561 2010-05-20  Simon Josefsson  <simon@josefsson.org>
66563         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
66565 2010-05-17  Simon Josefsson  <simon@josefsson.org>
66567         * modules/valgrind-tests: New file.
66568         * m4/valgrind-tests.m4: New file.
66569         * doc/valgrind-tests.texi: New file.
66570         * doc/gnulib.texi (Running self-tests under valgrind): New
66571         section.
66573 2010-05-19  Bruno Haible  <bruno@clisp.org>
66575         Clean up dead code in recent commit.
66576         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
66577         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
66578         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
66579         Suggested by Paolo Bonzini.
66581 2010-05-19  Bruno Haible  <bruno@clisp.org>
66583         Avoid valgrind error reports from libunistring.
66584         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
66585         * modules/libunistring (Files): Add it.
66586         * modules/libunistring-optional (Files): Likewise.
66588 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
66589             Bruno Haible  <bruno@clisp.org>
66591         New module 'libunistring-optional'.
66592         * modules/libunistring-optional: New file.
66593         * m4/libunistring-base.m4: New file.
66594         * m4/libunistring-optional.m4: New file.
66595         * lib/unicase.in.h: Renamed from lib/unicase.h.
66596         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
66597         * lib/unictype.in.h: Renamed from lib/unictype.h.
66598         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
66599         * lib/uniname.in.h: Renamed from lib/uniname.h.
66600         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
66601         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
66602         * lib/unistr.in.h: Renamed from lib/unistr.h.
66603         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
66604         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
66605         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
66606         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
66607         gl_LIBUNISTRING. If the library was found, determine the installed
66608         version and set LIBUNISTRING_VERSION.
66609         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
66610         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
66611         handle a configuration option --with-included-libunistring.
66612         * modules/libunistring (Files): Add m4/absolute-header.m4.
66613         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
66614         Add m4/libunistring-base.m4.
66615         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66616         (Makefile.am): Build unicase.h from unicase.in.h.
66617         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
66618         Add m4/libunistring-base.m4.
66619         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66620         (Makefile.am): Build uniconv.h from uniconv.in.h.
66621         * modules/unictype/base (Files): Use unictype.in.h instead of
66622         unictype.h. Add m4/libunistring-base.m4.
66623         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66624         (Makefile.am): Build unictype.h from unictype.in.h.
66625         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
66626         Add m4/libunistring-base.m4.
66627         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66628         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
66629         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
66630         Add m4/libunistring-base.m4.
66631         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66632         (Makefile.am): Build uniname.h from uniname.in.h.
66633         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
66634         Add m4/libunistring-base.m4.
66635         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66636         (Makefile.am): Build uninorm.h from uninorm.in.h.
66637         * modules/unistdio/base (Files): Use unistdio.in.h instead of
66638         unistdio.h. Add m4/libunistring-base.m4.
66639         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66640         (Makefile.am): Build unistdio.h from unistdio.in.h.
66641         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
66642         Add m4/libunistring-base.m4.
66643         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66644         (Makefile.am): Build unistr.h from unistr.in.h.
66645         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
66646         Add m4/libunistring-base.m4.
66647         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66648         (Makefile.am): Build unitypes.h from unitypes.in.h.
66649         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
66650         Add m4/libunistring-base.m4.
66651         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66652         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
66653         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
66654         uniwidth.h. Add m4/libunistring-base.m4.
66655         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66656         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
66657         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
66658         instead of augmenting lib_SOURCES.
66659         * modules/unicase/empty-suffix-context: Likewise.
66660         * modules/unicase/locale-language: Likewise.
66661         * modules/unicase/tolower: Likewise.
66662         * modules/unicase/totitle: Likewise.
66663         * modules/unicase/toupper: Likewise.
66664         * modules/unicase/u8-casecmp: Likewise.
66665         * modules/unicase/u8-casecoll: Likewise.
66666         * modules/unicase/u8-casefold: Likewise.
66667         * modules/unicase/u8-casexfrm: Likewise.
66668         * modules/unicase/u8-ct-casefold: Likewise.
66669         * modules/unicase/u8-ct-tolower: Likewise.
66670         * modules/unicase/u8-ct-totitle: Likewise.
66671         * modules/unicase/u8-ct-toupper: Likewise.
66672         * modules/unicase/u8-is-cased: Likewise.
66673         * modules/unicase/u8-is-casefolded: Likewise.
66674         * modules/unicase/u8-is-lowercase: Likewise.
66675         * modules/unicase/u8-is-titlecase: Likewise.
66676         * modules/unicase/u8-is-uppercase: Likewise.
66677         * modules/unicase/u8-prefix-context: Likewise.
66678         * modules/unicase/u8-suffix-context: Likewise.
66679         * modules/unicase/u8-tolower: Likewise.
66680         * modules/unicase/u8-totitle: Likewise.
66681         * modules/unicase/u8-toupper: Likewise.
66682         * modules/unicase/u16-casecmp: Likewise.
66683         * modules/unicase/u16-casecoll: Likewise.
66684         * modules/unicase/u16-casefold: Likewise.
66685         * modules/unicase/u16-casexfrm: Likewise.
66686         * modules/unicase/u16-ct-casefold: Likewise.
66687         * modules/unicase/u16-ct-tolower: Likewise.
66688         * modules/unicase/u16-ct-totitle: Likewise.
66689         * modules/unicase/u16-ct-toupper: Likewise.
66690         * modules/unicase/u16-is-cased: Likewise.
66691         * modules/unicase/u16-is-casefolded: Likewise.
66692         * modules/unicase/u16-is-lowercase: Likewise.
66693         * modules/unicase/u16-is-titlecase: Likewise.
66694         * modules/unicase/u16-is-uppercase: Likewise.
66695         * modules/unicase/u16-prefix-context: Likewise.
66696         * modules/unicase/u16-suffix-context: Likewise.
66697         * modules/unicase/u16-tolower: Likewise.
66698         * modules/unicase/u16-totitle: Likewise.
66699         * modules/unicase/u16-toupper: Likewise.
66700         * modules/unicase/u32-casecmp: Likewise.
66701         * modules/unicase/u32-casecoll: Likewise.
66702         * modules/unicase/u32-casefold: Likewise.
66703         * modules/unicase/u32-casexfrm: Likewise.
66704         * modules/unicase/u32-ct-casefold: Likewise.
66705         * modules/unicase/u32-ct-tolower: Likewise.
66706         * modules/unicase/u32-ct-totitle: Likewise.
66707         * modules/unicase/u32-ct-toupper: Likewise.
66708         * modules/unicase/u32-is-cased: Likewise.
66709         * modules/unicase/u32-is-casefolded: Likewise.
66710         * modules/unicase/u32-is-lowercase: Likewise.
66711         * modules/unicase/u32-is-titlecase: Likewise.
66712         * modules/unicase/u32-is-uppercase: Likewise.
66713         * modules/unicase/u32-prefix-context: Likewise.
66714         * modules/unicase/u32-suffix-context: Likewise.
66715         * modules/unicase/u32-tolower: Likewise.
66716         * modules/unicase/u32-totitle: Likewise.
66717         * modules/unicase/u32-toupper: Likewise.
66718         * modules/unicase/ulc-casecmp: Likewise.
66719         * modules/unicase/ulc-casecoll: Likewise.
66720         * modules/unicase/ulc-casexfrm: Likewise.
66721         * modules/uniconv/u8-conv-from-enc: Likewise.
66722         * modules/uniconv/u8-conv-to-enc: Likewise.
66723         * modules/uniconv/u8-strconv-from-enc: Likewise.
66724         * modules/uniconv/u8-strconv-from-locale: Likewise.
66725         * modules/uniconv/u8-strconv-to-enc: Likewise.
66726         * modules/uniconv/u8-strconv-to-locale: Likewise.
66727         * modules/uniconv/u16-conv-from-enc: Likewise.
66728         * modules/uniconv/u16-conv-to-enc: Likewise.
66729         * modules/uniconv/u16-strconv-from-enc: Likewise.
66730         * modules/uniconv/u16-strconv-from-locale: Likewise.
66731         * modules/uniconv/u16-strconv-to-enc: Likewise.
66732         * modules/uniconv/u16-strconv-to-locale: Likewise.
66733         * modules/uniconv/u32-conv-from-enc: Likewise.
66734         * modules/uniconv/u32-conv-to-enc: Likewise.
66735         * modules/uniconv/u32-strconv-from-enc: Likewise.
66736         * modules/uniconv/u32-strconv-from-locale: Likewise.
66737         * modules/uniconv/u32-strconv-to-enc: Likewise.
66738         * modules/uniconv/u32-strconv-to-locale: Likewise.
66739         * modules/unictype/bidicategory-byname: Likewise.
66740         * modules/unictype/bidicategory-name: Likewise.
66741         * modules/unictype/bidicategory-of: Likewise.
66742         * modules/unictype/bidicategory-test: Likewise.
66743         * modules/unictype/block-list: Likewise.
66744         * modules/unictype/block-test: Likewise.
66745         * modules/unictype/category-C: Likewise.
66746         * modules/unictype/category-Cc: Likewise.
66747         * modules/unictype/category-Cf: Likewise.
66748         * modules/unictype/category-Cn: Likewise.
66749         * modules/unictype/category-Co: Likewise.
66750         * modules/unictype/category-Cs: Likewise.
66751         * modules/unictype/category-L: Likewise.
66752         * modules/unictype/category-Ll: Likewise.
66753         * modules/unictype/category-Lm: Likewise.
66754         * modules/unictype/category-Lo: Likewise.
66755         * modules/unictype/category-Lt: Likewise.
66756         * modules/unictype/category-Lu: Likewise.
66757         * modules/unictype/category-M: Likewise.
66758         * modules/unictype/category-Mc: Likewise.
66759         * modules/unictype/category-Me: Likewise.
66760         * modules/unictype/category-Mn: Likewise.
66761         * modules/unictype/category-N: Likewise.
66762         * modules/unictype/category-Nd: Likewise.
66763         * modules/unictype/category-Nl: Likewise.
66764         * modules/unictype/category-No: Likewise.
66765         * modules/unictype/category-P: Likewise.
66766         * modules/unictype/category-Pc: Likewise.
66767         * modules/unictype/category-Pd: Likewise.
66768         * modules/unictype/category-Pe: Likewise.
66769         * modules/unictype/category-Pf: Likewise.
66770         * modules/unictype/category-Pi: Likewise.
66771         * modules/unictype/category-Po: Likewise.
66772         * modules/unictype/category-Ps: Likewise.
66773         * modules/unictype/category-S: Likewise.
66774         * modules/unictype/category-Sc: Likewise.
66775         * modules/unictype/category-Sk: Likewise.
66776         * modules/unictype/category-Sm: Likewise.
66777         * modules/unictype/category-So: Likewise.
66778         * modules/unictype/category-Z: Likewise.
66779         * modules/unictype/category-Zl: Likewise.
66780         * modules/unictype/category-Zp: Likewise.
66781         * modules/unictype/category-Zs: Likewise.
66782         * modules/unictype/category-and: Likewise.
66783         * modules/unictype/category-and-not: Likewise.
66784         * modules/unictype/category-byname: Likewise.
66785         * modules/unictype/category-name: Likewise.
66786         * modules/unictype/category-none: Likewise.
66787         * modules/unictype/category-of: Likewise.
66788         * modules/unictype/category-or: Likewise.
66789         * modules/unictype/category-test: Likewise.
66790         * modules/unictype/combining-class: Likewise.
66791         * modules/unictype/ctype-alnum: Likewise.
66792         * modules/unictype/ctype-alpha: Likewise.
66793         * modules/unictype/ctype-blank: Likewise.
66794         * modules/unictype/ctype-cntrl: Likewise.
66795         * modules/unictype/ctype-digit: Likewise.
66796         * modules/unictype/ctype-graph: Likewise.
66797         * modules/unictype/ctype-lower: Likewise.
66798         * modules/unictype/ctype-print: Likewise.
66799         * modules/unictype/ctype-punct: Likewise.
66800         * modules/unictype/ctype-space: Likewise.
66801         * modules/unictype/ctype-upper: Likewise.
66802         * modules/unictype/ctype-xdigit: Likewise.
66803         * modules/unictype/decimal-digit: Likewise.
66804         * modules/unictype/digit: Likewise.
66805         * modules/unictype/mirror: Likewise.
66806         * modules/unictype/numeric: Likewise.
66807         * modules/unictype/property-alphabetic: Likewise.
66808         * modules/unictype/property-ascii-hex-digit: Likewise.
66809         * modules/unictype/property-bidi-arabic-digit: Likewise.
66810         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
66811         * modules/unictype/property-bidi-block-separator: Likewise.
66812         * modules/unictype/property-bidi-boundary-neutral: Likewise.
66813         * modules/unictype/property-bidi-common-separator: Likewise.
66814         * modules/unictype/property-bidi-control: Likewise.
66815         * modules/unictype/property-bidi-embedding-or-override: Likewise.
66816         * modules/unictype/property-bidi-eur-num-separator: Likewise.
66817         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
66818         * modules/unictype/property-bidi-european-digit: Likewise.
66819         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
66820         * modules/unictype/property-bidi-left-to-right: Likewise.
66821         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
66822         * modules/unictype/property-bidi-other-neutral: Likewise.
66823         * modules/unictype/property-bidi-pdf: Likewise.
66824         * modules/unictype/property-bidi-segment-separator: Likewise.
66825         * modules/unictype/property-bidi-whitespace: Likewise.
66826         * modules/unictype/property-byname: Likewise.
66827         * modules/unictype/property-combining: Likewise.
66828         * modules/unictype/property-composite: Likewise.
66829         * modules/unictype/property-currency-symbol: Likewise.
66830         * modules/unictype/property-dash: Likewise.
66831         * modules/unictype/property-decimal-digit: Likewise.
66832         * modules/unictype/property-default-ignorable-code-point: Likewise.
66833         * modules/unictype/property-deprecated: Likewise.
66834         * modules/unictype/property-diacritic: Likewise.
66835         * modules/unictype/property-extender: Likewise.
66836         * modules/unictype/property-format-control: Likewise.
66837         * modules/unictype/property-grapheme-base: Likewise.
66838         * modules/unictype/property-grapheme-extend: Likewise.
66839         * modules/unictype/property-grapheme-link: Likewise.
66840         * modules/unictype/property-hex-digit: Likewise.
66841         * modules/unictype/property-hyphen: Likewise.
66842         * modules/unictype/property-id-continue: Likewise.
66843         * modules/unictype/property-id-start: Likewise.
66844         * modules/unictype/property-ideographic: Likewise.
66845         * modules/unictype/property-ids-binary-operator: Likewise.
66846         * modules/unictype/property-ids-trinary-operator: Likewise.
66847         * modules/unictype/property-ignorable-control: Likewise.
66848         * modules/unictype/property-iso-control: Likewise.
66849         * modules/unictype/property-join-control: Likewise.
66850         * modules/unictype/property-left-of-pair: Likewise.
66851         * modules/unictype/property-line-separator: Likewise.
66852         * modules/unictype/property-logical-order-exception: Likewise.
66853         * modules/unictype/property-lowercase: Likewise.
66854         * modules/unictype/property-math: Likewise.
66855         * modules/unictype/property-non-break: Likewise.
66856         * modules/unictype/property-not-a-character: Likewise.
66857         * modules/unictype/property-numeric: Likewise.
66858         * modules/unictype/property-other-alphabetic: Likewise.
66859         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
66860         * modules/unictype/property-other-grapheme-extend: Likewise.
66861         * modules/unictype/property-other-id-continue: Likewise.
66862         * modules/unictype/property-other-id-start: Likewise.
66863         * modules/unictype/property-other-lowercase: Likewise.
66864         * modules/unictype/property-other-math: Likewise.
66865         * modules/unictype/property-other-uppercase: Likewise.
66866         * modules/unictype/property-paired-punctuation: Likewise.
66867         * modules/unictype/property-paragraph-separator: Likewise.
66868         * modules/unictype/property-pattern-syntax: Likewise.
66869         * modules/unictype/property-pattern-white-space: Likewise.
66870         * modules/unictype/property-private-use: Likewise.
66871         * modules/unictype/property-punctuation: Likewise.
66872         * modules/unictype/property-quotation-mark: Likewise.
66873         * modules/unictype/property-radical: Likewise.
66874         * modules/unictype/property-sentence-terminal: Likewise.
66875         * modules/unictype/property-soft-dotted: Likewise.
66876         * modules/unictype/property-space: Likewise.
66877         * modules/unictype/property-terminal-punctuation: Likewise.
66878         * modules/unictype/property-test: Likewise.
66879         * modules/unictype/property-titlecase: Likewise.
66880         * modules/unictype/property-unassigned-code-value: Likewise.
66881         * modules/unictype/property-unified-ideograph: Likewise.
66882         * modules/unictype/property-uppercase: Likewise.
66883         * modules/unictype/property-variation-selector: Likewise.
66884         * modules/unictype/property-white-space: Likewise.
66885         * modules/unictype/property-xid-continue: Likewise.
66886         * modules/unictype/property-xid-start: Likewise.
66887         * modules/unictype/property-zero-width: Likewise.
66888         * modules/unictype/scripts: Likewise.
66889         * modules/unictype/syntax-c-ident: Likewise.
66890         * modules/unictype/syntax-c-whitespace: Likewise.
66891         * modules/unictype/syntax-java-ident: Likewise.
66892         * modules/unictype/syntax-java-whitespace: Likewise.
66893         * modules/unilbrk/u8-possible-linebreaks: Likewise.
66894         * modules/unilbrk/u8-width-linebreaks: Likewise.
66895         * modules/unilbrk/u16-possible-linebreaks: Likewise.
66896         * modules/unilbrk/u16-width-linebreaks: Likewise.
66897         * modules/unilbrk/u32-possible-linebreaks: Likewise.
66898         * modules/unilbrk/u32-width-linebreaks: Likewise.
66899         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
66900         * modules/unilbrk/ulc-width-linebreaks: Likewise.
66901         * modules/uniname/uniname: Likewise.
66902         * modules/uninorm/canonical-decomposition: Likewise.
66903         * modules/uninorm/composition: Likewise.
66904         * modules/uninorm/decomposing-form: Likewise.
66905         * modules/uninorm/decomposition: Likewise.
66906         * modules/uninorm/filter: Likewise.
66907         * modules/uninorm/nfc: Likewise.
66908         * modules/uninorm/nfd: Likewise.
66909         * modules/uninorm/nfkc: Likewise.
66910         * modules/uninorm/nfkd: Likewise.
66911         * modules/uninorm/u8-normalize: Likewise.
66912         * modules/uninorm/u8-normcmp: Likewise.
66913         * modules/uninorm/u8-normcoll: Likewise.
66914         * modules/uninorm/u8-normxfrm: Likewise.
66915         * modules/uninorm/u16-normalize: Likewise.
66916         * modules/uninorm/u16-normcmp: Likewise.
66917         * modules/uninorm/u16-normcoll: Likewise.
66918         * modules/uninorm/u16-normxfrm: Likewise.
66919         * modules/uninorm/u32-normalize: Likewise.
66920         * modules/uninorm/u32-normcmp: Likewise.
66921         * modules/uninorm/u32-normcoll: Likewise.
66922         * modules/uninorm/u32-normxfrm: Likewise.
66923         * modules/unistdio/u8-asnprintf: Likewise.
66924         * modules/unistdio/u8-asprintf: Likewise.
66925         * modules/unistdio/u8-snprintf: Likewise.
66926         * modules/unistdio/u8-sprintf: Likewise.
66927         * modules/unistdio/u8-u8-asnprintf: Likewise.
66928         * modules/unistdio/u8-u8-asprintf: Likewise.
66929         * modules/unistdio/u8-u8-snprintf: Likewise.
66930         * modules/unistdio/u8-u8-sprintf: Likewise.
66931         * modules/unistdio/u8-u8-vasnprintf: Likewise.
66932         * modules/unistdio/u8-u8-vasprintf: Likewise.
66933         * modules/unistdio/u8-u8-vsnprintf: Likewise.
66934         * modules/unistdio/u8-u8-vsprintf: Likewise.
66935         * modules/unistdio/u8-vasnprintf: Likewise.
66936         * modules/unistdio/u8-vasprintf: Likewise.
66937         * modules/unistdio/u8-vsnprintf: Likewise.
66938         * modules/unistdio/u8-vsprintf: Likewise.
66939         * modules/unistdio/u16-asnprintf: Likewise.
66940         * modules/unistdio/u16-asprintf: Likewise.
66941         * modules/unistdio/u16-snprintf: Likewise.
66942         * modules/unistdio/u16-sprintf: Likewise.
66943         * modules/unistdio/u16-u16-asnprintf: Likewise.
66944         * modules/unistdio/u16-u16-asprintf: Likewise.
66945         * modules/unistdio/u16-u16-snprintf: Likewise.
66946         * modules/unistdio/u16-u16-sprintf: Likewise.
66947         * modules/unistdio/u16-u16-vasnprintf: Likewise.
66948         * modules/unistdio/u16-u16-vasprintf: Likewise.
66949         * modules/unistdio/u16-u16-vsnprintf: Likewise.
66950         * modules/unistdio/u16-u16-vsprintf: Likewise.
66951         * modules/unistdio/u16-vasnprintf: Likewise.
66952         * modules/unistdio/u16-vasprintf: Likewise.
66953         * modules/unistdio/u16-vsnprintf: Likewise.
66954         * modules/unistdio/u16-vsprintf: Likewise.
66955         * modules/unistdio/u32-asnprintf: Likewise.
66956         * modules/unistdio/u32-asprintf: Likewise.
66957         * modules/unistdio/u32-snprintf: Likewise.
66958         * modules/unistdio/u32-sprintf: Likewise.
66959         * modules/unistdio/u32-u32-asnprintf: Likewise.
66960         * modules/unistdio/u32-u32-asprintf: Likewise.
66961         * modules/unistdio/u32-u32-snprintf: Likewise.
66962         * modules/unistdio/u32-u32-sprintf: Likewise.
66963         * modules/unistdio/u32-u32-vasnprintf: Likewise.
66964         * modules/unistdio/u32-u32-vasprintf: Likewise.
66965         * modules/unistdio/u32-u32-vsnprintf: Likewise.
66966         * modules/unistdio/u32-u32-vsprintf: Likewise.
66967         * modules/unistdio/u32-vasnprintf: Likewise.
66968         * modules/unistdio/u32-vasprintf: Likewise.
66969         * modules/unistdio/u32-vsnprintf: Likewise.
66970         * modules/unistdio/u32-vsprintf: Likewise.
66971         * modules/unistdio/ulc-asnprintf: Likewise.
66972         * modules/unistdio/ulc-asprintf: Likewise.
66973         * modules/unistdio/ulc-fprintf: Likewise.
66974         * modules/unistdio/ulc-snprintf: Likewise.
66975         * modules/unistdio/ulc-sprintf: Likewise.
66976         * modules/unistdio/ulc-vasnprintf: Likewise.
66977         * modules/unistdio/ulc-vasprintf: Likewise.
66978         * modules/unistdio/ulc-vfprintf: Likewise.
66979         * modules/unistdio/ulc-vsnprintf: Likewise.
66980         * modules/unistdio/ulc-vsprintf: Likewise.
66981         * modules/unistr/u8-check: Likewise.
66982         * modules/unistr/u8-chr: Likewise.
66983         * modules/unistr/u8-cmp: Likewise.
66984         * modules/unistr/u8-cmp2: Likewise.
66985         * modules/unistr/u8-cpy: Likewise.
66986         * modules/unistr/u8-cpy-alloc: Likewise.
66987         * modules/unistr/u8-endswith: Likewise.
66988         * modules/unistr/u8-mblen: Likewise.
66989         * modules/unistr/u8-mbsnlen: Likewise.
66990         * modules/unistr/u8-mbtouc: Likewise.
66991         * modules/unistr/u8-mbtouc-unsafe: Likewise.
66992         * modules/unistr/u8-mbtoucr: Likewise.
66993         * modules/unistr/u8-move: Likewise.
66994         * modules/unistr/u8-next: Likewise.
66995         * modules/unistr/u8-prev: Likewise.
66996         * modules/unistr/u8-set: Likewise.
66997         * modules/unistr/u8-startswith: Likewise.
66998         * modules/unistr/u8-stpcpy: Likewise.
66999         * modules/unistr/u8-stpncpy: Likewise.
67000         * modules/unistr/u8-strcat: Likewise.
67001         * modules/unistr/u8-strchr: Likewise.
67002         * modules/unistr/u8-strcmp: Likewise.
67003         * modules/unistr/u8-strcoll: Likewise.
67004         * modules/unistr/u8-strcpy: Likewise.
67005         * modules/unistr/u8-strcspn: Likewise.
67006         * modules/unistr/u8-strdup: Likewise.
67007         * modules/unistr/u8-strlen: Likewise.
67008         * modules/unistr/u8-strmblen: Likewise.
67009         * modules/unistr/u8-strmbtouc: Likewise.
67010         * modules/unistr/u8-strncat: Likewise.
67011         * modules/unistr/u8-strncmp: Likewise.
67012         * modules/unistr/u8-strncpy: Likewise.
67013         * modules/unistr/u8-strnlen: Likewise.
67014         * modules/unistr/u8-strpbrk: Likewise.
67015         * modules/unistr/u8-strrchr: Likewise.
67016         * modules/unistr/u8-strspn: Likewise.
67017         * modules/unistr/u8-strstr: Likewise.
67018         * modules/unistr/u8-strtok: Likewise.
67019         * modules/unistr/u8-to-u16: Likewise.
67020         * modules/unistr/u8-to-u32: Likewise.
67021         * modules/unistr/u8-uctomb: Likewise.
67022         * modules/unistr/u16-check: Likewise.
67023         * modules/unistr/u16-chr: Likewise.
67024         * modules/unistr/u16-cmp: Likewise.
67025         * modules/unistr/u16-cmp2: Likewise.
67026         * modules/unistr/u16-cpy: Likewise.
67027         * modules/unistr/u16-cpy-alloc: Likewise.
67028         * modules/unistr/u16-endswith: Likewise.
67029         * modules/unistr/u16-mblen: Likewise.
67030         * modules/unistr/u16-mbsnlen: Likewise.
67031         * modules/unistr/u16-mbtouc: Likewise.
67032         * modules/unistr/u16-mbtouc-unsafe: Likewise.
67033         * modules/unistr/u16-mbtoucr: Likewise.
67034         * modules/unistr/u16-move: Likewise.
67035         * modules/unistr/u16-next: Likewise.
67036         * modules/unistr/u16-prev: Likewise.
67037         * modules/unistr/u16-set: Likewise.
67038         * modules/unistr/u16-startswith: Likewise.
67039         * modules/unistr/u16-stpcpy: Likewise.
67040         * modules/unistr/u16-stpncpy: Likewise.
67041         * modules/unistr/u16-strcat: Likewise.
67042         * modules/unistr/u16-strchr: Likewise.
67043         * modules/unistr/u16-strcmp: Likewise.
67044         * modules/unistr/u16-strcoll: Likewise.
67045         * modules/unistr/u16-strcpy: Likewise.
67046         * modules/unistr/u16-strcspn: Likewise.
67047         * modules/unistr/u16-strdup: Likewise.
67048         * modules/unistr/u16-strlen: Likewise.
67049         * modules/unistr/u16-strmblen: Likewise.
67050         * modules/unistr/u16-strmbtouc: Likewise.
67051         * modules/unistr/u16-strncat: Likewise.
67052         * modules/unistr/u16-strncmp: Likewise.
67053         * modules/unistr/u16-strncpy: Likewise.
67054         * modules/unistr/u16-strnlen: Likewise.
67055         * modules/unistr/u16-strpbrk: Likewise.
67056         * modules/unistr/u16-strrchr: Likewise.
67057         * modules/unistr/u16-strspn: Likewise.
67058         * modules/unistr/u16-strstr: Likewise.
67059         * modules/unistr/u16-strtok: Likewise.
67060         * modules/unistr/u16-to-u32: Likewise.
67061         * modules/unistr/u16-to-u8: Likewise.
67062         * modules/unistr/u16-uctomb: Likewise.
67063         * modules/unistr/u32-check: Likewise.
67064         * modules/unistr/u32-chr: Likewise.
67065         * modules/unistr/u32-cmp: Likewise.
67066         * modules/unistr/u32-cmp2: Likewise.
67067         * modules/unistr/u32-cpy: Likewise.
67068         * modules/unistr/u32-cpy-alloc: Likewise.
67069         * modules/unistr/u32-endswith: Likewise.
67070         * modules/unistr/u32-mblen: Likewise.
67071         * modules/unistr/u32-mbsnlen: Likewise.
67072         * modules/unistr/u32-mbtouc: Likewise.
67073         * modules/unistr/u32-mbtouc-unsafe: Likewise.
67074         * modules/unistr/u32-mbtoucr: Likewise.
67075         * modules/unistr/u32-move: Likewise.
67076         * modules/unistr/u32-next: Likewise.
67077         * modules/unistr/u32-prev: Likewise.
67078         * modules/unistr/u32-set: Likewise.
67079         * modules/unistr/u32-startswith: Likewise.
67080         * modules/unistr/u32-stpcpy: Likewise.
67081         * modules/unistr/u32-stpncpy: Likewise.
67082         * modules/unistr/u32-strcat: Likewise.
67083         * modules/unistr/u32-strchr: Likewise.
67084         * modules/unistr/u32-strcmp: Likewise.
67085         * modules/unistr/u32-strcoll: Likewise.
67086         * modules/unistr/u32-strcpy: Likewise.
67087         * modules/unistr/u32-strcspn: Likewise.
67088         * modules/unistr/u32-strdup: Likewise.
67089         * modules/unistr/u32-strlen: Likewise.
67090         * modules/unistr/u32-strmblen: Likewise.
67091         * modules/unistr/u32-strmbtouc: Likewise.
67092         * modules/unistr/u32-strncat: Likewise.
67093         * modules/unistr/u32-strncmp: Likewise.
67094         * modules/unistr/u32-strncpy: Likewise.
67095         * modules/unistr/u32-strnlen: Likewise.
67096         * modules/unistr/u32-strpbrk: Likewise.
67097         * modules/unistr/u32-strrchr: Likewise.
67098         * modules/unistr/u32-strspn: Likewise.
67099         * modules/unistr/u32-strstr: Likewise.
67100         * modules/unistr/u32-strtok: Likewise.
67101         * modules/unistr/u32-to-u16: Likewise.
67102         * modules/unistr/u32-to-u8: Likewise.
67103         * modules/unistr/u32-uctomb: Likewise.
67104         * modules/uniwbrk/u8-wordbreaks: Likewise.
67105         * modules/uniwbrk/u16-wordbreaks: Likewise.
67106         * modules/uniwbrk/u32-wordbreaks: Likewise.
67107         * modules/uniwbrk/ulc-wordbreaks: Likewise.
67108         * modules/uniwbrk/wordbreak-property: Likewise.
67109         * modules/uniwidth/u8-strwidth: Likewise.
67110         * modules/uniwidth/u8-width: Likewise.
67111         * modules/uniwidth/u16-strwidth: Likewise.
67112         * modules/uniwidth/u16-width: Likewise.
67113         * modules/uniwidth/u32-strwidth: Likewise.
67114         * modules/uniwidth/u32-width: Likewise.
67115         * modules/uniwidth/width: Likewise.
67116         * modules/unicase/cased-tests (Makefile.am): Link all test programs
67117         with $(LIBUNISTRING).
67118         * modules/unicase/ignorable-tests: Likewise.
67119         * modules/unicase/locale-language-tests: Likewise.
67120         * modules/unicase/tolower-tests: Likewise.
67121         * modules/unicase/totitle-tests: Likewise.
67122         * modules/unicase/toupper-tests: Likewise.
67123         * modules/unicase/u8-casecmp-tests: Likewise.
67124         * modules/unicase/u8-casecoll-tests: Likewise.
67125         * modules/unicase/u8-casefold-tests: Likewise.
67126         * modules/unicase/u8-is-cased-tests: Likewise.
67127         * modules/unicase/u8-is-casefolded-tests: Likewise.
67128         * modules/unicase/u8-is-lowercase-tests: Likewise.
67129         * modules/unicase/u8-is-titlecase-tests: Likewise.
67130         * modules/unicase/u8-is-uppercase-tests: Likewise.
67131         * modules/unicase/u8-tolower-tests: Likewise.
67132         * modules/unicase/u8-totitle-tests: Likewise.
67133         * modules/unicase/u8-toupper-tests: Likewise.
67134         * modules/unicase/u16-casecmp-tests: Likewise.
67135         * modules/unicase/u16-casecoll-tests: Likewise.
67136         * modules/unicase/u16-casefold-tests: Likewise.
67137         * modules/unicase/u16-is-cased-tests: Likewise.
67138         * modules/unicase/u16-is-casefolded-tests: Likewise.
67139         * modules/unicase/u16-is-lowercase-tests: Likewise.
67140         * modules/unicase/u16-is-titlecase-tests: Likewise.
67141         * modules/unicase/u16-is-uppercase-tests: Likewise.
67142         * modules/unicase/u16-tolower-tests: Likewise.
67143         * modules/unicase/u16-totitle-tests: Likewise.
67144         * modules/unicase/u16-toupper-tests: Likewise.
67145         * modules/unicase/u32-casecmp-tests: Likewise.
67146         * modules/unicase/u32-casecoll-tests: Likewise.
67147         * modules/unicase/u32-casefold-tests: Likewise.
67148         * modules/unicase/u32-is-cased-tests: Likewise.
67149         * modules/unicase/u32-is-casefolded-tests: Likewise.
67150         * modules/unicase/u32-is-lowercase-tests: Likewise.
67151         * modules/unicase/u32-is-titlecase-tests: Likewise.
67152         * modules/unicase/u32-is-uppercase-tests: Likewise.
67153         * modules/unicase/u32-tolower-tests: Likewise.
67154         * modules/unicase/u32-totitle-tests: Likewise.
67155         * modules/unicase/u32-toupper-tests: Likewise.
67156         * modules/unicase/ulc-casecmp-tests: Likewise.
67157         * modules/unicase/ulc-casecoll-tests: Likewise.
67158         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
67159         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
67160         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
67161         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
67162         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
67163         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
67164         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
67165         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
67166         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
67167         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
67168         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
67169         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
67170         * modules/unictype/bidicategory-byname-tests: Likewise.
67171         * modules/unictype/bidicategory-name-tests: Likewise.
67172         * modules/unictype/bidicategory-of-tests: Likewise.
67173         * modules/unictype/bidicategory-test-tests: Likewise.
67174         * modules/unictype/block-list-tests: Likewise.
67175         * modules/unictype/block-of-tests: Likewise.
67176         * modules/unictype/block-test-tests: Likewise.
67177         * modules/unictype/category-C-tests: Likewise.
67178         * modules/unictype/category-Cc-tests: Likewise.
67179         * modules/unictype/category-Cf-tests: Likewise.
67180         * modules/unictype/category-Cn-tests: Likewise.
67181         * modules/unictype/category-Co-tests: Likewise.
67182         * modules/unictype/category-Cs-tests: Likewise.
67183         * modules/unictype/category-L-tests: Likewise.
67184         * modules/unictype/category-Ll-tests: Likewise.
67185         * modules/unictype/category-Lm-tests: Likewise.
67186         * modules/unictype/category-Lo-tests: Likewise.
67187         * modules/unictype/category-Lt-tests: Likewise.
67188         * modules/unictype/category-Lu-tests: Likewise.
67189         * modules/unictype/category-M-tests: Likewise.
67190         * modules/unictype/category-Mc-tests: Likewise.
67191         * modules/unictype/category-Me-tests: Likewise.
67192         * modules/unictype/category-Mn-tests: Likewise.
67193         * modules/unictype/category-N-tests: Likewise.
67194         * modules/unictype/category-Nd-tests: Likewise.
67195         * modules/unictype/category-Nl-tests: Likewise.
67196         * modules/unictype/category-No-tests: Likewise.
67197         * modules/unictype/category-P-tests: Likewise.
67198         * modules/unictype/category-Pc-tests: Likewise.
67199         * modules/unictype/category-Pd-tests: Likewise.
67200         * modules/unictype/category-Pe-tests: Likewise.
67201         * modules/unictype/category-Pf-tests: Likewise.
67202         * modules/unictype/category-Pi-tests: Likewise.
67203         * modules/unictype/category-Po-tests: Likewise.
67204         * modules/unictype/category-Ps-tests: Likewise.
67205         * modules/unictype/category-S-tests: Likewise.
67206         * modules/unictype/category-Sc-tests: Likewise.
67207         * modules/unictype/category-Sk-tests: Likewise.
67208         * modules/unictype/category-Sm-tests: Likewise.
67209         * modules/unictype/category-So-tests: Likewise.
67210         * modules/unictype/category-Z-tests: Likewise.
67211         * modules/unictype/category-Zl-tests: Likewise.
67212         * modules/unictype/category-Zp-tests: Likewise.
67213         * modules/unictype/category-Zs-tests: Likewise.
67214         * modules/unictype/category-and-not-tests: Likewise.
67215         * modules/unictype/category-and-tests: Likewise.
67216         * modules/unictype/category-byname-tests: Likewise.
67217         * modules/unictype/category-name-tests: Likewise.
67218         * modules/unictype/category-none-tests: Likewise.
67219         * modules/unictype/category-of-tests: Likewise.
67220         * modules/unictype/category-or-tests: Likewise.
67221         * modules/unictype/category-test-withtable-tests: Likewise.
67222         * modules/unictype/combining-class-tests: Likewise.
67223         * modules/unictype/ctype-alnum-tests: Likewise.
67224         * modules/unictype/ctype-alpha-tests: Likewise.
67225         * modules/unictype/ctype-blank-tests: Likewise.
67226         * modules/unictype/ctype-cntrl-tests: Likewise.
67227         * modules/unictype/ctype-digit-tests: Likewise.
67228         * modules/unictype/ctype-graph-tests: Likewise.
67229         * modules/unictype/ctype-lower-tests: Likewise.
67230         * modules/unictype/ctype-print-tests: Likewise.
67231         * modules/unictype/ctype-punct-tests: Likewise.
67232         * modules/unictype/ctype-space-tests: Likewise.
67233         * modules/unictype/ctype-upper-tests: Likewise.
67234         * modules/unictype/ctype-xdigit-tests: Likewise.
67235         * modules/unictype/decimal-digit-tests: Likewise.
67236         * modules/unictype/digit-tests: Likewise.
67237         * modules/unictype/mirror-tests: Likewise.
67238         * modules/unictype/numeric-tests: Likewise.
67239         * modules/unictype/property-alphabetic-tests: Likewise.
67240         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
67241         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
67242         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
67243         * modules/unictype/property-bidi-block-separator-tests: Likewise.
67244         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
67245         * modules/unictype/property-bidi-common-separator-tests: Likewise.
67246         * modules/unictype/property-bidi-control-tests: Likewise.
67247         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
67248         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
67249         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
67250         * modules/unictype/property-bidi-european-digit-tests: Likewise.
67251         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
67252         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
67253         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
67254         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
67255         * modules/unictype/property-bidi-pdf-tests: Likewise.
67256         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
67257         * modules/unictype/property-bidi-whitespace-tests: Likewise.
67258         * modules/unictype/property-byname-tests: Likewise.
67259         * modules/unictype/property-combining-tests: Likewise.
67260         * modules/unictype/property-composite-tests: Likewise.
67261         * modules/unictype/property-currency-symbol-tests: Likewise.
67262         * modules/unictype/property-dash-tests: Likewise.
67263         * modules/unictype/property-decimal-digit-tests: Likewise.
67264         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
67265         * modules/unictype/property-deprecated-tests: Likewise.
67266         * modules/unictype/property-diacritic-tests: Likewise.
67267         * modules/unictype/property-extender-tests: Likewise.
67268         * modules/unictype/property-format-control-tests: Likewise.
67269         * modules/unictype/property-grapheme-base-tests: Likewise.
67270         * modules/unictype/property-grapheme-extend-tests: Likewise.
67271         * modules/unictype/property-grapheme-link-tests: Likewise.
67272         * modules/unictype/property-hex-digit-tests: Likewise.
67273         * modules/unictype/property-hyphen-tests: Likewise.
67274         * modules/unictype/property-id-continue-tests: Likewise.
67275         * modules/unictype/property-id-start-tests: Likewise.
67276         * modules/unictype/property-ideographic-tests: Likewise.
67277         * modules/unictype/property-ids-binary-operator-tests: Likewise.
67278         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
67279         * modules/unictype/property-ignorable-control-tests: Likewise.
67280         * modules/unictype/property-iso-control-tests: Likewise.
67281         * modules/unictype/property-join-control-tests: Likewise.
67282         * modules/unictype/property-left-of-pair-tests: Likewise.
67283         * modules/unictype/property-line-separator-tests: Likewise.
67284         * modules/unictype/property-logical-order-exception-tests: Likewise.
67285         * modules/unictype/property-lowercase-tests: Likewise.
67286         * modules/unictype/property-math-tests: Likewise.
67287         * modules/unictype/property-non-break-tests: Likewise.
67288         * modules/unictype/property-not-a-character-tests: Likewise.
67289         * modules/unictype/property-numeric-tests: Likewise.
67290         * modules/unictype/property-other-alphabetic-tests: Likewise.
67291         * modules/unictype/property-other-default-ignorable-code-point-tests:
67292         Likewise.
67293         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
67294         * modules/unictype/property-other-id-continue-tests: Likewise.
67295         * modules/unictype/property-other-id-start-tests: Likewise.
67296         * modules/unictype/property-other-lowercase-tests: Likewise.
67297         * modules/unictype/property-other-math-tests: Likewise.
67298         * modules/unictype/property-other-uppercase-tests: Likewise.
67299         * modules/unictype/property-paired-punctuation-tests: Likewise.
67300         * modules/unictype/property-paragraph-separator-tests: Likewise.
67301         * modules/unictype/property-pattern-syntax-tests: Likewise.
67302         * modules/unictype/property-pattern-white-space-tests: Likewise.
67303         * modules/unictype/property-private-use-tests: Likewise.
67304         * modules/unictype/property-punctuation-tests: Likewise.
67305         * modules/unictype/property-quotation-mark-tests: Likewise.
67306         * modules/unictype/property-radical-tests: Likewise.
67307         * modules/unictype/property-sentence-terminal-tests: Likewise.
67308         * modules/unictype/property-soft-dotted-tests: Likewise.
67309         * modules/unictype/property-space-tests: Likewise.
67310         * modules/unictype/property-terminal-punctuation-tests: Likewise.
67311         * modules/unictype/property-test-tests: Likewise.
67312         * modules/unictype/property-titlecase-tests: Likewise.
67313         * modules/unictype/property-unassigned-code-value-tests: Likewise.
67314         * modules/unictype/property-unified-ideograph-tests: Likewise.
67315         * modules/unictype/property-uppercase-tests: Likewise.
67316         * modules/unictype/property-variation-selector-tests: Likewise.
67317         * modules/unictype/property-white-space-tests: Likewise.
67318         * modules/unictype/property-xid-continue-tests: Likewise.
67319         * modules/unictype/property-xid-start-tests: Likewise.
67320         * modules/unictype/property-zero-width-tests: Likewise.
67321         * modules/unictype/scripts-tests: Likewise.
67322         * modules/unictype/syntax-c-ident-tests: Likewise.
67323         * modules/unictype/syntax-c-whitespace-tests: Likewise.
67324         * modules/unictype/syntax-java-ident-tests: Likewise.
67325         * modules/unictype/syntax-java-whitespace-tests: Likewise.
67326         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
67327         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
67328         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
67329         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
67330         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
67331         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
67332         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
67333         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
67334         * modules/uniname/uniname-tests: Likewise.
67335         * modules/uninorm/canonical-decomposition-tests: Likewise.
67336         * modules/uninorm/compat-decomposition-tests: Likewise.
67337         * modules/uninorm/composition-tests: Likewise.
67338         * modules/uninorm/decomposing-form-tests: Likewise.
67339         * modules/uninorm/decomposition-tests: Likewise.
67340         * modules/uninorm/filter-tests: Likewise.
67341         * modules/uninorm/nfc-tests: Likewise.
67342         * modules/uninorm/nfd-tests: Likewise.
67343         * modules/uninorm/nfkc-tests: Likewise.
67344         * modules/uninorm/nfkd-tests: Likewise.
67345         * modules/uninorm/u8-normcmp-tests: Likewise.
67346         * modules/uninorm/u8-normcoll-tests: Likewise.
67347         * modules/uninorm/u16-normcmp-tests: Likewise.
67348         * modules/uninorm/u16-normcoll-tests: Likewise.
67349         * modules/uninorm/u32-normcmp-tests: Likewise.
67350         * modules/uninorm/u32-normcoll-tests: Likewise.
67351         * modules/unistdio/u8-asnprintf-tests: Likewise.
67352         * modules/unistdio/u8-vasnprintf-tests: Likewise.
67353         * modules/unistdio/u8-vasprintf-tests: Likewise.
67354         * modules/unistdio/u8-vsnprintf-tests: Likewise.
67355         * modules/unistdio/u8-vsprintf-tests: Likewise.
67356         * modules/unistdio/u16-asnprintf-tests: Likewise.
67357         * modules/unistdio/u16-vasnprintf-tests: Likewise.
67358         * modules/unistdio/u16-vasprintf-tests: Likewise.
67359         * modules/unistdio/u16-vsnprintf-tests: Likewise.
67360         * modules/unistdio/u16-vsprintf-tests: Likewise.
67361         * modules/unistdio/u32-asnprintf-tests: Likewise.
67362         * modules/unistdio/u32-vasnprintf-tests: Likewise.
67363         * modules/unistdio/u32-vasprintf-tests: Likewise.
67364         * modules/unistdio/u32-vsnprintf-tests: Likewise.
67365         * modules/unistdio/u32-vsprintf-tests: Likewise.
67366         * modules/unistdio/ulc-asnprintf-tests: Likewise.
67367         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
67368         * modules/unistdio/ulc-vasprintf-tests: Likewise.
67369         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
67370         * modules/unistdio/ulc-vsprintf-tests: Likewise.
67371         * modules/unistr/u8-check-tests: Likewise.
67372         * modules/unistr/u8-chr-tests: Likewise.
67373         * modules/unistr/u8-cmp-tests: Likewise.
67374         * modules/unistr/u8-cmp2-tests: Likewise.
67375         * modules/unistr/u8-cpy-alloc-tests: Likewise.
67376         * modules/unistr/u8-cpy-tests: Likewise.
67377         * modules/unistr/u8-mblen-tests: Likewise.
67378         * modules/unistr/u8-mbsnlen-tests: Likewise.
67379         * modules/unistr/u8-mbtouc-tests: Likewise.
67380         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
67381         * modules/unistr/u8-mbtoucr-tests: Likewise.
67382         * modules/unistr/u8-move-tests: Likewise.
67383         * modules/unistr/u8-next-tests: Likewise.
67384         * modules/unistr/u8-prev-tests: Likewise.
67385         * modules/unistr/u8-set-tests: Likewise.
67386         * modules/unistr/u8-stpcpy-tests: Likewise.
67387         * modules/unistr/u8-stpncpy-tests: Likewise.
67388         * modules/unistr/u8-strcat-tests: Likewise.
67389         * modules/unistr/u8-strcmp-tests: Likewise.
67390         * modules/unistr/u8-strcoll-tests: Likewise.
67391         * modules/unistr/u8-strcpy-tests: Likewise.
67392         * modules/unistr/u8-strdup-tests: Likewise.
67393         * modules/unistr/u8-strlen-tests: Likewise.
67394         * modules/unistr/u8-strmblen-tests: Likewise.
67395         * modules/unistr/u8-strmbtouc-tests: Likewise.
67396         * modules/unistr/u8-strncat-tests: Likewise.
67397         * modules/unistr/u8-strncmp-tests: Likewise.
67398         * modules/unistr/u8-strncpy-tests: Likewise.
67399         * modules/unistr/u8-strnlen-tests: Likewise.
67400         * modules/unistr/u8-to-u16-tests: Likewise.
67401         * modules/unistr/u8-to-u32-tests: Likewise.
67402         * modules/unistr/u8-uctomb-tests: Likewise.
67403         * modules/unistr/u16-check-tests: Likewise.
67404         * modules/unistr/u16-chr-tests: Likewise.
67405         * modules/unistr/u16-cmp-tests: Likewise.
67406         * modules/unistr/u16-cmp2-tests: Likewise.
67407         * modules/unistr/u16-cpy-alloc-tests: Likewise.
67408         * modules/unistr/u16-cpy-tests: Likewise.
67409         * modules/unistr/u16-mblen-tests: Likewise.
67410         * modules/unistr/u16-mbsnlen-tests: Likewise.
67411         * modules/unistr/u16-mbtouc-tests: Likewise.
67412         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
67413         * modules/unistr/u16-mbtoucr-tests: Likewise.
67414         * modules/unistr/u16-move-tests: Likewise.
67415         * modules/unistr/u16-next-tests: Likewise.
67416         * modules/unistr/u16-prev-tests: Likewise.
67417         * modules/unistr/u16-set-tests: Likewise.
67418         * modules/unistr/u16-stpcpy-tests: Likewise.
67419         * modules/unistr/u16-stpncpy-tests: Likewise.
67420         * modules/unistr/u16-strcat-tests: Likewise.
67421         * modules/unistr/u16-strcmp-tests: Likewise.
67422         * modules/unistr/u16-strcoll-tests: Likewise.
67423         * modules/unistr/u16-strcpy-tests: Likewise.
67424         * modules/unistr/u16-strdup-tests: Likewise.
67425         * modules/unistr/u16-strlen-tests: Likewise.
67426         * modules/unistr/u16-strmblen-tests: Likewise.
67427         * modules/unistr/u16-strmbtouc-tests: Likewise.
67428         * modules/unistr/u16-strncat-tests: Likewise.
67429         * modules/unistr/u16-strncmp-tests: Likewise.
67430         * modules/unistr/u16-strncpy-tests: Likewise.
67431         * modules/unistr/u16-strnlen-tests: Likewise.
67432         * modules/unistr/u16-to-u32-tests: Likewise.
67433         * modules/unistr/u16-to-u8-tests: Likewise.
67434         * modules/unistr/u16-uctomb-tests: Likewise.
67435         * modules/unistr/u32-check-tests: Likewise.
67436         * modules/unistr/u32-chr-tests: Likewise.
67437         * modules/unistr/u32-cmp-tests: Likewise.
67438         * modules/unistr/u32-cmp2-tests: Likewise.
67439         * modules/unistr/u32-cpy-alloc-tests: Likewise.
67440         * modules/unistr/u32-cpy-tests: Likewise.
67441         * modules/unistr/u32-mblen-tests: Likewise.
67442         * modules/unistr/u32-mbsnlen-tests: Likewise.
67443         * modules/unistr/u32-mbtouc-tests: Likewise.
67444         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
67445         * modules/unistr/u32-mbtoucr-tests: Likewise.
67446         * modules/unistr/u32-move-tests: Likewise.
67447         * modules/unistr/u32-next-tests: Likewise.
67448         * modules/unistr/u32-prev-tests: Likewise.
67449         * modules/unistr/u32-set-tests: Likewise.
67450         * modules/unistr/u32-stpcpy-tests: Likewise.
67451         * modules/unistr/u32-stpncpy-tests: Likewise.
67452         * modules/unistr/u32-strcat-tests: Likewise.
67453         * modules/unistr/u32-strcmp-tests: Likewise.
67454         * modules/unistr/u32-strcoll-tests: Likewise.
67455         * modules/unistr/u32-strcpy-tests: Likewise.
67456         * modules/unistr/u32-strdup-tests: Likewise.
67457         * modules/unistr/u32-strlen-tests: Likewise.
67458         * modules/unistr/u32-strmblen-tests: Likewise.
67459         * modules/unistr/u32-strmbtouc-tests: Likewise.
67460         * modules/unistr/u32-strncat-tests: Likewise.
67461         * modules/unistr/u32-strncmp-tests: Likewise.
67462         * modules/unistr/u32-strncpy-tests: Likewise.
67463         * modules/unistr/u32-strnlen-tests: Likewise.
67464         * modules/unistr/u32-to-u16-tests: Likewise.
67465         * modules/unistr/u32-to-u8-tests: Likewise.
67466         * modules/unistr/u32-uctomb-tests: Likewise.
67467         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
67468         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
67469         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
67470         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
67471         * modules/uniwidth/u8-strwidth-tests: Likewise.
67472         * modules/uniwidth/u8-width-tests: Likewise.
67473         * modules/uniwidth/u16-strwidth-tests: Likewise.
67474         * modules/uniwidth/u16-width-tests: Likewise.
67475         * modules/uniwidth/u32-strwidth-tests: Likewise.
67476         * modules/uniwidth/u32-width-tests: Likewise.
67477         * modules/uniwidth/width-tests: Likewise.
67479 2010-05-18  Richard Jones  <rjones@redhat.com>
67481         doc: users.txt: list hivex
67482         * users.txt: Add hivex.
67484 2010-05-18  Richard Jones  <rjones@redhat.com>
67486         doc: users.txt: list febootstrap
67487         * users.txt: Add febootstrap.
67489 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
67491         bootstrap: fix an error when gnulib is not used as a git submodule
67492         * build-aux/bootstrap (gnulib_path): If its length is zero then
67493         assign "gnulib" to it.
67494         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
67496 2010-05-16  Bruno Haible  <bruno@clisp.org>
67498         Avoid autoconf warnings about AM_ICONV.
67499         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
67500         2.64.
67502 2010-05-16  Bruno Haible  <bruno@clisp.org>
67504         absolute-header: Make the macro usable in more situations.
67505         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
67506         from gl_ABSOLUTE_HEADER.
67507         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
67509 2010-05-16  James Youngman  <jay@gnu.org>
67511         doc: update users.txt
67512         * users.txt: Add CSSC.
67514 2010-05-16  Jim Meyering  <meyering@redhat.com>
67516         init.sh: fix an error in the previous change; add more comments
67517         * tests/init.sh: Compare exit code in loop against 9, not 2.
67518         Patch by Bruno Haible.
67519         Make the two tests more similar by adding an empty "then" clause.
67520         Add comments.
67522         init.sh: avoid unnecessary shell re-exec
67523         * tests/init.sh: Improve the re-exec-required check to first test the
67524         current shell.  If it passes the test, do not search for a shell that
67525         does pass, and do not re-exec.  This test is particularly contorted to
67526         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
67527         of $(...) evokes a syntax error and causes immediate shell exit with
67528         status 2.  Bruno Haible reported that the re-exec made it impossible
67529         to single-step through any init.sh-using script.
67531 2010-05-16  Bruno Haible  <bruno@clisp.org>
67533         Fix collision between gnulib's and libintl's printf replacements.
67534         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
67535         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
67536         (printf): When using GNU C, map the __printf__ function to rpl_printf
67537         via __asm__. When not using GNU C, define rpl_printf instead of
67538         __printf__.
67539         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
67540         commit.
67541         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
67542         commit.
67543         * m4/asm-underscore.m4: New file.
67544         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
67545         * modules/stdio (Files): Add m4/asm-underscore.m4.
67546         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
67547         Reported by Ben Pfaff.
67549 2010-05-16  Bruno Haible  <bruno@clisp.org>
67551         verify: Avoid skipping the test on openSUSE 11.0.
67552         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
67554 2010-05-13  Bruno Haible  <bruno@clisp.org>
67556         Avoid useless warnings from G++.
67557         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
67558         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
67559         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
67561 2010-05-11  Jim Meyering  <meyering@redhat.com>
67563         maint.mk: tweak preceding change
67564         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
67565         regexps tighter by anchoring at EOL, and make the new group "shy"
67566         for slightly decreased overhead.
67568 2010-05-11  Eric Blake  <eblake@redhat.com>
67570         maint.mk: gnulib doesn't guarantee NSIG
67571         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
67573 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
67575         test-pwrite.c: Remove unused variable declaration.
67576         * tests/test-pwrite.c (main): Remove read_buf declaration.
67578         Remove useless test-pwrite.sh file.
67579         * tests/test-pwrite.sh: Delete file.
67580         * modules/pwrite-tests: Remove references.
67581         Reported by Bruno Haible.
67583 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
67585         init.sh: fix a typo
67586         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
67588 2010-05-10  Jim Meyering  <meyering@redhat.com>
67590         maint.mk: avoid using a temporary file in the always-defined-macros check
67591         * top/maint.mk (.re-defmac): Remove rule.
67592         (gl_trap_): Remove definition.
67593         (sc_prohibit_always-defined_macros): Rewrite not to create and
67594         depend on a temporary file.  Instead, depend on GNU grep's ability
67595         to read a list of regular expressions from stdin when given "-f -".
67597 2010-05-09  Bruno Haible  <bruno@clisp.org>
67599         Update to GNU gettext 0.18, part 1.
67600         * m4/gettext.m4: Update to GNU gettext 0.18.
67601         * m4/intl.m4: Likewise.
67602         * m4/po.m4: Likewise.
67603         * modules/gettext (Files): Add m4/fcntl-o.m4.
67604         (configure.ac): Require gettext infrastructure from version 0.18.
67606 2010-05-09  Jim Meyering  <meyering@redhat.com>
67608         init.sh: enable MALLOC_PERTURB_
67609         * tests/init.sh: Enable glibc's malloc-perturbing option.
67611         maint.mk: improve sc_cross_check_PATH_usage_in_tests
67612         With my recent change in init.sh from the two-line form:
67613             -#   : ${srcdir=.}
67614             -#   . "$srcdir/init.sh"; path_prepend_ .
67615             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
67616         I noticed that using the one-line form would cause this test
67617         to fail with a false-positive, or to stop working altogether,
67618         depending on whether help-version changed or all the tests did.
67619         * top/maint.mk (_hv_regex): Remove this definition.
67620         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
67621         (_hv_regex_strong): Use a stronger regex to check for conformance.
67622         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
67623         Give a separate diagnostic for lack of conforming use.
67625         maint.mk: prohibit definition of symbols defined by gnulib
67626         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
67627         definition of symbols defined by gnulib.
67629 2010-05-09  Bruno Haible  <bruno@clisp.org>
67631         acl: Avoid test failure on Cygwin-hosted mingw.
67632         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
67634 2010-05-09  Bruno Haible  <bruno@clisp.org>
67636         error: Use system's fcntl function.
67637         * lib/error.c (fcntl): Undefine.
67639 2010-05-09  Jim Meyering  <meyering@redhat.com>
67641         verify: adjust formatting to be more consistent
67642         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
67643         argument-list '('s, and after one comma.
67645 2010-05-09  Bruno Haible  <bruno@clisp.org>
67647         error: More reliable output on mingw.
67648         * lib/error.c: Include <windows.h>.
67649         (is_open): New function.
67650         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
67651         defined.
67653 2010-05-09  Bruno Haible  <bruno@clisp.org>
67655         vasnprintf: Fix syntax errors in libintl build on mingw.
67656         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
67657         pad_ourselves and prec_ourselves after use.
67659 2010-05-08  Bruno Haible  <bruno@clisp.org>
67661         * lib/config.charset: Update comments for Cygwin 1.7.
67662         * lib/localcharset.c: Likewise.
67664 2010-05-07  Jim Meyering  <meyering@redhat.com>
67666         init.sh: improve comments
67667         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
67668         . "${srcdir=.}/init.sh"; path_prepend_ .
67669         Add a note about path_prepend_ and the alternative of using
67670         TESTS_ENVIRONMENT.
67672 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
67674         exclude: Unescape hashed patterns in wildcard mode.
67675         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
67676         to the hash list.
67677         * tests/test-exclude8.sh: New test case.
67678         * modules/exclude-tests: Add new test.
67680 2010-05-05  Eric Blake  <eblake@redhat.com>
67682         verify: automate tests
67683         * modules/verify-tests: New module.
67684         * tests/test-verify.sh: New file.
67685         * tests/test-verify.c: Guard each negative test with a unique id.
67686         Also avoid warning about unused left hand of comma expressions.
67688 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
67690         Further improvements to verify.h, suggested by Eric Blake.
67691         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
67692         the GL_* versions, to avoid collision with OpenGL.
67693         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
67694         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
67695         than testing merely whether it's defined.
67697         Modify verify.h to pacify gcc -Wredundant_decls.
67698         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
67699         These use the prefix "GL_" since they're likely to be useful elsewhere.
67700         We may need to break them out into a different .h file.
67701         (__COUNTER__): Define to 0 if the compiler doesn't support it.
67702         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
67703         of verify_function__.
67705 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
67707         Tests for module pwrite.
67708         * modules/pwrite-tests: New file.
67709         * tests/test-pwrite.sh: New file.
67710         * tests/test-pwrite.c: New file.
67712         New module pwrite.
67713         * lib/unistd.in.h (pwrite): New declaration.
67714         * lib/pwrite.c: New file, from glibc with modifications.
67715         * m4/pwrite.m4: New file.
67716         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
67717         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
67718         REPLACE_PWRITE.
67719         * modules/pwrite: New file.
67720         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
67721         REPLACE_PWRITE.
67722         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
67723         * doc/posix-functions/pwrite.texi: Mention the new module.
67725 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
67727         pread: Update documentation.
67728         * doc/posix-functions/pread.texi: Mention the 'pread' module.
67730 2010-05-04  Eric Blake  <eblake@redhat.com>
67732         docs: update cygwin progress
67733         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
67734         this bug.
67735         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
67736         Added in cygwin 1.7.2.
67737         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
67738         Likewise.
67739         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
67740         Likewise.
67741         * doc/glibc-functions/dup3.texi (dup3): Likewise.
67742         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
67743         * doc/glibc-functions/accept4.texi (accept4): Likewise.
67744         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
67745         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
67746         Mention nproc module.
67747         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
67748         bug in cygwin 1.7.5 addition.
67749         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
67750         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
67751         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
67752         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
67753         1.7.5.
67754         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
67755         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
67756         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
67757         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
67758         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
67759         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
67760         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
67761         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
67762         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
67763         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
67764         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
67765         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
67766         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
67767         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
67768         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
67769         Likewise.
67770         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
67771         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
67772         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
67773         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
67774         Likewise.
67775         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
67776         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
67777         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
67778         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
67779         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
67780         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
67781         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
67782         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
67783         Likewise.
67784         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
67785         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
67786         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
67787         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
67788         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
67789         Likewise.
67790         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
67791         Likewise.
67792         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
67793         Likewise.
67794         * doc/glibc-functions/xdrrec_endofrecord.texi
67795         (xdrrec_endofrecord): Likewise.
67796         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
67797         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
67798         Likewise.
67799         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
67800         Likewise.
67802 2010-05-04  Jim Meyering  <meyering@redhat.com>
67804         gendocs.sh: make its "-s FILE" option more useful
67805         * build-aux/gendocs.sh: When honoring the -s FILE option, update
67806         $PACKAGE to reflect the probably-different basename of "FILE".
67808 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
67810         bootstrap: don't ignore download_po_files failure
67811         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
67812         failure.
67814 2010-05-03  Jim Meyering  <meyering@redhat.com>
67816         maint.mk: allow to pass options to gendocs.sh
67817         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
67818         (gendocs_options_): New overridable variable.
67820         gnu-web-doc-update: don't ignore configure or build failure
67821         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
67823         announce-gen: backslash-escape '@'s in --help output
67824         * build-aux/announce-gen: Fix syntax errors.
67826         maint.mk, announce-gen: allow project-specific announcement mail headers
67827         * top/maint.mk (translation_project_): Define default.
67828         (announcement_Cc_, announcement_mail_headers_): Likewise.
67829         (announcement): Invoke announce-gen with new --mail-headers option.
67830         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
67832         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
67833         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
67834         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
67835         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
67836         line in the "err2" output file when running "make check" in verbose
67837         mode (i.e., with set -x enabled).
67839 2010-05-03  Bruno Haible  <bruno@clisp.org>
67841         wctob: Fix for weird platforms.
67842         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
67843         argument value.
67845 2010-05-03  Jim Meyering  <meyering@redhat.com>
67847         maint.mk: prohibit unwarranted use of <strings.h>
67848         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
67849         strings.h in a file that does not also use strcasecmp, strncasecmp,
67850         ffs or ffsll.
67852         maint.mk: remove obsolete comments
67853         * top/maint.mk: Remove stale, commented-out rules.
67855 2010-05-02  Bruno Haible  <bruno@clisp.org>
67857         wcwidth: Declare also when it's aliased.
67858         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
67859         macro.
67861 2010-05-02  Bruno Haible  <bruno@clisp.org>
67863         Fix regression from 2010-04-25.
67864         * gnulib-tool (func_modules_transitive_closure): Check the status of
67865         all modules, not only of the tests that are of the form foo-tests where
67866         foo is a module.
67868 2010-05-02  Bruno Haible  <bruno@clisp.org>
67870         wctob: Work around nasty Cygwin 1.7.2 bug.
67871         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
67872         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
67874 2010-05-01  Bruno Haible  <bruno@clisp.org>
67876         fpurge: Sharper test.
67877         * tests/test-fpurge.c (main): Add one more ftell check.
67878         * modules/fpurge-tests (Depends-on): Add ftell.
67879         Suggested by Eric Blake.
67881 2010-05-01  Bruno Haible  <bruno@clisp.org>
67883         ftello: Another test.
67884         * tests/test-ftello3.c: New file.
67885         * modules/ftello-tests (Files): Add it.
67886         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
67887         MOSTLYCLEANFILES.
67889         ftell: Another test.
67890         * tests/test-ftell3.c: New file.
67891         * modules/ftell-tests (Files): Add it.
67892         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
67893         MOSTLYCLEANFILES.
67895 2010-05-01  Bruno Haible  <bruno@clisp.org>
67897         ftell, ftello: Work around Solaris bug.
67898         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
67899         * lib/ftello.c: Include stdio-impl.h.
67900         (ftello): On Solaris, when _IOWRT is set, compute the result without
67901         looking at _IOREAD.
67902         * modules/ftello (Files): Add lib/stdio-impl.h.
67903         * doc/posix-functions/ftell.texi: Mention Solaris bug.
67904         * doc/posix-functions/ftello.texi: Likewise.
67905         Reported by Eric Blake.
67907 2010-05-01  Bruno Haible  <bruno@clisp.org>
67909         freading: Adapt to special meaning of _IOREAD flag on Solaris.
67910         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
67911         the _IOWRT flag is also set.
67913 2010-05-01  Bruno Haible  <bruno@clisp.org>
67915         Fix doc about a HP-UX stdio bug.
67916         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
67917         * doc/posix-functions/ftello.texi: Likewise.
67919 2010-05-01  Bruno Haible  <bruno@clisp.org>
67921         lseek test: Fix failure on Solaris.
67922         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
67923         output.
67925 2010-04-30  Jim Meyering  <meyering@redhat.com>
67927         bootstrap: don't ignore failure to generate po*/Makevars
67928         * build-aux/bootstrap (with_gettext): Don't ignore failure
67929         to create po/Makevars or runtime-po/Makevars.
67931 2010-04-29  Eric Blake  <eblake@redhat.com>
67933         headers: relax license to LGPLv2+
67934         * modules/fcntl-h (License): Relax license.
67935         * modules/getopt-posix (License): Likewise.
67936         * modules/locale (License): Likewise.
67937         * modules/math (License): Likewise.
67938         * modules/pty (License): Likewise.
67939         * modules/sched (License): Likewise.
67940         * modules/search (License): Likewise.
67941         * modules/spawn (License): Likewise.
67942         * modules/stdarg (License): Likewise.
67943         * modules/sysexits (License): Likewise.
67945 2010-04-29  Jim Meyering  <meyering@redhat.com>
67947         inttypes: relax license to LGPLv2+
67948         * modules/inttypes (License): Relax license.
67950 2010-04-29  Simon Josefsson  <simon@josefsson.org>
67952         * top/maint.mk (indent): Run twice to produce idempotent results.
67954 2010-04-28  Bruno Haible  <bruno@clisp.org>
67956         getdate: Generate getdate.c in the source directory.
67957         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
67958         MOSTLYCLEANFILES.
67959         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
67961 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
67963         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
67964         is not declared as a const *; avoid warnings in that case.
67966 2010-04-28  Eric Blake  <eblake@redhat.com>
67968         canonicalize-lgpl: avoid compiler warning
67969         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
67970         declaration' / 'extraneous semicolon' warning with some compilers.
67971         Reported by Andreas Gruenbacher.
67973 2010-04-28  Jim Meyering  <meyering@redhat.com>
67975         init.sh: ensure a more reliable exit status when exiting via trap
67976         * tests/init.sh (setup_): Don't rely on $? in signal handler.
67977         Inspired by patches from Dmitry V. Levin.
67978         Also trap on signal 3 (SIGQUIT).
67980 2010-04-27  Bruno Haible  <bruno@clisp.org>
67982         Update doc about utimes().
67983         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
67984         'utimens' module.
67985         Reported by Andreas Gruenbacher <agruen@suse.de>.
67987 2010-04-27  Eric Blake  <eblake@redhat.com>
67989         full-read, full-write: relax license
67990         * modules/full-read (License): Drop to LGPLv2+.
67991         * modules/full-write (License): Likewise.
67992         * modules/safe-read (License): Likewise.
67993         * modules/safe-write (License): Likewise.
67995         pthread: mention library for linking
67996         * modules/pthread (Link): Mention $(LIB_PTHREAD).
67998 2010-04-27  Jim Meyering  <meyering@redhat.com>
68000         maint.mk: fix a bug introduced in last change
68001         * top/maint.mk (gl_assured_headers_): Now that all names are on
68002         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
68003         is not anchored to end of word, it should be adequate.
68005         maint.mk: avoid side-effect in latest syntax-check
68006         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
68007         to run commands via $(shell...), and hence to incur cost only when
68008         the new rule is actually run.
68010         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
68011         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
68012         and use that to create a regexp used to detect all #if HAVE_..._H uses.
68013         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
68014         (gl_assured_headers_, az_, AZ_): Define.
68015         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
68017 2010-04-26  Jim Meyering  <jim@meyering.net>
68018             Bruno Haible  <bruno@clisp.org>
68020         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
68021         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
68022         Prompted by an exchange with Gilles Espinasse.
68024 2010-04-26  Jim Meyering  <meyering@redhat.com>
68026         git-version-gen: aesthetic tweak
68027         * build-aux/git-version-gen: Use "$nl" rather than a literal,
68028         so that the command remains on a single line.
68030 2010-04-26  Eric Blake  <eblake@redhat.com>
68032         git-version-gen: allow use on EBCDIC hosts
68033         * build-aux/git-version-gen (dirty): Use literal rather than tying
68034         ourselves to ascii.
68035         Reported by Steve Goetze.
68037 2010-04-25  Bruno Haible  <bruno@clisp.org>
68039         netdb: Add support for GNULIB_POSIXCHECK.
68040         * lib/netdb.in.h: Include warn-on-use.h.
68041         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
68042         functions are used when GNULIB_POSIXCHECK is defined and the
68043         getaddrinfo module is not in use.
68044         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
68045         freeaddrinfo, gai_strerror, getnameinfo are declared.
68046         * modules/netdb (Depends-on): Add warn-on-use.
68047         (Makefile.am): Include warn-on-use.h in netdb.h.
68049 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
68051         build: avoid "make check" failure without .git/ directory
68052         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
68053         there is no .git/ directory.
68055 2010-04-25  Bruno Haible  <bruno@clisp.org>
68057         ptsname: Fix misuse of ttyname_r.
68058         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
68059         of errno.
68061 2010-04-25  Bruno Haible  <bruno@clisp.org>
68063         ttyname_r: Make it work on Solaris 10.
68064         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
68065         if the system function has the POSIX declaration. Test whether the
68066         function fails if the buffer is less than 128 bytes large.
68067         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
68068         system's ttyname_r function. Provide a reasonably large buffer.
68069         * modules/ttyname_r (Depends-on): Add extensions.
68070         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
68072 2010-04-25  Bruno Haible  <bruno@clisp.org>
68074         Use the 'extensions' module for some more functions on Solaris.
68075         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
68076         module.
68077         * doc/posix-functions/ctime_r.texi: Likewise.
68078         * doc/posix-functions/getgrgid_r.texi: Likewise.
68079         * doc/posix-functions/getgrnam_r.texi: Likewise.
68080         * doc/posix-functions/getpwnam_r.texi: Likewise.
68081         * doc/posix-functions/getpwuid_r.texi: Likewise.
68082         * doc/posix-functions/readdir_r.texi: Likewise.
68083         * doc/posix-functions/sigwait.texi: Likewise.
68084         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
68085         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
68087 2010-04-25  Bruno Haible  <bruno@clisp.org>
68089         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
68090         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
68091         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
68092         * lib/ttyname_r.c: Include <limits.h>.
68093         (ttyname_r): Define using the system's ttyname_r function, if it exists
68094         and not on Solaris.
68095         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
68096         set.
68097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
68098         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
68099         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
68100         Reported by Simon Josefsson.
68102 2010-04-25  Bruno Haible  <bruno@clisp.org>
68104         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
68105         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
68106         * doc/posix-functions/ctime_r.texi: Likewise.
68107         * doc/posix-functions/getgrgid_r.texi: Likewise.
68108         * doc/posix-functions/getgrnam_r.texi: Likewise.
68109         * doc/posix-functions/getlogin_r.texi: Likewise.
68110         * doc/posix-functions/getpwnam_r.texi: Likewise.
68111         * doc/posix-functions/getpwuid_r.texi: Likewise.
68112         * doc/posix-functions/readdir_r.texi: Likewise.
68113         * doc/posix-functions/sigwait.texi: Likewise.
68114         * doc/posix-functions/ttyname_r.texi: Likewise.
68115         Reported by Simon Josefsson.
68117 2010-04-25  Bruno Haible  <bruno@clisp.org>
68119         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
68120         * gnulib-tool (func_usage): Document that --with-*-tests options apply
68121         also to --create-testdir.
68122         (func_acceptable): Don't consider the status of *-tests modules here.
68123         (func_modules_transitive_closure): Consider it here, before including a
68124         test module.
68125         (func_import, func_create_testdir): Set inc_all_direct_tests,
68126         inc_all_indirect_tests.
68127         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
68128         --create-testdir and --create-megatestdir.
68130 2010-04-25  Bruno Haible  <bruno@clisp.org>
68132         gnulib-tool: Add --without-*-tests options.
68133         * gnulib-tool (func_usage): Document the --without-*-tests options.
68134         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
68135         excl_unportable_tests): New variables.
68136         Fail if they are specified with --import or --update.
68137         (func_acceptable): Respect the excl_*_tests variables.
68138         (func_import): Set the excl_*_tests variables to empty.
68140 2010-04-25  Simon Josefsson  <simon@josefsson.org>
68141             Bruno Haible  <bruno@clisp.org>
68143         Work around a MacOS X 10.4 bug with openpty.
68144         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
68145         * tests/test-openpty.c (main): Close the master side explicitly.
68147 2010-04-25  Bruno Haible  <bruno@clisp.org>
68149         strnlen: Fix a C++ test error on MacOS X and Solaris.
68150         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
68151         the function is not declared.
68152         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
68153         Simon Josefsson.
68155 2010-04-24  Bruno Haible  <bruno@clisp.org>
68157         Avoid a gcc warning.
68158         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
68159         of correct type for %08lx directive.
68160         Reported by Eric Blake.
68162 2010-04-24  Bruno Haible  <bruno@clisp.org>
68164         vasnprintf: Correct errno value in case of out-of-memory.
68165         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
68166         or sprintf. Use the errno value from SNPRINTF or sprintf.
68167         Reported by Ian Beckwith <ianb@erislabs.net>.
68169 2010-04-24  Bruno Haible  <bruno@clisp.org>
68171         ansi-c++-opt: Find correct compiler when cross-compiling.
68172         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
68173         AC_CHECK_PROGS.
68174         Reported by Simon Josefsson.
68176 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
68178         vc-list-files: Add support for subversion
68179         * build-aux/vc-list-files: Use "svn list" to generate the list of
68180         files controlled by subversion.
68182 2010-04-23  Jim Meyering  <meyering@redhat.com>
68184         vc-list-files tests: convert to use init.sh
68185         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
68186         path_prepend_.
68187         Use Exit, not exit.
68188         Use skip_ rather than open coding it.
68189         Remove trap set-up and compare definitions.
68190         * tests/test-vc-list-files-git.sh: Likewise.
68191         * modules/vc-list-files-tests (Files): Add tests/init.sh.
68193 2010-04-22  Simon Josefsson  <simon@josefsson.org>
68195         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
68196         backup files.
68198 2010-04-21  Simon Josefsson  <simon@josefsson.org>
68200         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
68202 2010-04-20  Eric Blake  <eblake@redhat.com>
68204         tests: be robust to ignored SIGPIPE
68205         * tests/test-select-in.sh: Consume all output.
68206         * tests/test-lseek.sh: Check correct exit status, while avoiding
68207         EPIPE.
68209 2010-04-20  Simon Josefsson  <simon@josefsson.org>
68210             Bruno Haible  <bruno@clisp.org>
68212         visibility: Don't use -fvisibility if it leads to a warning.
68213         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
68214         yes, don't pretend that visibility works if it leads to a warning.
68215         Reported by Mike Gran <spk121@yahoo.com>.
68217 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
68219         * build-aux/bootstrap: Use "git -h" for testing for supported options
68220         instead of "git --help".  The short-form option only shows a summary,
68221         and doesn't layout the full man page.  Grep for the full option name
68222         in the summary, too.
68224 2010-04-19  Bruno Haible  <bruno@clisp.org>
68226         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
68227         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
68228         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
68229         mention of RELOCATABLE_STRIP.
68230         Reported by Sylvain Beucler <beuc@beuc.net>.
68232 2010-04-19  Bruno Haible  <bruno@clisp.org>
68234         * lib/diffseq.h: Fix typo in comment.
68235         Reported by Eric Blake.
68237 2010-04-19  Bruno Haible  <bruno@clisp.org>
68239         ioctl: Move autoconf macro to a .m4 file.
68240         * m4/ioctl.m4: New file, extracted from modules/ioctl.
68241         * modules/ioctl (Files): Add it.
68242         (configure.ac): Simply invoke gl_FUNC_IOCTL.
68243         Reported by Ian Beckwith <ianb@erislabs.net>.
68245 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
68246             Bruno Haible  <bruno@clisp.org>
68248         diffseq: Accommodate use-case with abstract arrays.
68249         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
68250         is not defined.
68251         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
68252         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
68254 2010-04-18  Bruno Haible  <bruno@clisp.org>
68256         * doc/posix-headers/stdbool.texi: More precise wording.
68258 2010-04-17  Jim Meyering  <meyering@redhat.com>
68260         maint.mk: use gnu-style indentation in an embedded perl script
68261         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
68262         Rename variable: s/two/last_two_bytes/
68264 2010-04-16  Eric Blake  <eblake@redhat.com>
68266         test-stdbool: skip test that fails with Solaris CC
68267         * tests/test-stdbool.c (f): Skip test that causes compilation
68268         error under buggy C++ compiler.
68269         * lib/stdbool.in.h: Document the limitation.
68270         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
68272         setenv: allow compilation with C++
68273         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
68274         register keyword.
68276         stdint: allow test to pass with C++
68277         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
68279         getopt: allow compilation with C++
68280         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
68281         struct.
68282         * lib/getopt.c (_getopt_internal_r): Use correct type.
68283         Reported by Dagobert Michelson, via Joel E. Denny.
68285 2010-04-16  Bruno Haible  <bruno@clisp.org>
68287         Override netdb.h always.
68288         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
68289         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
68290         Reported by Ludovic Courtès <ludo@gnu.org>.
68292 2010-04-15  Bruno Haible  <bruno@clisp.org>
68294         openpty: Fix mistake from 2010-03-21.
68295         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
68296         Reported by Simon Josefsson.
68298 2010-04-15  Eric Blake  <eblake@redhat.com>
68300         test-forkpty: fix expected signature
68301         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
68302         Reported by Simon Josefsson.
68304 2010-04-15  Jim Meyering  <meyering@redhat.com>
68306         maint.mk: texinfo_suffix_re_: correct the default regexp
68307         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
68309         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
68310         make it configurable via texinfo_suffix_re_.
68312 2010-04-14  Eric Blake  <eblake@redhat.com>
68314         strtok_r: relax license to LGPLv2+
68315         * modules/strtok_r (License): Relax license.
68316         Reported by Matthias Bolte.
68318 2010-04-14  Simon Josefsson  <simon@josefsson.org>
68320         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
68321         version 1.4.4 by default instead of requiring the libgcrypt
68322         version used during build.  This makes it possible to use the
68323         application with older but still binary compatible libgcrypt
68324         versions.
68326 2010-04-13  Eric Blake  <eblake@redhat.com>
68328         getopt-gnu: match recent glibc fixes and posix ruling
68329         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
68330         '+' handling, when requesting extensions.
68331         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
68332         'W;' handling.
68333         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
68334         * doc/posix-functions/getopt.texi (getopt): Document this.
68335         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
68336         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
68337         Likewise.
68339         getopt: merge bug fixes from glibc
68340         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
68341         diagnostics.  Honor '+:' correctly.  Reject ';'.
68343         getopt-posix: detect MacOS bug
68344         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
68345         optind when missing a required argument.
68346         * doc/posix-functions/getopt.texi (getopt): Document the bug.
68347         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
68348         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
68349         Likewise.
68351         getopt-posix: avoid spurious failure on Solaris
68352         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
68353         an indicator that setting optind=1 is sufficient for reset.
68355         getopt-posix: avoid spurious failure on FreeBSD
68356         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
68357         in POSIX mode, since the m4 test uses it.
68359         gnulib-tool: silence warning on BSD sh
68360         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
68362 2010-04-13  Jim Meyering  <meyering@redhat.com>
68364         doc: users.txt: GNU patch now uses gnulib
68365         * users.txt: Add patch.
68367 2010-04-12  Jim Meyering  <meyering@redhat.com>
68369         maint.mk: generate more concise timing data for syntax-check rules
68370         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
68371         " done" from each line that reports a syntax-check test duration.
68373 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
68375         git-version-gen: use "git update-index..." rather than "git status"
68376         * build-aux/git-version-gen: Use git update-index --refresh, not
68377         "git status".  With some versions of git, "git status" would fail
68378         to update the index and result in an unwarranted "-dirty" suffix.
68380 2010-04-11  Jim Meyering  <meyering@redhat.com>
68382         openat: correct formatting (no semantic change)
68383         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
68384         Suggested by Bruno Haible.
68386 2010-04-11  Bruno Haible  <bruno@clisp.org>
68388         Stricter declaration checking in testdirs.
68389         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68390         If for_tests is true, augment AM_CPPFLAGS to define
68391         GNULIB_STRICT_CHECKING.
68392         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
68393         GNULIB_STRICT_CHECKING is defined, verify that the function is
68394         declared.
68396 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
68397             Bruno Haible  <bruno@clisp.org>
68399         libunistring: Improve configure output.
68400         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
68401         Don't say "consider installing GNU libunistring" when checking again
68402         with libiconv.
68404 2010-04-11  Bruno Haible  <bruno@clisp.org>
68406         libunistring: Correct value of $LTLIBUNISTRING.
68407         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
68408         correct the value of $LTLIBUNISTRING.
68410 2010-04-11  Bruno Haible  <bruno@clisp.org>
68412         havelib: Add static libraries to LIBS in the right order.
68413         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
68414         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
68416 2010-04-11  Bruno Haible  <bruno@clisp.org>
68418         libunistring: Detect libunistring also when it depends on libiconv.
68419         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
68420         the second AC_LIB_HAVE_LINKFLAGS invocation.
68422 2010-04-11  James Youngman  <jay@gnu.org>
68424         close-stream: declare local scalars to be "const"
68425         * lib/close-stream.c (close_stream): Make boolean variables const
68426         to document the fact that we set but do not change them.
68428 2010-04-11  Bruno Haible  <bruno@clisp.org>
68430         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
68432 2010-04-11  Jim Meyering  <meyering@redhat.com>
68434         maint.mk: don't include dist-check.mk
68435         * top/maint.mk: Remove bogus include directive.
68437         maint.mk: improve empty-line-at-EOF check
68438         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
68439         solution, rather than tail+Perl-based one.  The latter would read
68440         a few kilobytes from the end of each file, and did not handle empty
68441         files properly.
68443         maint.mk: print the elapsed time for each syntax-check rule
68444         * top/maint.mk (sc_m_rules_): Save start time in a file.
68445         (sc_z_rules_): New rules: remove temp file and print elapsed time.
68446         (local-check): Interpose the .z rules
68448 2010-04-11  Jim Meyering  <meyering@redhat.com>
68450         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
68451         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
68452         empty file with one that ends in an empty line.
68454 2010-04-10  Bruno Haible  <bruno@clisp.org>
68456         mkdir: Make it work on mingw64.
68457         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
68458         * lib/mkdir.c: Update comment.
68459         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
68461 2010-04-10  Bruno Haible  <bruno@clisp.org>
68463         Don't override improved macro from newer autoconf.
68464         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
68465         autoconf >= 2.62.
68466         Reported by Joel E. Denny <jdenny@clemson.edu>.
68468 2010-04-10  Jim Meyering  <meyering@redhat.com>
68470         maint.mk: new syntax-check rule: prohibit empty lines at end of file
68471         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
68473         maint.mk: correct a diagnostic
68474         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
68475         in diagnostic; now use $prohibit.
68477 2010-04-10  Bruno Haible  <address@hidden>
68479         fchownat: Fix a C++ test error on Solaris 8.
68480         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
68481         the function does not exist.
68483 2010-04-10  Bruno Haible  <bruno@clisp.org>
68485         vasnprintf: Add more tests.
68486         * tests/test-vasnprintf-posix.c: Include <errno.h>.
68487         (test_function): Test converting an invalid wide string.
68489         vasnprintf: Correct handling of unconvertible wide string arguments.
68490         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
68491         VASNPRINTF.
68492         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
68493         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
68494         smaller than the expected maximum need for the directive. Set errno to
68495         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
68496         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
68497         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
68498         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
68499         * modules/vasnprintf (Files): Add m4/printf.m4.
68500         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68502 2010-04-10  Bruno Haible  <bruno@clisp.org>
68504         vasnprintf: Fix crash in %ls directive.
68505         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
68506         string is passed as argument to %ls, with no precision and no width.
68507         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68509 2010-04-10  Bruno Haible  <bruno@clisp.org>
68511         vasnprintf: Fix multiple test failures on mingw.
68512         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
68513         _snprintf, or snwprintf, not _snwprintf.
68515 2010-04-10  Bruno Haible  <bruno@clisp.org>
68517         write: Fix a C++ test error on mingw.
68518         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
68520 2010-04-10  Bruno Haible  <bruno@clisp.org>
68522         vasnprintf test: Reduce code duplication.
68523         * tests/test-vasnprintf.c (test_function): New function, extracted from
68524         test_vasnprintf.
68525         (test_vasnprintf, test_asnprintf): Invoke it.
68527 2010-04-10  Bruno Haible  <bruno@clisp.org>
68529         strnlen: Fix warning in C++ mode on MacOS X.
68530         * lib/string.in.h (strnlen): Use the modern idiom.
68531         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
68532         defining strnlen as a macro already in <config.h>.
68533         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68534         REPLACE_STRNLEN.
68535         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
68536         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68538 2010-04-08  James Youngman  <jay@gnu.org>
68540         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
68541         the example.
68543 2010-04-09  Jim Meyering  <meyering@redhat.com>
68545         maint.mk: print better diagnostic when there is no $(_hv_file)
68546         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
68547         announce that when $(_hv_file) (aka help-version) does not exist.
68549         init.sh: run tr in the "C" locale to avoid multibyte interpretation
68550         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
68551         not try to interpret its random input bytes.  Jarno Rajahalme reported
68552         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
68553         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
68554         (mktempd_): Likewise, just in case.
68556         ftruncate: add two years to projected module removal date: 2012
68557         * m4/ftruncate.m4: Adjust comments.
68559         ftruncate: mark module as obsolete; even MinGW provides it, now
68560         * modules/ftruncate (Status): Obsolete.
68561         (Notice): Say that.
68562         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
68563         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
68565 2010-04-08  Bruno Haible  <bruno@clisp.org>
68567         Fix side effects from tests-related modules.
68568         * modules/dprintf-posix (Comment): New section.
68569         * modules/fprintf-posix (Comment): Likewise.
68570         * modules/obstack-printf-posix (Comment): Likewise.
68571         * modules/printf-posix (Comment): Likewise.
68572         * modules/snprintf-posix (Comment): Likewise.
68573         * modules/sprintf-posix (Comment): Likewise.
68574         * modules/vasnprintf-posix (Comment): Likewise.
68575         * modules/vasprintf-posix (Comment): Likewise.
68576         * modules/vdprintf-posix (Comment): Likewise.
68577         * modules/vfprintf-posix (Comment): Likewise.
68578         * modules/vprintf-posix (Comment): Likewise.
68579         * modules/vsnprintf-posix (Comment): Likewise.
68580         * modules/vsprintf-posix (Comment): Likewise.
68581         * modules/xprintf-posix (Comment): Likewise.
68582         * modules/xvasprintf-posix (Comment): Likewise.
68583         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
68584         * modules/floorf-tests (Depends-on): Likewise.
68585         * modules/round-tests (Depends-on): Likewise.
68586         * modules/roundf-tests (Depends-on): Likewise.
68587         * modules/trunc-tests (Depends-on): Likewise.
68588         * modules/truncf-tests (Depends-on): Likewise.
68589         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
68590         'fprintf-posix' module is not present.
68591         * tests/test-floorf2.c (check): Likewise.
68592         * tests/test-trunc2.c (check): Likewise.
68593         * tests/test-truncf2.c (check): Likewise.
68594         * tests/test-round2.c (equal): Likewise.
68595         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68597 2010-04-07  Karl Berry  <karl@gnu.org>
68599         * config/srclist.txt,
68600         * config/srclistvars.sh,
68601         * config/srclist-update: doc fixes.
68603 2010-04-07  Jim Meyering  <meyering@redhat.com>
68605         maint.mk: add a PATH crosschecking syntax-check rule
68606         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
68607         Useful if you use a test like the one in help-version (coreutils,
68608         diffutils, grep, gzip) that ensures $(VERSION) matches what is
68609         printed by prog --version.
68611 2010-04-06  Bruno Haible  <bruno@clisp.org>
68613         Fix link error on mingw.
68614         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
68615         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
68617 2010-04-06  Bruno Haible  <bruno@clisp.org>
68619         Assume rmdir exists.
68620         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
68622 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
68624         doc: update users.txt
68625         * users.txt: Add gcal.
68627 2010-04-06  Jim Meyering  <meyering@redhat.com>
68629         init.sh: simply unset TMPDIR rather than risking env -i
68630         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
68631         although it probably works fine on all Unix-based systems, some
68632         systems (Cygwin?) cannot tolerate a totally cleared environment.
68633         Suggestion from Eric Blake.
68635 2010-04-06  Jim Meyering  <meyering@redhat.com>
68637         init.sh: portability fix: use env's POSIX-specified -i option not -u
68638         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
68639         than unportable env -u.  Solaris 5.11's env lacks support for -u.
68641 2010-04-05  Bruno Haible  <bruno@clisp.org>
68643         btowc: Work around Cygwin 1.7.2 bug.
68644         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
68645         does not map NUL to 0.
68646         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
68648 2010-04-05  Bruno Haible  <bruno@clisp.org>
68650         Make the multithread modules work on Cygwin 1.7.2.
68651         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
68652         imported symbols can be declared weak, so that it returns "no" on
68653         Cygwin 1.7.2.
68655 2010-04-05  Bruno Haible  <bruno@clisp.org>
68657         Use the module 'strncat'.
68658         * modules/unistr/u8-strncat (Depends-on): Add strncat.
68660         Tests for module 'strncat'.
68661         * modules/strncat-tests: New file.
68662         * tests/test-strncat.c: New file.
68664         New module 'strncat'.
68665         * lib/string.in.h (strncat): New declaration.
68666         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
68667         * m4/strncat.m4: New file, based on m4/memchr.m4.
68668         * modules/strncat: New file.
68669         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
68670         is declared.
68671         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
68672         REPLACE_STRNCAT.
68673         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
68674         REPLACE_STRNCAT.
68675         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
68676         module.
68677         * tests/test-string-c++.cc: Check signature of strncat.
68679 2010-04-05  Jim Meyering  <meyering@redhat.com>
68681         xstrtoumax-tests: convert to use init.sh
68682         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
68683         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
68684         Use Exit, not exit.
68685         Remove uses of $EXEEXT and "./" to run a program in the current dir.
68687         xstrtoimax-tests: convert to use init.sh
68688         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
68689         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
68690         Use Exit, not exit.
68691         Remove uses of $EXEEXT and "./" to run a program in the current dir.
68693 2010-04-05  Bruno Haible  <bruno@clisp.org>
68695         sys_socket: Avoid #define replacements in C++ mode.
68696         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
68697         warning to the function if possible, rather than #defining the symbol
68698         to a dysfunctional alias.
68700 2010-04-05  Bruno Haible  <bruno@clisp.org>
68702         fseeko: Fix C++ test error on mingw.
68703         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
68704         gl_FUNC_FSEEKO.
68705         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
68706         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
68707         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
68708         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
68710 2010-04-05  Bruno Haible  <bruno@clisp.org>
68712         duplocale: Improve test output.
68713         * tests/test-duplocale.c (main): Print reason for skipped test.
68715 2010-04-05  Bruno Haible  <bruno@clisp.org>
68717         Assume rmdir exists.
68718         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
68719         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
68721 2010-04-05  Bruno Haible  <bruno@clisp.org>
68723         Fix link error on Solaris 8 with cc.
68724         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
68726 2010-04-05  Bruno Haible  <bruno@clisp.org>
68728         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
68729         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
68731 2010-04-05  Bruno Haible  <bruno@clisp.org>
68733         vasprintf: Update documentation.
68734         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
68736 2010-04-05  Bruno Haible  <bruno@clisp.org>
68738         ptsname: Improve test.
68739         * tests/test-ptsname.c (main): Also try the various master names of BSD
68740         systems.
68742 2010-04-05  Bruno Haible  <bruno@clisp.org>
68744         memchr: Avoid a possible C++ test error.
68745         * lib/string.in.h (memchr): Provide declaration if function is missing.
68746         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
68747         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
68748         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
68749         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
68751 2010-04-05  Bruno Haible  <bruno@clisp.org>
68753         strtok_r: Improve idiom.
68754         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
68755         AC_LIBOBJ is used.
68757 2010-04-05  Bruno Haible  <bruno@clisp.org>
68759         strdup: Improve idiom.
68760         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
68761         AC_LIBOBJ is used.
68762         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
68763         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
68764         when AC_LIBOBJ is used.
68766 2010-04-05  Bruno Haible  <bruno@clisp.org>
68768         mbsinit, mbrtowc, wcrtomb: Improve idioms.
68769         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
68770         don't set REPLACE_MBSINIT to 1.
68771         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
68772         don't set REPLACE_MBRTOWC to 1.
68773         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
68774         exist, don't set REPLACE_MBSRTOWCS to 1.
68775         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
68776         exist, don't set REPLACE_MBSNRTOWCS to 1.
68777         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
68778         don't set REPLACE_WCRTOMB to 1.
68779         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
68780         exist, don't set REPLACE_WCSRTOMBS to 1.
68781         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
68782         exist, don't set REPLACE_WCSNRTOMBS to 1.
68784 2010-04-05  Bruno Haible  <bruno@clisp.org>
68786         ldexpl: Improve idiom.
68787         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
68788         make sure to set HAVE_DECL_LDEXPL to 0.
68790 2010-04-05  Jim Meyering  <meyering@redhat.com>
68792         xstrtol-tests: convert to use init.sh
68793         * modules/xstrtol-tests (Files): Add tests/init.sh.
68794         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
68795         Use Exit, not exit.
68796         Remove uses of $EXEEXT and "./" to run a program in the current dir.
68798         atexit-tests: convert to use init.sh
68799         * modules/atexit-tests (Files): Add tests/init.sh.
68800         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
68801         Use Exit, not exit.
68802         Remove uses of $EXEEXT and "./" to run a program in the current dir.
68804         init.sh: fix typo
68805         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
68807         init.sh: make it easier for a test script to write to the tty, ...
68808         when using automake's parallel-tests mode.
68809         * tests/init.sh (stderr_fileno_): Define overridable variable.
68810         (warn_): New function, to use it.
68811         (fail_, skip_, framework_failure_): Use warn_.
68813 2010-04-04  Bruno Haible  <bruno@clisp.org>
68815         btowc: Avoid warning.
68816         * lib/btowc.c: Include <stdlib.h>.
68817         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
68819 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
68820             Bruno Haible  <bruno@clisp.org>
68822         wchar: Port to NetBSD 1.5.
68823         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
68824         * lib/wctype.in.h (WEOF): Likewise.
68826 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
68827             Bruno Haible  <bruno@clisp.org>
68829         Port extended stdio to NetBSD 1.5.
68830         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
68831         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
68832         older.
68834 2010-04-04  Bruno Haible  <bruno@clisp.org>
68836         string: Remove unused substitution.
68837         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
68838         HAVE_DECL_STRERROR.
68839         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
68841 2010-04-04  Bruno Haible  <bruno@clisp.org>
68843         strtod: Avoid a possible C++ test error.
68844         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
68845         set REPLACE_STRTOD.
68847 2010-04-04  Bruno Haible  <bruno@clisp.org>
68849         strerror: Update documentation.
68850         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
68852 2010-04-04  Bruno Haible  <bruno@clisp.org>
68854         stdio: Fix some C++ test errors on Solaris 8 with GCC.
68855         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
68856         _GL_CXXALIAS_SYS_CAST.
68858 2010-04-04  Bruno Haible  <bruno@clisp.org>
68860         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
68861         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
68862         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
68863         REPLACE_FREXPL to 1.
68864         * doc/posix-functions/frexpl.texi: Update documentation.
68866 2010-04-04  Bruno Haible  <bruno@clisp.org>
68868         math: Fix some C++ test errors on Solaris 8 and Cygwin.
68869         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
68871 2010-04-04  Bruno Haible  <bruno@clisp.org>
68873         Implement nanosleep for native Windows.
68874         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
68876 2010-04-04  Bruno Haible  <bruno@clisp.org>
68878         math: Fix some C++ test errors on Solaris 8.
68879         * lib/math.in.h (truncf, trunc): Use simpler idiom.
68881 2010-04-04  Bruno Haible  <bruno@clisp.org>
68883         math: Fix some C++ test errors on Cygwin.
68884         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
68885         truncl): Provide declaration if the system does not have it.
68886         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
68887         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
68888         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
68889         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
68890         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
68891         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
68892         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
68893         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
68894         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
68895         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
68896         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
68897         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
68898         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
68899         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
68900         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
68901         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
68902         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
68903         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
68904         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
68905         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
68906         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
68907         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
68909 2010-04-04  Bruno Haible  <bruno@clisp.org>
68911         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
68912         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
68913         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
68914         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
68915         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
68916         * m4/isinf.m4 (gl_ISINF): Likewise.
68917         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
68919 2010-04-04  Bruno Haible  <bruno@clisp.org>
68921         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
68922         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
68924 2010-04-04  Bruno Haible  <bruno@clisp.org>
68926         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
68927         * modules/tmpfile (configure.ac): Update.
68929         tmpfile: Fix C++ test error on mingw.
68930         * lib/stdio.in.h (tmpfile): New declaration.
68931         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
68932         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
68933         * modules/tmpfile (Depends-on): Add stdio.
68934         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68935         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
68936         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
68937         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
68938         REPLACE_TMPFILE.
68939         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
68941 2010-04-04  Bruno Haible  <bruno@clisp.org>
68943         ioctl: Fix C++ test error on mingw.
68944         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
68945         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
68946         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
68948 2010-04-03  Bruno Haible  <bruno@clisp.org>
68950         wcwidth: Fix C++ test error on mingw.
68951         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
68952         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
68953         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
68955 2010-04-03  Bruno Haible  <bruno@clisp.org>
68957         nanosleep: Fix C++ test error on mingw.
68958         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
68959         * lib/time.in.h (nanosleep): Use modern idiom.
68960         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
68961         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
68962         REPLACE_NANOSLEEP to 1.
68963         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
68964         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
68966 2010-04-03  Bruno Haible  <bruno@clisp.org>
68968         strptime: Fix C++ test error on mingw.
68969         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
68970         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
68971         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
68972         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
68973         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
68974         not REPLACE_STRPTIME.
68975         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
68976         REPLACE_STRPTIME.
68978 2010-04-03  Bruno Haible  <bruno@clisp.org>
68980         timegm: Fix C++ test error on mingw.
68981         * lib/time.in.h (timegm): Use modern idiom.
68982         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
68983         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
68984         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
68985         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
68987 2010-04-03  Bruno Haible  <bruno@clisp.org>
68989         timegm: Assume declaration if function exists.
68990         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
68991         if it exists. Don't clobber ac_cv_func_timegm.
68993 2010-04-03  Bruno Haible  <bruno@clisp.org>
68995         time_r: Fix C++ test error on mingw.
68996         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
68997         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
68998         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
68999         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
69000         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
69002 2010-04-03  Bruno Haible  <bruno@clisp.org>
69004         time_r: Minor updates.
69005         * modules/time_r (Description): Mention the provided functions.
69006         * lib/time_r.c: Don't include <string.h>.
69007         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
69008         * doc/posix-functions/localtime_r.texi: Likewise.
69010 2010-04-03  Bruno Haible  <bruno@clisp.org>
69012         time: Fix regression introduced on 2010-03-08.
69013         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
69014         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
69016 2010-04-03  Jim Meyering  <meyering@redhat.com>
69018         maint.mk: don't silently disable project-specific syntax-check rules
69019         * top/maint.mk (_prohibit_regexp): Define, to help people realize
69020         that they need to convert their project-specific syntax-check rules
69021         to use the new _sc_search_regexp.
69023 2010-04-03  Bruno Haible  <bruno@clisp.org>
69025         fchdir: Fix regression introduced on 2010-03-08.
69026         * lib/unistd.in.h (fchdir): Fix declaration.
69027         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
69028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
69029         REPLACE_FCHDIR.
69030         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
69031         REPLACE_FCHDIR.
69033 2010-04-03  Bruno Haible  <bruno@clisp.org>
69035         getpagesize: Fix C++ test error on mingw.
69036         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
69037         system does not declare the function.
69038         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
69039         declared.
69040         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
69041         HAVE_DECL_GETPAGESIZE.
69042         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
69044 2010-04-03  Bruno Haible  <bruno@clisp.org>
69046         stdio: Make C++ tests work on mingw.
69047         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
69048         does not declare the function.
69050 2010-04-03  Bruno Haible  <bruno@clisp.org>
69052         ftello: Fix C++ test error on mingw.
69053         * lib/stdio.in.h (ftello): Use modern idiom.
69054         * lib/ftello.c (ftello): Renamed from rpl_ftello.
69055         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
69056         is missing and that it needs to be replaced.
69057         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
69058         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
69059         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
69061 2010-04-03  Bruno Haible  <bruno@clisp.org>
69063         fseeko: Fix C++ test error on mingw.
69064         * lib/stdio.in.h (fseeko): Use modern idiom.
69065         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
69066         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
69067         is missing and that it needs to be replaced.
69068         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
69069         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
69070         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
69072 2010-04-03  Bruno Haible  <bruno@clisp.org>
69074         mkstemp: Fix C++ test error on mingw.
69075         * lib/stdlib.in.h (mkstemp): Use modern idiom.
69076         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
69077         function is missing and that it needs to be replaced.
69078         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
69079         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
69081 2010-04-03  Bruno Haible  <bruno@clisp.org>
69083         stpncpy: Fix C++ test error on mingw.
69084         * lib/string.in.h (stpncpy): Use modern idiom.
69085         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
69086         function is missing and that it needs to be replaced.
69087         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69088         REPLACE_STPNCPY.
69089         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
69091 2010-04-03  Bruno Haible  <bruno@clisp.org>
69093         sys_stat: Fix C++ test error on mingw.
69094         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
69095         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
69097 2010-04-03  Bruno Haible  <bruno@clisp.org>
69099         pty: Update doc.
69100         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
69102 2010-04-03  Bruno Haible  <bruno@clisp.org>
69104         unistd: Fix C++ test error on mingw.
69105         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
69107 2010-04-03  Bruno Haible  <bruno@clisp.org>
69109         Update doc regarding mingw.
69110         * doc/glibc-functions/openpty.texi: Update regarding mingw.
69111         * doc/glibc-functions/login_tty.texi: Likewise.
69112         * doc/glibc-functions/forkpty.texi: Likewise.
69114 2010-04-03  Bruno Haible  <bruno@clisp.org>
69116         stdlib: Avoid compilation failure of c-strtold on mingw.
69117         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
69119 2010-04-03  Bruno Haible  <bruno@clisp.org>
69121         locale: Make C++ tests work on Cygwin and mingw.
69122         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
69123         cannot provide the function.
69124         Reported by Simon Josefsson.
69126 2010-04-03  Bruno Haible  <bruno@clisp.org>
69128         localename: Port to MacOS X 10.6.
69129         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
69130         memory layout of the locales in MacOS X 10.6 as well.
69131         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
69133 2010-04-02  Bruno Haible  <bruno@clisp.org>
69135         gnulib-tool: Ensure that long-running tests are executed last.
69136         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
69137         running tests after the one for the other tests.
69139 2010-04-02  Bruno Haible  <bruno@clisp.org>
69141         gnulib-tool: Ensure the tests in the main directory are executed first.
69142         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
69143         start with the current directory.
69145 2010-04-02  Bruno Haible  <bruno@clisp.org>
69147         Tests for module 'havelib', moved here from GNU gettext.
69148         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
69149         modifications.
69150         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
69151         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
69152         with modifications.
69153         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
69154         modifications.
69155         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
69156         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
69157         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
69158         with modifications.
69159         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
69160         with modifications.
69161         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
69162         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
69163         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
69164         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
69165         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
69166         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
69167         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
69168         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
69169         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
69170         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
69171         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
69172         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
69173         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
69174         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
69175         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
69176         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
69177         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
69178         with modifications.
69179         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
69180         with modifications.
69181         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
69182         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
69183         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
69184         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
69185         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
69186         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
69187         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
69188         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
69189         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
69190         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
69191         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
69192         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
69193         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
69194         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
69195         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
69196         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
69197         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
69198         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
69199         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
69200         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
69201         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
69202         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
69203         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
69204         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
69205         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
69206         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
69207         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
69208         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
69209         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
69210         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
69211         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
69212         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
69213         * tests/havelib/rpathx/rpathx.c: New file, from
69214         gettext/autoconf-lib-link.
69215         * tests/havelib/rpathx/Makefile.am: New file, from
69216         gettext/autoconf-lib-link.
69217         * tests/havelib/rpathx/configure.ac: New file, from
69218         gettext/autoconf-lib-link with modifications.
69219         * tests/havelib/rpathy/rpathy.c: New file, from
69220         gettext/autoconf-lib-link.
69221         * tests/havelib/rpathy/Makefile.am: New file, from
69222         gettext/autoconf-lib-link.
69223         * tests/havelib/rpathy/configure.ac: New file, from
69224         gettext/autoconf-lib-link with modifications.
69225         * tests/havelib/rpathz/rpathz.c: New file, from
69226         gettext/autoconf-lib-link.
69227         * tests/havelib/rpathz/Makefile.am: New file, from
69228         gettext/autoconf-lib-link.
69229         * tests/havelib/rpathz/configure.ac: New file, from
69230         gettext/autoconf-lib-link with modifications.
69231         * tests/havelib/rpathlx/usex.c: New file, from
69232         gettext/autoconf-lib-link.
69233         * tests/havelib/rpathlx/Makefile.am: New file, from
69234         gettext/autoconf-lib-link.
69235         * tests/havelib/rpathlx/configure.ac: New file, from
69236         gettext/autoconf-lib-link with modifications.
69237         * tests/havelib/rpathly/usey.c: New file, from
69238         gettext/autoconf-lib-link.
69239         * tests/havelib/rpathly/Makefile.am: New file, from
69240         gettext/autoconf-lib-link.
69241         * tests/havelib/rpathly/configure.ac: New file, from
69242         gettext/autoconf-lib-link with modifications.
69243         * tests/havelib/rpathlz/usez.c: New file, from
69244         gettext/autoconf-lib-link.
69245         * tests/havelib/rpathlz/Makefile.am: New file, from
69246         gettext/autoconf-lib-link.
69247         * tests/havelib/rpathlz/configure.ac: New file, from
69248         gettext/autoconf-lib-link with modifications.
69249         * tests/havelib/rpathlyx/usey.c: New file, from
69250         gettext/autoconf-lib-link.
69251         * tests/havelib/rpathlyx/Makefile.am: New file, from
69252         gettext/autoconf-lib-link.
69253         * tests/havelib/rpathlyx/configure.ac: New file, from
69254         gettext/autoconf-lib-link with modifications.
69255         * tests/havelib/rpathlzyx/usez.c: New file, from
69256         gettext/autoconf-lib-link.
69257         * tests/havelib/rpathlzyx/Makefile.am: New file, from
69258         gettext/autoconf-lib-link.
69259         * tests/havelib/rpathlzyx/configure.ac: New file, from
69260         gettext/autoconf-lib-link with modifications.
69261         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
69262         with modifications.
69264 2010-04-02  Bruno Haible  <bruno@clisp.org>
69266         gnulib-tool: Create distributed built sources also for the tests.
69267         * gnulib-tool (func_create_testdir): Also generate distributed built
69268         sources in the tests directory.
69270 2010-04-02  Bruno Haible  <bruno@clisp.org>
69272         gnulib-tool: Obey user's environment variables.
69273         * gnulib-tool (func_create_testdir): When creating built sources,
69274         respect the environment variables for autoconf, automake, etc. given by
69275         the user.
69277 2010-04-02  Bruno Haible  <bruno@clisp.org>
69279         gnulib-tool: Provide the value of --m4-base to modules.
69280         * gnulib-tool (func_import, func_create_testdir): Emit a definition
69281         of gl_m4_base.
69283 2010-04-02  Eric Blake  <eblake@redhat.com>
69285         maint.mk: fix some fallout
69286         * NEWS: Document the incompatible change, and its effect on cfg.mk.
69287         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
69289 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
69291         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
69292         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
69293         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
69294         (sc_cast_of_x_alloc_return_value): Likewise.
69295         (sc_cast_of_alloca_return_value): Likewise.
69296         (sc_space_tab): Likewise.
69297         (sc_prohibit_atoi_atof): Likewise.
69298         (sc_prohibit_magic_number_exit): Likewise.
69299         (sc_error_exit_success): Likewise.
69300         (sc_file_system): Likewise.
69301         (sc_prohibit_have_config_h): Likewise.
69302         (sc_require_config_h): Likewise.
69303         (sc_prohibit_HAVE_MBRTOWC): Likewise.
69304         (sc_obsolete_symbols): Likewise.
69305         (sc_changelog): Likewise.
69306         (sc_program_name): Likewise.
69307         (sc_the_the): Likewise.
69308         (sc_trailing_blank): Likewise.
69309         (sc_two_space_separator_in_usage): Likewise.
69310         (sc_useless_cpp_parens): Likewise.
69311         (sc_GPL_version): Likewise.
69312         (sc_GFDL_version): Likewise.
69313         (sc_texinfo_acronym): Likewise.
69314         (sc_prohibit_cvs_keyword): Likewise.
69315         (sc_prohibit_stat_st_blocks): Likewise.
69316         (sc_prohibit_S_IS_definition): Likewise.
69317         (sc_redundant_const): Likewise.
69318         (sc_makefile_TAB_only_indentation): Likewise.
69319         (sc_m4_quote_check): Likewise.
69320         (sc_makefile_path_separator_check): Likewise.
69321         (sc_copyright_check): Likewise.
69322         (sc_Wundef_boolean): Likewise.
69323         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
69325         maint.mk: match 0 or more whitespace-before-function-call '('
69326         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
69327         that have zero or two-and-more spaces between the function name
69328         and the open parenthesis.
69329         (sc_error_message_warn_fatal): Likewise.
69330         (sc_error_message_uppercase): Likewise.
69331         (sc_error_message_period): Likewise.
69333 2010-03-31  Eric Blake  <eblake@redhat.com>
69335         maint.mk: check for [ as well as test
69336         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
69337         Based on a libvirt report by Matthias Bolte.
69339         gnumakefile: don't squelch _version output
69340         * top/GNUmakefile (_version): Create one-shot dependency rather
69341         than using $(shell) when version must be regenerated.
69342         (_autoreconf): Run verbosely, by default.
69344         sys_time: avoid compiler warnings
69345         * lib/sys_time.in.h (includes): Ensure gcc pragma is
69346         unconditional, fixing regression from 2010-03-29.
69347         Reported by Simon Josefsson.
69349 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
69351         maint.mk: s/_header_without_use/_sc_header_without_use/
69352         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
69353         (sc_prohibit_assert_without_use): Use the new name.
69354         (sc_prohibit_close_stream_without_use): Likewise.
69355         (sc_prohibit_getopt_without_use): Likewise.
69356         (sc_prohibit_quotearg_without_use): Likewise.
69357         (sc_prohibit_quote_without_use): Likewise.
69358         (sc_prohibit_long_options_without_use): Likewise.
69359         (sc_prohibit_inttostr_without_use): Likewise.
69360         (sc_prohibit_ignore_value_without_use): Likewise.
69361         (sc_prohibit_error_without_use): Likewise.
69362         (sc_prohibit_xalloc_without_use): Likewise.
69363         (sc_prohibit_hash_without_use): Likewise.
69364         (sc_prohibit_hash_pjw_without_use): Likewise.
69365         (sc_prohibit_safe_read_without_use): Likewise.
69366         (sc_prohibit_argmatch_without_use): Likewise.
69367         (sc_prohibit_canonicalize_without_use): Likewise.
69368         (sc_prohibit_root_dev_ino_without_use): Likewise.
69369         (sc_prohibit_openat_without_use): Likewise.
69370         (sc_prohibit_c_ctype_without_use): Likewise.
69371         (sc_prohibit_signal_without_use): Likewise.
69372         (sc_prohibit_intprops_without_use): Likewise.
69374 2010-03-30  Eric Blake  <eblake@redhat.com>
69376         maint: improve module indicators
69377         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
69378         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
69379         columns, and avoid extra macro expansion.
69381         fdopendir: work around FreeBSD bug
69382         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
69383         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
69384         * modules/dirent (Makefile.am): Substitute it.
69385         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
69386         declaration.
69387         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
69388         fix.
69389         Reported by Christian Weisgerber <naddy@mips.inka.de>.
69391 2010-03-29  Bruno Haible  <bruno@clisp.org>
69393         Emit #pragma system_header after the inclusion guard, not before.
69394         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
69395         guard that spans the entire file, not before. This enables an
69396         optimization in GCC's preprocessor.
69397         * lib/ctype.in.h: Likewise.
69398         * lib/dirent.in.h: Likewise.
69399         * lib/errno.in.h: Likewise.
69400         * lib/float.in.h: Likewise.
69401         * lib/getopt.in.h: Likewise.
69402         * lib/iconv.in.h: Likewise.
69403         * lib/langinfo.in.h: Likewise.
69404         * lib/locale.in.h: Likewise.
69405         * lib/math.in.h: Likewise.
69406         * lib/netdb.in.h: Likewise.
69407         * lib/netinet_in.in.h: Likewise.
69408         * lib/pty.in.h: Likewise.
69409         * lib/sched.in.h: Likewise.
69410         * lib/se-selinux.in.h: Likewise.
69411         * lib/search.in.h: Likewise.
69412         * lib/spawn.in.h: Likewise.
69413         * lib/stdarg.in.h: Likewise.
69414         * lib/stdint.in.h: Likewise.
69415         * lib/string.in.h: Likewise.
69416         * lib/strings.in.h: Likewise.
69417         * lib/sys_file.in.h: Likewise.
69418         * lib/sys_ioctl.in.h: Likewise.
69419         * lib/sys_time.in.h: Likewise.
69420         * lib/sys_times.in.h: Likewise.
69421         * lib/sys_utsname.in.h: Likewise.
69422         * lib/sys_wait.in.h: Likewise.
69423         * lib/sysexits.in.h: Likewise.
69424         * lib/wctype.in.h: Likewise.
69426 2010-03-28  James Youngman  <jay@gnu.org>
69428         save-cwd: don't leak a file descriptor when the caller execs.
69429         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
69430         saved file descriptor.
69431         * modules/save-cwd (Depends-on): Depend on cloexec.
69433 2010-03-29  Bruno Haible  <bruno@clisp.org>
69435         Remove vestiges of fts-lgpl module.
69436         * lib/fts_.h: Assume GNULIB_FTS is 1.
69437         * lib/fts.c: Likewise.
69438         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
69440 2010-03-28  Bruno Haible  <bruno@clisp.org>
69442         Fix definition of tests witness macro.
69443         * gnulib-tool (func_import): Fix definition of witness macro.
69445 2010-03-28  Bruno Haible  <bruno@clisp.org>
69447         Fix ioctl's protoype on glibc systems.
69448         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
69449         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
69450         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
69451         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
69452         signature. If not, arrange to replace the ioctl function.
69453         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
69454         REPLACE_IOCTL.
69455         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
69456         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
69457         Reported by Ludovic Courtès <ludo@gnu.org>.
69459 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
69461         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
69462         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
69463         made it so grep -r --include=GLOB* ... did not work.
69465 2010-03-26  Jim Meyering  <meyering@redhat.com>
69466             Eric Blake  <eblake@redhat.com>
69468         maint.mk: prohibit use of test's -o and -a operators
69469         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
69471 2010-03-28  Bruno Haible  <bruno@clisp.org>
69473         Remove unused GNULIB_XYZ macro definitions.
69474         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
69475         invocation.
69477 2010-03-28  Bruno Haible  <bruno@clisp.org>
69479         Mark privileged tests modules.
69480         * modules/idpriv-drop-tests (Status): New section.
69481         * modules/idpriv-droptemp-tests (Status): New section.
69483 2010-03-28  Bruno Haible  <bruno@clisp.org>
69485         Split C++ tests into separate tests modules.
69486         * modules/dirent-c++-tests: New file, extracted from
69487         modules/dirent-tests.
69488         * modules/dirent-tests: Depend on it.
69489         * modules/fcntl-h-c++-tests: New file, extracted from
69490         modules/fcntl-h-tests.
69491         * modules/fcntl-h-tests: Depend on it.
69492         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
69493         * modules/glob-tests: Depend on it.
69494         * modules/iconv-h-c++-tests: New file, extracted from
69495         modules/iconv-h-tests.
69496         * modules/iconv-h-tests: Depend on it.
69497         * modules/langinfo-c++-tests: New file, extracted from
69498         modules/langinfo-tests.
69499         * modules/langinfo-tests: Depend on it.
69500         * modules/locale-c++-tests: New file, extracted from
69501         modules/locale-tests.
69502         * modules/locale-tests: Depend on it.
69503         * modules/math-c++-tests: New file, extracted from modules/math-tests.
69504         * modules/math-tests: Depend on it.
69505         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
69506         * modules/pty-tests: Depend on it.
69507         * modules/search-c++-tests: New file, extracted from
69508         modules/search-tests.
69509         * modules/search-tests: Depend on it.
69510         * modules/signal-c++-tests: New file, extracted from
69511         modules/signal-tests.
69512         * modules/signal-tests: Depend on it.
69513         * modules/spawn-c++-tests: New file, extracted from
69514         modules/spawn-tests.
69515         * modules/spawn-tests: Depend on it.
69516         * modules/stdio-c++-tests: New file, extracted from
69517         modules/stdio-tests.
69518         * modules/stdio-tests: Depend on it.
69519         * modules/stdlib-c++-tests: New file, extracted from
69520         modules/stdlib-tests.
69521         * modules/stdlib-tests: Depend on it.
69522         * modules/string-c++-tests: New file, extracted from
69523         modules/string-tests.
69524         * modules/string-tests: Depend on it.
69525         * modules/sys_ioctl-c++-tests: New file, extracted from
69526         modules/sys_ioctl-tests.
69527         * modules/sys_ioctl-tests: Depend on it.
69528         * modules/sys_select-c++-tests: New file, extracted from
69529         modules/sys_select-tests.
69530         * modules/sys_select-tests: Depend on it.
69531         * modules/sys_socket-c++-tests: New file, extracted from
69532         modules/sys_socket-tests.
69533         * modules/sys_socket-tests: Depend on it.
69534         * modules/sys_stat-c++-tests: New file, extracted from
69535         modules/sys_stat-tests.
69536         * modules/sys_stat-tests: Depend on it.
69537         * modules/sys_time-c++-tests: New file, extracted from
69538         modules/sys_time-tests.
69539         * modules/sys_time-tests: Depend on it.
69540         * modules/time-c++-tests: New file, extracted from modules/time-tests.
69541         * modules/time-tests: Depend on it.
69542         * modules/unistd-c++-tests: New file, extracted from
69543         modules/unistd-tests.
69544         * modules/unistd-tests: Depend on it.
69545         * modules/wchar-c++-tests: New file, extracted from
69546         modules/wchar-tests.
69547         * modules/wchar-tests: Depend on it.
69548         * modules/wctype-c++-tests: New file, extracted from
69549         modules/wctype-tests.
69550         * modules/wctype-tests: Depend on it.
69551         Reported by Simon Josefsson.
69553 2010-03-28  Bruno Haible  <bruno@clisp.org>
69555         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
69556         * gnulib-tool (func_exists_module): New function, extracted from
69557         func_verify_module.
69558         (func_verify_module): Use it.
69559         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
69560         'foo' only if 'foo' exists.
69561         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
69562         module.
69564 2010-03-28  Bruno Haible  <bruno@clisp.org>
69566         gnulib-tool: Add support for special categories of tests.
69567         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
69568         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
69569         (func_usage): Document them.
69570         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
69571         inc_unportable_tests, inc_all_tests): New variables.
69572         (func_acceptable): Consider these variables.
69573         (func_modules_transitive_closure): Make it work when the 'Status' field
69574         consists of multiple words.
69575         (func_import): Store and restore the values of inc_cxx_tests,
69576         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
69577         inc_all_tests in gnulib-comp.m4.
69578         (func_create_testdir): Set inc_all_tests to true.
69579         * doc/gnulib.texi (Extra tests modules): New section.
69580         Suggested by Jim Meyering.
69582 2010-03-28  Bruno Haible  <bruno@clisp.org>
69584         ansi-c++-opt: Allow turning off the C++ build by default.
69585         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
69586         gl_CXX_CHOICE_DEFAULT_NO is defined.
69587         Requested by Eric Blake.
69589 2010-03-28  Bruno Haible  <bruno@clisp.org>
69591         unistd: Avoid #define replacements in C++ mode.
69592         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
69593         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
69594         setsockopt, shutdown, select): In C++, attach a warning to the function
69595         if possible, rather than #defining the symbol to a dysfunctional alias.
69596         Reported by John W. Eaton <jwe@gnu.org>.
69598 2010-03-28  Bruno Haible  <bruno@clisp.org>
69600         Fix link errors on mingw.
69601         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
69602         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
69603         $(LIBSOCKET).
69604         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
69605         $(LIBSOCKET).
69607 2010-03-28  Bruno Haible  <bruno@clisp.org>
69608             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69610         lib-ignore: Determine different options for different compilers.
69611         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
69612         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
69613         Add comments.
69614         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
69615         * NEWS: Mention the change.
69617 2010-03-27  Bruno Haible  <bruno@clisp.org>
69619         Remove unused GNULIB_XYZ macro definitions.
69620         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
69621         * modules/fseek (configure.ac): Likewise.
69622         * modules/ioctl (configure.ac): Likewise.
69623         * modules/open (configure.ac): Likewise.
69624         * modules/stdlib-safer (configure.ac): Likewise.
69626 2010-03-27  Bruno Haible  <bruno@clisp.org>
69628         Add a remark about certain modules.
69629         * modules/malloc (Comment): New section.
69630         * modules/realloc (Comment): Likewise.
69631         * modules/sigpipe (Comment): Likewise.
69633 2010-03-27  Bruno Haible  <bruno@clisp.org>
69635         Resolve conflict between the two kinds of module indicators.
69636         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
69637         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
69638         * modules/canonicalize (configure.ac): Invoke
69639         gl_MODULE_INDICATOR_FOR_TESTS.
69640         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
69641         GNULIB_XYZ.
69642         * tests/test-dirent-c++.cc: Likewise.
69643         * tests/test-dirent-safer.c: Likewise.
69644         * tests/test-dup2.c: Likewise.
69645         * tests/test-fchdir.c: Likewise.
69646         * tests/test-fcntl-h-c++.cc: Likewise.
69647         * tests/test-getopt.c: Likewise.
69648         * tests/test-getopt.h: Likewise.
69649         * tests/test-langinfo-c++.cc: Likewise.
69650         * tests/test-locale-c++.cc: Likewise.
69651         * tests/test-math-c++.cc: Likewise.
69652         * tests/test-pty-c++.cc: Likewise.
69653         * tests/test-search-c++.cc: Likewise.
69654         * tests/test-signal-c++.cc: Likewise.
69655         * tests/test-spawn-c++.cc: Likewise.
69656         * tests/test-stdio-c++.cc: Likewise.
69657         * tests/test-stdlib-c++.cc: Likewise.
69658         * tests/test-string-c++.cc: Likewise.
69659         * tests/test-sys_ioctl-c++.cc: Likewise.
69660         * tests/test-sys_select-c++.cc: Likewise.
69661         * tests/test-sys_socket-c++.cc: Likewise.
69662         * tests/test-sys_stat-c++.cc: Likewise.
69663         * tests/test-sys_time-c++.cc: Likewise.
69664         * tests/test-time-c++.cc: Likewise.
69665         * tests/test-unistd-c++.cc: Likewise.
69666         * tests/test-wchar-c++.cc: Likewise.
69667         * tests/uninorm/test-u8-nfc.c: Likewise.
69668         * tests/uninorm/test-u8-nfd.c: Likewise.
69669         * tests/uninorm/test-u8-nfkc.c: Likewise.
69670         * tests/uninorm/test-u8-nfkd.c: Likewise.
69671         * tests/uninorm/test-u16-nfc.c: Likewise.
69672         * tests/uninorm/test-u16-nfd.c: Likewise.
69673         * tests/uninorm/test-u16-nfkc.c: Likewise.
69674         * tests/uninorm/test-u16-nfkd.c: Likewise.
69675         * tests/uninorm/test-u32-nfc.c: Likewise.
69676         * tests/uninorm/test-u32-nfc-big.c: Likewise.
69677         * tests/uninorm/test-u32-nfd.c: Likewise.
69678         * tests/uninorm/test-u32-nfd-big.c: Likewise.
69679         * tests/uninorm/test-u32-nfkc.c: Likewise.
69680         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
69681         * tests/uninorm/test-u32-nfkd.c: Likewise.
69682         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
69683         * tests/uninorm/test-u32-normalize-big.c: Likewise.
69685 2010-03-27  Bruno Haible  <bruno@clisp.org>
69687         Distinguish two kinds of module indicators.
69688         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
69689         gl_MODULE_INDICATOR.
69690         (gl_MODULE_INDICATOR): New macro.
69691         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
69692         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
69693         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
69694         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
69695         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
69696         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
69697         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
69698         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
69699         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
69700         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
69701         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
69702         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
69703         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
69704         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
69705         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
69706         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
69707         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
69708         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
69709         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
69710         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
69711         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
69712         * modules/cloexec (configure.ac): Likewise.
69713         * modules/getopt-gnu (configure.ac): Likewise.
69714         * modules/uninorm/u8-normalize (configure.ac): Likewise.
69715         * modules/uninorm/u16-normalize (configure.ac): Likewise.
69716         * modules/uninorm/u32-normalize (configure.ac): Likewise.
69717         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
69719 2010-03-27  Bruno Haible  <bruno@clisp.org>
69721         New module description field 'Comment'.
69722         * gnulib-tool: New option --extract-comment.
69723         (func_usage): Document it.
69724         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
69725         (func_get_comment): New function.
69726         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
69728 2010-03-27  Bruno Haible  <bruno@clisp.org>
69730         Addendum to 2010-02-07 commit.
69731         * gnulib-tool (func_usage): Document --extract-applicability option.
69733 2010-03-27  Bruno Haible  <bruno@clisp.org>
69735         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
69736         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
69737         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
69738         rather than link errors.
69740 2010-03-27  Bruno Haible  <bruno@clisp.org>
69742         Avoid side effects from tests-related modules on the compilation of lib.
69743         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
69744         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
69745         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
69746         parameter. Emit into AM_CPPFLAGS a definition of the designated C
69747         macro.
69748         (func_import): Define a witness macro. Assign it a value that depends
69749         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
69750         tests-related modules.
69751         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
69752         Reported by Jim Meyering.
69754 2010-03-27  Bruno Haible  <bruno@clisp.org>
69756         Factorize common .m4 code.
69757         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
69758         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
69759         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
69760         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
69761         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
69762         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
69763         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
69764         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
69765         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
69766         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
69767         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
69768         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
69769         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
69770         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
69771         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
69772         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
69773         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
69774         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
69775         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
69776         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
69777         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
69778         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
69779         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
69780         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
69781         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
69782         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
69783         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
69784         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
69785         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
69786         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
69787         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
69788         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
69790 2010-03-27  Bruno Haible  <bruno@clisp.org>
69792         Fix a compilation error on Cygwin with g++ >= 4.3.
69793         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
69794         if it is undefined or if we alias it to chmod.
69795         (lstat): Don't warn about the use of this function if it is undefined
69796         or if we alias it to stat.
69797         Reported by Simon Josefsson.
69799 2010-03-27  Bruno Haible  <bruno@clisp.org>
69801         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
69802         * modules/getlogin (configure.ac): Update.
69804         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
69805         * modules/getlogin_r (configure.ac): Update.
69807         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
69808         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
69809         * modules/inet_ntop (configure.ac): Update.
69811         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
69812         * modules/inet_pton (configure.ac): Update.
69814         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
69815         * modules/mbslen (configure.ac): Update.
69817         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
69818         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
69819         * modules/forkpty (configure.ac): Update.
69820         * modules/openpty (configure.ac): Update.
69822 2010-03-26  Simon Josefsson  <simon@josefsson.org>
69824         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
69825         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
69827 2010-03-25  Eric Blake  <eblake@redhat.com>
69829         maint: use pragma consistently across replacement headers
69830         * lib/ctype.in.h (system_header): Hoist for consistent placement.
69831         * lib/dirent.in.h (system_header): Likewise.
69832         * lib/errno.in.h (system_header): Likewise.
69833         * lib/float.in.h (system_header): Likewise.
69834         * lib/getopt.in.h (system_header): Likewise.
69835         * lib/iconv.in.h (system_header): Likewise.
69836         * lib/inttypes.in.h (system_header): Likewise.
69837         * lib/langinfo.in.h (system_header): Likewise.
69838         * lib/locale.in.h (system_header): Likewise.
69839         * lib/math.in.h (system_header): Likewise.
69840         * lib/netdb.in.h (system_header): Likewise.
69841         * lib/netinet_in.in.h (system_header): Likewise.
69842         * lib/pty.in.h (system_header): Likewise.
69843         * lib/sched.in.h (system_header): Likewise.
69844         * lib/se-selinux.in.h (system_header): Likewise.
69845         * lib/search.in.h (system_header): Likewise.
69846         * lib/spawn.in.h (system_header): Likewise.
69847         * lib/stdarg.in.h (system_header): Likewise.
69848         * lib/stdint.in.h (system_header): Likewise.
69849         * lib/string.in.h (system_header): Likewise.
69850         * lib/strings.in.h (system_header): Likewise.
69851         * lib/sys_file.in.h (system_header): Likewise.
69852         * lib/sys_ioctl.in.h (system_header): Likewise.
69853         * lib/sys_socket.in.h (system_header): Likewise.
69854         * lib/sys_times.in.h (system_header): Likewise.
69855         * lib/sys_utsname.in.h (system_header): Likewise.
69856         * lib/sys_wait.in.h (system_header): Likewise.
69857         * lib/sysexits.in.h (system_header): Likewise.
69858         * lib/unistd.in.h (system_header): Likewise.
69859         * lib/wctype.in.h (system_header): Likewise.
69861         arpa/inet: fix mingw compilation warning
69862         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
69863         Reported by Matthew Bolte.
69865 2010-03-25  Bruno Haible  <bruno@clisp.org>
69867         Avoid collision between gnulib wrapper and libintl wrapper.
69868         * lib/printf.c (printf): Don't define if a printf wrapper is already
69869         defined in intl/printf.c.
69870         Reported by Michel Boaventura <michel@michelboaventura.com>.
69872 2010-03-25  Bruno Haible  <bruno@clisp.org>
69874         Use ANSI C.
69875         * lib/readutmp.h (getutent): Provide ANSI C prototype.
69877 2010-03-25  Bruno Haible  <bruno@clisp.org>
69879         Minor formatting changes.
69880         * lib/acosl.c: Insert space before function argument list.
69881         * lib/argz.c: Likewise.
69882         * lib/asinl.c: Likewise.
69883         * lib/expl.c: Likewise.
69884         * lib/gen-uni-tables.c: Likewise.
69885         * lib/gettext.h: Likewise.
69886         * lib/glthread/lock.h: Likewise.
69887         * lib/tanl.c: Likewise.
69888         * lib/uniname/uniname.c: Likewise.
69889         * tests/test-idpriv-drop.c: Likewise.
69890         * tests/test-idpriv-droptemp.c: Likewise.
69891         * tests/test-lock.c: Likewise.
69892         * tests/test-tls.c: Likewise.
69893         * lib/argp-help.c: Insert space before function-like macro argument
69894         list.
69895         * lib/memcmp.c: Likewise.
69896         * tests/test-base64.c: Likewise.
69897         * lib/localename.c: Insert space before sizeof's argument list.
69898         * lib/safe-alloc.h: Likewise.
69899         * lib/file-set.h: Insert space before macro argument list.
69900         * tests/test-argp.c: Likewise.
69901         * lib/argp-namefrob.h: Insert space before function parameter list.
69902         * lib/getaddrinfo.c: Likewise.
69903         * lib/netdb.in.h: Likewise.
69904         * lib/parse-duration.h: Likewise.
69905         * lib/parse-duration.c: Likewise.
69906         * lib/poll.c: Likewise.
69907         * lib/select.c: Likewise.
69908         * lib/trim.h: Likewise.
69909         * tests/test-usleep.c: Likewise.
69910         * lib/ldexpl.c: Insert space before function parameter list and before
69911         function argument list.
69912         * lib/logl.c: Likewise.
69913         * lib/sqrtl.c: Likewise.
69914         * lib/trim.c: Likewise.
69915         * lib/cosl.c: Use GNU style indentation. Insert space before function
69916         argument list.
69917         * lib/sinl.c: Likewise.
69918         * lib/tsearch.c: Insert space after 'for'.
69919         Reported by Jim Meyering.
69921 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
69923         * maint.mk (sc_Wundef_boolean): Check for the presence of the
69924         config header before grepping, as it's not present before
69925         autoreconf/configure are run.  Reported by Simon Josefsson.
69927 2010-03-23  Bruno Haible  <bruno@clisp.org>
69929         pt_chown: Make it work with automake < 1.11.
69930         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
69931         Reported by Simon Josefsson.
69933 2010-03-23  Bruno Haible  <bruno@clisp.org>
69935         pt_chown: Don't depend on GPLed modules.
69936         * lib/pt_chown.c: Don't include idpriv.h.
69937         (main): Don't drop privileges.
69938         * modules/pt_chown (Depends-on): Remove idpriv-drop.
69939         Reported by Simon Josefsson.
69941 2010-03-24  Simon Josefsson  <simon@josefsson.org>
69943         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
69944         suggestions from karl@freefriends.org (Karl Berry).
69946 2010-03-22  Eric Blake  <eblake@redhat.com>
69948         gethostname: further tweaks
69949         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
69950         are overriding gethostname.
69951         Suggested by Bruno Haible.
69953 2010-03-21  Bruno Haible  <bruno@clisp.org>
69955         Fix comments.
69956         * lib/forkpty.c (rpl_forkpty): Fix comment.
69957         * lib/openpty.c (rpl_openpty): Likewise.
69958         Reported by Eric Blake.
69960 2010-03-22  Eric Blake  <eblake@redhat.com>
69962         gethostname: fix build on mingw
69963         * lib/unistd.in.h (includes): Work around fact that mingw
69964         <winsock2.h> re-includes <unistd.h>, by avoiding any
69965         redeclarations if we are being included by <winsock2.h>.
69966         Reported by Matthias Bolte.
69968 2010-03-21  Bruno Haible  <bruno@clisp.org>
69970         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
69971         * lib/forkpty.c (forkpty): New replacement function, from glibc with
69972         modifications.
69973         * lib/pty.in.h (forkpty): Update declaration. Add comments.
69974         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
69975         provide the replacement.
69976         * modules/forkpty (Depends-on): Add openpty, login_tty.
69977         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
69978         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
69979         * doc/glibc-functions/forkpty.texi: More supported platforms.
69980         * config/srclist.txt: Add forkpty.c (commented).
69982 2010-03-21  Bruno Haible  <bruno@clisp.org>
69984         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
69985         (Makefile.am): Verify that PTY_LIB is defined.
69987         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
69989 2010-03-21  Bruno Haible  <bruno@clisp.org>
69991         Tests for module 'login_tty'.
69992         * modules/login_tty-tests: New file.
69993         * tests/test-login_tty.c: New file.
69995         New module 'login_tty'.
69996         * lib/login_tty.c: New file.
69997         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
69998         * modules/login_tty: New file.
69999         * doc/glibc-functions/login_tty.texi: Mention the new module.
70001 2010-03-21  Bruno Haible  <bruno@clisp.org>
70003         login_tty: Documentation.
70004         * doc/glibc-functions/login_tty.texi: New file.
70005         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
70007 2010-03-21  Bruno Haible  <bruno@clisp.org>
70009         pty: Consistent macro naming.
70010         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
70011         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
70012         * modules/pty (configure.ac): Update.
70014 2010-03-21  Bruno Haible  <bruno@clisp.org>
70016         Tests for openpty: Make stricter.
70017         * tests/test-openpty.c (main): Add test of canonical processing and
70018         erase.
70019         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
70021         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
70022         * lib/openpty.c (openpty): New replacement function.
70023         * lib/pty.in.h: Include <termios.h>.
70024         (openpty): Update declaration. Add comments.
70025         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
70026         is not declared, arrange to provide the replacement. Check for _getpty
70027         and posix_openpt.
70028         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
70029         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
70030         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
70031         * modules/pty-tests (test_pty_c___LDADD): New variable.
70032         * doc/glibc-functions/openpty.texi: More supported platforms.
70034 2010-03-21  Bruno Haible  <bruno@clisp.org>
70036         setenv: Tweaks.
70037         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
70038         the test program.
70039         * doc/posix-functions/setenv.texi: Update platforms list.
70041 2010-03-21  Bruno Haible  <bruno@clisp.org>
70043         New module 'unlockpt'.
70044         * lib/unlockpt.c: New file, from glibc with modifications.
70045         * m4/unlockpt.m4: New file.
70046         * modules/unlockpt: New file.
70047         * lib/stdlib.in.h (unlockpt): New declaration.
70048         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
70049         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
70050         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
70051         HAVE_UNLOCKPT.
70052         * doc/posix-functions/unlockpt.texi: Mention the new module.
70053         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
70054         * config/srclist.txt: Add unlockpt.c (commented).
70056 2010-03-21  Jim Meyering  <meyering@redhat.com>
70058         maint.mk: prohibit inclusion of "intprops.h" without use
70059         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
70061 2010-03-21  Bruno Haible  <bruno@clisp.org>
70063         New module 'grantpt'.
70064         * lib/grantpt.c: New file, from glibc with modifications.
70065         * m4/grantpt.m4: New file.
70066         * modules/grantpt: New file.
70067         * lib/stdlib.in.h (grantpt): New declaration.
70068         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
70069         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
70070         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
70071         HAVE_GRANTPT.
70072         * doc/posix-functions/grantpt.texi: Mention the new module.
70073         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
70074         * config/srclist.txt: Add grantpt.c (commented).
70076 2010-03-21  Bruno Haible  <bruno@clisp.org>
70078         New module 'pt_chown'.
70079         * lib/pt_chown.c: New file, from glibc with modifications.
70080         * lib/pty-private.h: New file, from glibc with modifications.
70081         * modules/pt_chown: New file.
70082         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
70084 2010-03-21  Bruno Haible  <bruno@clisp.org>
70086         Tests for module 'ptsname'.
70087         * modules/ptsname-tests: New file.
70088         * tests/test-ptsname.c: New file.
70090         New module 'ptsname'.
70091         * lib/ptsname.c: New file, from glibc with modifications.
70092         * m4/ptsname.m4: New file.
70093         * modules/ptsname: New file.
70094         * lib/stdlib.in.h (ptsname): New declaration.
70095         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
70096         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
70097         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
70098         HAVE_PTSNAME.
70099         * doc/posix-functions/ptsname.texi: Mention the new module.
70100         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
70101         * config/srclist.txt: Add ptsname.c (commented).
70103 2010-03-21  Bruno Haible  <bruno@clisp.org>
70105         Tests for module 'ttyname_r'.
70106         * modules/ttyname_r-tests: New file.
70107         * tests/test-ttyname_r.c: New file.
70109         New module 'ttyname_r'.
70110         * lib/ttyname_r.c: New file.
70111         * m4/ttyname_r.m4: New file.
70112         * modules/ttyname_r: New file.
70113         * lib/unistd.in.h (ttyname_r): New declaration.
70114         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
70115         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
70116         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
70117         HAVE_TTYNAME_R.
70118         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
70119         * doc/posix-functions/ttyname_r.texi: Mention the new module.
70121 2010-03-20  Bruno Haible  <bruno@clisp.org>
70123         signal: Undefine macro definitions in C++ mode.
70124         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
70125         sigfillset): Undefine macro definitions from the system header in C++
70126         mode.
70127         Reported by John W. Eaton <jwe@gnu.org>.
70129 2010-03-20  Bruno Haible  <bruno@clisp.org>
70131         Ensure no #include statements inside extern "C" { ... }.
70132         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
70133         contain #include statements.
70134         * lib/time.in.h: Likewise.
70136 2010-03-20  Bruno Haible  <bruno@clisp.org>
70138         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
70139         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
70140         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
70141         Reported by John W. Eaton <jwe@gnu.org>.
70143 2010-03-20  Bruno Haible  <bruno@clisp.org>
70145         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
70146         Reported by Jim Meyering.
70148 2010-03-20  Bruno Haible  <bruno@clisp.org>
70150         pipe: Set errno upon failure.
70151         * lib/pipe.h: Specify that when -1 is returned, errno is set.
70152         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
70153         errno value in error message.
70155 2010-03-20  Bruno Haible  <bruno@clisp.org>
70156             Jim Meyering  <meyering@redhat.com>
70158         lchown: Avoid "unused variable" warning.
70159         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
70161 2010-03-20  Bruno Haible  <bruno@clisp.org>
70163         Work around unlink() bug on MacOS X 10.5.6.
70164         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
70165         attempting to unlink a parent directory.
70166         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
70167         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
70168         activate for the replacement function.
70169         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
70171 2010-03-20  Bruno Haible  <bruno@clisp.org>
70173         Fix link errors on Solaris 8.
70174         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
70175         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
70177 2010-03-19  Jim Meyering  <meyering@redhat.com>
70179         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
70180         The _LIBC implementation of build_range_exp correctly honors the
70181         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
70182         However, the non-_LIBC implementation would ignore that syntax-bit
70183         flag and return REG_ERANGE unconditionally.
70184         This change makes it honor that flag.
70185         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
70186         Make two pointer parameters "const".
70187         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
70188         (parse_bracket_exp): Update caller.
70190         regex.m4: correct the reversed range endpoint ([b-a]) test
70191         * m4/regex.m4: When requiring that [b-a] evoke failure,
70192         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
70193         test pass once again for x86-based systems.
70195 2010-03-19  Bruno Haible  <bruno@clisp.org>
70197         scandir: Fix link error on Solaris 8.
70198         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
70199         macros.
70201 2010-03-19  Bruno Haible  <bruno@clisp.org>
70203         getusershell: Fix documentation.
70204         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
70205         module.
70206         * doc/glibc-functions/setusershell.texi: Likewise.
70208         getusershell: Provide declaration, missing on Solaris 9.
70209         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
70210         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
70211         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
70212         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
70213         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
70214         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
70215         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
70216         HAVE_GETUSERSHELL.
70217         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
70219 2010-03-19  Bruno Haible  <bruno@clisp.org>
70221         wctype: Provide iswblank function.
70222         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
70223         exists and is fine.
70224         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
70225         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
70226         * tests/test-wctype.c (main): Re-enable the iswblank tests.
70227         * doc/posix-functions/iswblank.texi: Update.
70229 2010-03-19  Bruno Haible  <bruno@clisp.org>
70231         Tests of module 'pty' in C++ mode.
70232         * modules/pty-tests: New file.
70233         * tests/test-pty-c++.cc: New file.
70234         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
70236 2010-03-19  Eric Blake  <eblake@redhat.com>
70238         logb: fix documentation
70239         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
70240         1.5 declaration bug.
70242         forkpty, openpty: prefer glibc's const-safe prototype
70243         * lib/forkpty.c (rpl_forkpty): New file.
70244         * lib/openpty.c (rpl_openpty): Likewise.
70245         * modules/forkpty (Files): Distribute it.
70246         * modules/openpty (Files): Likewise.
70247         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
70248         check...
70249         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
70250         replacement for non-const BSD signature.
70251         * modules/pty (Makefile.am): Substitute witnesses.
70252         * lib/pty.in.h (forkpty, openpty): Declare replacements.
70253         * tests/test-forkpty.c: Update signature check.
70254         * tests/test-openpty.c: Likewise.
70255         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
70256         * doc/glibc-functions/openpty.texi (openpty): Likewise.
70258         forkpty, openpty: split functions into new modules
70259         * modules/pty (Makefile.am): Substitute new witnesses.
70260         (Libraries): Move library detection...
70261         * modules/forkpty: ...into new module.
70262         * modules/openpty: Another new module.
70263         * modules/pty-tests: Rename and split...
70264         * modules/forkpty-tests: ...to this...
70265         * modules/openpty-tests: ...and this.
70266         * tests/test-pty.c: Rename and split...
70267         * tests/test-forkpty.c: ...to this...
70268         * tests/test-openpty.c: ...and this.
70269         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
70270         (gl_PTY): Split library searching...
70271         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
70272         (gl_FORKPTY, gl_OPENPTY): New macros.
70273         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
70274         * NEWS: Mention the split.
70275         * MODULES.html.sh (Misc): Document the modules.
70276         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
70277         * doc/glibc-functions/openpty.texi (openpty): Likewise.
70279         pty: improve replacement header
70280         * lib/pty.in.h: New file.
70281         * modules/pty (Files): Ship it.
70282         (Makefile.am): Always build replacement.
70283         * m4/pty.m4: Rename...
70284         * m4/pty_h.m4: ...to this.
70285         (gl_PTY): Modernize setting of witness macros; update check of
70286         forkpty to take proper advantage of cache.
70287         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
70289         getopt: avoid compiler warning
70290         * lib/getopt.c (attribute_hidden): Remove unused macro.
70292 2010-03-18  Bruno Haible  <bruno@clisp.org>
70294         Fix link errors on Solaris 8.
70295         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
70296         * modules/search-tests (test_search_c___LDADD): Likewise.
70297         * modules/signal-tests (test_signal_c___LDADD): Likewise.
70298         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
70299         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
70300         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
70301         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
70302         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
70303         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
70305 2010-03-18  Bruno Haible  <bruno@clisp.org>
70307         Fix bug introduced on 2010-03-14.
70308         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
70309         (gl_SPAWN_H): Require it.
70310         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
70311         Reported by Simon Josefsson.
70313 2010-03-18  Bruno Haible  <bruno@clisp.org>
70315         Fix typo introduced on 2009-12-31.
70316         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
70317         posix_spawn_file_actions_adddup2.
70319 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
70320         and Eric Blake  <eblake@redhat.com>
70322         test-vc-list-files-git: make more robust
70323         * tests/test-vc-list-files-git.sh: Unset problematic environment
70324         variables.  Chain commands together.
70326 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
70328         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
70329         `AC_CHECK_DECL' invocation.
70331 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
70333         * lib/inttostr.c (inttostr): Make sure the invocation of verify
70334         appears before executable statements. Suggested by Petr Sumbera
70335         <Petr.Sumbera@Sun.COM>.
70337 2010-03-14  Bruno Haible  <bruno@clisp.org>
70339         * tests/test-flock.c (test_exclusive): Comment out a test that causes
70340         portability problems. Instead use a simpler test.
70341         (main): Check that invalid arguments are rejected only on Linux.
70343 2010-03-14  Bruno Haible  <bruno@clisp.org>
70345         Fix bug introduced on 2009-12-31.
70346         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
70347         gl_PREREQ_SYS_H_WINSOCK2 always.
70348         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
70349         SYS_SOCKET_H variable.
70350         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
70351         Update comments.
70352         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
70353         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
70354         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
70355         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
70356         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
70358 2010-03-14  Bruno Haible  <bruno@clisp.org>
70360         Fix values returned by sinl, cosl.
70361         * lib/trigl.h: Add specification comments.
70362         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
70363         that combines the values from the precomputed table with the values of
70364         the Chebyshev polynomials.
70366 2010-03-14  Bruno Haible  <bruno@clisp.org>
70368         Fix compilation error when modules 'posix_spawn[p]' are not used.
70369         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
70370         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
70372 2010-03-14  Bruno Haible  <bruno@clisp.org>
70374         Fix compilation error on mingw when module 'time_r' is not used.
70375         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
70376         is 1.
70377         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
70378         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
70379         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
70380         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
70382 2010-03-14  Bruno Haible  <bruno@clisp.org>
70384         Fix compilation error with Sun C.
70385         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
70386         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
70387         instead of GCC specific ULONG_LONG_MAX.
70388         * lib/xstrtoll.c: Likewise.
70389         * lib/xstrtoull.c: Likewise.
70391 2010-03-13  Bruno Haible  <bruno@clisp.org>
70393         Allow the user to disable C++ code and tests.
70394         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
70395         (gl_PROG_ANSI_CXX): Require it.
70397 2010-03-13  Bruno Haible  <bruno@clisp.org>
70399         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
70400         cases.
70402 2010-03-13  Bruno Haible  <bruno@clisp.org>
70404         Test that gnulib does not break the standard C++ headers.
70405         * tests/test-locale-c++2.cc: New file.
70406         * modules/locale-tests (Files): Add it.
70407         (Makefile.am): Compile it for test-locale-c++.
70408         * tests/test-math-c++2.cc: New file.
70409         * modules/math-tests (Files): Add it.
70410         (Makefile.am): Compile it for test-math-c++.
70411         * tests/test-signal-c++2.cc: New file.
70412         * modules/signal-tests (Files): Add it.
70413         (Makefile.am): Compile it for test-signal-c++.
70414         * tests/test-stdio-c++2.cc: New file.
70415         * modules/stdio-tests (Files): Add it.
70416         (Makefile.am): Compile it for test-stdio-c++.
70417         * tests/test-stdlib-c++2.cc: New file.
70418         * modules/stdlib-tests (Files): Add it.
70419         (Makefile.am): Compile it for test-stdlib-c++.
70420         * tests/test-string-c++2.cc: New file.
70421         * modules/string-tests (Files): Add it.
70422         (Makefile.am): Compile it for test-string-c++.
70423         * tests/test-time-c++2.cc: New file.
70424         * modules/time-tests (Files): Add it.
70425         (Makefile.am): Compile it for test-time-c++.
70426         Reported by John W. Eaton <jwe@gnu.org>.
70428 2010-03-13  Bruno Haible  <bruno@clisp.org>
70430         * gnulib-tool (func_usage): Clarify which options are available for
70431         --create-testdir and --create-megatestdir.
70433 2010-03-13  Bruno Haible  <bruno@clisp.org>
70435         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
70436         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
70437         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
70438         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
70439         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
70440         when appropriate.
70441         Reported by Jim Meyering.
70443 2010-03-12  Simon Josefsson  <simon@josefsson.org>
70445         * gnulib-tool (func_import): Explain origin of code.
70447 2010-03-12  Bruno Haible  <bruno@clisp.org>
70449         Fix problem with automake's definition of CXXLINK.
70450         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
70451         Reported by Simon Josefsson and Ludovic Courtès.
70453 2010-03-12  Bruno Haible  <bruno@clisp.org>
70455         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
70456         stable releases.
70458 2010-03-11  Bruno Haible  <bruno@clisp.org>
70460         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
70461         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
70462         whether the system provides one variant or multiple variants of the
70463         function.
70464         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
70465         C++ compilers.
70466         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
70467         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
70468         Reported by Jim Meyering.
70470 2010-03-09  Simon Josefsson  <simon@josefsson.org>
70472         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
70474 2010-03-08  Bruno Haible  <bruno@clisp.org>
70476         gnulib-tool: Add support for --libtool in --create-testdir.
70477         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
70478         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
70480 2010-03-08  Eric Blake  <eblake@redhat.com>
70482         gnulib-tool.texi: mention possibility of git submodule
70483         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
70484         submodules.
70485         * doc/.gitignore: Ignore another generated file.
70487 2010-03-08  Karl Berry  <karl@gnu.org>
70489         * doc/gnulib-tool.texi (VCS Issues): Mention third option
70490         of committing gnulib files while skipping others.
70492 2010-03-07  Bruno Haible  <bruno@clisp.org>
70494         Tests of module 'wctype' in C++ mode.
70495         * tests/test-wctype-c++.cc: New file.
70496         * modules/wctype-tests (Files): Add it and tests/signature.h.
70497         (Depends-on): Add ansi-c++-opt.
70498         (Makefile.am): Arrange to compile and run test-wctype-c++.
70500         Tests of module 'wchar' in C++ mode.
70501         * tests/test-wchar-c++.cc: New file.
70502         * modules/wchar-tests (Files): Add it and tests/signature.h.
70503         (Depends-on): Add ansi-c++-opt.
70504         (Makefile.am): Arrange to compile and run test-wchar-c++.
70505         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
70506         gl_MODULE_INDICATOR.
70508         Tests of module 'unistd' in C++ mode.
70509         * tests/test-unistd-c++.cc: New file.
70510         * modules/unistd-tests (Files): Add it and tests/signature.h.
70511         (Depends-on): Add ansi-c++-opt.
70512         (Makefile.am): Arrange to compile and run test-unistd-c++.
70513         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
70514         gl_MODULE_INDICATOR.
70516         Tests of module 'time' in C++ mode.
70517         * tests/test-time-c++.cc: New file.
70518         * modules/time-tests (Files): Add it and tests/signature.h.
70519         (Depends-on): Add ansi-c++-opt.
70520         (Makefile.am): Arrange to compile and run test-time-c++.
70521         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
70523         Tests of module 'sys_time' in C++ mode.
70524         * tests/test-sys_time-c++.cc: New file.
70525         * modules/sys_time-tests (Files): Add it and tests/signature.h.
70526         (Depends-on): Add ansi-c++-opt.
70527         (Makefile.am): Arrange to compile and run test-sys_time-c++.
70528         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
70529         gl_MODULE_INDICATOR.
70531         Tests of module 'sys_stat' in C++ mode.
70532         * tests/test-sys_stat-c++.cc: New file.
70533         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
70534         (Depends-on): Add ansi-c++-opt.
70535         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
70536         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
70537         gl_MODULE_INDICATOR.
70539         Tests of module 'sys_socket' in C++ mode.
70540         * tests/test-sys_socket-c++.cc: New file.
70541         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
70542         (Depends-on): Add ansi-c++-opt.
70543         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
70544         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
70545         gl_MODULE_INDICATOR.
70547         Tests of module 'sys_select' in C++ mode.
70548         * tests/test-sys_select-c++.cc: New file.
70549         * modules/sys_select-tests (Files): Add it and tests/signature.h.
70550         (Depends-on): Add ansi-c++-opt.
70551         (Makefile.am): Arrange to compile and run test-sys_select-c++.
70552         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
70553         gl_MODULE_INDICATOR.
70555         Tests of module 'sys_ioctl' in C++ mode.
70556         * tests/test-sys_ioctl-c++.cc: New file.
70557         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
70558         (Depends-on): Add ansi-c++-opt.
70559         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
70560         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
70561         gl_MODULE_INDICATOR.
70563         Tests of module 'string' in C++ mode.
70564         * tests/test-string-c++.cc: New file.
70565         * modules/string-tests (Files): Add it and tests/signature.h.
70566         (Depends-on): Add ansi-c++-opt.
70567         (Makefile.am): Arrange to compile and run test-string-c++.
70568         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
70569         gl_MODULE_INDICATOR.
70571         Tests of module 'stdlib' in C++ mode.
70572         * tests/test-stdlib-c++.cc: New file.
70573         * modules/stdlib-tests (Files): Add it and tests/signature.h.
70574         (Depends-on): Add ansi-c++-opt.
70575         (Makefile.am): Arrange to compile and run test-stdlib-c++.
70576         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
70577         gl_MODULE_INDICATOR.
70579         Tests of module 'stdio' in C++ mode.
70580         * tests/test-stdio-c++.cc: New file.
70581         * modules/stdio-tests (Files): Add it and tests/signature.h.
70582         (Depends-on): Add ansi-c++-opt.
70583         (Makefile.am): Arrange to compile and run test-stdio-c++.
70584         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
70585         gl_MODULE_INDICATOR.
70587         Tests of module 'spawn' in C++ mode.
70588         * tests/test-spawn-c++.cc: New file.
70589         * modules/spawn-tests (Files): Add it and tests/signature.h.
70590         (Depends-on): Add ansi-c++-opt.
70591         (Makefile.am): Arrange to compile and run test-spawn-c++.
70592         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
70593         gl_MODULE_INDICATOR.
70595         Tests of module 'signal' in C++ mode.
70596         * tests/test-signal-c++.cc: New file.
70597         * modules/signal-tests (Files): Add it and tests/signature.h.
70598         (Depends-on): Add ansi-c++-opt.
70599         (Makefile.am): Arrange to compile and run test-signal-c++.
70600         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
70601         gl_MODULE_INDICATOR.
70603         Tests of module 'search' in C++ mode.
70604         * tests/test-search-c++.cc: New file.
70605         * modules/search-tests (Files): Add it and tests/signature.h.
70606         (Depends-on): Add ansi-c++-opt.
70607         (Makefile.am): Arrange to compile and run test-search-c++.
70608         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
70609         gl_MODULE_INDICATOR.
70611         Tests of module 'math' in C++ mode.
70612         * tests/test-math-c++.cc: New file.
70613         * modules/math-tests (Files): Add it and tests/signature.h.
70614         (Depends-on): Add ansi-c++-opt.
70615         (Makefile.am): Arrange to compile and run test-math-c++.
70616         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
70618         Tests of module 'locale' in C++ mode.
70619         * tests/test-locale-c++.cc: New file.
70620         * modules/locale-tests (Files): Add it and tests/signature.h.
70621         (Depends-on): Add ansi-c++-opt.
70622         (Makefile.am): Arrange to compile and run test-locale-c++.
70623         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
70624         gl_MODULE_INDICATOR.
70626         Tests of module 'langinfo' in C++ mode.
70627         * tests/test-langinfo-c++.cc: New file.
70628         * modules/langinfo-tests (Files): Add it and tests/signature.h.
70629         (Depends-on): Add ansi-c++-opt.
70630         (Makefile.am): Arrange to compile and run test-langinfo-c++.
70631         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
70632         gl_MODULE_INDICATOR.
70634         Tests of module 'iconv-h' in C++ mode.
70635         * tests/test-iconv-h-c++.cc: New file.
70636         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
70637         (Depends-on): Add ansi-c++-opt.
70638         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
70640         Tests of module 'glob' in C++ mode.
70641         * tests/test-glob-c++.cc: New file.
70642         * modules/glob-tests (Files): Add it.
70643         (Depends-on): Add ansi-c++-opt.
70644         (Makefile.am): Arrange to compile and run test-glob-c++.
70646         Tests of module 'fcntl-h' in C++ mode.
70647         * tests/test-fcntl-h-c++.cc: New file.
70648         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
70649         (Depends-on): Add ansi-c++-opt.
70650         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
70651         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
70652         gl_MODULE_INDICATOR.
70654         Tests of module 'dirent' in C++ mode.
70655         * tests/test-dirent-c++.cc: New file.
70656         * modules/dirent-tests (Files): Add it and tests/signature.h.
70657         (Depends-on): Add ansi-c++-opt.
70658         (Makefile.am): Arrange to compile and run test-dirent-c++.
70659         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
70660         gl_MODULE_INDICATOR.
70662         New module 'ansi-c++-opt'.
70663         * modules/ansi-c++-opt: New file.
70664         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
70666         Document C++ namespace mode.
70667         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
70669         wctype: Avoid #define replacements in C++ mode.
70670         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
70671         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
70672         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
70673         In C++, define a namespaced alias symbol.
70674         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
70675         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
70676         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
70677         rule.
70679         wchar: Avoid #define replacements in C++ mode.
70680         * lib/wchar.in.h: Include c++defs.h.
70681         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
70682         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
70683         symbol.
70684         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
70685         * modules/wchar (Depends-on): Add c++defs.
70686         (Makefile.am): Update wchar.h rule.
70688         unistd: Avoid #define replacements in C++ mode.
70689         * lib/unistd.in.h: Include c++defs.h.
70690         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
70691         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
70692         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
70693         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
70694         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
70695         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
70696         symbol.
70697         (environ): Update.
70698         * modules/unistd (Depends-on): Add c++defs.
70699         (Makefile.am): Update unistd.h rule.
70701         time: Avoid #define replacements in C++ mode.
70702         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
70703         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
70704         define a namespaced alias symbol.
70705         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
70706         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
70707         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
70708         * modules/time (Depends-on): Add c++defs, warn-on-use.
70709         (Makefile.am): Update time.h rule.
70710         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
70711         * modules/nanosleep (configure.ac): Likewise.
70712         * modules/strptime (configure.ac): Likewise.
70713         * modules/timegm (configure.ac): Likewise.
70715         sys_time: Avoid #define replacements in C++ mode.
70716         * lib/sys_time.in.h: Include c++defs.h.
70717         (gettimeofday): In C++, define a namespaced alias symbol.
70718         * modules/sys_time (Depends-on): Add c++defs.
70719         (Makefile.am): Update sys/time.h rule.
70721         sys_stat: Avoid #define replacements in C++ mode.
70722         * lib/sys_stat.in.h: Include c++defs.h.
70723         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
70724         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
70725         namespaced alias symbol.
70726         In C++, define a namespaced alias symbol.
70727         * modules/sys_stat (Depends-on): Add c++defs.
70728         (Makefile.am): Update sys/stat.h rule.
70730         sys_socket: Avoid #define replacements in C++ mode.
70731         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
70732         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
70733         definitions also when the system has a <sys/socket.h>.
70734         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
70735         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
70736         In C++, define a namespaced alias symbol.
70737         * modules/sys_socket (Depends-on): Add c++defs.
70738         (Makefile.am): Update sys/socket.h rule.
70740         sys_select: Avoid #define replacements in C++ mode.
70741         * lib/sys_select.in.h: Include c++defs.h. Enable the function
70742         definitions also when the system has a <sys/select.h>.
70743         (select): In C++, define a namespaced alias symbol.
70744         * modules/sys_select (Depends-on): Add c++defs.
70745         (Makefile.am): Update sys/select.h rule.
70747         sys_ioctl: Avoid #define replacements in C++ mode.
70748         * lib/sys_ioctl.in.h: Include c++defs.h.
70749         (ioctl): In C++, define a namespaced alias symbol.
70750         * modules/sys_ioctl (Depends-on): Add c++defs.
70751         (Makefile.am): Update sys/ioctl.h rule.
70753         string: Avoid #define replacements in C++ mode.
70754         * lib/string.in.h: Include c++defs.h.
70755         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
70756         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
70757         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
70758         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
70759         strsignal, strverscmp): In C++, define a namespaced alias symbol.
70760         * modules/string (Depends-on): Add c++defs.
70761         (Makefile.am): Update string.h rule.
70763         stdlib: Avoid #define replacements in C++ mode.
70764         * lib/stdlib.in.h: Include c++defs.h.
70765         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
70766         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
70767         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
70768         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
70769         symbol.
70770         * modules/stdlib (Depends-on): Add c++defs.
70771         (Makefile.am): Update stdlib.h rule.
70773         stdio: Avoid #define replacements in C++ mode.
70774         * lib/stdio.in.h: Include c++defs.h.
70775         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
70776         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
70777         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
70778         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
70779         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
70780         namespaced alias symbol.
70781         * modules/stdio (Depends-on): Add c++defs.
70782         (Makefile.am): Update stdio.h rule.
70784         spawn: Avoid #define replacements in C++ mode.
70785         * lib/spawn.in.h: Include c++defs.h.
70786         (posix_spawn, posix_spawnp, posix_spawnattr_init,
70787         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
70788         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
70789         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
70790         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
70791         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
70792         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
70793         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
70794         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
70795         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
70796         In C++, define a namespaced alias symbol.
70797         * modules/spawn (Depends-on): Add c++defs.
70798         (Makefile.am): Update spawn.h rule.
70800         signal: Avoid #define replacements in C++ mode.
70801         * lib/signal.in.h: Include c++defs.h.
70802         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
70803         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
70804         namespaced alias symbol.
70805         * modules/signal (Depends-on): Add c++defs.
70806         (Makefile.am): Update signal.h rule.
70808         search: Avoid #define replacements in C++ mode.
70809         * lib/search.in.h: Include c++defs.h.
70810         (_gl_search_compar_fn, _gl_search_action_fn): New types.
70811         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
70812         symbol.
70813         * modules/search (Depends-on): Add c++defs.
70814         (Makefile.am): Update search.h rule.
70816         math: Avoid #define replacements in C++ mode.
70817         * lib/math.in.h: Include c++defs.h.
70818         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
70819         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
70820         trunc, truncl): In C++, define a namespaced alias symbol.
70821         * modules/math (Depends-on): Add c++defs.
70822         (Makefile.am): Update math.h rule.
70824         locale: Avoid #define replacements in C++ mode.
70825         * lib/locale.in.h: Include c++defs.h.
70826         (duplocale): In C++, define a namespaced alias symbol.
70827         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
70828         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
70829         * modules/locale (Depends-on): Add c++defs.
70830         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
70832         langinfo: Avoid #define replacements in C++ mode.
70833         * lib/langinfo.in.h: Include c++defs.h.
70834         (nl_langinfo): In C++, define a namespaced alias symbol.
70835         * modules/langinfo (Depends-on): Add c++defs.
70836         (Makefile.am): Update langinfo.h rule.
70838         iconv-h: Avoid #define replacements in C++ mode.
70839         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
70840         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
70841         symbol.
70842         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
70843         whenever iconv is present.
70844         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
70845         (Makefile.am): Update iconv.h rule.
70847         glob: Avoid #define replacements in C++ mode.
70848         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
70849         (_gl_glob_errfunc_fn): New type.
70850         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
70851         symbol.
70852         * modules/glob (Depends-on): Add c++defs, warn-on-use.
70853         (Makefile.am): Update glob.h rule.
70855         fcntl-h: Avoid #define replacements in C++ mode.
70856         * lib/fcntl.in.h: Include c++defs.h.
70857         (fcntl, open, openat): In C++, define a namespaced alias symbol.
70858         * modules/fcntl-h (Depends-on): Add c++defs.
70859         (Makefile.am): Update fcntl.h rule.
70861         dirent: Avoid #define replacements in C++ mode.
70862         * lib/dirent.in.h: Include c++defs.h.
70863         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
70864         namespaced alias symbol.
70865         (dirfd): Update declaration.
70866         * modules/dirent (Depends-on): Add c++defs.
70867         (Makefile.am): Update dirent.h rule.
70869         ctype: Make it usable in C++ code.
70870         * lib/ctype.in.h: Include c++defs.h.
70871         (isblank): Declare as extern "C".
70872         * modules/ctype (Depends-on): Add c++defs.
70873         (Makefile.am): Update ctype.h rule.
70875         New module 'c++defs'.
70876         * modules/c++defs: New file.
70877         * build-aux/c++defs.h: New file.
70878         Reported by John W. Eaton <jwe@gnu.org>.
70880 2010-03-07  Bruno Haible  <bruno@clisp.org>
70882         logb: Provide missing declaration for Cygwin.
70883         * lib/math.in.h (logb): New declaration.
70884         * m4/logb.m4: New file.
70885         * modules/logb (Files): Add m4/logb.m4.
70886         (Depends-on): Add math.
70887         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
70888         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
70889         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
70890         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
70891         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
70893 2010-03-07  Bruno Haible  <bruno@clisp.org>
70895         Fix test-cond link error.
70896         * tests/test-cond.c: Include <stdio.h>.
70898 2010-03-07  Bruno Haible  <bruno@clisp.org>
70900         Fix test-dirent-safer link error.
70901         * modules/dirent-safer-tests (Makefile.am): Define
70902         test_dirent_safer_LDADD.
70904 2010-03-07  Bruno Haible  <bruno@clisp.org>
70906         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
70907         among default module list.
70909 2010-03-07  Bruno Haible  <bruno@clisp.org>
70911         Fix link error on platforms with GNU libiconv.
70912         * modules/unistr/u8-strcoll-tests (Makefile): Define
70913         test_u8_strcoll_LDADD.
70914         * modules/unistr/u16-strcoll-tests (Makefile): Define
70915         test_u16_strcoll_LDADD.
70916         * modules/unistr/u32-strcoll-tests (Makefile): Define
70917         test_u32_strcoll_LDADD.
70919 2010-03-07  Bruno Haible  <bruno@clisp.org>
70921         Use POSIX declarations for socket functions.
70922         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
70923         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
70924         rpl_sendto): Change declaration to match POSIX.
70925         * lib/connect.c (rpl_connect): Likewise.
70926         * lib/accept.c (rpl_accept): Likewise.
70927         * lib/bind.c (rpl_bind): Likewise.
70928         * lib/getpeername.c (rpl_getpeername): Likewise.
70929         * lib/getsockname.c (rpl_getsockname): Likewise.
70930         * lib/recv.c (rpl_recv): Likewise.
70931         * lib/send.c (rpl_send): Likewise.
70932         * lib/recvfrom.c (rpl_recvfrom): Likewise.
70933         * lib/sendto.c (rpl_sendto): Likewise.
70935 2010-03-06  Bruno Haible  <bruno@clisp.org>
70937         Clarify access, euidaccess, faccessat.
70938         * doc/posix-functions/faccessat.texi: Mention security problem under
70939         "Other problems", not "Portability problems".
70940         * doc/posix-functions/access.texi: Likewise. Mention a related security
70941         problem.
70942         * doc/glibc-functions/euidaccess.texi: Mention security problems.
70943         * lib/euidaccess.c: Add comments about platforms.
70944         * lib/unistd.in.h (access, euidaccess): Add warnings.
70946 2010-03-07  Bruno Haible  <bruno@clisp.org>
70948         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
70949         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
70950         (POSIX_SPAWN_SETSCHEDULER): Likewise.
70951         (POSIX_SPAWN_USEVFORK): Define in a way that works when
70952         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
70953         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
70954         declare when POSIX_SPAWN_SETSCHEDULER is zero.
70955         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
70956         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
70957         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
70958         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
70959         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
70960         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
70961         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
70962         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
70963         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
70964         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
70965         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
70966         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
70967         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
70968         Likewise.
70969         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
70970         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
70971         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
70972         Likewise.
70973         * tests/test-spawn.c (main): Make it work when
70974         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
70976 2010-03-07  Bruno Haible  <bruno@clisp.org>
70978         Fix incorrect Makefile.am generation in German locale.
70979         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70980         Execute sed command with character range in C locale.
70982 2010-03-06  Bruno Haible  <bruno@clisp.org>
70984         Tests for module 'iconv-h'.
70985         * modules/iconv-h-tests: New file.
70986         * tests/test-iconv-h.c: New file.
70988         New module 'iconv-h'.
70989         * modules/iconv-h: New file.
70990         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
70991         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
70992         (configure.ac): Remove gl_ICONV_H.
70993         (Makefile.am): Remove rule for iconv.h.
70995 2010-03-06  Bruno Haible  <bruno@clisp.org>
70997         More consistent naming of *.m4 files.
70998         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
70999         * modules/wctype (Files): Update.
71001         More consistent naming of *.m4 files.
71002         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
71003         * modules/wchar (Files): Update.
71005 2010-03-06  Jim Meyering  <meyering@redhat.com>
71007         euidaccess: relax license to LGPLv2+
71008         * modules/euidaccess (License): Relax to LGPLv2+.
71010 2010-03-06  Bruno Haible  <bruno@clisp.org>
71012         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
71013         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
71014         (Makefile.am): Augment lib_SOURCES instead.
71016 2010-03-04  Jim Meyering  <meyering@redhat.com>
71018         utime: remove obsolete module
71019         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
71020         unnecessary for years, and has been marked as obsolete for 10 months.
71021         * modules/utime: Remove file.
71022         * lib/utime.c: Remove file.
71023         * m4/utime.m4: Remove file.
71024         * m4/utimes-null.m4: Remove file.
71025         * doc/posix-functions/utime.texi (utime): Remove reference to
71026         the module.  Move the sole "fixed by gnulib" item into the
71027         "problems not fixed by Gnulib" list.
71028         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
71030 2010-03-05  Simon Josefsson  <simon@josefsson.org>
71032         * modules/exit (License): Relax license to LGPLv2+.
71033         (Status): Mark as obsolete.
71034         * NEWS: Mention deprecated 'exit' module.
71035         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
71036         of now obsolete 'exit'.
71038 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71040         fts-lgpl: remove unused module
71041         * modules/fts-lgpl: Remove.
71042         * MODULES.html.sh (func_all_modules): Adjust.
71043         * check-module (find_included_lib_files): Adjust.
71044         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
71046 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
71048         copy-acl: enhance Solaris ACL error handling
71049         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
71050         * lib/set-mode-acl.c (qset_acl): Likewise.
71052 2010-03-02  Bruno Haible  <bruno@clisp.org>
71054         spawn: Don't override the system defined values on FreeBSD 8.
71055         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
71056         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
71057         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
71058         if HAVE_POSIX_SPAWN is 1.
71059         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
71061 2010-03-01  Bruno Haible  <bruno@clisp.org>
71063         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
71064         regarding Automake.
71066 2010-02-25  Bruno Haible  <bruno@clisp.org>
71068         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
71069         * gnulib-tool: Define 'echo' as a function only before the ksh alias
71070         setting, not afterwards.
71071         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
71073 2010-02-24  Eric Blake  <eblake@redhat.com>
71075         bootstrap, git-version-gen: use timestamp
71076         * build-aux/git-version-gen (scriptversion): Force UTC.
71077         * build-aux/bootstrap (scriptversion): New variable.
71079         bootstrap: allow older git
71080         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
71081         older than 1.6.4.  Requested by the libvirt project.
71083 2010-02-23  Eric Blake  <eblake@redhat.com>
71085         warn-on-use: work with old autoconf
71086         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
71087         AS_VAR semantics of autoconf 2.60.
71088         Reported by Bruno Haible.
71090         bootstrap: improve some comments
71091         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
71092         clarification comments.
71094         gettimeofday: provide correct function
71095         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
71096         when replacement is declared, otherwise provide gettimeofday.
71097         Reported by Michael Goffioul.
71099 2010-02-23  Jim Meyering  <meyering@redhat.com>
71101         lib-ignore: relax license to "unlimited", not LGPLv2+
71102         * modules/lib-ignore (License): Relax to "unlimited".
71104 2010-02-23  Jim Meyering  <meyering@redhat.com>
71106         lib-ignore: relax license to LGPLv2+
71107         * modules/lib-ignore (License): Relax to LGPLv2+.
71109 2010-02-22  Eric Blake  <eblake@redhat.com>
71111         lseek: avoid bash 3.2 broken pipe bug
71112         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
71113         warning from bash 3.2.
71114         Reported by Ben Pfaff, with analysis from Bruno Haible.
71116         bootstrap: support non-FSF copyright holder
71117         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
71118         bootstrap.conf override of COPYRIGHT_HOLDER.
71119         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
71121         bootstrap: interoperate with gettext 0.14.1
71122         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
71124         bootstrap: allow for alternate submodule location
71125         * build-aux/bootstrap (gnulib_path): New variable; use instead of
71126         hardcoding submodule location.
71127         (gnulib_mk): Allow direct use of Makefile.am.
71129         bootstrap: use GNULIB_SRCDIR to reduce disk usage
71130         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
71131         rather than reconfiguring where the submodule points.
71133         gettimeofday: restore support for platforms that lack function
71134         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
71135         replacement if function is missing.
71136         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
71137         * modules/sys_time (Makefile.am): Substitute it.
71138         * lib/sys_time.in.h (gettimeofday): Check it.
71139         Reported by Michael Goffioul.
71141 2010-02-21  Bruno Haible  <bruno@clisp.org>
71143         * lib/stdio.in.h (obstack_printf): Fix typo.
71145 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
71147         vc-list-files: use bzr ls's -R option
71148         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
71149         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
71151 2010-02-21  Jim Meyering  <meyering@redhat.com>
71153         init.sh: fix EXEEXT shims to work also for names like test-prog
71154         * tests/init.sh: Re-exec a better shell, when needed.
71155         If the current shell lacks support for posix $(...), an init.sh-using
71156         test will now try to find a shell that supports that.  If EXEEXT is
71157         nonempty, we also require support for hyphen-in-alias-name and shell
71158         substitutions like ${var#glob}.  Failure to find such a shell results
71159         in a skipped test.
71161 2010-02-21  Bruno Haible  <bruno@clisp.org>
71163         Really work around "broken pipe" error message from bash 3.2.
71164         * gnulib-tool (func_reset_sigpipe): Remove function.
71165         (echo): In bash 3.2, define to a function that uses printf.
71166         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
71168 2010-02-20  Bruno Haible  <bruno@clisp.org>
71170         Restore support for automake 1.9.6 with autoconf 2.61.
71171         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
71172         Reported by James Youngman <jay@gnu.org>.
71174 2010-02-20  Bruno Haible  <bruno@clisp.org>
71176         Improve *printf warning condition.
71177         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
71178         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
71179         and the function is overridden due to SIGPIPE emulation.
71181 2010-02-20  Bruno Haible  <bruno@clisp.org>
71183         * lib/stdio.in.h: Tweak comments.
71185 2010-02-19  Bruno Haible  <bruno@clisp.org>
71187         Make it easier to find modules. New gnulib-tool option '--find'.
71188         * gnulib-tool: New option --find.
71189         (func_usage): Document it.
71190         (func_sanitize_modulelist): New function, extracted from
71191         func_all_modules.
71192         (func_all_modules): Invoke it.
71193         * doc/gnulib-tool.texi (Which modules?): New node.
71195 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
71197         * lib/sys_select.in.h: Provide select replacement even if
71198         sys/select.h exists on a system, for Interix.
71200 2010-02-18  Jim Meyering  <meyering@redhat.com>
71202         init.sh: don't use $(...) just yet
71203         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
71204         to accommodate e.g., Solaris' /bin/sh.
71206 2010-02-17  Bruno Haible  <bruno@clisp.org>
71208         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
71209         Reported by Ludovic Courtès <ludo@gnu.org>.
71211 2010-02-16  Simon Josefsson  <simon@josefsson.org>
71213         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
71214         linking with -lintl.
71216 2010-02-17  Simon Josefsson  <simon@josefsson.org>
71218         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
71219         if not provided by the system's netdb.h.  Reported by
71220         ludo@gnu.org (Ludovic Courtès).
71222 2010-02-15  Jim Meyering  <meyering@redhat.com>
71224         init.sh: improve portability and efficiency
71225         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
71226         "dummy" in a for loop.
71227         Use '!', not '^' to select the complement of a character set used
71228         in a "case" statement.
71229         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
71230         Suggestions from Eric Blake.
71232         init.sh: automatically accommodate programs with the .exe suffix
71233         Automatically arrange for an invocation of "prog" to execute the
71234         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
71235         may use the simpler "prog", yet still work when built on a system
71236         that requires specifying the added suffix.
71237         Do this by constructing a function named "prog" that invokes
71238         "prog.exe" for each .exe file in selected directories.
71239         * tests/init.sh (find_exe_basenames_): New function.
71240         (create_exe_shim_functions_): New function.
71241         (path_prepend_): Use it.
71243         maint.mk: mark syntax-check sc_*.m rules as .PHONY
71244         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
71245         "make -t syntax-check" doesn't create a ton of sc_*.m files.
71247 2010-02-14  Jim Meyering  <meyering@redhat.com>
71249         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
71250         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
71251         (sc_prohibit_hash_pjw_without_use): New rule.
71253         maint.mk: allow the default upload destination dir to be overridden
71254         * top/maint.mk (upload_dest_dir_): Define with a default that
71255         preserves the status quo.
71256         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
71257         Reported by Peter Simons.
71259         maint.mk: prohibit inclusion of "hash.h" without_use
71260         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
71262 2010-02-10  Jim Meyering  <meyering@redhat.com>
71264         maint.mk: prohibit inclusion of "ignore-value.h" without_use
71265         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
71267 2010-02-09  Eric Blake  <ebb9@byu.net>
71268         and Bruno Haible  <bruno@clisp.org>
71270         obstack-printf-posix: ensure declaration
71271         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
71272         extracted from gl_FUNC_OBSTACK_PRINTF.
71273         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
71274         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
71275         Likewise.
71276         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
71277         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
71278         0.
71280 2010-02-08  Bruno Haible  <bruno@clisp.org>
71282         gnulib-tool: Fix typo in 2010-02-07 commit.
71283         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
71284         Reported by Eric Blake.
71286 2010-02-07  Bruno Haible  <bruno@clisp.org>
71288         gnulib-tool: Fix up caching patches.
71289         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
71290         option --no-cache. Use associative arrays when supported by the shell.
71291         (sed_comments): New variable.
71292         (modcache): Renamed from do_cache.
71293         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
71294         abbreviate unnecessarily.
71295         (have_associative): New variable.
71296         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
71297         way also for ksh and zsh.
71298         (func_init_sed_convert_to_cache_statements): New function, extracted
71299         from func_cache_lookup_module. Add support for associative arrays.
71300         Don't set the c_MODULE_cached variable here. Ignore all lines before
71301         the first field header. Remove only the final newline, not all trailing
71302         newlines. Support empty fields correctly. Limit the use of 'eval' to
71303         assignments.
71304         (func_get_description, func_get_status, func_get_notice,
71305         func_get_applicability, func_get_filelist, func_get_dependencies,
71306         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
71307         func_get_automake_snippet, func_get_include_directive,
71308         func_get_link_directive, func_get_license, func_get_maintainer):
71309         Update documentation. List the unoptimized code first. Add support for
71310         associative arrays. Limit the use of 'eval' to assignments.
71311         (func_get_applicability): Undo stylistic pessimisations.
71312         (func_get_automake_snippet, func_get_include_directive): Reduce code
71313         duplication.
71314         (func_modules_transitive_closure, func_modules_add_dummy,
71315         func_modules_notice, func_modules_to_filelist, func_add_file,
71316         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
71317         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
71318         func_create_testdir, func_create_megatestdir): Update documentation.
71320 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71322         * gnulib-tool (func_cache_lookup_module): Store the module name
71323         belonging to the cache variable; error out if two different
71324         module names map to the same cache variable name.
71326 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71328         gnulib-tool: Make caching optional.
71329         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
71330         Update matching short versions of --no-changelog.
71331         (func_usage): Update.
71332         (sed_extract_cache_prog): Renamed from ...
71333         (sed_extract_prog): ... this; revert to old extraction script.
71334         (func_get_description, func_get_status)
71335         (func_get_notice, func_get_applicability, func_get_filelist)
71336         (func_get_dependencies, func_get_autoconf_early_snippet)
71337         (func_get_autoconf_snippet, func_get_automake_snippet)
71338         (func_get_include_directive, func_get_link_directive)
71339         (func_get_license, func_get_maintainer): If $do_cache is false,
71340         use old, non-caching extraction scripts.
71341         Suggestion by Bruno Haible.
71343 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71345         gnulib-tool: cache module metainformation.
71346         * gnulib-tool (sed_extract_prog): Match newline before each
71347         header, and rewrite header to a shell variable suffix.
71348         (func_cache_var, func_cache_lookup_module): New functions,
71349         to turn a module name into a cache variable prefix, and to
71350         look up and cache module metainformation.
71351         (func_get_description, func_get_status)
71352         (func_get_notice, func_get_applicability, func_get_filelist)
71353         (func_get_dependencies, func_get_autoconf_early_snippet)
71354         (func_get_autoconf_snippet, func_get_automake_snippet)
71355         (func_get_include_directive, func_get_link_directive)
71356         (func_get_license, func_get_maintainer): Use
71357         func_cache_lookup_module.
71359 2010-02-07  Bruno Haible  <bruno@clisp.org>
71361         fnctl: Fix missing dependency.
71362         * modules/fcntl (Depends-on): Add getdtablesize.
71363         Reported by John W. Eaton <jwe@gnu.org>.
71365 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
71367         Argp: fix recognition of short alias options.
71369         * lib/argp-parse.c (convert_options): Fix improper use of
71370         `|' between character values.
71371         * tests/test-argp.c (group1_option): New alias option
71372         --read (-r).
71373         (group1_parser): Special handling for 'r'.
71374         (test15): New test case.
71375         (test_fun): Add test15.
71376         * tests/test-argp-2.sh: Update expected --help and --usage
71377         outputs.
71379 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
71381         * tests/test-argp.c: Fix indentation.
71383 2010-02-04  Eric Blake  <ebb9@byu.net>
71385         gettimeofday: expose type of second argument
71386         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
71387         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
71388         * tests/test-gettimeofday.c: Use it to silence warning.
71389         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
71390         the issue.
71392 2010-02-03  Jim Meyering  <meyering@redhat.com>
71394         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
71395         * lib/regcomp.c (TYPE_SIGNED): Define.
71396         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
71398         regcomp.c: avoid a new -Wshadow warning
71399         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
71401 2010-02-01  Jim Meyering  <meyering@redhat.com>
71403         removing useless parentheses in cpp #define directives
71404         For motivation, see commit c0221df4, "define STREQ(a,b)
71405         consistently, removing useless parentheses"
71406         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
71407         * lib/mountlist.c (MNT_IGNORE): Likewise.
71408         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
71410 2010-02-01  Eric Blake  <ebb9@byu.net>
71412         sys_time: use link-warning
71413         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
71414         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
71415         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
71416         * modules/sys_time (Depends-on): Add warn-on-use.
71417         (Makefile.am): Always build replacement.
71418         (configure.ac): Update substitutions.
71419         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
71420         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
71421         bother with SYS_TIME_H.
71422         * modules/gettimeofday (configure.ac): Declare indicator.
71423         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
71424         in use.
71426         closein-tests: silence compiler warning
71427         * tests/test-closein.c (main): Ignore fread result.
71428         * modules/closein-tests (Depends-on): Add ignore-value.
71430         tests: silence warning about system return
71431         * tests/test-areadlink-with-size.c (main): Ignore system result.
71432         * tests/test-areadlink.c (main): Likewise.
71433         * tests/test-areadlinkat-with-size.c (main): Likewise.
71434         * tests/test-areadlinkat.c (main): Likewise.
71435         * tests/test-canonicalize-lgpl.c (main): Likewise.
71436         * tests/test-canonicalize.c (main): Likewise.
71437         * tests/test-chown.c (main): Likewise.
71438         * tests/test-fchownat.c (main): Likewise.
71439         * tests/test-fdutimensat.c (main): Likewise.
71440         * tests/test-fstatat.c (main): Likewise.
71441         * tests/test-futimens.c (main): Likewise.
71442         * tests/test-lchown.c (main): Likewise.
71443         * tests/test-link.c (main): Likewise.
71444         * tests/test-linkat.c (main): Likewise.
71445         * tests/test-lstat.c (main): Likewise.
71446         * tests/test-mkdir.c (main): Likewise.
71447         * tests/test-mkdirat.c (main): Likewise.
71448         * tests/test-mkfifo.c (main): Likewise.
71449         * tests/test-mkfifoat.c (main): Likewise.
71450         * tests/test-mknod.c (main): Likewise.
71451         * tests/test-readlink.c (main): Likewise.
71452         * tests/test-remove.c (main): Likewise.
71453         * tests/test-rename.c (main): Likewise.
71454         * tests/test-renameat.c (main): Likewise.
71455         * tests/test-rmdir.c (main): Likewise.
71456         * tests/test-symlink.c (main): Likewise.
71457         * tests/test-symlinkat.c (main): Likewise.
71458         * tests/test-unlink.c (main): Likewise.
71459         * tests/test-unlinkat.c (main): Likewise.
71460         * tests/test-utimens.c (main): Likewise.
71461         * tests/test-utimensat.c (main): Likewise.
71462         * modules/areadlink-tests (Depends-on): Add ignore-value.
71463         * modules/areadlink-with-size-tests (Depends-on): Likewise.
71464         * modules/areadlinkat-tests (Depends-on): Likewise.
71465         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
71466         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
71467         * modules/canonicalize-tests (Depends-on): Likewise.
71468         * modules/chown-tests (Depends-on): Likewise.
71469         * modules/fdutimensat-tests (Depends-on): Likewise.
71470         * modules/futimens-tests (Depends-on): Likewise.
71471         * modules/lchown-tests (Depends-on): Likewise.
71472         * modules/link-tests (Depends-on): Likewise.
71473         * modules/linkat-tests (Depends-on): Likewise.
71474         * modules/lstat-tests (Depends-on): Likewise.
71475         * modules/mkdir-tests (Depends-on): Likewise.
71476         * modules/mkfifo-tests (Depends-on): Likewise.
71477         * modules/mkfifoat-tests (Depends-on): Likewise.
71478         * modules/mknod-tests (Depends-on): Likewise.
71479         * modules/openat-tests (Depends-on): Likewise.
71480         * modules/readlink-tests (Depends-on): Likewise.
71481         * modules/remove-tests (Depends-on): Likewise.
71482         * modules/rename-tests (Depends-on): Likewise.
71483         * modules/renameat-tests (Depends-on): Likewise.
71484         * modules/rmdir-tests (Depends-on): Likewise.
71485         * modules/symlink-tests (Depends-on): Likewise.
71486         * modules/symlinkat-tests (Depends-on): Likewise.
71487         * modules/unlink-tests (Depends-on): Likewise.
71488         * modules/utimens-tests (Depends-on): Likewise.
71489         * modules/utimensat-tests (Depends-on): Likewise.
71491 2010-01-31  Bruno Haible  <bruno@clisp.org>
71493         Perform the same test for many <math.h> functions.
71494         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
71495         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
71496         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
71497         of gl_MATHFUNC.
71498         * modules/acos (configure.ac): Likewise.
71499         * modules/asin (configure.ac): Likewise.
71500         * modules/atan (configure.ac): Likewise.
71501         * modules/atan2 (configure.ac): Likewise.
71502         * modules/cbrt (configure.ac): Likewise.
71503         * modules/copysign (configure.ac): Likewise.
71504         * modules/cos (configure.ac): Likewise.
71505         * modules/cosh (configure.ac): Likewise.
71506         * modules/erf (configure.ac): Likewise.
71507         * modules/erfc (configure.ac): Likewise.
71508         * modules/exp (configure.ac): Likewise.
71509         * modules/fmod (configure.ac): Likewise.
71510         * modules/hypot (configure.ac): Likewise.
71511         * modules/j0 (configure.ac): Likewise.
71512         * modules/j1 (configure.ac): Likewise.
71513         * modules/jn (configure.ac): Likewise.
71514         * modules/lgamma (configure.ac): Likewise.
71515         * modules/log (configure.ac): Likewise.
71516         * modules/log10 (configure.ac): Likewise.
71517         * modules/log1p (configure.ac): Likewise.
71518         * modules/pow (configure.ac): Likewise.
71519         * modules/remainder (configure.ac): Likewise.
71520         * modules/sin (configure.ac): Likewise.
71521         * modules/sinh (configure.ac): Likewise.
71522         * modules/tan (configure.ac): Likewise.
71523         * modules/tanh (configure.ac): Likewise.
71524         * modules/y0 (configure.ac): Likewise.
71525         * modules/y1 (configure.ac): Likewise.
71526         * modules/yn (configure.ac): Likewise.
71527         Suggested by Paolo Bonzini.
71529 2010-01-31  Bruno Haible  <bruno@clisp.org>
71531         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
71533 2010-01-31  Bruno Haible  <bruno@clisp.org>
71535         Work around getdelim() bug on FreeBSD 8.0.
71536         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
71537         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
71538         not work.
71539         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
71540         is 1.
71541         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
71542         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
71543         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
71544         a non-zero size.
71545         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
71547 2010-01-31  Bruno Haible  <bruno@clisp.org>
71549         Work around getline() bug on FreeBSD 8.0.
71550         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
71551         and a non-zero size.
71552         * tests/test-getline.c (main): Likewise.
71553         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
71554         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
71556 2010-01-28  Eric Blake  <ebb9@byu.net>
71558         regex: fix build failure
71559         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
71560         platforms.
71562 2010-01-28  Jim Meyering  <meyering@redhat.com>
71564         regex: do not ignore memory allocation failure
71565         * lib/regex_internal.c (create_cd_newstate): Detect
71566         re_node_set_init_copy failure.   Extracted from glibc commit
71567         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
71569         regex: sync more white-space changes from libc
71570         * lib/regex_internal.c: White-space only changes.
71571         * lib/regexec.c: Likewise.
71573         regex: add many uses of __attribute_warn_unused_result__
71574         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
71575         * lib/regexec.c: Likewise.
71576         Extracted from a messy glibc commit.
71578         regcomp.c: spelling and merge-artifact from glibc
71579         * lib/regcomp.c: Merge remainder of glibc's
71580         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
71582         regcomp.c: sync white-space changes from glibc
71583         * lib/regcomp.c: Merge to accommodate white space
71584         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
71586         regcomp.c: do not ignore internal return values
71587         * lib/regcomp.c: Do not ignore internal return values.
71588         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
71589         but without its white-space changes and spelling fixes.
71591         regex_internal.h: define __attribute_warn_unused_result__
71592         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
71594         maint: add a syntax-check rule to check for vulnerable Makefile.in
71595         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
71597 2010-01-27  Jim Meyering  <meyering@redhat.com>
71599         ncftpput-ftp: clean up spaces
71600         * build-aux/ncftpput-ftp: Make Copyright line consistent.
71601         Remove trailing blanks.
71603 2010-01-27  Simon Josefsson  <simon@josefsson.org>
71605         * build-aux/git-version-gen: Fix copyright statement.
71606         * build-aux/gnupload: Likewise.
71607         * tests/test-arcfour.c: Likewise.
71608         * tests/test-arctwo.c: Likewise.
71609         * tests/test-count-one-bits.c: Likewise.
71610         * tests/test-crc.c: Likewise.
71611         * tests/test-des.c: Likewise.
71612         * tests/test-gc-arcfour.c: Likewise.
71613         * tests/test-gc-arctwo.c: Likewise.
71614         * tests/test-gc-des.c: Likewise.
71615         * tests/test-gc-hmac-md5.c: Likewise.
71616         * tests/test-gc-hmac-sha1.c: Likewise.
71617         * tests/test-gc-md2.c: Likewise.
71618         * tests/test-gc-md4.c: Likewise.
71619         * tests/test-gc-md5.c: Likewise.
71620         * tests/test-gc-pbkdf2-sha1.c: Likewise.
71621         * tests/test-gc-rijndael.c: Likewise.
71622         * tests/test-gc-sha1.c: Likewise.
71623         * tests/test-gc.c: Likewise.
71624         * tests/test-gethostname.c: Likewise.
71625         * tests/test-gettimeofday.c: Likewise.
71626         * tests/test-hash.c: Likewise.
71627         * tests/test-hmac-md5.c: Likewise.
71628         * tests/test-hmac-sha1.c: Likewise.
71629         * tests/test-md2.c: Likewise.
71630         * tests/test-md4.c: Likewise.
71631         * tests/test-md5.c: Likewise.
71632         * tests/test-memchr.c: Likewise.
71633         * tests/test-memchr2.c: Likewise.
71634         * tests/test-memcmp.c: Likewise.
71635         * tests/test-memmem.c: Likewise.
71636         * tests/test-memrchr.c: Likewise.
71637         * tests/test-rawmemchr.c: Likewise.
71638         * tests/test-read-file.c: Likewise.
71639         * tests/test-rijndael.c: Likewise.
71640         * tests/test-sockets.c: Likewise.
71641         * tests/test-strchrnul.c: Likewise.
71642         * tests/test-strstr.c: Likewise.
71643         * tests/test-strtod.c: Likewise.
71644         * build-aux/ncftpput-ftp: Likewise.
71646 2010-01-26  Eric Blake  <ebb9@byu.net>
71648         ignore-value: update recommended header name
71649         * modules/ignore-value (Include): Only use <> for headers that
71650         exist in glibc.
71652 2010-01-26  Jim Meyering  <meyering@redhat.com>
71654         test-userspec.c: avoid compiler warnings
71655         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
71656         and "initialization discards qualifiers..." warnings.
71657         Put the first "uid" in its own scope, and make char* members "const".
71659 2010-01-25  Bruno Haible  <bruno@clisp.org>
71661         gnulib-tool: Make warning diagnostics consistent.
71662         * gnulib-tool (func_warning): New function.
71663         Use it everywhere where gnulib-tool produces output to stderr and it is
71664         not a fatal error.
71666 2010-01-25  Bruno Haible  <bruno@clisp.org>
71668         Fix test dependencies.
71669         * modules/xstrtol-tests (Depends-on): Add inttypes.
71670         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
71672 2010-01-25  Pádraig Brady  <P@draigBrady.com>
71674         syntax-check: detect incorrect boolean macro values in config.h
71675         * modules/maintainer-makefile (configure.ac): Parameterize the location
71676         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
71677         The logic is from Eric Blake and the location indicated by Jim Meyering.
71678         Note the more natural CONFIG_HEADER name is prohibited by automake
71679         for backwards compatibility reasons.
71680         * top/maint.mk (sc_Wundef_boolean): New rule.
71682 2010-01-25  Jim Meyering  <meyering@redhat.com>
71684         bootstrap: detect MacOS 10.6's shasum, too
71685         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
71686         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
71688 2010-01-23  Jim Meyering  <meyering@redhat.com>
71690         xstrtoll: new module
71691         * modules/xstrtoll: New file.
71692         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
71693         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
71694         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
71695         ./configure fails if you use this module and lack "long long".
71696         * modules/xstrtoll-tests: New module.
71697         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
71698         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
71699         new init.sh-based test framework.
71701 2010-01-24  Bruno Haible  <bruno@clisp.org>
71703         Tests for module 'yn'.
71704         * modules/yn-tests: New file.
71705         * tests/test-yn.c: New file.
71707         Tests for module 'y1'.
71708         * modules/y1-tests: New file.
71709         * tests/test-y1.c: New file.
71711         Tests for module 'y0'.
71712         * modules/y0-tests: New file.
71713         * tests/test-y0.c: New file.
71715         Tests for module 'tanh'.
71716         * modules/tanh-tests: New file.
71717         * tests/test-tanh.c: New file.
71719         Tests for module 'tan'.
71720         * modules/tan-tests: New file.
71721         * tests/test-tan.c: New file.
71723         Tests for module 'sqrt'.
71724         * modules/sqrt-tests: New file.
71725         * tests/test-sqrt.c: New file.
71727         Tests for module 'sinh'.
71728         * modules/sinh-tests: New file.
71729         * tests/test-sinh.c: New file.
71731         Tests for module 'sin'.
71732         * modules/sin-tests: New file.
71733         * tests/test-sin.c: New file.
71735         Tests for module 'rint'.
71736         * modules/rint-tests: New file.
71737         * tests/test-rint.c: New file.
71739         Tests for module 'remainder'.
71740         * modules/remainder-tests: New file.
71741         * tests/test-remainder.c: New file.
71743         Tests for module 'pow'.
71744         * modules/pow-tests: New file.
71745         * tests/test-pow.c: New file.
71747         Tests for module 'nextafter'.
71748         * modules/nextafter-tests: New file.
71749         * tests/test-nextafter.c: New file.
71751         Tests for module 'modf'.
71752         * modules/modf-tests: New file.
71753         * tests/test-modf.c: New file.
71755         Tests for module 'logb'.
71756         * modules/logb-tests: New file.
71757         * tests/test-logb.c: New file.
71759         Tests for module 'log1p'.
71760         * modules/log1p-tests: New file.
71761         * tests/test-log1p.c: New file.
71763         Tests for module 'log10'.
71764         * modules/log10-tests: New file.
71765         * tests/test-log10.c: New file.
71767         Tests for module 'log'.
71768         * modules/log-tests: New file.
71769         * tests/test-log.c: New file.
71771         Tests for module 'lgamma'.
71772         * modules/lgamma-tests: New file.
71773         * tests/test-lgamma.c: New file.
71775         Tests for module 'ldexp'.
71776         * modules/ldexp-tests: New file.
71777         * tests/test-ldexp.c: New file.
71779         Tests for module 'jn'.
71780         * modules/jn-tests: New file.
71781         * tests/test-jn.c: New file.
71783         Tests for module 'j1'.
71784         * modules/j1-tests: New file.
71785         * tests/test-j1.c: New file.
71787         Tests for module 'j0'.
71788         * modules/j0-tests: New file.
71789         * tests/test-j0.c: New file.
71791         Tests for module 'hypot'.
71792         * modules/hypot-tests: New file.
71793         * tests/test-hypot.c: New file.
71795         Tests for module 'fmod'.
71796         * modules/fmod-tests: New file.
71797         * tests/test-fmod.c: New file.
71799         Tests for module 'fabs'.
71800         * modules/fabs-tests: New file.
71801         * tests/test-fabs.c: New file.
71803         Tests for module 'exp'.
71804         * modules/exp-tests: New file.
71805         * tests/test-exp.c: New file.
71807         Tests for module 'erfc'.
71808         * modules/erfc-tests: New file.
71809         * tests/test-erfc.c: New file.
71811         Tests for module 'erf'.
71812         * modules/erf-tests: New file.
71813         * tests/test-erf.c: New file.
71815         Tests for module 'cosh'.
71816         * modules/cosh-tests: New file.
71817         * tests/test-cosh.c: New file.
71819         Tests for module 'cos'.
71820         * modules/cos-tests: New file.
71821         * tests/test-cos.c: New file.
71823         Tests for module 'copysign'.
71824         * modules/copysign-tests: New file.
71825         * tests/test-copysign.c: New file.
71827         Tests for module 'cbrt'.
71828         * modules/cbrt-tests: New file.
71829         * tests/test-cbrt.c: New file.
71831         Tests for module 'atan2'.
71832         * modules/atan2-tests: New file.
71833         * tests/test-atan2.c: New file.
71835         Tests for module 'atan'.
71836         * modules/atan-tests: New file.
71837         * tests/test-atan.c: New file.
71839         Tests for module 'asin'.
71840         * modules/asin-tests: New file.
71841         * tests/test-asin.c: New file.
71843         Tests for module 'acos'.
71844         * modules/acos-tests: New file.
71845         * tests/test-acos.c: New file.
71847 2010-01-24  Bruno Haible  <bruno@clisp.org>
71849         Fix tests for common <math.h> functions.
71850         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
71851         code snippet that references the function pointer, rather than merely
71852         calling the function. Substitute the FUNC_LIBM variable.
71853         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
71854         * modules/acos (configure.ac): Likewise.
71855         * modules/asin (configure.ac): Likewise.
71856         * modules/atan (configure.ac): Likewise.
71857         * modules/atan2 (configure.ac): Likewise.
71858         * modules/cbrt (configure.ac): Likewise.
71859         * modules/copysign (configure.ac): Likewise.
71860         * modules/cos (configure.ac): Likewise.
71861         * modules/cosh (configure.ac): Likewise.
71862         * modules/erf (configure.ac): Likewise.
71863         * modules/erfc (configure.ac): Likewise.
71864         * modules/exp (configure.ac): Likewise.
71865         * modules/fabs (configure.ac): Likewise.
71866         * modules/fmod (configure.ac): Likewise.
71867         * modules/hypot (configure.ac): Likewise.
71868         * modules/j0 (configure.ac): Likewise.
71869         * modules/j1 (configure.ac): Likewise.
71870         * modules/jn (configure.ac): Likewise.
71871         * modules/ldexp (configure.ac): Likewise.
71872         * modules/lgamma (configure.ac): Likewise.
71873         * modules/log (configure.ac): Likewise.
71874         * modules/log10 (configure.ac): Likewise.
71875         * modules/log1p (configure.ac): Likewise.
71876         * modules/logb (configure.ac): Likewise.
71877         * modules/modf (configure.ac): Likewise.
71878         * modules/nextafter (configure.ac): Likewise.
71879         * modules/pow (configure.ac): Likewise.
71880         * modules/remainder (configure.ac): Likewise.
71881         * modules/rint (configure.ac): Likewise.
71882         * modules/sin (configure.ac): Likewise.
71883         * modules/sinh (configure.ac): Likewise.
71884         * modules/tan (configure.ac): Likewise.
71885         * modules/tanh (configure.ac): Likewise.
71886         * modules/y0 (configure.ac): Likewise.
71887         * modules/y1 (configure.ac): Likewise.
71888         * modules/yn (configure.ac): Likewise.
71890 2010-01-24  Bruno Haible  <bruno@clisp.org>
71892         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
71893         * tests/test-acosl.c (x): New variable.
71894         (main): Store argument in x and fetch it from x.
71895         * tests/test-asinl.c (x): New variable.
71896         (main): Store argument in x and fetch it from x.
71897         * tests/test-atanl.c (x): New variable.
71898         (main): Store argument in x and fetch it from x.
71899         * tests/test-cosl.c (x): New variable.
71900         (main): Store argument in x and fetch it from x.
71901         * tests/test-expl.c (x): New variable.
71902         (main): Store argument in x and fetch it from x.
71903         * tests/test-logl.c (x): New variable.
71904         (main): Store argument in x and fetch it from x.
71905         * tests/test-sinl.c (x): New variable.
71906         (main): Store argument in x and fetch it from x.
71907         * tests/test-sqrtl.c (x): New variable.
71908         (main): Store argument in x and fetch it from x.
71909         * tests/test-tanl.c (x): New variable.
71910         (main): Store argument in x and fetch it from x.
71912 2010-01-24  Bruno Haible  <bruno@clisp.org>
71914         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
71915         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
71916         assignments to the initial TESTS_ENVIRONMENT.
71917         * doc/gnulib.texi (Unit test modules): Document it.
71918         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
71919         TESTS_ENVIRONMENT.
71920         * modules/btowc-tests (Makefile.am): Likewise.
71921         * modules/c-stack-tests (Makefile.am): Likewise.
71922         * modules/c-strcase-tests (Makefile.am): Likewise.
71923         * modules/copy-file-tests (Makefile.am): Likewise.
71924         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
71925         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
71926         * modules/mbrtowc-tests (Makefile.am): Likewise.
71927         * modules/mbscasecmp-tests (Makefile.am): Likewise.
71928         * modules/mbscasestr-tests (Makefile.am): Likewise.
71929         * modules/mbschr-tests (Makefile.am): Likewise.
71930         * modules/mbscspn-tests (Makefile.am): Likewise.
71931         * modules/mbsinit-tests (Makefile.am): Likewise.
71932         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
71933         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
71934         * modules/mbspbrk-tests (Makefile.am): Likewise.
71935         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
71936         * modules/mbsrchr-tests (Makefile.am): Likewise.
71937         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
71938         * modules/mbsspn-tests (Makefile.am): Likewise.
71939         * modules/mbsstr-tests (Makefile.am): Likewise.
71940         * modules/nl_langinfo-tests (Makefile.am): Likewise.
71941         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
71942         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
71943         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
71944         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
71945         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
71946         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
71947         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
71948         * modules/wcrtomb-tests (Makefile.am): Likewise.
71949         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
71950         * modules/wcsrtombs-tests (Makefile.am): Likewise.
71951         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
71952         assignments from TESTS_ENVIRONMENT.
71953         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
71954         augmentation.
71955         * modules/argp-version-etc-tests (Makefile.am): Likewise.
71956         * modules/atexit-tests (Makefile.am): Likewise.
71957         * modules/binary-io-tests (Makefile.am): Likewise.
71958         * modules/closein-tests (Makefile.am): Likewise.
71959         * modules/dprintf-posix-tests (Makefile.am): Likewise.
71960         * modules/exclude-tests (Makefile.am): Likewise.
71961         * modules/fflush-tests (Makefile.am): Likewise.
71962         * modules/fpending-tests (Makefile.am): Likewise.
71963         * modules/fprintf-posix-tests (Makefile.am): Likewise.
71964         * modules/freadahead-tests (Makefile.am): Likewise.
71965         * modules/freadptr-tests (Makefile.am): Likewise.
71966         * modules/freadseek-tests (Makefile.am): Likewise.
71967         * modules/fseek-tests (Makefile.am): Likewise.
71968         * modules/fseeko-tests (Makefile.am): Likewise.
71969         * modules/ftell-tests (Makefile.am): Likewise.
71970         * modules/ftello-tests (Makefile.am): Likewise.
71971         * modules/idpriv-drop-tests (Makefile.am): Likewise.
71972         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
71973         * modules/lseek-tests (Makefile.am): Likewise.
71974         * modules/parse-duration-tests (Makefile.am): Likewise.
71975         * modules/perror-tests (Makefile.am): Likewise.
71976         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
71977         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
71978         * modules/pipe-tests (Makefile.am): Likewise.
71979         * modules/pread-tests (Makefile.am): Likewise.
71980         * modules/printf-posix-tests (Makefile.am): Likewise.
71981         * modules/select-tests (Makefile.am): Likewise.
71982         * modules/sigpipe-tests (Makefile.am): Likewise.
71983         * modules/tsearch-tests (Makefile.am): Likewise.
71984         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
71985         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
71986         * modules/uniname/uniname-tests (Makefile.am): Likewise.
71987         * modules/uniwidth/width-tests (Makefile.am): Likewise.
71988         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
71989         * modules/version-etc-tests (Makefile.am): Likewise.
71990         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
71991         * modules/vprintf-posix-tests (Makefile.am): Likewise.
71992         * modules/xalloc-die-tests (Makefile.am): Likewise.
71993         * modules/xprintf-posix-tests (Makefile.am): Likewise.
71994         * modules/xstrtoimax-tests (Makefile.am): Likewise.
71995         * modules/xstrtol-tests (Makefile.am): Likewise.
71996         * modules/xstrtoumax-tests (Makefile.am): Likewise.
71997         * modules/yesno-tests (Makefile.am): Likewise.
71998         Suggested by Jim Meyering.
72000 2010-01-24  Bruno Haible  <bruno@clisp.org>
72002         More documentation.
72003         * doc/gnulib.texi (Writing modules): New chapter.
72004         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
72005         the new chapter.
72007 2010-01-24  Jim Meyering  <meyering@redhat.com>
72009         maint.mk: do not prepend "./" after filtering
72010         * top/maint.mk (_prepend_srcdir_prefix): New variable
72011         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
72012         "./" when $(srcdir) is ".".
72014         define STREQ(a,b) consistently, removing useless parentheses
72015         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
72016         since the only risk is that "a" or "b" contains an unparenthesized
72017         comma, but if either did that, STREQ would have 3 or more arguments.
72018         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
72019         * lib/fts.c (STREQ): Remove unnecessary parentheses.
72020         * lib/hash-triple.c (STREQ): Likewise.
72021         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
72022         * lib/getugroups.c (STREQ): Likewise.
72024 2010-01-23  Jim Meyering  <meyering@redhat.com>
72026         maint.mk: fix syntax-check in a non-srcdir build directory
72027         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
72028         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
72030 2010-01-22  Jim Meyering  <meyering@redhat.com>
72032         userspec: add unit tests
72033         * tests/test-userspec.c: New file.
72034         * modules/userspec-tests: Likewise.
72036 2010-01-21  Jim Meyering  <meyering@redhat.com>
72038         maint.mk: handle source file names containing "." robustly
72039         * top/maint.mk (_dot_escaped_srcdir): Define.
72040         (VC_LIST): Use it in LHS of sed substitution.
72042 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
72044         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
72045         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
72046         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
72047         from a non-srcdir build.
72049 2010-01-20  Eric Blake  <ebb9@byu.net>
72051         warn-on-use: use instead of link-warning
72052         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
72053         * modules/unistd (Depends-on, Makefile.am): Likewise.
72054         * modules/arpa_inet (Depends-on): Replace link-warning with
72055         warn-on-use.
72056         (Makefile.am): Update rules accordingly.
72057         * modules/ctype (Depends-on, Makefile.am): Likewise.
72058         * modules/dirent (Depends-on, Makefile.am): Likewise.
72059         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
72060         * modules/inttypes (Depends-on, Makefile.am): Likewise.
72061         * modules/langinfo (Depends-on, Makefile.am): Likewise.
72062         * modules/locale (Depends-on, Makefile.am): Likewise.
72063         * modules/math (Depends-on, Makefile.am): Likewise.
72064         * modules/search (Depends-on, Makefile.am): Likewise.
72065         * modules/signal (Depends-on, Makefile.am): Likewise.
72066         * modules/spawn (Depends-on, Makefile.am): Likewise.
72067         * modules/stdlib (Depends-on, Makefile.am): Likewise.
72068         * modules/string (Depends-on, Makefile.am): Likewise.
72069         * modules/strings (Depends-on, Makefile.am): Likewise.
72070         * modules/sys_file (Depends-on, Makefile.am): Likewise.
72071         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
72072         * modules/sys_select (Depends-on, Makefile.am): Likewise.
72073         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
72074         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
72075         * modules/sys_times (Depends-on, Makefile.am): Likewise.
72076         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
72077         * modules/wchar (Depends-on, Makefile.am): Likewise.
72078         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
72079         should be poisoned.
72080         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
72081         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
72082         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
72083         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
72084         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
72085         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
72086         * m4/math_h.m4 (gl_MATH_H): Likewise.
72087         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
72088         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
72089         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
72090         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
72091         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
72092         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
72093         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
72094         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
72095         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
72096         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
72097         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
72098         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
72099         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
72100         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
72101         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
72102         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
72103         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
72104         GL_LINK_WARNING.
72105         * lib/ctype.in.h: Likewise.
72106         * lib/dirent.in.h: Likewise.
72107         * lib/fcntl.in.h: Likewise.
72108         * lib/inttypes.in.h: Likewise.
72109         * lib/langinfo.in.h: Likewise.
72110         * lib/locale.in.h: Likewise.
72111         * lib/math.in.h: Likewise.
72112         * lib/search.in.h: Likewise.
72113         * lib/signal.in.h: Likewise.
72114         * lib/spawn.in.h: Likewise.
72115         * lib/stdio.in.h: Likewise.
72116         * lib/stdlib.in.h: Likewise.
72117         * lib/string.in.h: Likewise.
72118         * lib/strings.in.h: Likewise.
72119         * lib/sys_file.in.h: Likewise.
72120         * lib/sys_ioctl.in.h: Likewise.
72121         * lib/sys_select.in.h: Likewise.
72122         * lib/sys_socket.in.h: Likewise.
72123         * lib/sys_stat.in.h: Likewise.
72124         * lib/sys_times.in.h: Likewise.
72125         * lib/sys_utsname.in.h: Likewise.
72126         * lib/unistd.in.h: Likewise.
72127         * lib/wchar.in.h: Likewise.
72129 2010-01-20  Bruno Haible  <bruno@clisp.org>
72131         Avoid duplicate -lm.
72132         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
72133         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
72134         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
72135         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
72136         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
72137         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
72138         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
72139         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
72140         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
72141         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
72142         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
72143         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
72144         Reported by Paolo Bonzini.
72146 2010-01-19  Bruno Haible  <bruno@clisp.org>
72148         langinfo, nl_langinfo: Relicense under LGPLv2+.
72149         * modules/langinfo (License): Change to LGPLv2+.
72150         * modules/nl_langinfo (License): Likewise.
72151         Patch by David Lutterkort <lutter@redhat.com>.
72153 2010-01-19  Bruno Haible  <bruno@clisp.org>
72155         Avoid compilation error with cc on OSF/1 5.1.
72156         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
72157         statement, not before.
72158         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72160 2010-01-18  Bruno Haible  <bruno@clisp.org>
72162         Avoid a link error due to the __printf__ symbol.
72163         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
72164         and 2.6.x.
72165         (__format__, __printf__): Remove definitions.
72166         * lib/argp-fmtstream.h: Likewise.
72167         * lib/argp.h: Likewise.
72168         * lib/error.h: Likewise.
72169         * lib/vasnprintf.h: Likewise.
72170         * lib/xprintf.h: Likewise.
72171         * lib/xvasprintf.h: Likewise.
72172         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72174 2010-01-18  Bruno Haible  <bruno@clisp.org>
72176         Tests for module 'tanl'.
72177         * modules/tanl-tests: New file.
72178         * tests/test-tanl.c: New file.
72180         Tests for module 'sqrtl'.
72181         * modules/sqrtl-tests: New file.
72182         * tests/test-sqrtl.c: New file.
72184         Tests for module 'sinl'.
72185         * modules/sinl-tests: New file.
72186         * tests/test-sinl.c: New file.
72188         Tests for module 'logl'.
72189         * modules/logl-tests: New file.
72190         * tests/test-logl.c: New file.
72192         Tests for module 'expl'.
72193         * modules/expl-tests: New file.
72194         * tests/test-expl.c: New file.
72196         Tests for module 'cosl'.
72197         * modules/cosl-tests: New file.
72198         * tests/test-cosl.c: New file.
72200         Tests for module 'atanl'.
72201         * modules/atanl-tests: New file.
72202         * tests/test-atanl.c: New file.
72204         Tests for module 'asinl'.
72205         * modules/asinl-tests: New file.
72206         * tests/test-asinl.c: New file.
72208         Tests for module 'acosl'.
72209         * modules/acosl-tests: New file.
72210         * tests/test-acosl.c: New file.
72212         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
72213         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
72214         tanl): Use the standard gnulib idiom.
72215         * lib/cosl.c: Don't include trigl.c and sincosl.c.
72216         * lib/sinl.c: Likewise.
72217         * lib/tanl.c: Don't include trigl.c.
72218         (kernel_tanl): Make static.
72219         * lib/sincosl.c: Include trigl.h first.
72220         * lib/trigl.c: Likewise.
72221         * m4/acosl.m4: New file.
72222         * m4/asinl.m4: New file.
72223         * m4/atanl.m4: New file.
72224         * m4/cosl.m4: New file.
72225         * m4/expl.m4: New file.
72226         * m4/logl.m4: New file.
72227         * m4/sinl.m4: New file.
72228         * m4/sqrtl.m4: New file.
72229         * m4/tanl.m4: New file.
72230         * m4/mathl.m4: Remove file.
72231         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
72232         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
72233         Don't initialize GNULIB_MATHL.
72234         * modules/acosl: New file.
72235         * modules/asinl: New file.
72236         * modules/atanl: New file.
72237         * modules/cosl: New file.
72238         * modules/expl: New file.
72239         * modules/logl: New file.
72240         * modules/sinl: New file.
72241         * modules/sqrtl: New file.
72242         * modules/tanl: New file.
72243         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
72244         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
72245         substitute GNULIB_MATHL.
72246         * modules/mathl: Rewritten.
72247         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
72248         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
72249         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
72250         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
72251         * doc/posix-functions/expl.texi: Mention the 'expl' module.
72252         * doc/posix-functions/logl.texi: Mention the 'logl' module.
72253         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
72254         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
72255         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
72257 2010-01-18  Bruno Haible  <bruno@clisp.org>
72259         sqrt: Make gl_FUNC_SQRT requirable.
72260         * m4/sqrt.m4: New file.
72261         * modules/sqrt (Files): Add it.
72262         (configure.ac): Invoke gl_FUNC_SQRT.
72264 2010-01-18  Bruno Haible  <bruno@clisp.org>
72266         New modules for common <math.h> functions.
72267         * m4/mathfunc.m4: New file.
72268         * modules/acos: New file.
72269         * modules/asin: New file.
72270         * modules/atan: New file.
72271         * modules/atan2: New file.
72272         * modules/cbrt: New file.
72273         * modules/copysign: New file.
72274         * modules/cos: New file.
72275         * modules/cosh: New file.
72276         * modules/erf: New file.
72277         * modules/erfc: New file.
72278         * modules/exp: New file.
72279         * modules/fabs: New file.
72280         * modules/fmod: New file.
72281         * modules/hypot: New file.
72282         * modules/j0: New file.
72283         * modules/j1: New file.
72284         * modules/jn: New file.
72285         * modules/ldexp: New file.
72286         * modules/lgamma: New file.
72287         * modules/log: New file.
72288         * modules/log10: New file.
72289         * modules/log1p: New file.
72290         * modules/logb: New file.
72291         * modules/modf: New file.
72292         * modules/nextafter: New file.
72293         * modules/pow: New file.
72294         * modules/remainder: New file.
72295         * modules/rint: New file.
72296         * modules/sin: New file.
72297         * modules/sinh: New file.
72298         * modules/sqrt: New file.
72299         * modules/tan: New file.
72300         * modules/tanh: New file.
72301         * modules/y0: New file.
72302         * modules/y1: New file.
72303         * modules/yn: New file.
72304         * doc/posix-functions/acos.texi: Mention the 'acos' module.
72305         * doc/posix-functions/asin.texi: Mention the 'asin' module.
72306         * doc/posix-functions/atan.texi: Mention the 'atan' module.
72307         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
72308         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
72309         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
72310         * doc/posix-functions/cos.texi: Mention the 'cos' module.
72311         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
72312         * doc/posix-functions/erf.texi: Mention the 'erf' module.
72313         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
72314         * doc/posix-functions/exp.texi: Mention the 'exp' module.
72315         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
72316         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
72317         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
72318         * doc/posix-functions/j0.texi: Mention the 'j0' module.
72319         * doc/posix-functions/j1.texi: Mention the 'j1' module.
72320         * doc/posix-functions/jn.texi: Mention the 'jn' module.
72321         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
72322         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
72323         * doc/posix-functions/log.texi: Mention the 'log' module.
72324         * doc/posix-functions/log10.texi: Mention the 'log10' module.
72325         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
72326         * doc/posix-functions/logb.texi: Mention the 'logb' module.
72327         * doc/posix-functions/modf.texi: Mention the 'modf' module.
72328         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
72329         * doc/posix-functions/pow.texi: Mention the 'pow' module.
72330         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
72331         * doc/posix-functions/rint.texi: Mention the 'rint' module.
72332         * doc/posix-functions/sin.texi: Mention the 'sin' module.
72333         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
72334         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
72335         * doc/posix-functions/tan.texi: Mention the 'tan' module.
72336         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
72337         * doc/posix-functions/y0.texi: Mention the 'y0' module.
72338         * doc/posix-functions/y1.texi: Mention the 'y1' module.
72339         * doc/posix-functions/yn.texi: Mention the 'yn' module.
72341 2010-01-18  Jim Meyering  <meyering@redhat.com>
72343         ignore-value: relax license to LGPLv2+
72344         * modules/ignore-value (License): Relax to LGPLv2+.
72346         getdate: don't leak when TZ contains two or more '"'s
72347         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
72348         double quote in TZ after the first one.
72350         readtokens: do not leak internal token_lengths buffer
72351         * lib/readtokens.c (readtokens): Free the local, lengths,
72352         when the supplied "token_lengths" parameter is NULL.
72354 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72356         Fix a couple of missing LIBTHREAD link failures on AIX.
72357         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
72358         $(LIBTHREAD).
72359         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
72361         Link test-poll against INET_PTON_LIB.
72362         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
72363         for inet_pton on Solaris 10.
72365 2010-01-17  Bruno Haible  <bruno@clisp.org>
72367         unistdio/*-sprintf: Fix typo in module description.
72368         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
72369         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
72370         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
72371         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
72372         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
72373         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
72374         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
72375         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72377 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72379         gnulib-tool: fix filelist for AIX, HP-UX ksh.
72380         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
72381         variables in shell case patterns, for AIX and HP-UX ksh.
72383         Split large sed scripts, for HP-UX sed.
72384         * modules/stdio: Split sed scripts around 50 sed commands,
72385         to avoid HP-UX limit of 99 commands, in the near future.
72386         * modules/string: Likewise.
72387         * modules/unistd: Likewise.
72389         gnulib-tool: avoid writing in the current directory.
72390         * gnulib-tool (func_emit_lib_Makefile_am)
72391         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
72392         not in the current directory, so concurrent gnulib-tool
72393         instances do not interfere.
72395 2010-01-16  Jim Meyering  <meyering@redhat.com>
72397         doc: update users.txt
72398         * users.txt: Add grep.
72399         (diffutils, gzip): Update URLs.
72401 2010-01-12  Bruno Haible  <bruno@clisp.org>
72403         posix_spawn: Avoid test failure on Cygwin.
72404         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
72405         characters.
72406         Reported by Simon Josefsson.
72408 2010-01-12  Bruno Haible  <bruno@clisp.org>
72410         * tests/test-cond.c (main): When skipping the test, show the reason.
72412 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72414         * lib/striconv.c (str_cd_iconv): Avoid if before free.
72416 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72418         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
72419         VC_LIST_ALWAYS_EXCLUDE_REGEX.
72421 2010-01-12  Eric Blake  <ebb9@byu.net>
72423         build: guarantee AS_VAR_IF
72424         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
72425         (gl_AS_VAR_IF): Move...
72426         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
72427         Reported by Simon Josefsson.
72429 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72431         * lib/stdio.in.h: Fix typo.
72433 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72435         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
72436         libgpg-error.
72438 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72440         * tests/test-xalloc-die.sh: Use $EXEEXT.
72442 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72443             Bruno Haible  <bruno@clisp.org>
72445         getlogin, getlogin_r: Avoid test failure.
72446         * tests/test-getlogin.c: Include <stdio.h>.
72447         (main): Skip the test when the function fails because stdin is not a
72448         tty.
72449         * tests/test-getlogin_r.c: Include <stdio.h>.
72450         (main): Skip the test when the function fails because stdin is not a
72451         tty.
72453 2010-01-11  Eric Blake  <ebb9@byu.net>
72455         tests: avoid more large file warnings
72456         * tests/test-fflush.c: Avoid warning about ftell use.
72457         * tests/test-fseek.c: Avoid warning about fseek use.
72459 2010-01-10  Bruno Haible  <bruno@clisp.org>
72461         nproc: Work better on Linux when /proc and /sys are not mounted.
72462         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
72463         as lower bound when, on glibc/Linux systems,
72464         sysconf (_SC_NPROCESSORS_CONF) returns 1.
72465         Suggested by Pádraig Brady <P@draigbrady.com>.
72466         Reported by Dmitry V. Levin <ldv@altlinux.org>.
72468         nproc: Refactor.
72469         * lib/nproc.c (num_processors_via_affinity_mask): New function,
72470         extracted from num_processors.
72471         (num_processors): Call it.
72473 2010-01-11  Jim Meyering  <meyering@redhat.com>
72475         utimecmp: avoid new warning from upcoming gcc-4.5.0
72476         * lib/utimecmp.c (BILLION): Define using #define rather than an
72477         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
72479 2010-01-11  Eric Blake  <ebb9@byu.net>
72481         math: add portability warnings for classification macros
72482         * modules/math (Depends-on): Add warn-on-use.
72483         (Makefile.am): Provide new substitutions.
72484         * m4/math_h.m4 (gl_MATH_H): Require inline.
72485         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
72486         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
72487         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
72488         implement warnings.
72490         unistd: warn on use of environ without module
72491         * modules/unistd (Depends-on): Add warn-on-use.
72492         (Makefile.am): Provide new substitutions.
72493         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
72494         * lib/unistd.in.h (environ): Wrap with a warning helper function.
72496         stdio: warn on suspicious uses
72497         * modules/stdio (Depends-on): Add warn-on-use.
72498         (Makefile.am): Provide new substitutions.
72499         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
72500         fseeko.
72501         * lib/stdio.in.h (gets): Always warn on use.
72502         (fseek, ftell): Adjust when warnings are issued, and honor
72503         _GL_NO_LARGE_FILES as a way to silence the warning.
72504         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
72505         any warning about large file offsets.
72506         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
72507         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
72508         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
72509         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
72510         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
72511         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
72512         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
72513         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
72515         warn-on-use: new module
72516         * modules/warn-on-use: New file.
72517         * build-aux/warn-on-use.h: Likewise.
72518         * m4/warn-on-use.m4: Likewise.
72519         * MODULES.html.sh (Support for building): Mention it.
72521 2010-01-10  Bruno Haible  <bruno@clisp.org>
72523         Tests for module 'unistr/u32-strdup'.
72524         * modules/unistr/u32-strdup-tests: New file.
72525         * tests/unistr/test-u32-strdup.c: New file.
72527         Tests for module 'unistr/u16-strdup'.
72528         * modules/unistr/u16-strdup-tests: New file.
72529         * tests/unistr/test-u16-strdup.c: New file.
72531         Tests for module 'unistr/u8-strdup'.
72532         * modules/unistr/u8-strdup-tests: New file.
72533         * tests/unistr/test-u8-strdup.c: New file.
72534         * tests/unistr/test-strdup.h: New file.
72536         Tests for module 'unistr/u32-strncmp'.
72537         * modules/unistr/u32-strncmp-tests: New file.
72538         * tests/unistr/test-u32-strncmp.c: New file.
72540         Tests for module 'unistr/u16-strncmp'.
72541         * modules/unistr/u16-strncmp-tests: New file.
72542         * tests/unistr/test-u16-strncmp.c: New file.
72544         Tests for module 'unistr/u8-strncmp'.
72545         * modules/unistr/u8-strncmp-tests: New file.
72546         * tests/unistr/test-u8-strncmp.c: New file.
72547         * tests/unistr/test-strncmp.h: New file.
72549         Tests for module 'unistr/u32-strcoll'.
72550         * modules/unistr/u32-strcoll-tests: New file.
72551         * tests/unistr/test-u32-strcoll.c: New file.
72553         Tests for module 'unistr/u16-strcoll'.
72554         * modules/unistr/u16-strcoll-tests: New file.
72555         * tests/unistr/test-u16-strcoll.c: New file.
72557         Tests for module 'unistr/u8-strcoll'.
72558         * modules/unistr/u8-strcoll-tests: New file.
72559         * tests/unistr/test-u8-strcoll.c: New file.
72561         Tests for module 'unistr/u32-strcmp'.
72562         * modules/unistr/u32-strcmp-tests: New file.
72563         * tests/unistr/test-u32-strcmp.c: New file.
72564         * tests/unistr/test-u32-strcmp.h: New file.
72566         Tests for module 'unistr/u16-strcmp'.
72567         * modules/unistr/u16-strcmp-tests: New file.
72568         * tests/unistr/test-u16-strcmp.c: New file.
72569         * tests/unistr/test-u16-strcmp.h: New file.
72571         Tests for module 'unistr/u8-strcmp'.
72572         * modules/unistr/u8-strcmp-tests: New file.
72573         * tests/unistr/test-u8-strcmp.c: New file.
72574         * tests/unistr/test-u8-strcmp.h: New file.
72575         * tests/unistr/test-strcmp.h: New file.
72577         Tests for module 'unistr/u32-strncat'.
72578         * modules/unistr/u32-strncat-tests: New file.
72579         * tests/unistr/test-u32-strncat.c: New file.
72581         Tests for module 'unistr/u16-strncat'.
72582         * modules/unistr/u16-strncat-tests: New file.
72583         * tests/unistr/test-u16-strncat.c: New file.
72585         Tests for module 'unistr/u8-strncat'.
72586         * modules/unistr/u8-strncat-tests: New file.
72587         * tests/unistr/test-u8-strncat.c: New file.
72588         * tests/unistr/test-strncat.h: New file.
72590         Tests for module 'unistr/u32-strcat'.
72591         * modules/unistr/u32-strcat-tests: New file.
72592         * tests/unistr/test-u32-strcat.c: New file.
72594         Tests for module 'unistr/u16-strcat'.
72595         * modules/unistr/u16-strcat-tests: New file.
72596         * tests/unistr/test-u16-strcat.c: New file.
72598         Tests for module 'unistr/u8-strcat'.
72599         * modules/unistr/u8-strcat-tests: New file.
72600         * tests/unistr/test-u8-strcat.c: New file.
72601         * tests/unistr/test-strcat.h: New file.
72603         Tests for module 'unistr/u32-stpncpy'.
72604         * modules/unistr/u32-stpncpy-tests: New file.
72605         * tests/unistr/test-u32-stpncpy.c: New file.
72607         Tests for module 'unistr/u16-stpncpy'.
72608         * modules/unistr/u16-stpncpy-tests: New file.
72609         * tests/unistr/test-u16-stpncpy.c: New file.
72611         Tests for module 'unistr/u8-stpncpy'.
72612         * modules/unistr/u8-stpncpy-tests: New file.
72613         * tests/unistr/test-u8-stpncpy.c: New file.
72614         * tests/unistr/test-stpncpy.h: New file.
72616         Tests for module 'unistr/u32-strncpy'.
72617         * modules/unistr/u32-strncpy-tests: New file.
72618         * tests/unistr/test-u32-strncpy.c: New file.
72620         Tests for module 'unistr/u16-strncpy'.
72621         * modules/unistr/u16-strncpy-tests: New file.
72622         * tests/unistr/test-u16-strncpy.c: New file.
72624         Tests for module 'unistr/u8-strncpy'.
72625         * modules/unistr/u8-strncpy-tests: New file.
72626         * tests/unistr/test-u8-strncpy.c: New file.
72627         * tests/unistr/test-strncpy.h: New file.
72629         Tests for module 'unistr/u32-stpcpy'.
72630         * modules/unistr/u32-stpcpy-tests: New file.
72631         * tests/unistr/test-u32-stpcpy.c: New file.
72633         Tests for module 'unistr/u16-stpcpy'.
72634         * modules/unistr/u16-stpcpy-tests: New file.
72635         * tests/unistr/test-u16-stpcpy.c: New file.
72637         Tests for module 'unistr/u8-stpcpy'.
72638         * modules/unistr/u8-stpcpy-tests: New file.
72639         * tests/unistr/test-u8-stpcpy.c: New file.
72640         * tests/unistr/test-stpcpy.h: New file.
72642         Tests for module 'unistr/u32-strcpy'.
72643         * modules/unistr/u32-strcpy-tests: New file.
72644         * tests/unistr/test-u32-strcpy.c: New file.
72646         Tests for module 'unistr/u16-strcpy'.
72647         * modules/unistr/u16-strcpy-tests: New file.
72648         * tests/unistr/test-u16-strcpy.c: New file.
72650         Tests for module 'unistr/u8-strcpy'.
72651         * modules/unistr/u8-strcpy-tests: New file.
72652         * tests/unistr/test-u8-strcpy.c: New file.
72653         * tests/unistr/test-strcpy.h: New file.
72655         Tests for module 'unistr/u32-strnlen'.
72656         * modules/unistr/u32-strnlen-tests: New file.
72657         * tests/unistr/test-u32-strnlen.c: New file.
72659         Tests for module 'unistr/u16-strnlen'.
72660         * modules/unistr/u16-strnlen-tests: New file.
72661         * tests/unistr/test-u16-strnlen.c: New file.
72663         Tests for module 'unistr/u8-strnlen'.
72664         * modules/unistr/u8-strnlen-tests: New file.
72665         * tests/unistr/test-u8-strnlen.c: New file.
72666         * tests/unistr/test-strnlen.h: New file.
72668         Tests for module 'unistr/u32-strlen'.
72669         * modules/unistr/u32-strlen-tests: New file.
72670         * tests/unistr/test-u32-strlen.c: New file.
72672         Tests for module 'unistr/u16-strlen'.
72673         * modules/unistr/u16-strlen-tests: New file.
72674         * tests/unistr/test-u16-strlen.c: New file.
72676         Tests for module 'unistr/u8-strlen'.
72677         * modules/unistr/u8-strlen-tests: New file.
72678         * tests/unistr/test-u8-strlen.c: New file.
72680         Tests for module 'unistr/u32-prev'.
72681         * modules/unistr/u32-prev-tests: New file.
72682         * tests/unistr/test-u32-prev.c: New file.
72684         Tests for module 'unistr/u16-prev'.
72685         * modules/unistr/u16-prev-tests: New file.
72686         * tests/unistr/test-u16-prev.c: New file.
72688         Tests for module 'unistr/u8-prev'.
72689         * modules/unistr/u8-prev-tests: New file.
72690         * tests/unistr/test-u8-prev.c: New file.
72692         Tests for module 'unistr/u32-next'.
72693         * modules/unistr/u32-next-tests: New file.
72694         * tests/unistr/test-u32-next.c: New file.
72696         Tests for module 'unistr/u16-next'.
72697         * modules/unistr/u16-next-tests: New file.
72698         * tests/unistr/test-u16-next.c: New file.
72700         Tests for module 'unistr/u8-next'.
72701         * modules/unistr/u8-next-tests: New file.
72702         * tests/unistr/test-u8-next.c: New file.
72704         Tests for module 'unistr/u32-strmbtouc'.
72705         * modules/unistr/u32-strmbtouc-tests: New file.
72706         * tests/unistr/test-u32-strmbtouc.c: New file.
72708         Tests for module 'unistr/u16-strmbtouc'.
72709         * modules/unistr/u16-strmbtouc-tests: New file.
72710         * tests/unistr/test-u16-strmbtouc.c: New file.
72712         Tests for module 'unistr/u8-strmbtouc'.
72713         * modules/unistr/u8-strmbtouc-tests: New file.
72714         * tests/unistr/test-u8-strmbtouc.c: New file.
72716         Tests for module 'unistr/u32-strmblen'.
72717         * modules/unistr/u32-strmblen-tests: New file.
72718         * tests/unistr/test-u32-strmblen.c: New file.
72720         Tests for module 'unistr/u16-strmblen'.
72721         * modules/unistr/u16-strmblen-tests: New file.
72722         * tests/unistr/test-u16-strmblen.c: New file.
72724         Tests for module 'unistr/u8-strmblen'.
72725         * modules/unistr/u8-strmblen-tests: New file.
72726         * tests/unistr/test-u8-strmblen.c: New file.
72728         Tests for module 'unistr/u32-cpy-alloc'.
72729         * modules/unistr/u32-cpy-alloc-tests: New file.
72730         * tests/unistr/test-u32-cpy-alloc.c: New file.
72732         Tests for module 'unistr/u16-cpy-alloc'.
72733         * modules/unistr/u16-cpy-alloc-tests: New file.
72734         * tests/unistr/test-u16-cpy-alloc.c: New file.
72736         Tests for module 'unistr/u8-cpy-alloc'.
72737         * modules/unistr/u8-cpy-alloc-tests: New file.
72738         * tests/unistr/test-u8-cpy-alloc.c: New file.
72739         * tests/unistr/test-cpy-alloc.h: New file.
72741         Tests for module 'unistr/u32-mbsnlen'.
72742         * modules/unistr/u32-mbsnlen-tests: New file.
72743         * tests/unistr/test-u32-mbsnlen.c: New file.
72745         Tests for module 'unistr/u16-mbsnlen'.
72746         * modules/unistr/u16-mbsnlen-tests: New file.
72747         * tests/unistr/test-u16-mbsnlen.c: New file.
72749         Tests for module 'unistr/u8-mbsnlen'.
72750         * modules/unistr/u8-mbsnlen-tests: New file.
72751         * tests/unistr/test-u8-mbsnlen.c: New file.
72753         Tests for module 'unistr/u32-chr'.
72754         * modules/unistr/u32-chr-tests: New file.
72755         * tests/unistr/test-u32-chr.c: New file.
72757         Tests for module 'unistr/u16-chr'.
72758         * modules/unistr/u16-chr-tests: New file.
72759         * tests/unistr/test-u16-chr.c: New file.
72761         Tests for module 'unistr/u8-chr'.
72762         * modules/unistr/u8-chr-tests: New file.
72763         * tests/unistr/test-u8-chr.c: New file.
72764         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
72766         Tests for module 'unistr/u32-cmp2'.
72767         * modules/unistr/u32-cmp2-tests: New file.
72768         * tests/unistr/test-u32-cmp2.c: New file.
72770         Tests for module 'unistr/u16-cmp2'.
72771         * modules/unistr/u16-cmp2-tests: New file.
72772         * tests/unistr/test-u16-cmp2.c: New file.
72774         Tests for module 'unistr/u8-cmp2'.
72775         * modules/unistr/u8-cmp2-tests: New file.
72776         * tests/unistr/test-u8-cmp2.c: New file.
72777         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
72779         Tests for module 'unistr/u32-cmp'.
72780         * modules/unistr/u32-cmp-tests: New file.
72781         * tests/unistr/test-u32-cmp.c: New file.
72783         Tests for module 'unistr/u16-cmp'.
72784         * modules/unistr/u16-cmp-tests: New file.
72785         * tests/unistr/test-u16-cmp.c: New file.
72787         Tests for module 'unistr/u8-cmp'.
72788         * modules/unistr/u8-cmp-tests: New file.
72789         * tests/unistr/test-u8-cmp.c: New file.
72790         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
72792         Tests for module 'unistr/u32-set'.
72793         * modules/unistr/u32-set-tests: New file.
72794         * tests/unistr/test-u32-set.c: New file.
72796         Tests for module 'unistr/u16-set'.
72797         * modules/unistr/u16-set-tests: New file.
72798         * tests/unistr/test-u16-set.c: New file.
72800         Tests for module 'unistr/u8-set'.
72801         * modules/unistr/u8-set-tests: New file.
72802         * tests/unistr/test-u8-set.c: New file.
72803         * tests/unistr/test-set.h: New file.
72805         Tests for module 'unistr/u32-move'.
72806         * modules/unistr/u32-move-tests: New file.
72807         * tests/unistr/test-u32-move.c: New file.
72809         Tests for module 'unistr/u16-move'.
72810         * modules/unistr/u16-move-tests: New file.
72811         * tests/unistr/test-u16-move.c: New file.
72813         Tests for module 'unistr/u8-move'.
72814         * modules/unistr/u8-move-tests: New file.
72815         * tests/unistr/test-u8-move.c: New file.
72816         * tests/unistr/test-move.h: New file.
72818         Tests for module 'unistr/u32-cpy'.
72819         * modules/unistr/u32-cpy-tests: New file.
72820         * tests/unistr/test-u32-cpy.c: New file.
72822         Tests for module 'unistr/u16-cpy'.
72823         * modules/unistr/u16-cpy-tests: New file.
72824         * tests/unistr/test-u16-cpy.c: New file.
72826         Tests for module 'unistr/u8-cpy'.
72827         * modules/unistr/u8-cpy-tests: New file.
72828         * tests/unistr/test-u8-cpy.c: New file.
72829         * tests/unistr/test-cpy.h: New file.
72831 2010-01-09  Bruno Haible  <bruno@clisp.org>
72833         Tests for module 'unistr/u32-uctomb'.
72834         * modules/unistr/u32-uctomb-tests: New file.
72835         * tests/unistr/test-u32-uctomb.c: New file.
72837         Tests for module 'unistr/u16-uctomb'.
72838         * modules/unistr/u16-uctomb-tests: New file.
72839         * tests/unistr/test-u16-uctomb.c: New file.
72841         Tests for module 'unistr/u8-uctomb'.
72842         * modules/unistr/u8-uctomb-tests: New file.
72843         * tests/unistr/test-u8-uctomb.c: New file.
72845         Tests for module 'unistr/u32-mbtoucr'.
72846         * modules/unistr/u32-mbtoucr-tests: New file.
72847         * tests/unistr/test-u32-mbtoucr.c: New file.
72849         Tests for module 'unistr/u16-mbtoucr'.
72850         * modules/unistr/u16-mbtoucr-tests: New file.
72851         * tests/unistr/test-u16-mbtoucr.c: New file.
72853         Tests for module 'unistr/u8-mbtoucr'.
72854         * modules/unistr/u8-mbtoucr-tests: New file.
72855         * tests/unistr/test-u8-mbtoucr.c: New file.
72857         Tests for module 'unistr/u32-mbtouc'.
72858         * modules/unistr/u32-mbtouc-tests: New file.
72859         * tests/unistr/test-u32-mbtouc.c: New file.
72861         Tests for module 'unistr/u16-mbtouc'.
72862         * modules/unistr/u16-mbtouc-tests: New file.
72863         * tests/unistr/test-u16-mbtouc.c: New file.
72865         Tests for module 'unistr/u8-mbtouc'.
72866         * modules/unistr/u8-mbtouc-tests: New file.
72867         * tests/unistr/test-u8-mbtouc.c: New file.
72869         Tests for module 'unistr/u32-mbtouc-unsafe'.
72870         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
72871         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
72872         * tests/unistr/test-u32-mbtouc.h: New file.
72874         Tests for module 'unistr/u16-mbtouc-unsafe'.
72875         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
72876         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
72877         * tests/unistr/test-u16-mbtouc.h: New file.
72879         Tests for module 'unistr/u8-mbtouc-unsafe'.
72880         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
72881         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
72882         * tests/unistr/test-u8-mbtouc.h: New file.
72884         Tests for module 'unistr/u32-mblen'.
72885         * modules/unistr/u32-mblen-tests: New file.
72886         * tests/unistr/test-u32-mblen.c: New file.
72888         Tests for module 'unistr/u16-mblen'.
72889         * modules/unistr/u16-mblen-tests: New file.
72890         * tests/unistr/test-u16-mblen.c: New file.
72892         Tests for module 'unistr/u8-mblen'.
72893         * modules/unistr/u8-mblen-tests: New file.
72894         * tests/unistr/test-u8-mblen.c: New file.
72896         Tests for module 'unistr/u32-to-u16'.
72897         * modules/unistr/u32-to-u16-tests: New file.
72898         * tests/unistr/test-u32-to-u16.c: New file.
72900         Tests for module 'unistr/u32-to-u8'.
72901         * modules/unistr/u32-to-u8-tests: New file.
72902         * tests/unistr/test-u32-to-u8.c: New file.
72904         Tests for module 'unistr/u16-to-u32'.
72905         * modules/unistr/u16-to-u32-tests: New file.
72906         * tests/unistr/test-u16-to-u32.c: New file.
72908         Tests for module 'unistr/u16-to-u8'.
72909         * modules/unistr/u16-to-u8-tests: New file.
72910         * tests/unistr/test-u16-to-u8.c: New file.
72912         Tests for module 'unistr/u8-to-u32'.
72913         * modules/unistr/u8-to-u32-tests: New file.
72914         * tests/unistr/test-u8-to-u32.c: New file.
72916         Tests for module 'unistr/u8-to-u16'.
72917         * modules/unistr/u8-to-u16-tests: New file.
72918         * tests/unistr/test-u8-to-u16.c: New file.
72920         Tests for module 'unistr/u32-check'.
72921         * modules/unistr/u32-check-tests: New file.
72922         * tests/unistr/test-u32-check.c: New file.
72924         Tests for module 'unistr/u16-check'.
72925         * modules/unistr/u16-check-tests: New file.
72926         * tests/unistr/test-u16-check.c: New file.
72928         Tests for module 'unistr/u8-check'.
72929         * modules/unistr/u8-check-tests: New file.
72930         * tests/unistr/test-u8-check.c: New file.
72932         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
72933         (category_equals): New function.
72934         (main): Add more tests.
72935         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
72937         * tests/unictype/test-bidi_byname.c (main): Add more tests.
72939 2010-01-10  Bruno Haible  <bruno@clisp.org>
72941         unistr/u*-strcoll: Try harder to distinguish different strings.
72942         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
72943         compare s1 and s2 to see if they are different.
72945 2010-01-10  Bruno Haible  <bruno@clisp.org>
72947         unistr/u*-stpncpy: Fix the return value.
72948         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
72949         description of the return value consistent with stpncpy in glibc.
72950         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
72951         written non-NUL unit.
72953 2010-01-10  Bruno Haible  <bruno@clisp.org>
72955         unistr/u*-next: Add missing dependencies.
72956         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
72957         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
72958         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
72960 2010-01-10  Bruno Haible  <bruno@clisp.org>
72962         unistr/u8-mbsnlen: Fix return value for incomplete character.
72963         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
72964         u8_mblen.
72965         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
72966         Remove unistr/u8-mblen.
72967         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
72968         u16_mblen.
72969         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
72970         Remove unistr/u16-mblen.
72972 2010-01-10  Bruno Haible  <bruno@clisp.org>
72974         wchar: Fix compilation error when <wchar.h> is used from coreutils.
72975         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
72976         Reported by Brian Gough <bjg@gnu.org> and
72977         Chris Clayton <chris2553@googlemail.com> via
72978         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
72980 2010-01-09  Bruno Haible  <bruno@clisp.org>
72982         unistr/u16-to-u32: Reject invalid input.
72983         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
72984         u16_mbtouc.
72985         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
72986         Remove unistr/u16-mbtouc.
72988         unistr/u16-to-u8: Reject invalid input.
72989         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
72990         u16_mbtouc.
72991         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
72992         Remove unistr/u16-mbtouc.
72994         unistr/u8-to-u32: Reject invalid input.
72995         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
72996         u8_mbtouc.
72997         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
72998         Remove unistr/u8-mbtouc.
73000         unistr/u8-to-u16: Reject invalid input.
73001         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
73002         u8_mbtouc.
73003         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
73004         Remove unistr/u8-mbtouc.
73006 2010-01-09  Bruno Haible  <bruno@clisp.org>
73008         Tests for module 'getlogin'.
73009         * modules/getlogin-tests: New file.
73010         * tests/test-getlogin.c: New file.
73012         New module 'getlogin'.
73013         * lib/unistd.in.h (getlogin): New declaration.
73014         * lib/getlogin.c: New file.
73015         * m4/getlogin.m4: New file.
73016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
73017         HAVE_GETLOGIN.
73018         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
73019         HAVE_GETLOGIN.
73020         * modules/getlogin: New file.
73021         * doc/posix-functions/getlogin.texi: Mention the new module.
73022         Reported by John W. Eaton <jwe@gnu.org>.
73024 2010-01-09  Bruno Haible  <bruno@clisp.org>
73026         getlogin_r: Support for native Windows.
73027         * lib/getlogin_r.c: Include <windows.h>
73028         (getlogin_r): Implement for native Windows.
73029         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
73030         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
73031         via John W. Eaton <jwe@gnu.org>.
73033 2010-01-09  Bruno Haible  <bruno@clisp.org>
73035         getlogin_r: Small fixes.
73036         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
73037         succeeds.
73038         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
73039         before testing whether getlogin_r is declared. No need to set
73040         HAVE_DECL_GETLOGIN_R to 1.
73041         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
73043 2010-01-09  Bruno Haible  <bruno@clisp.org>
73045         * lib/unistd.in.h (getlogin_r): Add comment.
73047 2010-01-09  Bruno Haible  <bruno@clisp.org>
73049         Tests for module 'getlogin_r'.
73050         * modules/getlogin_r-tests: New file.
73051         * tests/test-getlogin_r.c: New file.
73053 2010-01-09  Jim Meyering  <meyering@redhat.com>
73055         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
73056         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
73057         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
73059 2010-01-08  Simon Josefsson  <simon@josefsson.org>
73061         * lib/dup2.c (rpl_dup2): Improve comment.
73063 2010-01-08  Eric Blake  <ebb9@byu.net>
73065         maint.mk: allow packages to add makefile @@ exceptions
73066         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
73067         (sc_makefile_check): Rename...
73068         (sc_makefile_at_at_check): ...to this, and use hook.
73070         dup2: work around mingw bug
73071         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
73072         Reported by Simon Josefsson.
73074 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
73076         glob: Fix C++ compilation.
73077         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
73078         C++.
73080 2010-01-07  Bruno Haible  <bruno@clisp.org>
73082         Fix indentation of wctype.in.h, broken since 2007-01-06.
73083         * lib/wctype.in.h: Fix indentation of preprocessor directives.
73085 2010-01-07  Bruno Haible  <bruno@clisp.org>
73087         mbslen: Avoid collision with system function.
73088         * lib/string.in.h [MirBSD]: Include <wchar.h>.
73089         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
73090         * m4/mbslen.m4: New file.
73091         * modules/mbslen (Files): Add it.
73092         (configure.ac): Invoke gl_MBSLEN.
73093         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
73094         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
73095         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
73096         via Ian Beckwith <ianb@erislabs.net>.
73098 2010-01-07  Bruno Haible  <bruno@clisp.org>
73100         dirent: Document the last fix.
73101         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
73103 2010-01-07  Bruno Haible  <bruno@clisp.org>
73105         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
73106         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
73107         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
73108         va_list are defined.
73109         * doc/posix-headers/stdio.texi: Document the bug of missing types.
73110         Reported by Eric Blake.
73112 2010-01-07  Bruno Haible  <bruno@clisp.org>
73114         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
73115         * modules/xlist (Depends-on): Add 'list',
73116         * modules/xoset (Depends-on): Add 'oset'.
73117         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73119 2010-01-07  Bruno Haible  <bruno@clisp.org>
73121         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
73122         * doc/posix-functions/strncasecmp.texi: Likewise.
73124 2010-01-07  Bruno Haible  <bruno@clisp.org>
73126         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
73128 2010-01-07  John W. Eaton  <jwe@octave.org>
73130         wctype: allow C++ use
73131         * lib/wctype.in.h: Add extern "C" block for C++.
73133 2010-01-06  Eric Blake  <ebb9@byu.net>
73135         maint.mk: detect incorrect GFDL usage
73136         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
73138 2010-01-06  Jim Meyering  <meyering@redhat.com>
73139         and Eric Blake  <ebb9@byu.net>
73141         maint.mk: ignore multi-line copyright in NEWS
73142         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
73144 2010-01-06  Eric Blake  <ebb9@byu.net>
73146         select: add missing dependency
73147         * modules/select-tests (Depends-on): Move sockets dependency...
73148         * modules/select (Depends-on): ...here.
73149         Reported by Ian Beckwith.
73151         doc: regenerate INSTALL
73152         * doc/INSTALL: Reflect recent autoconf update.
73153         * doc/INSTALL.ISO: Likewise.
73154         * doc/INSTALL.UTF-8: Likewise.
73156         pread: fix compilation on glibc
73157         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
73158         Reported by Ralf Wildenhues.
73160         dirent: fix test failure
73161         * lib/dirent.in.h (includes): Guarantee ino_t.
73162         Reported by Ralf Wildenhues.
73164 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
73166         linkat, renameat: avoid bad free
73167         * lib/at-func2.c (at_func2): Fix typo.
73168         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
73170 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73172         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
73173         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
73174         to avoid failure of symlink test later.
73176 2010-01-06  Eric Blake  <ebb9@byu.net>
73178         stdio, unistd: guarantee ssize_t
73179         * lib/unistd.in.h (includes): Ensure that types required by POSIX
73180         2008 are exposed when needed.
73181         * lib/stdio.in.h (includes): Likewise.
73182         Reported by Ralf Wildenhues.
73184 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
73186         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
73187         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
73188         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
73190 2010-01-06  Jim Meyering  <meyering@redhat.com>
73192         readtokens: this module *does* require xalloc.h
73193         It uses only functions that were omitted by the old syntax-check rule.
73194         * lib/readtokens.c: Include "xalloc.h" once again.
73195         * modules/readtokens (Depends-on): Add xalloc.
73196         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
73198 2010-01-05  Eric Blake  <ebb9@byu.net>
73200         maint: support 'make announcement' from a VPATH build
73201         * top/maint.mk (announcement): Look for correct NEWS file.
73203 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
73205         utimens (fdutimens): ignore a negative FD, per contract
73206         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
73207         when we have a valid file descriptor.  Otherwise, using a brand
73208         new glibc (with just-patched futimens that now fails with EBADF)
73209         would cause this function to fail with ENOSYS.
73210         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
73211         See also http://bugzilla.redhat.com/552320.
73213 2010-01-05  Eric Blake  <ebb9@byu.net>
73215         strcase: document what it provides
73216         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
73217         gnulib module.
73218         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
73219         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
73221 2010-01-05  Jim Meyering  <meyering@redhat.com>
73223         maint: remove useless inclusions of "xalloc.h"
73224         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
73225         * lib/readtokens.c: Likewise.
73226         * lib/same.c: Likewise.
73227         * modules/getloadavg (Depends-on): Remove xalloc.
73228         * modules/readtokens: Likewise.
73229         * modules/same: Likewise.
73231         maint.mk: include 4 more function names in alloca.h-checking regexp
73232         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
73233         regexp.  Before, we would give a false-positive (saying alloca.h
73234         is included unnecessarily) when the only uses involved omitted symbols.
73236         xalloc.h: use consistent formatting
73237         * lib/xalloc.h: Move declarations to start in the first column.
73239 2010-01-05  Eric Blake  <ebb9@byu.net>
73241         mkdir: avoid xalloc
73242         * lib/mkdir.c (includes): Drop unused header.
73243         Reported by John W. Eaton.
73245 2010-01-04  Jim Meyering  <meyering@redhat.com>
73247         nl_langinfo: avoid configure-time syntax error
73248         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
73249         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
73250         the empty string.  Don't let that provoke a shell syntax error.
73252         regcomp, regexec, fnmatch: avoid array bounds read error
73253         * lib/regcomp.c (build_equiv_class): From glibc:
73254         Use only the low 24 bits of a findidx return value as an index
73255         into the weights array.  Patch by Ulrich Drepper:
73256         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
73257         * lib/regexec.c (check_node_accept_bytes): Likewise.
73258         * lib/fnmatch_loop.c (FCT): Likewise.
73260         regcomp: skip collseq lookup when there are no rules
73261         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
73262         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
73264         regcomp: recognize ill-formed { } expressions
73265         * lib/regcomp.c (parse_dup_op): From glibc:
73266         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
73268         regcomp: fix typo in comment
73269         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
73270         s/satisfy/satisfies/.
73272         regcomp: sync from glibc: remove dead store
73273         * lib/regcomp.c (duplicate_node_closure): Remove useless
73274         search_duplicated_node call and dead store.
73276         regcomp: sync from glibc; always use nl_langinfo
73277         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
73278         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
73279         * modules/regex (Depends-on): Add nl_langinfo.
73281 2010-01-04  Eric Blake  <ebb9@byu.net>
73283         fdopendir: fix configure test
73284         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
73286 2010-01-01  Bruno Haible  <bruno@clisp.org>
73288         wchar: Remove unused configure check.
73289         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
73291 2010-01-01  Eric Blake  <ebb9@byu.net>
73293         headers: make check of system header explicit
73294         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
73295         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
73296         ourselves.
73297         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
73298         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
73299         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
73300         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
73301         internals.
73302         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
73303         missing.
73304         Suggested by Bruno Haible.
73306 2010-01-01  Jim Meyering  <meyering@redhat.com>
73308         ChangeLog: tweak to eliminate unnecessary copyright line
73309         * ChangeLog: Remove a copyright line that was mistakenly updated
73310         by today's update-copyright run.  Reported by Eric Blake.
73312         test-update-copyright: don't let envvar setting cause test failure
73313         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
73315 2010-01-01  Bruno Haible  <bruno@clisp.org>
73317         localename: Avoid gcc warning.
73318         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
73319         function if it is not used.
73321 2010-01-01  Jim Meyering  <meyering@redhat.com>
73323         update nearly all FSF copyright year lists to include 2010
73324         Use the same procedure as for 2009, outlined in
73325         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
73327         version-etc: set COPYRIGHT_YEAR to 2010
73328         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
73330 2009-12-31  Eric Blake  <ebb9@byu.net>
73332         doc: correct availability of cygwin 1.5.x getopt
73333         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
73334         variables.
73335         * doc/posix-functions/opterr.texi (opterr): Likewise.
73336         * doc/posix-functions/optind.texi (optind): Likewise.
73337         * doc/posix-functions/optopt.texi (optopt): Likewise.
73338         * doc/posix-functions/tzname.texi (tzname): Likewise.
73340         openat: update maintainer
73341         * modules/openat (Maintainer): Add myself.
73343         utimens: avoid shadowing warning
73344         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
73345         buffers into one, to avoid shadowing, as well as avoiding a
73346         redundant stat.
73347         Reported by Jim Meyering.
73349         test-dup2: avoid compiler warning
73350         * tests/test-dup2.c (is_inheritable): Only define if used.
73352 2010-01-01  Bruno Haible  <bruno@clisp.org>
73354         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
73355         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
73356         defined, use wctomb instead of wcrtomb.
73358 2010-01-01  Bruno Haible  <bruno@clisp.org>
73360         iconv: Reject native Solaris iconv.
73361         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
73362         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
73364 2009-12-31  Bruno Haible  <bruno@clisp.org>
73366         * tests/test-signal.c (main): Remove test of 'SIG'.
73368 2009-12-31  Bruno Haible  <bruno@clisp.org>
73370         spawn: Fix incomplete fix.
73371         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
73372         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
73373         warnings for GNULIB_POSIXCHECK again.
73374         Reported by Eric Blake.
73376 2009-12-31  Bruno Haible  <bruno@clisp.org>
73378         Avoid namespace pollution on glibc systems.
73379         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
73380         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
73381         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
73382         glibc systems.
73384 2009-12-31  Bruno Haible  <bruno@clisp.org>
73386         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
73387         (gl_REPLACE_WCHAR_H): Turn into a no-op.
73388         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
73389         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
73390         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
73391         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
73392         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
73394 2009-12-31  Bruno Haible  <bruno@clisp.org>
73396         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
73397         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
73398         afterwards.
73400 2009-12-31  Bruno Haible  <bruno@clisp.org>
73402         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
73403         SYS_UTSNAME_H.
73405 2009-12-31  Bruno Haible  <bruno@clisp.org>
73407         spawn: Fix misapplied patch.
73408         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
73409         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
73410         warnings for GNULIB_POSIXCHECK.
73412 2009-12-31  Bruno Haible  <bruno@clisp.org>
73414         times: Update after sys_times changed.
73415         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
73416         * modules/times (Files): Add it.
73417         (configure.ac): Invoke gl_FUNC_TIMES.
73419 2009-12-31  Bruno Haible  <bruno@clisp.org>
73421         Use AC_C_INLINE where necessary.
73422         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
73423         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
73424         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
73425         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
73426         * m4/mbfile.m4 (gl_MBFILE): Likewise.
73427         * m4/mbiter.m4 (gl_MBITER): Likewise.
73428         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
73429         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
73430         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
73431         * modules/u64 (configure.ac): Likewise.
73433 2009-12-31  Bruno Haible  <bruno@clisp.org>
73435         Use AC_C_INLINE instead of module 'inline' where possible.
73436         * modules/inline (Description): Clarify purpose.
73437         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
73438         * modules/count-one-bits (Depends-on): Remove inline.
73439         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
73440         * modules/openat (Depends-on): Remove inline.
73441         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
73442         instead of depending on module 'inline'.
73443         * modules/filevercmp (Depends-on, configure.ac): Likewise.
73444         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
73445         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
73446         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
73447         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
73448         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
73449         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
73450         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
73451         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
73452         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
73453         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
73454         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
73455         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
73456         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
73457         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
73458         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
73459         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
73460         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
73461         Likewise.
73462         * modules/unictype/property-ascii-hex-digit (Depends-on,
73463         configure.ac): Likewise.
73464         * modules/unictype/property-bidi-arabic-digit (Depends-on,
73465         configure.ac): Likewise.
73466         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
73467         configure.ac): Likewise.
73468         * modules/unictype/property-bidi-block-separator (Depends-on,
73469         configure.ac): Likewise.
73470         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
73471         configure.ac): Likewise.
73472         * modules/unictype/property-bidi-common-separator (Depends-on,
73473         configure.ac): Likewise.
73474         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
73475         Likewise.
73476         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
73477         configure.ac): Likewise.
73478         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
73479         configure.ac): Likewise.
73480         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
73481         configure.ac): Likewise.
73482         * modules/unictype/property-bidi-european-digit (Depends-on,
73483         configure.ac): Likewise.
73484         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
73485         configure.ac): Likewise.
73486         * modules/unictype/property-bidi-left-to-right (Depends-on,
73487         configure.ac): Likewise.
73488         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
73489         configure.ac): Likewise.
73490         * modules/unictype/property-bidi-other-neutral (Depends-on,
73491         configure.ac): Likewise.
73492         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
73493         Likewise.
73494         * modules/unictype/property-bidi-segment-separator (Depends-on,
73495         configure.ac): Likewise.
73496         * modules/unictype/property-bidi-whitespace (Depends-on,
73497         configure.ac): Likewise.
73498         * modules/unictype/property-combining (Depends-on, configure.ac):
73499         Likewise.
73500         * modules/unictype/property-composite (Depends-on, configure.ac):
73501         Likewise.
73502         * modules/unictype/property-currency-symbol (Depends-on,
73503         configure.ac): Likewise.
73504         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
73505         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
73506         Likewise.
73507         * modules/unictype/property-default-ignorable-code-point (Depends-on,
73508         configure.ac): Likewise.
73509         * modules/unictype/property-deprecated (Depends-on, configure.ac):
73510         Likewise.
73511         * modules/unictype/property-diacritic (Depends-on, configure.ac):
73512         Likewise.
73513         * modules/unictype/property-extender (Depends-on, configure.ac):
73514         Likewise.
73515         * modules/unictype/property-format-control (Depends-on, configure.ac):
73516         Likewise.
73517         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
73518         Likewise.
73519         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
73520         Likewise.
73521         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
73522         Likewise.
73523         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
73524         Likewise.
73525         * modules/unictype/property-hyphen (Depends-on, configure.ac):
73526         Likewise.
73527         * modules/unictype/property-id-continue (Depends-on, configure.ac):
73528         Likewise.
73529         * modules/unictype/property-id-start (Depends-on, configure.ac):
73530         Likewise.
73531         * modules/unictype/property-ideographic (Depends-on, configure.ac):
73532         Likewise.
73533         * modules/unictype/property-ids-binary-operator (Depends-on,
73534         configure.ac): Likewise.
73535         * modules/unictype/property-ids-trinary-operator (Depends-on,
73536         configure.ac): Likewise.
73537         * modules/unictype/property-ignorable-control (Depends-on,
73538         configure.ac): Likewise.
73539         * modules/unictype/property-iso-control (Depends-on, configure.ac):
73540         Likewise.
73541         * modules/unictype/property-join-control (Depends-on, configure.ac):
73542         Likewise.
73543         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
73544         Likewise.
73545         * modules/unictype/property-line-separator (Depends-on, configure.ac):
73546         Likewise.
73547         * modules/unictype/property-logical-order-exception (Depends-on,
73548         configure.ac): Likewise.
73549         * modules/unictype/property-lowercase (Depends-on, configure.ac):
73550         Likewise.
73551         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
73552         * modules/unictype/property-non-break (Depends-on, configure.ac):
73553         Likewise.
73554         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
73555         Likewise.
73556         * modules/unictype/property-numeric (Depends-on, configure.ac):
73557         Likewise.
73558         * modules/unictype/property-other-alphabetic (Depends-on,
73559         configure.ac): Likewise.
73560         * modules/unictype/property-other-default-ignorable-code-point
73561         (Depends-on, configure.ac): Likewise.
73562         * modules/unictype/property-other-grapheme-extend (Depends-on,
73563         configure.ac): Likewise.
73564         * modules/unictype/property-other-id-continue (Depends-on,
73565         configure.ac): Likewise.
73566         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
73567         Likewise.
73568         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
73569         Likewise.
73570         * modules/unictype/property-other-math (Depends-on, configure.ac):
73571         Likewise.
73572         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
73573         Likewise.
73574         * modules/unictype/property-paired-punctuation (Depends-on,
73575         configure.ac): Likewise.
73576         * modules/unictype/property-paragraph-separator (Depends-on,
73577         configure.ac): Likewise.
73578         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
73579         Likewise.
73580         * modules/unictype/property-pattern-white-space (Depends-on,
73581         configure.ac): Likewise.
73582         * modules/unictype/property-private-use (Depends-on, configure.ac):
73583         Likewise.
73584         * modules/unictype/property-punctuation (Depends-on, configure.ac):
73585         Likewise.
73586         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
73587         Likewise.
73588         * modules/unictype/property-radical (Depends-on, configure.ac):
73589         Likewise.
73590         * modules/unictype/property-sentence-terminal (Depends-on,
73591         configure.ac): Likewise.
73592         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
73593         Likewise.
73594         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
73595         * modules/unictype/property-terminal-punctuation (Depends-on,
73596         configure.ac): Likewise.
73597         * modules/unictype/property-titlecase (Depends-on, configure.ac):
73598         Likewise.
73599         * modules/unictype/property-unassigned-code-value (Depends-on,
73600         configure.ac): Likewise.
73601         * modules/unictype/property-unified-ideograph (Depends-on,
73602         configure.ac): Likewise.
73603         * modules/unictype/property-uppercase (Depends-on, configure.ac):
73604         Likewise.
73605         * modules/unictype/property-variation-selector (Depends-on,
73606         configure.ac): Likewise.
73607         * modules/unictype/property-white-space (Depends-on, configure.ac):
73608         Likewise.
73609         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
73610         Likewise.
73611         * modules/unictype/property-xid-start (Depends-on, configure.ac):
73612         Likewise.
73613         * modules/unictype/property-zero-width (Depends-on, configure.ac):
73614         Likewise.
73615         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
73616         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
73617         Likewise.
73619 2009-12-31  Bruno Haible  <bruno@clisp.org>
73621         Remove unnecessary AC_C_INLINE invocation.
73622         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
73623         since 2009-08-21.
73625 2009-12-31  Jim Meyering  <meyering@redhat.com>
73627         maint.mk: don't require explicit gpg_key_ID in cfg.mk
73628         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
73629         With this change, we can all remove the gpg_key_ID = ... definition
73630         from our respective cfg.mk files.
73632         maint.mk: create announcement template in ~/, not in /tmp
73633         * top/maint.mk (emit_upload_commands): Adjust.
73634         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
73635         Remove temporary file, .ci-msg.
73637 2009-12-31  Eric Blake  <ebb9@byu.net>
73639         link-warning: always build headers with link warnings
73640         * modules/arpa_inet (Makefile.am): Always build replacement
73641         header.
73642         * modules/ctype (Makefile.am): Likewise.
73643         * modules/dirent (Makefile.am): Likewise.
73644         * modules/inttypes (Makefile.am): Likewise.
73645         * modules/langinfo (Makefile.am): Likewise.
73646         * modules/locale (Makefile.am): Likewise.
73647         * modules/spawn (Makefile.am): Likewise.
73648         * modules/sys_file (Makefile.am): Likewise.
73649         * modules/sys_ioctl (Makefile.am): Likewise.
73650         * modules/sys_select (Makefile.am): Likewise.
73651         * modules/sys_socket (Makefile.am): Likewise.
73652         * modules/sys_times (Makefile.am): Likewise.
73653         * modules/sys_utsname (Makefile.am): Likewise.
73654         * modules/sys_wait (Makefile.am): Likewise.
73655         * modules/wchar (Makefile.am): Likewise.
73656         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
73657         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
73658         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
73659         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
73660         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
73661         Likewise.
73662         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
73663         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
73664         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
73665         Likewise.
73666         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
73667         Likewise.
73668         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
73669         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
73670         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
73671         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
73672         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
73673         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
73674         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
73675         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
73676         (gl_WCHAR_H_DEFAULTS): Likewise.
73678 2009-12-31  Eric Blake  <ebb9@byu.net>
73680         signal, spawn: use link warnings
73681         * lib/signal.in.h (sigset_t): Make unconditional.
73682         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
73683         (sigpending, sigprocmask, sigaction): Add link warnings.
73684         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
73685         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
73686         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
73687         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
73688         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
73689         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
73690         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
73691         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
73692         (posix_spawn_file_actions_destroy)
73693         (posix_spawn_file_actions_addopen)
73694         (posix_spawn_file_actions_addclose)
73695         (posix_spawn_file_actions_adddup2): Likewise.
73696         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
73697         * tests/test-signal.c (main): Enhance test.
73699         spawn: improve wrapper support
73700         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
73701         (gl_SPAWN_H_DEFAULTS): New defaults.
73702         * modules/spawn (Makefile.am): Substitute them.
73703         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
73704         Only declare if missing or broken.
73706         sys_times, sys_utsname: use include_next
73707         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
73708         header.
73709         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
73710         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
73711         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
73712         * modules/sys_times (Depends-on): Add include_next.
73713         (Makefile.am): Substitute additional values.
73714         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
73715         * lib/sys_times.in.h (includes): Include native header, if
73716         available.
73717         * lib/sys_utsname.in.h (includes): Likewise.
73718         * tests/test-sys_times.c (main): Enhance test.
73720         fdutimensat: revert prior patch
73721         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
73722         utimens.h.
73723         Reported by Bruno Haible.
73725 2009-12-30  Eric Blake  <ebb9@byu.net>
73727         sys_wait: drop link-warning dependency
73728         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
73729         link-warning efforts.
73730         * lib/sys_wait.in.h: Likewise.
73732         fdutimensat: remove bogus dependency
73733         * modules/fdutimensat (Depends-on): Drop inline.
73735         unistd: fix typo
73736         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
73738 2009-12-30  Bruno Haible  <bruno@clisp.org>
73740         Fix compilation error with Solaris cc.
73741         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
73742         * lib/unicase/u16-is-invariant.c: Likewise.
73743         * lib/unicase/u32-is-invariant.c: Likewise.
73744         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
73746 2009-12-30  Bruno Haible  <bruno@clisp.org>
73748         Fix test crash.
73749         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
73750         locales.
73751         Reported by Simon Josefsson <simon@josefsson.org>.
73753 2009-12-30  Bruno Haible  <bruno@clisp.org>
73755         Fix compilation error on most platforms.
73756         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
73757         Reported by Simon Josefsson <simon@josefsson.org>
73758         and Nelson H. F. Beebe <beebe@math.utah.edu>.
73760 2009-12-30  Eric Blake  <ebb9@byu.net>
73762         futimens, utimensat: work around ntfs-3g bug
73763         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
73764         a ctime bug is present, and expand workaround to cover ntfs-3g.
73765         * lib/utimens.c (fdutimens, lutimens): Likewise.
73766         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
73767         (validate_timespec): Adjust return value.
73768         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
73769         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
73770         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
73772 2009-12-29  Eric Blake  <ebb9@byu.net>
73774         link-warning: make usage consistent
73775         * modules/ctype (Depends-on): Add link-warning.
73776         (Makefile.am): Update rules accordingly.
73777         * modules/langinfo (Depends-on, Makefile.am): Likewise.
73778         * modules/locale (Depends-on, Makefile.am): Likewise.
73779         * modules/sys_file (Makefile.am): Likewise.
73780         * modules/getopt-posix (Makefile.am): Delete unused link warning
73781         efforts.
73782         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
73783         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
73784         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
73785         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
73787         stdio: remove unused variables
73788         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
73789         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
73790         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
73792         tests: test more substitute headers
73793         * modules/ctype-tests: New file.
73794         * modules/dirent-tests: Likewise.
73795         * modules/spawn-tests: Likewise.
73796         * modules/sys_file-tests: Likewise.
73797         * modules/sys_ioctl-tests: Likewise.
73798         * modules/sys_wait-tests: Likewise.
73799         * tests/test-ctype.c: Likewise.
73800         * tests/test-dirent.c: Likewise.
73801         * tests/test-spawn.c: Likewise.
73802         * tests/test-sys_file.c: Likewise.
73803         * tests/test-sys_ioctl.c: Likewise.
73804         * tests/test-sys_wait.c: Likewise.
73805         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
73806         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
73807         whether or not flock is in use.
73809         tests: remove License section from module
73810         * modules/arpa_inet-tests: Remove unneeded section.
73811         * modules/byteswap-tests: Likewise.
73812         * modules/ceilf-tests: Likewise.
73813         * modules/ceill-tests: Likewise.
73814         * modules/crypto/des-tests: Likewise.
73815         * modules/crypto/gc-arcfour-tests: Likewise.
73816         * modules/crypto/gc-arctwo-tests: Likewise.
73817         * modules/crypto/gc-des-tests: Likewise.
73818         * modules/crypto/gc-hmac-md5-tests: Likewise.
73819         * modules/crypto/gc-hmac-sha1-tests: Likewise.
73820         * modules/crypto/gc-md2-tests: Likewise.
73821         * modules/crypto/gc-md4-tests: Likewise.
73822         * modules/crypto/gc-md5-tests: Likewise.
73823         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
73824         * modules/crypto/gc-rijndael-tests: Likewise.
73825         * modules/crypto/gc-sha1-tests: Likewise.
73826         * modules/crypto/gc-tests: Likewise.
73827         * modules/crypto/md2-tests: Likewise.
73828         * modules/crypto/md4-tests: Likewise.
73829         * modules/fcntl-h-tests: Likewise.
73830         * modules/floorf-tests: Likewise.
73831         * modules/floorl-tests: Likewise.
73832         * modules/frexp-nolibm-tests: Likewise.
73833         * modules/frexp-tests: Likewise.
73834         * modules/frexpl-nolibm-tests: Likewise.
73835         * modules/frexpl-tests: Likewise.
73836         * modules/getaddrinfo-tests: Likewise.
73837         * modules/inttypes-tests: Likewise.
73838         * modules/isfinite-tests: Likewise.
73839         * modules/isinf-tests: Likewise.
73840         * modules/ldexpl-tests: Likewise.
73841         * modules/locale-tests: Likewise.
73842         * modules/math-tests: Likewise.
73843         * modules/netdb-tests: Likewise.
73844         * modules/netinet_in-tests: Likewise.
73845         * modules/printf-frexp-tests: Likewise.
73846         * modules/printf-frexpl-tests: Likewise.
73847         * modules/priv-set-tests: Likewise.
73848         * modules/random_r-tests: Likewise.
73849         * modules/round-tests: Likewise.
73850         * modules/roundf-tests: Likewise.
73851         * modules/roundl-tests: Likewise.
73852         * modules/search-tests: Likewise.
73853         * modules/select-tests: Likewise.
73854         * modules/signal-tests: Likewise.
73855         * modules/stdbool-tests: Likewise.
73856         * modules/stddef-tests: Likewise.
73857         * modules/stdint-tests: Likewise.
73858         * modules/stdio-tests: Likewise.
73859         * modules/stdlib-tests: Likewise.
73860         * modules/string-tests: Likewise.
73861         * modules/strings-tests: Likewise.
73862         * modules/sys_select-tests: Likewise.
73863         * modules/sys_socket-tests: Likewise.
73864         * modules/sys_stat-tests: Likewise.
73865         * modules/sys_time-tests: Likewise.
73866         * modules/sys_utsname-tests: Likewise.
73867         * modules/sysexits-tests: Likewise.
73868         * modules/time-tests: Likewise.
73869         * modules/trunc-tests: Likewise.
73870         * modules/truncf-tests: Likewise.
73871         * modules/truncl-tests: Likewise.
73872         * modules/tsearch-tests: Likewise.
73873         * modules/unistd-tests: Likewise.
73874         * modules/wchar-tests: Likewise.
73875         * modules/wctype-tests: Likewise.
73877         tests: fix license on several tests
73878         * tests/test-des.c: Update to GPLv3+.
73879         * tests/test-flock.c: Likewise.
73880         * tests/test-fsync.c: Likewise.
73881         * tests/test-futimens.h: Likewise.
73882         * tests/test-gc-arcfour.c: Likewise.
73883         * tests/test-gc-arctwo.c: Likewise.
73884         * tests/test-gc-des.c: Likewise.
73885         * tests/test-gc-hmac-md5.c: Likewise.
73886         * tests/test-gc-hmac-sha1.c: Likewise.
73887         * tests/test-gc-md2.c: Likewise.
73888         * tests/test-gc-md4.c: Likewise.
73889         * tests/test-gc-md5.c: Likewise.
73890         * tests/test-gc-pbkdf2-sha1.c: Likewise.
73891         * tests/test-gc-rijndael.c: Likewise.
73892         * tests/test-gc-sha1.c: Likewise.
73893         * tests/test-gc.c: Likewise.
73894         * tests/test-getcwd.c: Likewise.
73895         * tests/test-link.c: Likewise.
73896         * tests/test-link.h: Likewise.
73897         * tests/test-lutimens.h: Likewise.
73898         * tests/test-md2.c: Likewise.
73899         * tests/test-md4.c: Likewise.
73900         * tests/test-mkdir.h: Likewise.
73901         * tests/test-rename.c: Likewise.
73902         * tests/test-rename.h: Likewise.
73903         * tests/test-safe-alloc.c: Likewise.
73904         * tests/test-utimens-common.h: Likewise.
73905         * tests/test-utimens.h: Likewise.
73907         maint: sync license texts
73908         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
73909         * doc/gpl-3.0.texi: Revert copyright year update.
73910         * doc/lgpl-3.0.texi: Likewise.
73912 2009-12-29  Jim Meyering  <meyering@redhat.com>
73914         update nearly all FSF copyright year lists to include 2009
73915         The files named by the following are exempted:
73916             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
73917               test -f "$dst" && { echo "$dst"; continue; }
73918               test -d "$dst" || continue
73919               echo "$dst"/$(basename "$src")
73920             done > exempt
73921             git ls-files tests/unictype >> exempt
73922         In the remaining files, convert to all-interval notation if
73923         - there is already at least one year interval like 2000-2003
73924         - the file is maintained by me
73925         - the file is in lib/uni*/, where that style already prevails
73926         Otherwise, use update-copyright's default.
73928 2009-12-29  Simon Josefsson  <simon@josefsson.org>
73929         and Eric Blake  <ebb9@byu.net>
73931         tests: don't require debug system() to pass
73932         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
73933         * tests/test-rmdir.h (test_rmdir_func): Likewise.
73934         * tests/test-unlink.h (test_unlink_func): Likewise.
73935         * tests/test-fstatat.c (main): ...into callers.
73936         * tests/test-lstat.c (main): Likewise.
73937         * tests/test-rmdir.c (main): Likewise.
73938         * tests/test-unlink.c (main): Likewise.
73939         * tests/test-unlinkat.c (main): Likewise.
73940         * tests/test-areadlink-with-size.c (main): Don't require a
73941         debug-only system call to pass, aiding cross-testing to mingw.
73942         * tests/test-areadlink.c (main): Likewise.
73943         * tests/test-areadlinkat-with-size.c (main): Likewise.
73944         * tests/test-areadlinkat.c (main): Likewise.
73945         * tests/test-canonicalize-lgpl.c (main): Likewise.
73946         * tests/test-canonicalize.c (main): Likewise.
73947         * tests/test-chown.c (main): Likewise.
73948         * tests/test-fchownat.c (main): Likewise.
73949         * tests/test-lchown.c (main): Likewise.
73950         * tests/test-fdutimensat.c (main): Likewise.
73951         * tests/test-futimens.c (main): Likewise.
73952         * tests/test-link.c (main): Likewise.
73953         * tests/test-linkat.c (main): Likewise.
73954         * tests/test-mkdir.c (main): Likewise.
73955         * tests/test-mkdirat.c (main): Likewise.
73956         * tests/test-mkfifo.c (main): Likewise.
73957         * tests/test-mkfifoat.c (main): Likewise.
73958         * tests/test-mknod.c (main): Likewise.
73959         * tests/test-readlink.c (main): Likewise.
73960         * tests/test-remove.c (main): Likewise.
73961         * tests/test-rename.c (main): Likewise.
73962         * tests/test-renameat.c (main): Likewise.
73963         * tests/test-symlink.c (main): Likewise.
73964         * tests/test-symlinkat.c (main): Likewise.
73965         * tests/test-utimens.c (main): Likewise.
73966         * tests/test-utimensat.c (main): Likewise.
73968 2009-12-29  Simon Josefsson  <simon@josefsson.org>
73970         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
73971         on $(UNUSED_PARAMETER_H) to avoid build failure.
73973 2009-12-28  Jim Meyering  <meyering@redhat.com>
73975         update-copyright: you may specify a max. line length other than 72
73976         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
73978         maint: use consistent FSF copyright line syntax
73979         * lib/posixtm.c: Add missing comma in FSF copyright line.
73980         * lib/posixtm.h: Likewise.
73981         * lib/getugroups.c: Add missing ", Inc.".
73983         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
73984         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
73985         FSF copyright line.  Remove trailing blanks.
73987 2009-12-28  Eric Blake  <ebb9@byu.net>
73989         test-dup2: reduce dependencies
73990         * modules/cloexec (Configure.ac): Set witness.
73991         * modules/dup2-tests (Depends-on): Drop cloexec.
73992         * tests/test-dup2.c (main): Skip portion of test if cloexec module
73993         not present.
73994         Suggested by Bruno Haible.
73996 2009-12-26  Bruno Haible  <bruno@clisp.org>
73998         Remove an unneeded dependency.
73999         * modules/fseterr (Depends-on): Remove dup2.
74001 2009-12-26  Eric Blake  <ebb9@byu.net>
74003         tests: use macros.h in more places
74004         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
74005         (ASSERT_STREAM): Provide default of stderr.
74006         * tests/test-dirent-safer.c: Include macros.h, using alternate
74007         stream for assertions.
74008         * tests/test-dup-safer.c: Likewise.
74009         * tests/test-freopen-safer.c: Likewise.
74010         * tests/test-getopt.c: Likewise.
74011         * tests/test-openat-safer.c: Likewise.
74012         * tests/test-pipe.c: Likewise.
74013         * tests/test-popen-safer.c: Likewise.
74014         * modules/dirent-safer-tests (Files): Include macros.h.
74015         * modules/unistd-safer-tests (Files): Likewise.
74016         * modules/freopen-safer-tests (Files): Likewise.
74017         * modules/getopt-posix-tests (Files): Likewise.
74018         * modules/openat-safer-tests (Files): Likewise.
74019         * modules/pipe-tests (Files): Likewise.
74021 2009-12-26  Bruno Haible  <bruno@clisp.org>
74023         javacomp-script: Portability fix.
74024         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
74025         that it also works on Solaris.
74027 2009-12-26  Bruno Haible  <bruno@clisp.org>
74029         localename: Fix storage allocation of gl_locale_name_thread's result.
74030         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
74031         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
74032         all platforms that have 'uselocale'.
74033         (gl_locale_name_thread_unsafe): New function, extracted from
74034         gl_locale_name_thread.
74035         (gl_locale_name_thread): Call struniq on all platforms that have
74036         'uselocale'.
74037         * tests/test-localename.c (test_locale_name_thread): Check that the
74038         resulting strings are permanently allocated.
74039         * modules/localename-tests (Depends-on): Add strdup.
74041 2009-12-26  Bruno Haible  <bruno@clisp.org>
74043         * tests/test-localename.c (categories): Fill in the strings.
74045 2009-12-26  Jim Meyering  <meyering@redhat.com>
74047         isdir: complete the removal of m4/isdir.m4
74048         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
74050         isdir: clean up, since at least grep still uses it
74051         * lib/isdir.c: Include "isdir.h".
74052         (S_ISDIR): Remove now-unneeded definition.
74053         * modules/isdir (Files): Add lib/isdir.h.
74054         * lib/isdir.h: New file, with declaration.
74055         * m4/isdir.m4: Remove file -- unneeded.
74057 2009-12-25  Bruno Haible  <bruno@clisp.org>
74059         selinux-h: Make generated .h files standalone.
74060         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
74061         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
74062         * lib/se-selinux.in.h: Likewise.
74063         * modules/selinux-h (Depends-on): Add unused-parameter.
74064         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
74065         selinux/selinux.h and selinux/context.h.
74066         Suggested by Eric Blake.
74068 2009-12-25  Bruno Haible  <bruno@clisp.org>
74070         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
74071         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
74072         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
74073         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
74074         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
74076 2009-12-24  Bruno Haible  <bruno@clisp.org>
74078         openat: Fix warning.
74079         * lib/openat-proc.c: Include <unistd.h>.
74081 2009-12-24  Bruno Haible  <bruno@clisp.org>
74083         New module 'unused-parameter'.
74084         * build-aux/unused-parameter.h: New file, extracted from earlier
74085         gnulib-common.m4.
74086         * modules/unused-parameter: New file.
74087         * lib/unistr.h: Include unused-parameter.h.
74088         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
74089         _GL_UNUSED.
74090         * modules/unistr/base (Depends-on): Add unused-parameter.
74092 2009-12-24  Bruno Haible  <bruno@clisp.org>
74094         Add missing dependencies to 'extensions' module.
74095         * m4/extensions.m4: Add comment.
74096         * modules/accept4 (Depends-on): Add extensions.
74097         * modules/dup3 (Depends-on): Likewise.
74098         * modules/fcntl (Depends-on): Likewise.
74099         * modules/futimens (Depends-on): Likewise.
74100         * modules/mknod (Depends-on): Likewise.
74101         * modules/pipe2 (Depends-on): Likewise.
74102         * modules/stat-time (Depends-on): Likewise.
74103         * modules/strcasestr-simple (Depends-on): Likewise.
74104         * modules/strsignal (Depends-on): Likewise.
74105         * modules/utimensat (Depends-on): Likewise.
74106         * modules/localcharset (Depends-on): Likewise. Needed because of
74107         gl_FCNTL_O_FLAGS.
74108         * modules/wcrtomb (Depends-on): Likewise. Needed because of
74109         AC_TYPE_MBSTATE_T.
74110         * modules/wcsnrtombs (Depends-on): Likewise.
74111         * modules/wcsrtombs (Depends-on): Likewise.
74113 2009-12-24  Bruno Haible  <bruno@clisp.org>
74115         binary-io: Avoid gcc warning due to SET_BINARY.
74116         * lib/binary-io.h (SET_BINARY): Cast the result to void.
74117         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
74119 2009-12-24  Bruno Haible  <bruno@clisp.org>
74121         Avoid future namespace pollution on glibc systems.
74122         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
74123         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
74124         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
74125         glibc systems.
74127 2009-12-24  Bruno Haible  <bruno@clisp.org>
74129         Refactor common macros used in tests.
74130         * tests/macros.h: New file.
74131         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
74132         and/or <stdlib.h>, if appropriate.
74133         (ASSERT, SIZEOF): Remove macros.
74134         * tests/test-areadlink-with-size.c: Likewise.
74135         * tests/test-areadlinkat.c: Likewise.
74136         * tests/test-areadlinkat-with-size.c: Likewise.
74137         * tests/test-argmatch.c: Likewise.
74138         * tests/test-argv-iter.c: Likewise.
74139         * tests/test-array-mergesort.c: Likewise.
74140         * tests/test-array_list.c: Likewise.
74141         * tests/test-array_oset.c: Likewise.
74142         * tests/test-avltree_list.c: Likewise.
74143         * tests/test-avltree_oset.c: Likewise.
74144         * tests/test-avltreehash_list.c: Likewise.
74145         * tests/test-base64.c: Likewise.
74146         * tests/test-binary-io.c: Likewise.
74147         * tests/test-bitrotate.c: Likewise.
74148         * tests/test-btowc.c: Likewise.
74149         * tests/test-byteswap.c: Likewise.
74150         * tests/test-c-ctype.c: Likewise.
74151         * tests/test-c-stack.c: Likewise.
74152         * tests/test-c-strcasecmp.c: Likewise.
74153         * tests/test-c-strcasestr.c: Likewise.
74154         * tests/test-c-strncasecmp.c: Likewise.
74155         * tests/test-c-strstr.c: Likewise.
74156         * tests/test-canonicalize-lgpl.c: Likewise.
74157         * tests/test-canonicalize.c: Likewise.
74158         * tests/test-carray_list.c: Likewise.
74159         * tests/test-ceilf1.c: Likewise.
74160         * tests/test-ceilf2.c: Likewise.
74161         * tests/test-ceill.c: Likewise.
74162         * tests/test-chown.c: Likewise.
74163         * tests/test-cloexec.c: Likewise.
74164         * tests/test-copy-acl.c: Likewise.
74165         * tests/test-copy-file.c: Likewise.
74166         * tests/test-count-one-bits.c: Likewise.
74167         * tests/test-dprintf-posix.c: Likewise.
74168         * tests/test-dup2.c: Likewise.
74169         * tests/test-dup3.c: Likewise.
74170         * tests/test-duplocale.c: Likewise.
74171         * tests/test-fbufmode.c: Likewise.
74172         * tests/test-fchdir.c: Likewise.
74173         * tests/test-fchownat.c: Likewise.
74174         * tests/test-fcntl-safer.c: Likewise.
74175         * tests/test-fcntl.c: Likewise.
74176         * tests/test-fdopendir.c: Likewise.
74177         * tests/test-fdutimensat.c: Likewise.
74178         * tests/test-fflush2.c: Likewise.
74179         * tests/test-file-has-acl.c: Likewise.
74180         * tests/test-filevercmp.c: Likewise.
74181         * tests/test-flock.c: Likewise.
74182         * tests/test-floorf1.c: Likewise.
74183         * tests/test-floorf2.c: Likewise.
74184         * tests/test-floorl.c: Likewise.
74185         * tests/test-fnmatch.c: Likewise.
74186         * tests/test-fopen.h: Likewise.
74187         * tests/test-fpending.c: Likewise.
74188         * tests/test-fprintf-posix.c: Likewise.
74189         * tests/test-fpurge.c: Likewise.
74190         * tests/test-freadable.c: Likewise.
74191         * tests/test-freadahead.c: Likewise.
74192         * tests/test-freading.c: Likewise.
74193         * tests/test-freadptr.c: Likewise.
74194         * tests/test-freadptr2.c: Likewise.
74195         * tests/test-freadseek.c: Likewise.
74196         * tests/test-freopen.c: Likewise.
74197         * tests/test-frexp.c: Likewise.
74198         * tests/test-frexpl.c: Likewise.
74199         * tests/test-fseek.c: Likewise.
74200         * tests/test-fseeko.c: Likewise.
74201         * tests/test-fstatat.c: Likewise.
74202         * tests/test-fstrcmp.c: Likewise.
74203         * tests/test-fsync.c: Likewise.
74204         * tests/test-ftell.c: Likewise.
74205         * tests/test-ftello.c: Likewise.
74206         * tests/test-func.c: Likewise.
74207         * tests/test-futimens.c: Likewise.
74208         * tests/test-fwritable.c: Likewise.
74209         * tests/test-fwriting.c: Likewise.
74210         * tests/test-getcwd.c: Likewise.
74211         * tests/test-getdate.c: Likewise.
74212         * tests/test-getdelim.c: Likewise.
74213         * tests/test-getdtablesize.c: Likewise.
74214         * tests/test-getgroups.c: Likewise.
74215         * tests/test-getline.c: Likewise.
74216         * tests/test-getndelim2.c: Likewise.
74217         * tests/test-glob.c: Likewise.
74218         * tests/test-hash.c: Likewise.
74219         * tests/test-i-ring.c: Likewise.
74220         * tests/test-iconv-utf.c: Likewise.
74221         * tests/test-iconv.c: Likewise.
74222         * tests/test-idpriv-drop.c: Likewise.
74223         * tests/test-idpriv-droptemp.c: Likewise.
74224         * tests/test-inet_ntop.c: Likewise.
74225         * tests/test-inet_pton.c: Likewise.
74226         * tests/test-isblank.c: Likewise.
74227         * tests/test-isfinite.c: Likewise.
74228         * tests/test-isinf.c: Likewise.
74229         * tests/test-isnan.c: Likewise.
74230         * tests/test-isnand.h: Likewise.
74231         * tests/test-isnanf.h: Likewise.
74232         * tests/test-isnanl.h: Likewise.
74233         * tests/test-lchown.c: Likewise.
74234         * tests/test-ldexpl.c: Likewise.
74235         * tests/test-link.c: Likewise.
74236         * tests/test-linkat.c: Likewise.
74237         * tests/test-linked_list.c: Likewise.
74238         * tests/test-linkedhash_list.c: Likewise.
74239         * tests/test-localename.c: Likewise.
74240         * tests/test-lseek.c: Likewise.
74241         * tests/test-lstat.c: Likewise.
74242         * tests/test-mbmemcasecmp.c: Likewise.
74243         * tests/test-mbmemcasecoll.c: Likewise.
74244         * tests/test-mbrtowc.c: Likewise.
74245         * tests/test-mbscasecmp.c: Likewise.
74246         * tests/test-mbscasestr1.c: Likewise.
74247         * tests/test-mbscasestr2.c: Likewise.
74248         * tests/test-mbscasestr3.c: Likewise.
74249         * tests/test-mbscasestr4.c: Likewise.
74250         * tests/test-mbschr.c: Likewise.
74251         * tests/test-mbscspn.c: Likewise.
74252         * tests/test-mbsinit.c: Likewise.
74253         * tests/test-mbsncasecmp.c: Likewise.
74254         * tests/test-mbsnrtowcs.c: Likewise.
74255         * tests/test-mbspbrk.c: Likewise.
74256         * tests/test-mbspcasecmp.c: Likewise.
74257         * tests/test-mbsrchr.c: Likewise.
74258         * tests/test-mbsrtowcs.c: Likewise.
74259         * tests/test-mbsspn.c: Likewise.
74260         * tests/test-mbsstr1.c: Likewise.
74261         * tests/test-mbsstr2.c: Likewise.
74262         * tests/test-mbsstr3.c: Likewise.
74263         * tests/test-memchr.c: Likewise.
74264         * tests/test-memchr2.c: Likewise.
74265         * tests/test-memcmp.c: Likewise.
74266         * tests/test-memmem.c: Likewise.
74267         * tests/test-memrchr.c: Likewise.
74268         * tests/test-mkdir.c: Likewise.
74269         * tests/test-mkdirat.c: Likewise.
74270         * tests/test-mkfifo.c: Likewise.
74271         * tests/test-mkfifoat.c: Likewise.
74272         * tests/test-mknod.c: Likewise.
74273         * tests/test-nanosleep.c: Likewise.
74274         * tests/test-nl_langinfo.c: Likewise.
74275         * tests/test-obstack-printf.c: Likewise.
74276         * tests/test-open.c: Likewise.
74277         * tests/test-openat.c: Likewise.
74278         * tests/test-pipe-filter-gi1.c: Likewise.
74279         * tests/test-pipe-filter-gi2-main.c: Likewise.
74280         * tests/test-pipe-filter-ii1.c: Likewise.
74281         * tests/test-pipe-filter-ii2-main.c: Likewise.
74282         * tests/test-pipe2.c: Likewise.
74283         * tests/test-popen.h: Likewise.
74284         * tests/test-posixtm.c: Likewise.
74285         * tests/test-pread.c: Likewise.
74286         * tests/test-printf-frexp.c: Likewise.
74287         * tests/test-printf-frexpl.c: Likewise.
74288         * tests/test-printf-posix.c: Likewise.
74289         * tests/test-priv-set.c: Likewise.
74290         * tests/test-quotearg.c: Likewise.
74291         * tests/test-random_r.c: Likewise.
74292         * tests/test-rawmemchr.c: Likewise.
74293         * tests/test-rbtree_list.c: Likewise.
74294         * tests/test-rbtree_oset.c: Likewise.
74295         * tests/test-rbtreehash_list.c: Likewise.
74296         * tests/test-readlink.c: Likewise.
74297         * tests/test-remove.c: Likewise.
74298         * tests/test-rename.c: Likewise.
74299         * tests/test-renameat.c: Likewise.
74300         * tests/test-rmdir.c: Likewise.
74301         * tests/test-round1.c: Likewise.
74302         * tests/test-roundf1.c: Likewise.
74303         * tests/test-roundl.c: Likewise.
74304         * tests/test-safe-alloc.c: Likewise.
74305         * tests/test-sameacls.c: Likewise.
74306         * tests/test-set-mode-acl.c: Likewise.
74307         * tests/test-setenv.c: Likewise.
74308         * tests/test-sigaction.c: Likewise.
74309         * tests/test-signbit.c: Likewise.
74310         * tests/test-sleep.c: Likewise.
74311         * tests/test-snprintf-posix.c: Likewise.
74312         * tests/test-snprintf.c: Likewise.
74313         * tests/test-sprintf-posix.c: Likewise.
74314         * tests/test-stat-time.c: Likewise.
74315         * tests/test-stat.c: Likewise.
74316         * tests/test-strcasestr.c: Likewise.
74317         * tests/test-strchrnul.c: Likewise.
74318         * tests/test-strerror.c: Likewise.
74319         * tests/test-striconv.c: Likewise.
74320         * tests/test-striconveh.c: Likewise.
74321         * tests/test-striconveha.c: Likewise.
74322         * tests/test-strsignal.c: Likewise.
74323         * tests/test-strstr.c: Likewise.
74324         * tests/test-strtod.c: Likewise.
74325         * tests/test-strverscmp.c: Likewise.
74326         * tests/test-symlink.c: Likewise.
74327         * tests/test-symlinkat.c: Likewise.
74328         * tests/test-trunc1.c: Likewise.
74329         * tests/test-trunc2.c: Likewise.
74330         * tests/test-truncf1.c: Likewise.
74331         * tests/test-truncf2.c: Likewise.
74332         * tests/test-truncl.c: Likewise.
74333         * tests/test-uname.c: Likewise.
74334         * tests/test-unlink.c: Likewise.
74335         * tests/test-unlinkat.c: Likewise.
74336         * tests/test-unsetenv.c: Likewise.
74337         * tests/test-usleep.c: Likewise.
74338         * tests/test-utimens.c: Likewise.
74339         * tests/test-utimensat.c: Likewise.
74340         * tests/test-vasnprintf-posix.c: Likewise.
74341         * tests/test-vasnprintf-posix2.c: Likewise.
74342         * tests/test-vasnprintf.c: Likewise.
74343         * tests/test-vasprintf-posix.c: Likewise.
74344         * tests/test-vasprintf.c: Likewise.
74345         * tests/test-vdprintf-posix.c: Likewise.
74346         * tests/test-vfprintf-posix.c: Likewise.
74347         * tests/test-vprintf-posix.c: Likewise.
74348         * tests/test-vsnprintf-posix.c: Likewise.
74349         * tests/test-vsnprintf.c: Likewise.
74350         * tests/test-vsprintf-posix.c: Likewise.
74351         * tests/test-wcrtomb.c: Likewise.
74352         * tests/test-wcsnrtombs.c: Likewise.
74353         * tests/test-wcsrtombs.c: Likewise.
74354         * tests/test-wctype.c: Likewise.
74355         * tests/test-wcwidth.c: Likewise.
74356         * tests/test-xfprintf-posix.c: Likewise.
74357         * tests/test-xmemdup0.c: Likewise.
74358         * tests/test-xprintf-posix.c: Likewise.
74359         * tests/test-xvasprintf.c: Likewise.
74360         * tests/unicase/test-locale-language.c: Likewise.
74361         * tests/unicase/test-mapping-part1.h: Likewise.
74362         * tests/unicase/test-predicate-part1.h: Likewise.
74363         * tests/unicase/test-u8-casecmp.c: Likewise.
74364         * tests/unicase/test-u8-casecoll.c: Likewise.
74365         * tests/unicase/test-u8-casefold.c: Likewise.
74366         * tests/unicase/test-u8-is-cased.c: Likewise.
74367         * tests/unicase/test-u8-is-casefolded.c: Likewise.
74368         * tests/unicase/test-u8-is-lowercase.c: Likewise.
74369         * tests/unicase/test-u8-is-titlecase.c: Likewise.
74370         * tests/unicase/test-u8-is-uppercase.c: Likewise.
74371         * tests/unicase/test-u8-tolower.c: Likewise.
74372         * tests/unicase/test-u8-totitle.c: Likewise.
74373         * tests/unicase/test-u8-toupper.c: Likewise.
74374         * tests/unicase/test-u16-casecmp.c: Likewise.
74375         * tests/unicase/test-u16-casecoll.c: Likewise.
74376         * tests/unicase/test-u16-casefold.c: Likewise.
74377         * tests/unicase/test-u16-is-cased.c: Likewise.
74378         * tests/unicase/test-u16-is-casefolded.c: Likewise.
74379         * tests/unicase/test-u16-is-lowercase.c: Likewise.
74380         * tests/unicase/test-u16-is-titlecase.c: Likewise.
74381         * tests/unicase/test-u16-is-uppercase.c: Likewise.
74382         * tests/unicase/test-u16-tolower.c: Likewise.
74383         * tests/unicase/test-u16-totitle.c: Likewise.
74384         * tests/unicase/test-u16-toupper.c: Likewise.
74385         * tests/unicase/test-u32-casecmp.c: Likewise.
74386         * tests/unicase/test-u32-casecoll.c: Likewise.
74387         * tests/unicase/test-u32-casefold.c: Likewise.
74388         * tests/unicase/test-u32-is-cased.c: Likewise.
74389         * tests/unicase/test-u32-is-casefolded.c: Likewise.
74390         * tests/unicase/test-u32-is-lowercase.c: Likewise.
74391         * tests/unicase/test-u32-is-titlecase.c: Likewise.
74392         * tests/unicase/test-u32-is-uppercase.c: Likewise.
74393         * tests/unicase/test-u32-tolower.c: Likewise.
74394         * tests/unicase/test-u32-totitle.c: Likewise.
74395         * tests/unicase/test-u32-toupper.c: Likewise.
74396         * tests/unicase/test-ulc-casecmp.c: Likewise.
74397         * tests/unicase/test-ulc-casecoll.c: Likewise.
74398         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
74399         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
74400         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
74401         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
74402         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
74403         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
74404         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
74405         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
74406         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
74407         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
74408         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
74409         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
74410         * tests/unictype/test-bidi_byname.c: Likewise.
74411         * tests/unictype/test-bidi_name.c: Likewise.
74412         * tests/unictype/test-bidi_of.c: Likewise.
74413         * tests/unictype/test-bidi_test.c: Likewise.
74414         * tests/unictype/test-block_list.c: Likewise.
74415         * tests/unictype/test-block_of.c: Likewise.
74416         * tests/unictype/test-block_test.c: Likewise.
74417         * tests/unictype/test-categ_and.c: Likewise.
74418         * tests/unictype/test-categ_and_not.c: Likewise.
74419         * tests/unictype/test-categ_byname.c: Likewise.
74420         * tests/unictype/test-categ_name.c: Likewise.
74421         * tests/unictype/test-categ_none.c: Likewise.
74422         * tests/unictype/test-categ_of.c: Likewise.
74423         * tests/unictype/test-categ_or.c: Likewise.
74424         * tests/unictype/test-categ_test_withtable.c: Likewise.
74425         * tests/unictype/test-combining.c: Likewise.
74426         * tests/unictype/test-decdigit.c: Likewise.
74427         * tests/unictype/test-digit.c: Likewise.
74428         * tests/unictype/test-mirror.c: Likewise.
74429         * tests/unictype/test-numeric.c: Likewise.
74430         * tests/unictype/test-pr_byname.c: Likewise.
74431         * tests/unictype/test-pr_test.c: Likewise.
74432         * tests/unictype/test-predicate-part1.h: Likewise.
74433         * tests/unictype/test-scripts.c: Likewise.
74434         * tests/unictype/test-sy_c_ident.c: Likewise.
74435         * tests/unictype/test-sy_java_ident.c: Likewise.
74436         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
74437         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
74438         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
74439         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
74440         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
74441         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
74442         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
74443         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
74444         * tests/uninorm/test-canonical-decomposition.c: Likewise.
74445         * tests/uninorm/test-compat-decomposition.c: Likewise.
74446         * tests/uninorm/test-composition.c: Likewise.
74447         * tests/uninorm/test-decomposing-form.c: Likewise.
74448         * tests/uninorm/test-decomposition.c: Likewise.
74449         * tests/uninorm/test-u8-nfc.c: Likewise.
74450         * tests/uninorm/test-u8-nfd.c: Likewise.
74451         * tests/uninorm/test-u8-nfkc.c: Likewise.
74452         * tests/uninorm/test-u8-nfkd.c: Likewise.
74453         * tests/uninorm/test-u8-normcmp.c: Likewise.
74454         * tests/uninorm/test-u8-normcoll.c: Likewise.
74455         * tests/uninorm/test-u16-nfc.c: Likewise.
74456         * tests/uninorm/test-u16-nfd.c: Likewise.
74457         * tests/uninorm/test-u16-nfkc.c: Likewise.
74458         * tests/uninorm/test-u16-nfkd.c: Likewise.
74459         * tests/uninorm/test-u16-normcmp.c: Likewise.
74460         * tests/uninorm/test-u16-normcoll.c: Likewise.
74461         * tests/uninorm/test-u32-nfc.c: Likewise.
74462         * tests/uninorm/test-u32-nfd.c: Likewise.
74463         * tests/uninorm/test-u32-nfkc.c: Likewise.
74464         * tests/uninorm/test-u32-nfkd.c: Likewise.
74465         * tests/uninorm/test-u32-normalize-big.c: Likewise.
74466         * tests/uninorm/test-u32-normcmp.c: Likewise.
74467         * tests/uninorm/test-u32-normcoll.c: Likewise.
74468         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
74469         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
74470         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
74471         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
74472         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
74473         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
74474         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
74475         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
74476         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
74477         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
74478         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
74479         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
74480         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
74481         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
74482         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
74483         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
74484         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
74485         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
74486         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
74487         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
74488         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
74489         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
74490         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
74491         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
74492         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
74493         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
74494         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
74495         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
74496         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
74497         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
74498         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
74499         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
74500         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
74501         * tests/uniwidth/test-u8-strwidth.c: Likewise.
74502         * tests/uniwidth/test-u8-width.c: Likewise.
74503         * tests/uniwidth/test-u16-strwidth.c: Likewise.
74504         * tests/uniwidth/test-u16-width.c: Likewise.
74505         * tests/uniwidth/test-u32-strwidth.c: Likewise.
74506         * tests/uniwidth/test-u32-width.c: Likewise.
74507         * tests/uniwidth/test-uc_width.c: Likewise.
74508         * tests/uniwidth/test-uc_width2.c: Likewise.
74509         * modules/acl-tests (Files): Add tests/macros.h.
74510         * modules/areadlink-tests (Files): Likewise.
74511         * modules/areadlink-with-size-tests (Files): Likewise.
74512         * modules/areadlinkat-tests (Files): Likewise.
74513         * modules/areadlinkat-with-size-tests (Files): Likewise.
74514         * modules/argmatch-tests (Files): Likewise.
74515         * modules/argv-iter-tests (Files): Likewise.
74516         * modules/array-list-tests (Files): Likewise.
74517         * modules/array-mergesort-tests (Files): Likewise.
74518         * modules/array-oset-tests (Files): Likewise.
74519         * modules/avltree-list-tests (Files): Likewise.
74520         * modules/avltree-oset-tests (Files): Likewise.
74521         * modules/avltreehash-list-tests (Files): Likewise.
74522         * modules/base64-tests (Files): Likewise.
74523         * modules/binary-io-tests (Files): Likewise.
74524         * modules/bitrotate-tests (Files): Likewise.
74525         * modules/btowc-tests (Files): Likewise.
74526         * modules/byteswap-tests (Files): Likewise.
74527         * modules/c-ctype-tests (Files): Likewise.
74528         * modules/c-stack-tests (Files): Likewise.
74529         * modules/c-strcase-tests (Files): Likewise.
74530         * modules/c-strcasestr-tests (Files): Likewise.
74531         * modules/c-strstr-tests (Files): Likewise.
74532         * modules/canonicalize-lgpl-tests (Files): Likewise.
74533         * modules/canonicalize-tests (Files): Likewise.
74534         * modules/carray-list-tests (Files): Likewise.
74535         * modules/ceilf-tests (Files): Likewise.
74536         * modules/ceill-tests (Files): Likewise.
74537         * modules/chown-tests (Files): Likewise.
74538         * modules/cloexec-tests (Files): Likewise.
74539         * modules/copy-file-tests (Files): Likewise.
74540         * modules/count-one-bits-tests (Files): Likewise.
74541         * modules/dprintf-posix-tests (Files): Likewise.
74542         * modules/dup2-tests (Files): Likewise.
74543         * modules/dup3-tests (Files): Likewise.
74544         * modules/duplocale-tests (Files): Likewise.
74545         * modules/fbufmode-tests (Files): Likewise.
74546         * modules/fchdir-tests (Files): Likewise.
74547         * modules/fcntl-safer-tests (Files): Likewise.
74548         * modules/fcntl-tests (Files): Likewise.
74549         * modules/fdopendir-tests (Files): Likewise.
74550         * modules/fdutimensat-tests (Files): Likewise.
74551         * modules/fflush-tests (Files): Likewise.
74552         * modules/filevercmp-tests (Files): Likewise.
74553         * modules/flock-tests (Files): Likewise.
74554         * modules/floorf-tests (Files): Likewise.
74555         * modules/floorl-tests (Files): Likewise.
74556         * modules/fnmatch-tests (Files): Likewise.
74557         * modules/fopen-safer-tests (Files): Likewise.
74558         * modules/fopen-tests (Files): Likewise.
74559         * modules/fpending-tests (Files): Likewise.
74560         * modules/fprintf-posix-tests (Files): Likewise.
74561         * modules/fpurge-tests (Files): Likewise.
74562         * modules/freadable-tests (Files): Likewise.
74563         * modules/freadahead-tests (Files): Likewise.
74564         * modules/freading-tests (Files): Likewise.
74565         * modules/freadptr-tests (Files): Likewise.
74566         * modules/freadseek-tests (Files): Likewise.
74567         * modules/freopen-tests (Files): Likewise.
74568         * modules/frexp-nolibm-tests (Files): Likewise.
74569         * modules/frexp-tests (Files): Likewise.
74570         * modules/frexpl-nolibm-tests (Files): Likewise.
74571         * modules/frexpl-tests (Files): Likewise.
74572         * modules/fseek-tests (Files): Likewise.
74573         * modules/fseeko-tests (Files): Likewise.
74574         * modules/fstrcmp-tests (Files): Likewise.
74575         * modules/fsync-tests (Files): Likewise.
74576         * modules/ftell-tests (Files): Likewise.
74577         * modules/ftello-tests (Files): Likewise.
74578         * modules/func-tests (Files): Likewise.
74579         * modules/futimens-tests (Files): Likewise.
74580         * modules/fwritable-tests (Files): Likewise.
74581         * modules/fwriting-tests (Files): Likewise.
74582         * modules/getcwd-tests (Files): Likewise.
74583         * modules/getdate-tests (Files): Likewise.
74584         * modules/getdelim-tests (Files): Likewise.
74585         * modules/getdtablesize-tests (Files): Likewise.
74586         * modules/getgroups-tests (Files): Likewise.
74587         * modules/getline-tests (Files): Likewise.
74588         * modules/getndelim2-tests (Files): Likewise.
74589         * modules/glob-tests (Files): Likewise.
74590         * modules/hash-tests (Files): Likewise.
74591         * modules/i-ring-tests (Files): Likewise.
74592         * modules/iconv-tests (Files): Likewise.
74593         * modules/iconv_open-utf-tests (Files): Likewise.
74594         * modules/idpriv-drop-tests (Files): Likewise.
74595         * modules/idpriv-droptemp-tests (Files): Likewise.
74596         * modules/inet_ntop-tests (Files): Likewise.
74597         * modules/inet_pton-tests (Files): Likewise.
74598         * modules/isblank-tests (Files): Likewise.
74599         * modules/isfinite-tests (Files): Likewise.
74600         * modules/isinf-tests (Files): Likewise.
74601         * modules/isnan-tests (Files): Likewise.
74602         * modules/isnand-nolibm-tests (Files): Likewise.
74603         * modules/isnand-tests (Files): Likewise.
74604         * modules/isnanf-nolibm-tests (Files): Likewise.
74605         * modules/isnanf-tests (Files): Likewise.
74606         * modules/isnanl-nolibm-tests (Files): Likewise.
74607         * modules/isnanl-tests (Files): Likewise.
74608         * modules/lchown-tests (Files): Likewise.
74609         * modules/ldexpl-tests (Files): Likewise.
74610         * modules/link-tests (Files): Likewise.
74611         * modules/linkat-tests (Files): Likewise.
74612         * modules/linked-list-tests (Files): Likewise.
74613         * modules/linkedhash-list-tests (Files): Likewise.
74614         * modules/localename-tests (Files): Likewise.
74615         * modules/lseek-tests (Files): Likewise.
74616         * modules/lstat-tests (Files): Likewise.
74617         * modules/mbmemcasecmp-tests (Files): Likewise.
74618         * modules/mbmemcasecoll-tests (Files): Likewise.
74619         * modules/mbrtowc-tests (Files): Likewise.
74620         * modules/mbscasecmp-tests (Files): Likewise.
74621         * modules/mbscasestr-tests (Files): Likewise.
74622         * modules/mbschr-tests (Files): Likewise.
74623         * modules/mbscspn-tests (Files): Likewise.
74624         * modules/mbsinit-tests (Files): Likewise.
74625         * modules/mbsncasecmp-tests (Files): Likewise.
74626         * modules/mbsnrtowcs-tests (Files): Likewise.
74627         * modules/mbspbrk-tests (Files): Likewise.
74628         * modules/mbspcasecmp-tests (Files): Likewise.
74629         * modules/mbsrchr-tests (Files): Likewise.
74630         * modules/mbsrtowcs-tests (Files): Likewise.
74631         * modules/mbsspn-tests (Files): Likewise.
74632         * modules/mbsstr-tests (Files): Likewise.
74633         * modules/memchr-tests (Files): Likewise.
74634         * modules/memchr2-tests (Files): Likewise.
74635         * modules/memcmp-tests (Files): Likewise.
74636         * modules/memmem-tests (Files): Likewise.
74637         * modules/memrchr-tests (Files): Likewise.
74638         * modules/mkdir-tests (Files): Likewise.
74639         * modules/mkfifo-tests (Files): Likewise.
74640         * modules/mkfifoat-tests (Files): Likewise.
74641         * modules/mknod-tests (Files): Likewise.
74642         * modules/nanosleep-tests (Files): Likewise.
74643         * modules/nl_langinfo-tests (Files): Likewise.
74644         * modules/obstack-printf-tests (Files): Likewise.
74645         * modules/open-tests (Files): Likewise.
74646         * modules/openat-tests (Files): Likewise.
74647         * modules/pipe-filter-gi-tests (Files): Likewise.
74648         * modules/pipe-filter-ii-tests (Files): Likewise.
74649         * modules/pipe2-tests (Files): Likewise.
74650         * modules/popen-safer-tests (Files): Likewise.
74651         * modules/popen-tests (Files): Likewise.
74652         * modules/posixtm-tests (Files): Likewise.
74653         * modules/pread-tests (Files): Likewise.
74654         * modules/printf-frexp-tests (Files): Likewise.
74655         * modules/printf-frexpl-tests (Files): Likewise.
74656         * modules/printf-posix-tests (Files): Likewise.
74657         * modules/priv-set-tests (Files): Likewise.
74658         * modules/quotearg-tests (Files): Likewise.
74659         * modules/random_r-tests (Files): Likewise.
74660         * modules/rawmemchr-tests (Files): Likewise.
74661         * modules/rbtree-list-tests (Files): Likewise.
74662         * modules/rbtree-oset-tests (Files): Likewise.
74663         * modules/rbtreehash-list-tests (Files): Likewise.
74664         * modules/readlink-tests (Files): Likewise.
74665         * modules/remove-tests (Files): Likewise.
74666         * modules/rename-tests (Files): Likewise.
74667         * modules/renameat-tests (Files): Likewise.
74668         * modules/rmdir-tests (Files): Likewise.
74669         * modules/round-tests (Files): Likewise.
74670         * modules/roundf-tests (Files): Likewise.
74671         * modules/roundl-tests (Files): Likewise.
74672         * modules/safe-alloc-tests (Files): Likewise.
74673         * modules/setenv-tests (Files): Likewise.
74674         * modules/sigaction-tests (Files): Likewise.
74675         * modules/signbit-tests (Files): Likewise.
74676         * modules/sleep-tests (Files): Likewise.
74677         * modules/snprintf-posix-tests (Files): Likewise.
74678         * modules/snprintf-tests (Files): Likewise.
74679         * modules/sprintf-posix-tests (Files): Likewise.
74680         * modules/stat-tests (Files): Likewise.
74681         * modules/stat-time-tests (Files): Likewise.
74682         * modules/strcasestr-tests (Files): Likewise.
74683         * modules/strchrnul-tests (Files): Likewise.
74684         * modules/strerror-tests (Files): Likewise.
74685         * modules/striconv-tests (Files): Likewise.
74686         * modules/striconveh-tests (Files): Likewise.
74687         * modules/striconveha-tests (Files): Likewise.
74688         * modules/strsignal-tests (Files): Likewise.
74689         * modules/strstr-tests (Files): Likewise.
74690         * modules/strtod-tests (Files): Likewise.
74691         * modules/strverscmp-tests (Files): Likewise.
74692         * modules/symlink-tests (Files): Likewise.
74693         * modules/symlinkat-tests (Files): Likewise.
74694         * modules/trunc-tests (Files): Likewise.
74695         * modules/truncf-tests (Files): Likewise.
74696         * modules/truncl-tests (Files): Likewise.
74697         * modules/uname-tests (Files): Likewise.
74698         * modules/unicase/cased-tests (Files): Likewise.
74699         * modules/unicase/ignorable-tests (Files): Likewise.
74700         * modules/unicase/locale-language-tests (Files): Likewise.
74701         * modules/unicase/tolower-tests (Files): Likewise.
74702         * modules/unicase/totitle-tests (Files): Likewise.
74703         * modules/unicase/toupper-tests (Files): Likewise.
74704         * modules/unicase/u8-casecmp-tests (Files): Likewise.
74705         * modules/unicase/u8-casecoll-tests (Files): Likewise.
74706         * modules/unicase/u8-casefold-tests (Files): Likewise.
74707         * modules/unicase/u8-is-cased-tests (Files): Likewise.
74708         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
74709         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
74710         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
74711         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
74712         * modules/unicase/u8-tolower-tests (Files): Likewise.
74713         * modules/unicase/u8-totitle-tests (Files): Likewise.
74714         * modules/unicase/u8-toupper-tests (Files): Likewise.
74715         * modules/unicase/u16-casecmp-tests (Files): Likewise.
74716         * modules/unicase/u16-casecoll-tests (Files): Likewise.
74717         * modules/unicase/u16-casefold-tests (Files): Likewise.
74718         * modules/unicase/u16-is-cased-tests (Files): Likewise.
74719         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
74720         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
74721         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
74722         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
74723         * modules/unicase/u16-tolower-tests (Files): Likewise.
74724         * modules/unicase/u16-totitle-tests (Files): Likewise.
74725         * modules/unicase/u16-toupper-tests (Files): Likewise.
74726         * modules/unicase/u32-casecmp-tests (Files): Likewise.
74727         * modules/unicase/u32-casecoll-tests (Files): Likewise.
74728         * modules/unicase/u32-casefold-tests (Files): Likewise.
74729         * modules/unicase/u32-is-cased-tests (Files): Likewise.
74730         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
74731         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
74732         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
74733         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
74734         * modules/unicase/u32-tolower-tests (Files): Likewise.
74735         * modules/unicase/u32-totitle-tests (Files): Likewise.
74736         * modules/unicase/u32-toupper-tests (Files): Likewise.
74737         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
74738         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
74739         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
74740         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
74741         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
74742         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
74743         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
74744         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
74745         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
74746         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
74747         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
74748         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
74749         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
74750         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
74751         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
74752         * modules/unictype/bidicategory-name-tests (Files): Likewise.
74753         * modules/unictype/bidicategory-of-tests (Files): Likewise.
74754         * modules/unictype/bidicategory-test-tests (Files): Likewise.
74755         * modules/unictype/block-list-tests (Files): Likewise.
74756         * modules/unictype/block-of-tests (Files): Likewise.
74757         * modules/unictype/block-test-tests (Files): Likewise.
74758         * modules/unictype/category-C-tests (Files): Likewise.
74759         * modules/unictype/category-Cc-tests (Files): Likewise.
74760         * modules/unictype/category-Cf-tests (Files): Likewise.
74761         * modules/unictype/category-Cn-tests (Files): Likewise.
74762         * modules/unictype/category-Co-tests (Files): Likewise.
74763         * modules/unictype/category-Cs-tests (Files): Likewise.
74764         * modules/unictype/category-L-tests (Files): Likewise.
74765         * modules/unictype/category-Ll-tests (Files): Likewise.
74766         * modules/unictype/category-Lm-tests (Files): Likewise.
74767         * modules/unictype/category-Lo-tests (Files): Likewise.
74768         * modules/unictype/category-Lt-tests (Files): Likewise.
74769         * modules/unictype/category-Lu-tests (Files): Likewise.
74770         * modules/unictype/category-M-tests (Files): Likewise.
74771         * modules/unictype/category-Mc-tests (Files): Likewise.
74772         * modules/unictype/category-Me-tests (Files): Likewise.
74773         * modules/unictype/category-Mn-tests (Files): Likewise.
74774         * modules/unictype/category-N-tests (Files): Likewise.
74775         * modules/unictype/category-Nd-tests (Files): Likewise.
74776         * modules/unictype/category-Nl-tests (Files): Likewise.
74777         * modules/unictype/category-No-tests (Files): Likewise.
74778         * modules/unictype/category-P-tests (Files): Likewise.
74779         * modules/unictype/category-Pc-tests (Files): Likewise.
74780         * modules/unictype/category-Pd-tests (Files): Likewise.
74781         * modules/unictype/category-Pe-tests (Files): Likewise.
74782         * modules/unictype/category-Pf-tests (Files): Likewise.
74783         * modules/unictype/category-Pi-tests (Files): Likewise.
74784         * modules/unictype/category-Po-tests (Files): Likewise.
74785         * modules/unictype/category-Ps-tests (Files): Likewise.
74786         * modules/unictype/category-S-tests (Files): Likewise.
74787         * modules/unictype/category-Sc-tests (Files): Likewise.
74788         * modules/unictype/category-Sk-tests (Files): Likewise.
74789         * modules/unictype/category-Sm-tests (Files): Likewise.
74790         * modules/unictype/category-So-tests (Files): Likewise.
74791         * modules/unictype/category-Z-tests (Files): Likewise.
74792         * modules/unictype/category-Zl-tests (Files): Likewise.
74793         * modules/unictype/category-Zp-tests (Files): Likewise.
74794         * modules/unictype/category-Zs-tests (Files): Likewise.
74795         * modules/unictype/category-and-not-tests (Files): Likewise.
74796         * modules/unictype/category-and-tests (Files): Likewise.
74797         * modules/unictype/category-byname-tests (Files): Likewise.
74798         * modules/unictype/category-name-tests (Files): Likewise.
74799         * modules/unictype/category-none-tests (Files): Likewise.
74800         * modules/unictype/category-of-tests (Files): Likewise.
74801         * modules/unictype/category-or-tests (Files): Likewise.
74802         * modules/unictype/category-test-withtable-tests (Files): Likewise.
74803         * modules/unictype/combining-class-tests (Files): Likewise.
74804         * modules/unictype/ctype-alnum-tests (Files): Likewise.
74805         * modules/unictype/ctype-alpha-tests (Files): Likewise.
74806         * modules/unictype/ctype-blank-tests (Files): Likewise.
74807         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
74808         * modules/unictype/ctype-digit-tests (Files): Likewise.
74809         * modules/unictype/ctype-graph-tests (Files): Likewise.
74810         * modules/unictype/ctype-lower-tests (Files): Likewise.
74811         * modules/unictype/ctype-print-tests (Files): Likewise.
74812         * modules/unictype/ctype-punct-tests (Files): Likewise.
74813         * modules/unictype/ctype-space-tests (Files): Likewise.
74814         * modules/unictype/ctype-upper-tests (Files): Likewise.
74815         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
74816         * modules/unictype/decimal-digit-tests (Files): Likewise.
74817         * modules/unictype/digit-tests (Files): Likewise.
74818         * modules/unictype/mirror-tests (Files): Likewise.
74819         * modules/unictype/numeric-tests (Files): Likewise.
74820         * modules/unictype/property-alphabetic-tests (Files): Likewise.
74821         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
74822         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
74823         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
74824         Likewise.
74825         * modules/unictype/property-bidi-block-separator-tests (Files):
74826         Likewise.
74827         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
74828         Likewise.
74829         * modules/unictype/property-bidi-common-separator-tests (Files):
74830         Likewise.
74831         * modules/unictype/property-bidi-control-tests (Files): Likewise.
74832         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
74833         Likewise.
74834         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
74835         Likewise.
74836         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
74837         Likewise.
74838         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
74839         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
74840         Likewise.
74841         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
74842         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
74843         Likewise.
74844         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
74845         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
74846         * modules/unictype/property-bidi-segment-separator-tests (Files):
74847         Likewise.
74848         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
74849         * modules/unictype/property-byname-tests (Files): Likewise.
74850         * modules/unictype/property-combining-tests (Files): Likewise.
74851         * modules/unictype/property-composite-tests (Files): Likewise.
74852         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
74853         * modules/unictype/property-dash-tests (Files): Likewise.
74854         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
74855         * modules/unictype/property-default-ignorable-code-point-tests (Files):
74856         Likewise.
74857         * modules/unictype/property-deprecated-tests (Files): Likewise.
74858         * modules/unictype/property-diacritic-tests (Files): Likewise.
74859         * modules/unictype/property-extender-tests (Files): Likewise.
74860         * modules/unictype/property-format-control-tests (Files): Likewise.
74861         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
74862         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
74863         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
74864         * modules/unictype/property-hex-digit-tests (Files): Likewise.
74865         * modules/unictype/property-hyphen-tests (Files): Likewise.
74866         * modules/unictype/property-id-continue-tests (Files): Likewise.
74867         * modules/unictype/property-id-start-tests (Files): Likewise.
74868         * modules/unictype/property-ideographic-tests (Files): Likewise.
74869         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
74870         * modules/unictype/property-ids-trinary-operator-tests (Files):
74871         Likewise.
74872         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
74873         * modules/unictype/property-iso-control-tests (Files): Likewise.
74874         * modules/unictype/property-join-control-tests (Files): Likewise.
74875         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
74876         * modules/unictype/property-line-separator-tests (Files): Likewise.
74877         * modules/unictype/property-logical-order-exception-tests (Files):
74878         Likewise.
74879         * modules/unictype/property-lowercase-tests (Files): Likewise.
74880         * modules/unictype/property-math-tests (Files): Likewise.
74881         * modules/unictype/property-non-break-tests (Files): Likewise.
74882         * modules/unictype/property-not-a-character-tests (Files): Likewise.
74883         * modules/unictype/property-numeric-tests (Files): Likewise.
74884         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
74885         * modules/unictype/property-other-default-ignorable-code-point-tests
74886         (Files): Likewise.
74887         * modules/unictype/property-other-grapheme-extend-tests (Files):
74888         Likewise.
74889         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
74890         * modules/unictype/property-other-id-start-tests (Files): Likewise.
74891         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
74892         * modules/unictype/property-other-math-tests (Files): Likewise.
74893         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
74894         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
74895         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
74896         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
74897         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
74898         * modules/unictype/property-private-use-tests (Files): Likewise.
74899         * modules/unictype/property-punctuation-tests (Files): Likewise.
74900         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
74901         * modules/unictype/property-radical-tests (Files): Likewise.
74902         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
74903         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
74904         * modules/unictype/property-space-tests (Files): Likewise.
74905         * modules/unictype/property-terminal-punctuation-tests (Files):
74906         Likewise.
74907         * modules/unictype/property-test-tests (Files): Likewise.
74908         * modules/unictype/property-titlecase-tests (Files): Likewise.
74909         * modules/unictype/property-unassigned-code-value-tests (Files):
74910         Likewise.
74911         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
74912         * modules/unictype/property-uppercase-tests (Files): Likewise.
74913         * modules/unictype/property-variation-selector-tests (Files): Likewise.
74914         * modules/unictype/property-white-space-tests (Files): Likewise.
74915         * modules/unictype/property-xid-continue-tests (Files): Likewise.
74916         * modules/unictype/property-xid-start-tests (Files): Likewise.
74917         * modules/unictype/property-zero-width-tests (Files): Likewise.
74918         * modules/unictype/scripts-tests (Files): Likewise.
74919         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
74920         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
74921         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
74922         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
74923         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
74924         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
74925         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
74926         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
74927         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
74928         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
74929         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
74930         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
74931         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
74932         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
74933         * modules/uninorm/composition-tests (Files): Likewise.
74934         * modules/uninorm/decomposing-form-tests (Files): Likewise.
74935         * modules/uninorm/decomposition-tests (Files): Likewise.
74936         * modules/uninorm/filter-tests (Files): Likewise.
74937         * modules/uninorm/nfc-tests (Files): Likewise.
74938         * modules/uninorm/nfd-tests (Files): Likewise.
74939         * modules/uninorm/nfkc-tests (Files): Likewise.
74940         * modules/uninorm/nfkd-tests (Files): Likewise.
74941         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
74942         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
74943         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
74944         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
74945         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
74946         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
74947         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
74948         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
74949         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
74950         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
74951         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
74952         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
74953         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
74954         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
74955         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
74956         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
74957         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
74958         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
74959         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
74960         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
74961         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
74962         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
74963         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
74964         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
74965         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
74966         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
74967         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
74968         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
74969         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
74970         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
74971         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
74972         * modules/uniwidth/u8-width-tests (Files): Likewise.
74973         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
74974         * modules/uniwidth/u16-width-tests (Files): Likewise.
74975         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
74976         * modules/uniwidth/u32-width-tests (Files): Likewise.
74977         * modules/uniwidth/width-tests (Files): Likewise.
74978         * modules/unlink-tests (Files): Likewise.
74979         * modules/unsetenv-tests (Files): Likewise.
74980         * modules/usleep-tests (Files): Likewise.
74981         * modules/utimens-tests (Files): Likewise.
74982         * modules/utimensat-tests (Files): Likewise.
74983         * modules/vasnprintf-posix-tests (Files): Likewise.
74984         * modules/vasnprintf-tests (Files): Likewise.
74985         * modules/vasprintf-posix-tests (Files): Likewise.
74986         * modules/vasprintf-tests (Files): Likewise.
74987         * modules/vdprintf-posix-tests (Files): Likewise.
74988         * modules/vfprintf-posix-tests (Files): Likewise.
74989         * modules/vprintf-posix-tests (Files): Likewise.
74990         * modules/vsnprintf-posix-tests (Files): Likewise.
74991         * modules/vsnprintf-tests (Files): Likewise.
74992         * modules/vsprintf-posix-tests (Files): Likewise.
74993         * modules/wcrtomb-tests (Files): Likewise.
74994         * modules/wcsnrtombs-tests (Files): Likewise.
74995         * modules/wcsrtombs-tests (Files): Likewise.
74996         * modules/wctype-tests (Files): Likewise.
74997         * modules/wcwidth-tests (Files): Likewise.
74998         * modules/xmemdup0-tests (Files): Likewise.
74999         * modules/xprintf-posix-tests (Files): Likewise.
75000         * modules/xvasprintf-tests (Files): Likewise.
75002 2009-12-24  Eric Blake  <ebb9@byu.net>
75004         test-nanosleep: fix typo
75005         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
75006         patch.
75007         Reported by Bruno Haible.
75009 2009-12-24  Bruno Haible  <bruno@clisp.org>
75011         Reduce namespace pollution on glibc systems.
75012         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
75013         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
75014         systems.
75015         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
75016         <getopt.h> on glibc systems.
75017         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
75018         systems.
75019         * lib/fcntl.c: Include <unistd.h> here instead.
75021 2009-12-24  Bruno Haible  <bruno@clisp.org>
75023         * lib/stdlib.in.h (includes): Fix typo in today's commit.
75025 2009-12-24  Eric Blake  <ebb9@byu.net>
75027         tests: add signature checks
75028         * tests/signature.h (SIGNATURE_CHECK): New file.
75029         * modules/atexit-tests (Files): Use it.
75030         * modules/btowc-tests (Files): Likewise.
75031         * modules/canonicalize-lgpl-tests (Files): Likewise.
75032         * modules/ceilf-tests (Files): Likewise.
75033         * modules/ceill-tests (Files): Likewise.
75034         * modules/chown-tests (Files): Likewise.
75035         * modules/dprintf-posix-tests (Files): Likewise.
75036         * modules/dup2-tests (Files): Likewise.
75037         * modules/dup3-tests (Files): Likewise.
75038         * modules/duplocale-tests (Files): Likewise.
75039         * modules/fchdir-tests (Files): Likewise.
75040         * modules/fcntl-tests (Files): Likewise.
75041         * modules/fdopendir-tests (Files): Likewise.
75042         * modules/fflush-tests (Files): Likewise.
75043         * modules/flock-tests (Files): Likewise.
75044         * modules/floorf-tests (Files): Likewise.
75045         * modules/floorl-tests (Files): Likewise.
75046         * modules/fnmatch-tests (Files): Likewise.
75047         * modules/fopen-tests (Files): Likewise.
75048         * modules/fprintf-posix-tests (Files): Likewise.
75049         * modules/freopen-tests (Files): Likewise.
75050         * modules/frexp-nolibm-tests (Files): Likewise.
75051         * modules/frexp-tests (Files): Likewise.
75052         * modules/frexpl-nolibm-tests (Files): Likewise.
75053         * modules/frexpl-tests (Files): Likewise.
75054         * modules/fseek-tests (Files): Likewise.
75055         * modules/fseeko-tests (Files): Likewise.
75056         * modules/fsync-tests (Files): Likewise.
75057         * modules/ftell-tests (Files): Likewise.
75058         * modules/ftello-tests (Files): Likewise.
75059         * modules/futimens-tests (Files): Likewise.
75060         * modules/getaddrinfo-tests (Files): Likewise.
75061         * modules/getcwd-tests (Files): Likewise.
75062         * modules/getdelim-tests (Files): Likewise.
75063         * modules/getdtablesize-tests (Files): Likewise.
75064         * modules/getgroups-tests (Files): Likewise.
75065         * modules/gethostname-tests (Files): Likewise.
75066         * modules/getline-tests (Files): Likewise.
75067         * modules/getopt-posix-tests (Files): Likewise.
75068         * modules/gettimeofday-tests (Files): Likewise.
75069         * modules/glob-tests (Files): Likewise.
75070         * modules/iconv-tests (Files): Likewise.
75071         * modules/inet_ntop-tests (Files): Likewise.
75072         * modules/inet_pton-tests (Files): Likewise.
75073         * modules/isblank-tests (Files): Likewise.
75074         * modules/lchown-tests (Files): Likewise.
75075         * modules/ldexpl-tests (Files): Likewise.
75076         * modules/link-tests (Files): Likewise.
75077         * modules/linkat-tests (Files): Likewise.
75078         * modules/lseek-tests (Files): Likewise.
75079         * modules/lstat-tests (Files): Likewise.
75080         * modules/mbrtowc-tests (Files): Likewise.
75081         * modules/mbsinit-tests (Files): Likewise.
75082         * modules/mbsnrtowcs-tests (Files): Likewise.
75083         * modules/mbsrtowcs-tests (Files): Likewise.
75084         * modules/memchr-tests (Files): Likewise.
75085         * modules/memcmp-tests (Files): Likewise.
75086         * modules/memmem-tests (Files): Likewise.
75087         * modules/memrchr-tests (Files): Likewise.
75088         * modules/mkdir-tests (Files): Likewise.
75089         * modules/mkfifo-tests (Files): Likewise.
75090         * modules/mkfifoat-tests (Files): Likewise.
75091         * modules/mknod-tests (Files): Likewise.
75092         * modules/nanosleep-tests (Files): Likewise.
75093         * modules/nl_langinfo-tests (Files): Likewise.
75094         * modules/obstack-printf-tests (Files): Likewise.
75095         * modules/open-tests (Files): Likewise.
75096         * modules/openat-tests (Files): Likewise.
75097         * modules/perror-tests (Files): Likewise.
75098         * modules/pipe2-tests (Files): Likewise.
75099         * modules/poll-tests (Files): Likewise.
75100         * modules/popen-tests (Files): Likewise.
75101         * modules/posix_spawn-tests (Files): Likewise.
75102         * modules/posix_spawnp-tests (Files): Likewise.
75103         * modules/pread-tests (Files): Likewise.
75104         * modules/printf-posix-tests (Files): Likewise.
75105         * modules/pty-tests (Files): Likewise.
75106         * modules/random_r-tests (Files): Likewise.
75107         * modules/rawmemchr-tests (Files): Likewise.
75108         * modules/readlink-tests (Files): Likewise.
75109         * modules/remove-tests (Files): Likewise.
75110         * modules/rename-tests (Files): Likewise.
75111         * modules/renameat-tests (Files): Likewise.
75112         * modules/rmdir-tests (Files): Likewise.
75113         * modules/round-tests (Files): Likewise.
75114         * modules/roundf-tests (Files): Likewise.
75115         * modules/roundl-tests (Files): Likewise.
75116         * modules/select-tests (Files): Likewise.
75117         * modules/setenv-tests (Files): Likewise.
75118         * modules/sigaction-tests (Files): Likewise.
75119         * modules/sleep-tests (Files): Likewise.
75120         * modules/snprintf-posix-tests (Files): Likewise.
75121         * modules/snprintf-tests (Files): Likewise.
75122         * modules/sprintf-posix-tests (Files): Likewise.
75123         * modules/stat-tests (Files): Likewise.
75124         * modules/strcasestr-tests (Files): Likewise.
75125         * modules/strchrnul-tests (Files): Likewise.
75126         * modules/strerror-tests (Files): Likewise.
75127         * modules/strsignal-tests (Files): Likewise.
75128         * modules/strstr-tests (Files): Likewise.
75129         * modules/strtod-tests (Files): Likewise.
75130         * modules/strverscmp-tests (Files): Likewise.
75131         * modules/symlink-tests (Files): Likewise.
75132         * modules/symlinkat-tests (Files): Likewise.
75133         * modules/times-tests (Files): Likewise.
75134         * modules/trunc-tests (Files): Likewise.
75135         * modules/truncf-tests (Files): Likewise.
75136         * modules/truncl-tests (Files): Likewise.
75137         * modules/tsearch-tests (Files): Likewise.
75138         * modules/uname-tests (Files): Likewise.
75139         * modules/unlink-tests (Files): Likewise.
75140         * modules/unsetenv-tests (Files): Likewise.
75141         * modules/usleep-tests (Files): Likewise.
75142         * modules/utimensat-tests (Files): Likewise.
75143         * modules/vasprintf-tests (Files): Likewise.
75144         * modules/vdprintf-posix-tests (Files): Likewise.
75145         * modules/vfprintf-posix-tests (Files): Likewise.
75146         * modules/vprintf-posix-tests (Files): Likewise.
75147         * modules/vsnprintf-posix-tests (Files): Likewise.
75148         * modules/vsnprintf-tests (Files): Likewise.
75149         * modules/vsprintf-posix-tests (Files): Likewise.
75150         * modules/wcrtomb-tests (Files): Likewise.
75151         * modules/wcsnrtombs-tests (Files): Likewise.
75152         * modules/wcsrtombs-tests (Files): Likewise.
75153         * modules/wcwidth-tests (Files): Likewise.
75154         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
75155         * tests/test-isinf.c (isinf): Likewise.
75156         * tests/test-isnan.c (isnan): Likewise.
75157         * tests/test-signbit.c (signbit): Likewise.
75158         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
75159         declaration, either as macro or with correct signature.
75160         (select): Ensure function under test is declared with correct
75161         signature in correct header.
75162         * tests/test-atexit.c (atexit): Likewise.
75163         * tests/test-btowc.c (btowc): Likewise.
75164         * tests/test-canonicalize-lgpl.c (realpath)
75165         (canonicalize_file_name): Likewise.
75166         * tests/test-ceilf1.c (ceilf): Likewise.
75167         * tests/test-ceill.c (ceill): Likewise.
75168         * tests/test-chown.c (chown): Likewise.
75169         * tests/test-dprintf-posix.c (dprintf): Likewise.
75170         * tests/test-dup2.c (dup2): Likewise.
75171         * tests/test-dup3.c (dup3): Likewise.
75172         * tests/test-duplocale.c (duplocale): Likewise.
75173         * tests/test-fchdir.c (fchdir): Likewise.
75174         * tests/test-fchownat.c (fchownat): Likewise.
75175         * tests/test-fcntl.c (fcntl): Likewise.
75176         * tests/test-fdopendir.c (fdopendir): Likewise.
75177         * tests/test-fflush.c (fflush): Likewise.
75178         * tests/test-flock.c (flock): Likewise.
75179         * tests/test-floorf1.c (floorf): Likewise.
75180         * tests/test-floorl.c (floorl): Likewise.
75181         * tests/test-fnmatch.c (fnmatch): Likewise.
75182         * tests/test-fopen.c (fopen): Likewise.
75183         * tests/test-fprintf-posix.c (fprintf): Likewise.
75184         * tests/test-freopen.c (freopen): Likewise.
75185         * tests/test-frexp.c (frexp): Likewise.
75186         * tests/test-frexpl.c (frexpl): Likewise.
75187         * tests/test-fseek.c (fseek): Likewise.
75188         * tests/test-fseeko.c (fseeko): Likewise.
75189         * tests/test-fstatat.c (fstatat): Likewise.
75190         * tests/test-fsync.c (fsync): Likewise.
75191         * tests/test-ftell.c (ftell): Likewise.
75192         * tests/test-ftello.c (ftello): Likewise.
75193         * tests/test-futimens.c (futimens): Likewise.
75194         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
75195         (gai_strerror): Likewise.
75196         * tests/test-getcwd.c (getcwd): Likewise.
75197         * tests/test-getdelim.c (getdelim): Likewise.
75198         * tests/test-getdtablesize.c (getdtablesize): Likewise.
75199         * tests/test-getgroups.c (getgroups): Likewise.
75200         * tests/test-gethostname.c (gethostname): Likewise.
75201         * tests/test-getline.c (getline): Likewise.
75202         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
75203         Likewise.
75204         * tests/test-gettimeofday.c (gettimeofday): Likewise.
75205         * tests/test-glob.c (glob, globfree): Likewise.
75206         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
75207         * tests/test-inet_ntop.c (inet_ntop): Likewise.
75208         * tests/test-inet_pton.c (inet_pton): Likewise.
75209         * tests/test-isblank.c (isblank): Likewise.
75210         * tests/test-lchown.c (lchown): Likewise.
75211         * tests/test-ldexpl.c (ldexpl): Likewise.
75212         * tests/test-link.c (link): Likewise.
75213         * tests/test-linkat.c (linkat): Likewise.
75214         * tests/test-lseek.c (lseek): Likewise.
75215         * tests/test-lstat.c (lstat): Likewise.
75216         * tests/test-mbrtowc.c (mbrtowc): Likewise.
75217         * tests/test-mbsinit.c (mbsinit): Likewise.
75218         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
75219         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
75220         * tests/test-memchr.c (memchr): Likewise.
75221         * tests/test-memcmp.c (memcmp): Likewise.
75222         * tests/test-memmem.c (memmem): Likewise.
75223         * tests/test-memrchr.c (memrchr): Likewise.
75224         * tests/test-mkdir.c (mkdir): Likewise.
75225         * tests/test-mkdirat.c (mkdirat): Likewise.
75226         * tests/test-mkfifo.c (mkfifo): Likewise.
75227         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
75228         * tests/test-mknod.c (mknod): Likewise.
75229         * tests/test-nanosleep.c (nanosleep): Likewise.
75230         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
75231         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
75232         Likewise.
75233         * tests/test-open.c (open): Likewise.
75234         * tests/test-openat.c (openat): Likewise.
75235         * tests/test-perror.c (perror): Likewise.
75236         * tests/test-pipe2.c (pipe2): Likewise.
75237         * tests/test-poll.c (poll): Likewise.
75238         * tests/test-popen.c (popen, pclose): Likewise.
75239         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
75240         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
75241         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
75242         (posix_spawn_file_actions_destroy)
75243         (posix_spawn_file_actions_addclose)
75244         (posix_spawn_file_actions_addopen)
75245         (posix_spawn_file_actions_adddup2): Likewise.
75246         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
75247         * tests/test-pread.c (pread): Likewise.
75248         * tests/test-printf-posix.c (printf): Likewise.
75249         * tests/test-pty.c (openpty, forkpty): Likewise.
75250         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
75251         (random_r): Likewise.
75252         * tests/test-rawmemchr.c (rawmemchr): Likewise.
75253         * tests/test-readlink.c (readlink): Likewise.
75254         * tests/test-remove.c (remove): Likewise.
75255         * tests/test-rename.c (rename): Likewise.
75256         * tests/test-renameat.c (renameat): Likewise.
75257         * tests/test-rmdir.c (rmdir): Likewise.
75258         * tests/test-round1.c (round): Likewise.
75259         * tests/test-roundf1.c (roundf): Likewise.
75260         * tests/test-roundl.c (roundl): Likewise.
75261         * tests/test-setenv.c (setenv): Likewise.
75262         * tests/test-sigaction.c (sigaction): Likewise.
75263         * tests/test-sleep.c (sleep): Likewise.
75264         * tests/test-snprintf.c (snprintf): Likewise.
75265         * tests/test-sprintf-posix.c (sprintf): Likewise.
75266         * tests/test-stat.c (stat): Likewise.
75267         * tests/test-stpncpy.c (stpncpy): Likewise.
75268         * tests/test-strcasestr.c (strcasestr): Likewise.
75269         * tests/test-strchrnul.c (strchrnul): Likewise.
75270         * tests/test-strerror.c (strerror): Likewise.
75271         * tests/test-strsignal.c (strsignal): Likewise.
75272         * tests/test-strstr.c (strstr): Likewise.
75273         * tests/test-strtod.c (strtod): Likewise.
75274         * tests/test-strverscmp.c (strverscmp): Likewise.
75275         * tests/test-symlink.c (symlink): Likewise.
75276         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
75277         * tests/test-times.c (times): Likewise.
75278         * tests/test-trunc1.c (trunc): Likewise.
75279         * tests/test-truncf1.c (truncf): Likewise.
75280         * tests/test-truncl.c (truncl): Likewise.
75281         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
75282         Likewise.
75283         * tests/test-uname.c (uname): Likewise.
75284         * tests/test-unlink.c (unlink): Likewise.
75285         * tests/test-unlinkat.c (unlinkat): Likewise.
75286         * tests/test-unsetenv.c (unsetenv): Likewise.
75287         * tests/test-usleep.c (usleep): Likewise.
75288         * tests/test-utimensat.c (utimensat): Likewise.
75289         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
75290         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
75291         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
75292         * tests/test-vprintf-posix.c (vprintf): Likewise.
75293         * tests/test-vsnprintf.c (vsnprintf): Likewise.
75294         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
75295         * tests/test-wcrtomb.c (wcrtomb): Likewise.
75296         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
75297         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
75298         * tests/test-wcwidth.c (wcwidth): Likewise.
75300         build: pull in conditional headers during GNULIB_POSIXCHECK
75301         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
75302         definitions from any conditionally-included headers.
75303         * lib/stdlib.in.h (includes): Likewise.
75304         * lib/unistd.in.h (includes): Likewise.
75306 2009-12-24  Bruno Haible  <bruno@clisp.org>
75308         * tests/test-argv-iter.c: Include header file being tested immediately
75309         after config.h.
75310         * tests/test-base64.c: Likewise.
75311         * tests/test-flock.c: Likewise.
75312         * tests/test-fsync.c: Likewise.
75313         * tests/test-getdate.c: Likewise.
75314         * tests/test-getndelim2.c: Likewise.
75315         * tests/test-isfinite.c: Likewise.
75316         * tests/test-isinf.c: Likewise.
75317         * tests/test-strerror.c: Likewise.
75318         * tests/test-strsignal.c: Likewise.
75320 2009-12-23  Eric Blake  <ebb9@byu.net>
75322         unistd: work around cygwin bug
75323         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
75324         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
75325         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
75327 2009-12-23  Bruno Haible  <bruno@clisp.org>
75329         localename: More tests.
75330         * tests/test-localename.c (SIZEOF): New macro.
75331         (categories): New variable.
75332         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
75333         test_locale_name_default): Add test w.r.t. thread locale.
75334         (test_locale_name_thread): New function.
75335         (main): Invoke it.
75337         localename: Make aware of thread locale.
75338         * lib/localename.h (gl_locale_name_thread): New declaration.
75339         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
75340         behaviour with respect to thread locale.
75341         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
75342         <langinfo.h>, glthread/lock.h.
75343         (SIZE_BITS): New macro.
75344         (string_hash): New function.
75345         (struct hash_node): New type.
75346         (HASH_TABLE_SIZE): New macro.
75347         (struniq_hash_table, struniq_lock): New variables.
75348         (struniq): New function.
75349         (gl_locale_name_thread): New function.
75350         (gl_locale_name): Invoke it.
75351         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
75352         * modules/localename (Depends-on): Add lock.
75353         Reported by Mike Gran <spk121@yahoo.com>.
75355 2009-12-23  Eric Blake  <ebb9@byu.net>
75357         va-args: new module
75358         * modules/va-args: New file.
75359         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
75360         * MODULES.html.sh (Core language properties): Mention it.
75362         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
75363         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
75364         named alias for __attribute__((__unused__)).
75365         * lib/chown.c: Update client.
75366         * lib/fchmodat.c: Likewise.
75367         * lib/fts.c: Likewise.
75368         * lib/getdate.y: Likewise.
75369         * lib/getgroups.c: Likewise.
75370         * lib/getopt.c: Likewise.
75371         * lib/getugroups.c: Likewise.
75372         * lib/mkdir.c: Likewise.
75373         * lib/mkfifo.c: Likewise.
75374         * lib/mkfifoat.c: Likewise.
75375         * lib/mknod.c: Likewise.
75376         * lib/mknodat.c: Likewise.
75377         * lib/readlink.c: Likewise.
75378         * lib/se-context.in.h: Likewise.
75379         * lib/se-selinux.in.h: Likewise.
75380         * lib/sockets.c: Likewise.
75381         * lib/symlink.c: Likewise.
75382         * lib/symlinkat.c: Likewise.
75383         * lib/unicodeio.c: Likewise.
75384         * lib/unistr.h: Likewise.
75385         * tests/test-areadlink.c: Likewise.
75386         * tests/test-areadlinkat.c: Likewise.
75387         * tests/test-filenamecat.c: Likewise.
75388         * tests/test-fseeko.c: Likewise.
75389         * tests/test-ftello.c: Likewise.
75390         * tests/test-getdate.c: Likewise.
75391         * tests/test-getgroups.c: Likewise.
75392         * tests/test-gethostname.c: Likewise.
75393         * tests/test-quotearg.c: Likewise.
75394         * tests/test-version-etc.c: Likewise.
75395         * tests/test-xalloc-die.c: Likewise.
75396         * tests/test-xfprintf-posix.c: Likewise.
75397         * tests/test-xprintf-posix.c: Likewise.
75398         * tests/test-xvasprintf.c: Likewise.
75400         tests: avoid compiler warnings
75401         * tests/test-fcntl.c (main): Delete unused parameters.
75402         * tests/test-freopen-safer.c (main): Likewise.
75403         * tests/test-xalloc-die.c (main): Mark unused parameters.
75404         * tests/test-fseeko.c (main): Likewise.
75405         * tests/test-ftello.c (main): Likewise.
75406         * tests/test-nanosleep.c (main): Avoid declaration warning.
75407         * tests/test-sleep.c (main): Likewise.
75408         * tests/test-unsetenv.c (main): Silence warning about string
75409         literal.
75410         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
75412 2009-12-23  Bruno Haible  <bruno@clisp.org>
75414         * tests/test-localename.c (test_locale_name): New function, extracted
75415         from main. Also test mixed situations.
75416         (test_locale_name_posix, test_locale_name_environ,
75417         test_locale_name_default): New functions.
75418         (main): Invoke them all.
75419         * modules/localename-tests (configure.ac): Test for newlocale.
75421 2009-12-23  Bruno Haible  <bruno@clisp.org>
75423         unistd: Ensure getcwd gets declared before being overridden.
75424         * lib/unistd.in.h: Conditionally include <io.h>.
75426 2009-12-22  Bruno Haible  <bruno@clisp.org>
75428         wchar: Diagnose broken combination of glibc and gcc versions and flags.
75429         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
75430         (gl_WCHAR_H): Invoke it.
75431         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
75432         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
75433         Reported by Karl Berry <karl@freefriends.org>.
75435 2009-12-22  Eric Blake  <ebb9@byu.net>
75437         math, unistd: avoid redundant includes
75438         * lib/math.in.h (isnan): No need to re-include <math.h>.
75439         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
75441         getsubopt: work around cygwin bug
75442         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
75443         avoid conflicting with system getsubopt.
75444         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
75445         bug.
75447         getopt: synchronize from glibc
75448         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
75449         parameter order.  Adjust all callers.
75450         (_getopt_internal_r, main): Adjust quoting in error messages.
75451         Drop considerations for outdated POSIX 1003.2 error message.
75452         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
75453         callers.
75454         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
75456         test-getopt: test stderr behavior
75457         * modules/getopt-posix-tests (Depends-on): Add dup2.
75458         * tests/test-getopt.c (ASSERT): Avoid stderr.
75459         (main): Move stderr to a temporary file.
75460         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
75461         Instead, add parameter to inform caller if output occurred.
75462         (test_getopt): Adjust all existing tests to expect silence, and
75463         add new tests of leading ":".
75464         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
75465         glibc shortcomings with leading "-:" or "+:" in optstring.
75466         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
75467         Likewise.
75468         * doc/posix-functions/getopt.texi (getopt): Likewise.
75470         test-getopt: enhance test
75471         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
75472         supports optind=0.
75473         * tests/test-getopt.c (OPTIND_MIN): Move...
75474         * tests/test-getopt.h (OPTIND_MIN): ...here.
75475         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
75476         Require that optind=0 works, since modern BSD supports it in
75477         addition to optreset, and since coreutils expects it.
75478         (test_getopt_long_only): New test.
75479         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
75480         glibc shortcomings with 'W;', and enforcement of optind=0.
75481         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
75482         Likewise.
75484 2009-12-21  Bruno Haible  <bruno@clisp.org>
75486         localename: Improvements for MacOS X and Cygwin.
75487         * lib/localename.h (gl_locale_name_environ): New declaration.
75488         * lib/localename.c (gl_locale_name_environ): New function, extracted from
75489         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
75490         (gl_locale_name_posix): Invoke it.
75491         (gl_locale_name_default): Add comments. Use Windows native API also on
75492         Cygwin.
75494 2009-12-21  Bruno Haible  <bruno@clisp.org>
75496         Update list of Win32 locale ids.
75497         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
75498         (LANG_SAMI): Renamed from LANG_SAAMI.
75499         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
75500         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
75501         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
75502         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
75503         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
75504         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
75505         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
75506         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
75507         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
75508         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
75509         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
75510         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
75511         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
75512         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
75513         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
75514         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
75515         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
75516         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
75517         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
75518         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
75519         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
75520         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
75521         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
75522         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
75523         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
75524         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
75525         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
75526         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
75527         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
75528         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
75529         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
75530         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
75531         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
75532         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
75533         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
75534         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
75535         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
75536         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
75537         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
75538         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
75539         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
75540         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
75541         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
75542         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
75543         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
75544         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
75545         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
75546         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
75547         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
75548         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
75549         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
75550         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
75551         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
75552         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
75553         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
75554         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
75555         Add more languages and countries for Sami, Sorbian. Add more countries
75556         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
75557         for Pashto. Change country for Syriac, Tswana.
75559 2009-12-21  Eric Blake  <ebb9@byu.net>
75561         test-utimens: avoid spurious failure
75562         * tests/test-chown.h (nap): Factor...
75563         * tests/nap.h: ...into new file.
75564         * tests/test-lchown.h (nap): Avoid duplication.
75565         * tests/test-utimens-common.h (nap): Use shared implementation,
75566         necessary on file systems with 1-second resolution.
75567         * modules/chown-tests (Files): Include new file.
75568         * modules/fdutimensat-tests (Files): Likewise.
75569         * modules/futimens-tests (Files): Likewise.
75570         * modules/lchown-tests (Files): Likewise.
75571         * modules/openat-tests (Files): Likewise.
75572         * modules/utimens-tests (Files): Likewise.
75573         * modules/utimensat-tests (Files): Likewise.
75575 2009-12-19  Eric Blake  <ebb9@byu.net>
75577         futimens, utimensat: work around Linux bug
75578         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
75579         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
75580         * lib/utimensat.c (rpl_utimensat): Work around it.
75581         * lib/futimens.c (rpl_futimens): Adjust comment.
75583         utimens: work around Linux ctime bug
75584         * lib/utimens.c (detect_ctime_bug): New helper function.
75585         (update_timespec): Differentiate between workaround needed for
75586         this bug vs. what is needed for systems that lack utimensat.
75587         (fdutimens, lutimens): Work around bug.
75589         utimens: check for ctime update
75590         * tests/test-utimens-common.h (check_ctime): Define.
75591         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
75592         * tests/test-futimens.h (test_futimens): Likewise.
75593         * tests/test-lutimens.h (test_lutimens): Likewise.
75594         * doc/posix-functions/futimens.texi (futimens): Document the bug.
75595         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
75597 2009-12-19  Bruno Haible  <bruno@clisp.org>
75599         dprintf-posix: Check against memory leak fixed on 2009-12-15.
75600         * tests/test-dprintf-posix2.sh: New file.
75601         * tests/test-dprintf-posix2.c: New file.
75602         * modules/dprintf-posix-tests (Files): Add them.
75603         (configure.ac): Check for getrlimit and setrlimit.
75604         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
75606 2009-12-19  Bruno Haible  <bruno@clisp.org>
75608         fprintf-posix: Check against memory leak fixed on 2009-12-15.
75609         * tests/test-fprintf-posix3.sh: New file.
75610         * tests/test-fprintf-posix3.c: New file.
75611         * modules/fprintf-posix-tests (Files): Add them.
75612         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
75614 2009-12-19  Eric Blake  <ebb9@byu.net>
75616         dirfd: fix prototype
75617         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
75618         * lib/dirfd.c (dirfd): Likewise.
75620         canonicalize: reduce memory usage
75621         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
75622         allocation to size.
75623         Reported by Solar Designer <solar@openwall.com>.
75625 2009-12-19  Bruno Haible  <bruno@clisp.org>
75627         New module attribute 'Applicability'.
75628         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
75629         * gnulib-tool: New option --extract-applicability.
75630         (func_usage): Document it.
75631         (sed_extract_prog): Recognize it.
75632         (func_get_applicability): New function.
75633         (func_import): Generalize handling of 'link-warning' module.
75634         * modules/link-warning (Applicability): New section.
75635         * modules/arg-nonnull (Applicability): New section.
75636         Repoted by Simon Josefsson <simon@josefsson.org>.
75638 2009-12-19  Bruno Haible  <bruno@clisp.org>
75640         fflush: tweak
75641         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
75642         * lib/fseeko.c (rpl_fseeko): Likewise.
75644 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
75646         * lib/gl_list.h: Fix typo in comment.
75648 2009-12-16  Eric Blake  <ebb9@byu.net>
75650         fcntl: use to simplify other modules
75651         * modules/cloexec (Depends-on): Add fcntl.
75652         * modules/fchdir (Depends-on): Likewise.
75653         * modules/fd-safer-flag (Depends-on): Likewise.
75654         * modules/unistd-safer (Depends-on): Likewise.
75655         * modules/dup3 (configure.ac): Set module indicator.
75656         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
75657         missing.
75658         * lib/fchdir.c (_gl_register_dup): Fix comment.
75659         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
75660         * lib/dup-safer.c (dup_safer): Likewise.
75661         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
75662         * lib/dup3.c (dup3): Likewise.
75663         * tests/test-fchdir.c (main): Enhance test.
75664         Fixes a dup_cloexec bug reported by Ondřej Vašík.
75666         fcntl: port portions of fcntl to mingw
75667         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
75668         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
75669         replacement for mingw.
75670         * modules/fcntl (Description): Update.
75671         (Depends-on): Add dup2.
75672         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
75673         * modules/fcntl-h (Makefile.am): Substitute it.
75674         * lib/fcntl.in.h (fcntl): Update declaration.
75675         (F_DUPFD, F_GETFD): New macros, when needed.
75676         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
75677         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
75678         * tests/test-fcntl.c (check_flags, main): Enhance test for items
75679         we now guarantee.
75681         fcntl: work around cygwin bug in F_DUPFD
75682         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
75683         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
75684         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
75685         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
75686         * doc/posix-functions/fcntl.texi (fcntl): Document it.
75688         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
75689         * modules/fcntl (Files): List new files.
75690         (configure.ac): Run a test.
75691         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
75692         * lib/fcntl.c (rpl_fcntl): Likewise.
75693         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
75694         (gl_FCNTL_H): Always replace fcntl.h.
75695         * modules/fcntl-h (Makefile.am): Substitute witnesses.
75696         * lib/fcntl.in.h (fcntl): Declare replacement.
75697         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
75698         needed, plus a witness.
75699         * doc/posix-functions/fcntl.texi (fcntl): Document this.
75700         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
75701         * tests/test-fcntl.c: New file.
75702         * modules/fcntl-tests: Likewise.
75704         binary-io: avoid potential compilation warning
75705         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
75706         directives.
75708         fflush: avoid compilation error on NetBSD
75709         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
75710         between off_t and fpos_t, since the latter is sometimes a struct.
75711         * lib/fseeko.c (rpl_fseeko): Likewise.
75712         Reported by Alexander Nasonov <alnsn@yandex.ru>.
75714 2009-12-15  Eric Blake  <ebb9@byu.net>
75716         fcntl-h, stdio, sys_ioctl: fix declarations
75717         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
75718         function must not take arguments.
75719         * lib/sys_ioctl.in.h (ioctl): Likewise.
75720         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
75721         (open): Add a link warning.
75723 2009-12-15  Jim Meyering  <meyering@redhat.com>
75725         areadlink, areadlink-with-size: relax license to LGPLv2+
75726         * modules/areadlink (License): Relax to LGPLv2+.
75727         * modules/areadlink-with-size (License): Likewise.
75729 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
75730             Bruno Haible  <bruno@clisp.org>
75732         *printf: Fix memory leak.
75733         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
75734         * lib/vfprintf.c (vfprintf): Likewise.
75735         * lib/dprintf.c (dprintf): Likewise.
75736         * lib/vdprintf.c (vdprintf): Likewise.
75738 2009-12-14  Eric Blake  <ebb9@byu.net>
75740         accept4: adjust module dependencies
75741         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
75743         utimens: one more try at avoiding compiler warning
75744         * lib/utimens.c (lutimens): Lower scope of result.
75746 2009-12-13  Bruno Haible  <bruno@clisp.org>
75748         Move the malloc checking from module 'list' to new module 'xlist'.
75749         * modules/xlist: New file.
75750         * lib/gl_xlist.h: New file.
75751         * lib/gl_xlist.c: New file.
75752         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
75753         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
75754         gl_list_add_last, gl_list_add_before, gl_list_add_after,
75755         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
75756         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
75757         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
75758         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
75759         gl_sortedlist_nx_add): New declarations.
75760         (struct gl_list_implementation): Rename and change methods accordingly.
75761         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
75762         (gl_list_nx_create): Renamed from gl_list_create.
75763         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
75764         (gl_list_nx_set_at): Renamed from gl_list_set_at.
75765         (gl_list_nx_add_first): Renamed from gl_list_add_first.
75766         (gl_list_nx_add_last): Renamed from gl_list_add_last.
75767         (gl_list_nx_add_before): Renamed from gl_list_add_before.
75768         (gl_list_nx_add_after): Renamed from gl_list_add_after.
75769         (gl_list_nx_add_at): Renamed from gl_list_add_at.
75770         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
75771         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
75772         gl_list_create_empty.
75773         (gl_list_nx_create): Renamed from gl_list_create.
75774         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
75775         (gl_list_nx_set_at): Renamed from gl_list_set_at.
75776         (gl_list_nx_add_first): Renamed from gl_list_add_first.
75777         (gl_list_nx_add_last): Renamed from gl_list_add_last.
75778         (gl_list_nx_add_before): Renamed from gl_list_add_before.
75779         (gl_list_nx_add_after): Renamed from gl_list_add_after.
75780         (gl_list_nx_add_at): Renamed from gl_list_add_at.
75781         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
75782         * lib/gl_array_list.c: Don't include xalloc.h.
75783         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
75784         NULL upon out-of-memory.
75785         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
75786         out-of-memory.
75787         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
75788         Change return type to 'int'.
75789         (gl_array_nx_set_at): Renamed from gl_array_set_at.
75790         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
75791         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
75792         upon out-of-memory.
75793         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
75794         upon out-of-memory.
75795         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
75796         upon out-of-memory.
75797         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
75798         upon out-of-memory.
75799         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
75800         out-of-memory.
75801         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
75802         Update.
75803         (gl_array_list_implementation): Update.
75804         * lib/gl_carray_list.c: Don't include xalloc.h.
75805         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
75806         Return NULL upon out-of-memory.
75807         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
75808         out-of-memory.
75809         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
75810         Change return type to 'int'.
75811         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
75812         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
75813         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
75814         upon out-of-memory.
75815         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
75816         upon out-of-memory.
75817         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
75818         out-of-memory.
75819         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
75820         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
75821         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
75822         Update.
75823         (gl_carray_list_implementation): Update.
75824         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
75825         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
75826         gl_linked_create_empty. Return NULL upon out-of-memory.
75827         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
75828         out-of-memory.
75829         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
75830         Change return type to 'int'. Return -1 upon out-of-memory.
75831         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
75832         out-of-memory.
75833         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
75834         upon out-of-memory.
75835         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
75836         upon out-of-memory.
75837         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
75838         NULL upon out-of-memory.
75839         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
75840         upon out-of-memory.
75841         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
75842         out-of-memory.
75843         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
75844         Update.
75845         * lib/gl_linked_list.c: Don't include xalloc.h.
75846         (gl_linked_list_implementation): Update.
75847         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
75848         (add_to_bucket): Change return type to 'int'.
75849         (gl_linkedhash_list_implementation): Update.
75850         * lib/gl_anytree_list1.h (free_subtree): New function.
75851         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
75852         gl_tree_create_empty. Return NULL upon out-of-memory.
75853         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
75854         Change return type to 'int'. Return -1 upon out-of-memory.
75855         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
75856         out-of-memory.
75857         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
75858         (gl_tree_remove_node): New function, moved here from
75859         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
75860         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
75861         Update.
75862         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
75863         malloc, not xmalloc. Return NULL upon out-of-memory.
75864         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
75865         out-of-memory.
75866         (gl_tree_remove_node_from_tree): New function, extracted from
75867         gl_tree_remove_node.
75868         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
75869         upon out-of-memory.
75870         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
75871         out-of-memory.
75872         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
75873         upon out-of-memory.
75874         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
75875         upon out-of-memory.
75876         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
75877         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
75878         not xmalloc. Return NULL upon out-of-memory.
75879         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
75880         out-of-memory.
75881         (gl_tree_remove_node_from_tree): New function, extracted from
75882         gl_tree_remove_node.
75883         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
75884         upon out-of-memory.
75885         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
75886         out-of-memory.
75887         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
75888         upon out-of-memory.
75889         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
75890         upon out-of-memory.
75891         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
75892         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
75893         gl_anytree_list1.h before gl_anyavltree_list2.h.
75894         (gl_avltree_list_implementation): Update.
75895         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
75896         gl_anytree_list1.h before gl_anyavltree_list2.h.
75897         (gl_rbtree_list_implementation): Update.
75898         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
75899         Change return type to 'int'. Return -1 upon out-of-memory. Use
75900         __builtin_expect.
75901         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
75902         (gl_avltreehash_list_implementation): Update.
75903         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
75904         (gl_rbtreehash_list_implementation): Update.
75905         * modules/array-list (Depends-on): Remove xalloc.
75906         * modules/carray-list (Depends-on): Likewise.
75907         * modules/linked-list (Depends-on): Likewise.
75908         * modules/linkedhash-list (Depends-on): Likewise.
75909         * modules/avltree-list (Depends-on): Likewise.
75910         * modules/rbtree-list (Depends-on): Likewise.
75911         * modules/avltreehash-list (Depends-on): Likewise.
75912         * modules/rbtreehash-list (Depends-on): Likewise.
75914         * modules/xsublist: New file.
75915         * lib/gl_xsublist.h: New file.
75916         * lib/gl_xsublist.c: New file.
75917         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
75918         (gl_sublist_nx_create): New declaration.
75919         * lib/gl_sublist.c: Don't include xalloc.h.
75920         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
75921         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
75922         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
75923         Change return type to 'int'. Return -1 upon out-of-memory.
75924         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
75925         upon out-of-memory.
75926         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
75927         NULL upon out-of-memory.
75928         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
75929         upon out-of-memory.
75930         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
75931         NULL upon out-of-memory.
75932         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
75933         NULL upon out-of-memory.
75934         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
75935         upon out-of-memory.
75936         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
75937         (gl_sublist_list_implementation): Update.
75938         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
75939         upon out-of-memory.
75940         * modules/sublist (Depends-on): Remove xalloc.
75942         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
75943         * tests/test-carray_list.c: Likewise.
75944         * tests/test-linked_list.c: Likewise.
75945         * tests/test-linkedhash_list.c: Likewise.
75946         * tests/test-avltree_list.c: Likewise.
75947         * tests/test-rbtree_list.c: Likewise.
75948         * tests/test-avltreehash_list.c: Likewise.
75949         * tests/test-rbtreehash_list.c: Likewise.
75950         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
75951         * modules/carray-list-tests (Makefile.am): Likewise.
75952         * modules/linked-list-tests (Makefile.am): Likewise.
75953         * modules/linkedhash-list-tests (Makefile.am): Likewise.
75954         * modules/avltree-list-tests (Makefile.am): Likewise.
75955         * modules/rbtree-list-tests (Makefile.am): Likewise.
75956         * modules/avltreehash-list-tests (Makefile.am): Likewise.
75957         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
75959         * NEWS: Mention the changes.
75961         * lib/clean-temp.c: Include gl_xlist.h.
75962         * modules/clean-temp (Depends-on): Add xlist.
75964         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
75965         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
75967         * tests/test-array_oset.c: Include gl_xlist.h.
75968         * modules/array-oset-tests (Depends-on): Add xlist.
75970         Reported by José E. Marchesi <jemarch@gnu.org>.
75972 2009-12-13  Bruno Haible  <bruno@clisp.org>
75974         Move the malloc checking from module 'oset' to new module 'xoset'.
75975         * modules/xoset: New file.
75976         * lib/gl_xoset.h: New file.
75977         * lib/gl_xoset.c: New file.
75978         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
75979         declarations.
75980         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
75981         (struct gl_oset_implementation): Rename and change methods accordingly.
75982         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
75983         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
75984         'int'. Mark as __warn_unused_result__.
75985         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
75986         gl_oset_create_empty.
75987         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
75988         'int'.
75989         * lib/gl_array_oset.c: Don't include xalloc.h.
75990         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
75991         malloc, not xmalloc.
75992         (grow): Change return type to 'int'. Don't call xalloc_die.
75993         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
75994         to 'int'.
75995         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
75996         'int'.
75997         (gl_array_oset_implementation): Update.
75998         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
75999         gl_tree_create_empty.
76000         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
76001         'int'.
76002         * lib/gl_avltree_oset.c: Don't include xalloc.h.
76003         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
76004         xmalloc.
76005         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
76006         not xmalloc.
76007         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
76008         xmalloc.
76009         (gl_avltree_oset_implementation): Update.
76010         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
76011         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
76012         xmalloc.
76013         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
76014         not xmalloc.
76015         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
76016         xmalloc.
76017         (gl_rbtree_oset_implementation): Update.
76018         * modules/array-oset (Depends-on): Remove xalloc.
76019         * modules/avltree-oset (Depends-on): Likewise.
76020         * modules/rbtree-oset (Depends-on): Likewise.
76021         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
76022         * tests/test-avltree_oset.c: Likewise.
76023         * tests/test-rbtree_oset.c: Likewise.
76024         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
76025         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
76026         * modules/rbtree-oset-tests (Makefile.am): Likewise.
76027         * NEWS: Mention the change.
76029 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
76031         maint.mk: allow a project to override release-prep commands
76032         * top/maint.mk (alpha, beta, stable): Move release-preparatory
76033         commands into a new rule.
76034         (release-prep): New rule.
76035         (release-prep-hook): New overridable variable.
76037 2009-12-13  Bruno Haible  <bruno@clisp.org>
76039         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
76041 2009-12-13  Jim Meyering  <meyering@redhat.com>
76043         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
76044         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
76046 2009-12-12  Bruno Haible  <bruno@clisp.org>
76048         duplocale: Tweak.
76049         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
76051 2009-12-12  Karl Berry  <karl@gnu.org>
76053         * config/srclist.txt (strtoll.c): tab changes, no more sync.
76055 2009-12-12  Bruno Haible  <bruno@clisp.org>
76057         * m4/po.m4: Undo incorrect untabification.
76059 2009-12-12  Bruno Haible  <bruno@clisp.org>
76061         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
76062         * modules/c-strtod (Depends-on): Add locale.
76063         * modules/c-strtold (Depends-on): Likewise.
76065 2009-12-12  Bruno Haible  <bruno@clisp.org>
76067         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
76069 2009-12-11  Eric Blake  <ebb9@byu.net>
76071         setenv: relax requirement in light of POSIX ruling
76072         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
76073         not NULL.
76074         * tests/test-setenv.c (main): Relax test.
76075         * tests/test-unsetenv.c (main): Likewise.
76076         * doc/posix-functions/setenv.texi (setenv): Document this.
76077         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
76079 2009-12-11  Bruno Haible  <bruno@clisp.org>
76081         New module 'fd-safer-flag'.
76082         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
76083         * lib/dup-safer.c (dup_safer_flag): Remove function.
76084         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
76085         * lib/fd-safer.c (fd_safer_flag): Remove function.
76086         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
76087         * modules/cloexec (configure.ac): Drop indicator macro.
76088         * modules/fd-safer-flag: New file.
76089         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
76090         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
76091         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
76093 2009-12-11  Bruno Haible  <bruno@clisp.org>
76095         Tests for module 'nl_langinfo'.
76096         * modules/nl_langinfo-tests: New file.
76097         * tests/test-nl_langinfo.sh: New file.
76098         * tests/test-nl_langinfo.c: New file.
76100         New module 'nl_langinfo'.
76101         * lib/nl_langinfo.c: New file.
76102         * m4/nl_langinfo.m4: New file.
76103         * modules/nl_langinfo: New file.
76104         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
76106 2009-12-11  Bruno Haible  <bruno@clisp.org>
76108         Tests for module 'langinfo'.
76109         * modules/langinfo-tests: New file.
76110         * tests/test-langinfo.c: New file.
76112         New module 'langinfo'.
76113         * lib/langinfo.in.h: New file.
76114         * m4/langinfo_h.m4: New file.
76115         * modules/langinfo: New file.
76116         * doc/posix-headers/langinfo.texi: Mention the new module.
76118 2009-12-11  Bruno Haible  <bruno@clisp.org>
76120         * lib/config.charset: Untabify.
76122 2009-12-11  Bruno Haible  <bruno@clisp.org>
76124         * modules/unistd-safer (configure.ac): Drop indicator macro.
76126 2009-12-11  Bruno Haible  <bruno@clisp.org>
76128         Move pipe2-safer code to its own file.
76129         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
76130         * lib/pipe-safer.c (pipe2_safer): Remove function.
76131         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
76132         (Makefile.am): Add it to lib_SOURCES.
76134 2009-12-10  Bruno Haible  <bruno@clisp.org>
76136         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
76138 2009-12-10  Bruno Haible  <bruno@clisp.org>
76140         Declare which arguments expect non-NULL values, for GCC and clang.
76141         * build-aux/arg-nonnull.h: New file.
76142         * modules/arg-nonnull: New file.
76143         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
76144         (inet_ntop, inet_pton): Use it.
76145         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
76146         (closedir, dirfd, opendir, scandir, alphasort): Use it.
76147         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
76148         (open, openat): Use it.
76149         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
76150         (fnmatch): Use it.
76151         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
76152         (getopt, getopt_long, getopt_long_only): Use it.
76153         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
76154         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
76155         Use it.
76156         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
76157         (iconv_open): Use it.
76158         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
76159         (strtoimax, strtoumax): Use it.
76160         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
76161         (duplocale): Use it.
76162         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
76163         (frexp, frexpl): Use it.
76164         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
76165         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
76166         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
76167         (tsearch, tfind, tdelete, twalk): Use it.
76168         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
76169         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
76170         sigpending): Use it.
76171         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
76172         (posix_spawn, posix_spawnp, posix_spawnattr_init,
76173         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
76174         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
76175         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
76176         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
76177         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
76178         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
76179         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
76180         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
76181         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
76182         Use it.
76183         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
76184         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
76185         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
76186         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
76187         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
76188         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
76189         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
76190         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
76191         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
76192         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
76193         strtoull, unsetenv): Use it.
76194         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
76195         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
76196         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
76197         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
76198         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
76199         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
76200         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
76201         (strcasecmp, strncasecmp): Use it.
76202         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
76203         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
76204         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
76205         rpl_setsockopt): Use it.
76206         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
76207         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
76208         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
76209         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
76210         (gettimeofday): Use it.
76211         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
76212         (times): Use it.
76213         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
76214         (uname): Use it.
76215         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
76216         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
76217         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
76218         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
76219         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
76220         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
76221         unlinkat, write): Use it.
76222         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
76223         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
76224         * lib/argv-iter.h: Include arg-nonnull.h.
76225         (_ATTRIBUTE_NONNULL_): Remove macro.
76226         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
76227         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
76228         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
76229         optimization.
76230         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
76231         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
76232         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
76233         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
76234         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
76235         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
76236         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
76237         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
76238         * modules/arpa_inet (Depends-on): Add arg-nonnull.
76239         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
76240         * modules/dirent (Depends-on): Add arg-nonnull.
76241         (Makefile.am): Insert arg-nonnull.h into dirent.h.
76242         * modules/fcntl-h (Depends-on): Add arg-nonnull.
76243         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
76244         * modules/fnmatch (Depends-on): Add arg-nonnull.
76245         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
76246         * modules/getopt-posix (Depends-on): Add arg-nonnull.
76247         (Makefile.am): Insert arg-nonnull.h into getopt.h.
76248         * modules/glob (Depends-on): Add arg-nonnull.
76249         (Makefile.am): Insert arg-nonnull.h into glob.h.
76250         * modules/iconv_open (Depends-on): Add arg-nonnull.
76251         (Makefile.am): Insert arg-nonnull.h into iconv.h.
76252         * modules/inttypes (Depends-on): Add arg-nonnull.
76253         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
76254         * modules/locale (Depends-on): Add arg-nonnull.
76255         (Makefile.am): Insert arg-nonnull.h into locale.h.
76256         * modules/math (Depends-on): Add arg-nonnull.
76257         (Makefile.am): Insert arg-nonnull.h into math.h.
76258         * modules/netdb (Depends-on): Add arg-nonnull.
76259         (Makefile.am): Insert arg-nonnull.h into netdb.h.
76260         * modules/search (Depends-on): Add arg-nonnull.
76261         (Makefile.am): Insert arg-nonnull.h into search.h.
76262         * modules/signal (Depends-on): Add arg-nonnull.
76263         (Makefile.am): Insert arg-nonnull.h into signal.h.
76264         * modules/spawn (Depends-on): Add arg-nonnull.
76265         (Makefile.am): Insert arg-nonnull.h into spawn.h.
76266         * modules/stdio (Depends-on): Add arg-nonnull.
76267         (Makefile.am): Insert arg-nonnull.h into stdio.h.
76268         * modules/stdlib (Depends-on): Add arg-nonnull.
76269         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
76270         * modules/string (Depends-on): Add arg-nonnull.
76271         (Makefile.am): Insert arg-nonnull.h into string.h.
76272         * modules/strings (Depends-on): Add arg-nonnull.
76273         (Makefile.am): Insert arg-nonnull.h into strings.h.
76274         * modules/sys_socket (Depends-on): Add arg-nonnull.
76275         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
76276         * modules/sys_stat (Depends-on): Add arg-nonnull.
76277         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
76278         * modules/sys_time (Depends-on): Add arg-nonnull.
76279         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
76280         * modules/sys_times (Depends-on): Add arg-nonnull.
76281         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
76282         * modules/sys_utsname (Depends-on): Add arg-nonnull.
76283         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
76284         * modules/time (Depends-on): Add arg-nonnull.
76285         (Makefile.am): Insert arg-nonnull.h into time.h.
76286         * modules/unistd (Depends-on): Add arg-nonnull.
76287         (Makefile.am): Insert arg-nonnull.h into unistd.h.
76288         * modules/wchar (Depends-on): Add arg-nonnull.
76289         (Makefile.am): Insert arg-nonnull.h into wchar.h.
76290         * modules/argv-iter (Depends-on): Add arg-nonnull.
76291         * tests/test-canonicalize.c (null_ptr): New function.
76292         (main): Use it.
76293         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
76294         (main): Use it.
76295         * tests/test-memmem.c (null_ptr): New function.
76296         (main): Use it.
76297         Reported by Jim Meyering.
76299 2009-12-10  Bruno Haible  <bruno@clisp.org>
76301         Use spaces for indentation, not tabs.
76302         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
76303         * m4/*.m4: Untabify.
76304         * build-aux/*.h: Untabify.
76305         * tests/**/*.[hc]: Untabify.
76306         * README: New section "Indent with spaces, not TABs", based on
76307         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
76308         * NEWS: Mention the change.
76310 2009-12-10  Bruno Haible  <bruno@clisp.org>
76312         pty test: Fix link error.
76313         * modules/pty-tests (Makefile.am): Add the default LDADD value to
76314         test_pty_LDADD.
76316 2009-12-07  Simon Josefsson  <simon@josefsson.org>
76318         * modules/pty: New file.
76319         * modules/pty-tests: New file.
76320         * m4/pty.m4: New file.
76321         * tests/test-pty.c: New file.
76322         * doc/glibc-headers/pty.texi: Modified.
76323         * doc/glibc-functions/forkpty.texi: Modified.
76324         * doc/glibc-functions/openpty.texi: Modified.
76326 2009-12-10  Bruno Haible  <bruno@clisp.org>
76328         Avoid syntax error in C++ mode.
76329         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
76331 2009-12-10  Bruno Haible  <bruno@clisp.org>
76333         Use sed with option -e.
76334         * gnulib-tool (func_version, func_emit_copyright_notice,
76335         func_emit_initmacro_end, func_import, func_create_testdir): Pass
76336         option -e to sed.
76337         * modules/link-warning (Makefile.am): Likewise.
76339 2009-12-10  Jim Meyering  <meyering@redhat.com>
76341         mgetgroups: do not write bytes beyond end of malloc'd buffer
76342         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
76343         username, we call getgroups with a one-element-shorter buffer,
76344         but still told it the length was original, max_n_groups.
76346 2009-12-09  Eric Blake  <ebb9@byu.net>
76348         cloexec: relax license
76349         * modules/cloexec (Maintainer): Add myself.
76350         (License): Use LGPL, not GPL.
76352         link-warning: optimize generation
76353         * modules/link-warning (Makefile.am): Reduce process usage.
76355 2009-12-09  Bruno Haible  <bruno@clisp.org>
76357         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
76358         workaround was added on 2009-11-17.
76360 2009-12-09  Jim Meyering  <meyering@redhat.com>
76361             Bruno Haible  <bruno@clisp.org>
76363         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
76364         * modules/link-warning (Makefile.am): Make the comment-removing sed
76365         command more robust in the face of bootstrap-prepended comment lines.
76367 2009-12-09  Bruno Haible  <bruno@clisp.org>
76369         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
76370         most one group.
76372 2009-12-09  Simon Josefsson  <simon@josefsson.org>
76373             Bruno Haible  <bruno@clisp.org>
76375         * build-aux/link-warning.h: Add copyright notice.
76376         * modules/link-warning (Makefile.am): Generate link-warning.h from
76377         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
76378         * NEWS: Mention change in link-warning module.
76379         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
76380         * modules/dirent (Makefile.am): Add dependency to dirent.h.
76381         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
76382         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
76383         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
76384         * modules/math (Makefile.am): Add dependency to math.h.
76385         * modules/search (Makefile.am): Add dependency to search.h.
76386         * modules/signal (Makefile.am): Add dependency to signal.h.
76387         * modules/spawn (Makefile.am): Add dependency to spawn.h.
76388         * modules/stdio (Makefile.am): Add dependency to stdio.h.
76389         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
76390         * modules/string (Makefile.am): Add dependency to string.h.
76391         * modules/strings (Makefile.am): Add dependency to strings.h.
76392         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
76393         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
76394         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
76395         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
76396         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
76397         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
76398         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
76399         * modules/unistd (Makefile.am): Add dependency to unistd.h.
76400         * modules/wchar (Makefile.am): Add dependency to wchar.h.
76402 2009-12-09  Bruno Haible  <bruno@clisp.org>
76404         fchdir: Optimize away rpl_fstat when possible.
76405         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
76406         REPLACE_OPEN_DIRECTORY.
76407         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
76409 2009-12-09  Bruno Haible  <bruno@clisp.org>
76411         * lib/fchdir.c: Update comment.
76413 2009-12-09  Bruno Haible  <bruno@clisp.org>
76415         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
76417 2009-12-08  Eric Blake  <ebb9@byu.net>
76419         fchdir: avoid memory leak on re-registration.
76420         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
76422 2009-12-08  Jim Meyering  <meyering@redhat.com>
76424         init.sh: avoid Solaris 10 /bin/sh portability problem
76425         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
76426         sourced script:
76427           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
76428           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
76429           bar
76430         tests/init.sh relied on that, accepting a --set-path=DIR argument,
76431         and two tests used that idiom.
76432         * tests/init.sh: Update suggested usage comments.
76433         (path_prepend_): New function, to be used in place
76434         of the --src-path=DIR option.
76435         (setup_): Move PATH-prepending code into path_prepend_.
76436         * tests/test-pread.sh: Adapt to new usage.
76437         * tests/test-xalloc-die.sh: Likewise.
76439 2009-12-08  Simon Josefsson  <simon@josefsson.org>
76441         * doc/gnulib.texi (Glibc pty.h): Add.
76442         * doc/glibc-functions/forkpty.texi: Add.
76443         * doc/glibc-functions/openpty.texi: Add.
76444         Suggested by Bruno Haible.
76446 2009-12-08  Eric Blake  <ebb9@byu.net>
76448         fchdir: fix logic bugs
76449         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
76450         * tests/test-fchdir.c (main): Enhance test.
76451         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
76452         is in use.
76454         dup2: fix logic bugs
76455         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
76456         REPLACE_DUP2 to decide when rpl_dup2 is needed.
76457         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
76458         exists.
76459         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
76461 2009-12-07  Eric Blake  <ebb9@byu.net>
76463         unlink: fix m4 detection
76464         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
76466         unistd-safer: add unit test
76467         * modules/unistd-safer-tests: New file.
76468         * tests/test-dup-safer.c: Likewise.
76469         * tests/test-cloexec.c (setmode): Avoid compiler warning.
76470         * tests/test-dup2.c (setmode): Likewise.
76471         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
76473         cloexec: preserve text vs. binary across dup_cloexec
76474         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
76475         mode.
76476         * modules/dup2-tests (Depends-on): Add binary-io.
76477         * modules/cloexec-tests (Depends-on): Likewise.
76478         * tests/test-dup2.c (setmode, is_mode): New helpers.
76479         (main): Add tests that translation mode is preserved.
76480         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
76481         Reported by Bruno Haible.
76483         mgetgroups: reduce duplicate listings
76484         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
76485         resulting array.
76486         * tests/test-chown.h (test_chown): Simplify client.
76487         * tests/test-lchown.h (test_lchown): Likewise.
76489 2009-12-06  Bruno Haible  <bruno@clisp.org>
76491         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
76492         value.
76494 2009-12-06  Bruno Haible  <bruno@clisp.org>
76496         * lib/progname.c: Include stdio.h, stdlib.h.
76497         (set_program_name): Reject a NULL argument.
76499 2009-12-05  Eric Blake  <ebb9@byu.net>
76501         pipe2-safer: new module
76502         * modules/pipe2-safer: New file.
76503         * lib/unistd-safer.h (pipe2_safer): New prototype.
76504         * lib/unistd--.h (pipe2): New wrapper.
76505         * lib/pipe-safer.c (pipe2_safer): New function.
76506         * modules/pipe (Depends-on): Add pipe2-safer.
76507         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
76509         stdlib-safer: preserve cloexec flag for mkostemp[s]
76510         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
76511         fd_safer_flag.
76513         unistd-safer: allow preservation of cloexec status via flag
76514         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
76515         prototypes.
76516         * lib/dup-safer.c (dup_safer_flag): New function.
76517         * lib/fd-safer.c (fd_safer_flag): Likewise.
76518         * modules/cloexec (configure.ac): Set witness.
76520         test-dup2: enhance test
76521         * modules/dup2-tests (Depends-on): Add cloexec.
76522         * tests/test-dup2.c (main): Enhance test.
76524         cloexec: add dup_cloexec
76525         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
76526         header and comments.
76527         * lib/cloexec.c (set_cloexec_flag): Add comments.
76528         (dup_cloexec): New function, with mingw implementation borrowed
76529         from...
76530         * lib/w32spawn.h (dup_noinherit): ...here.
76531         * modules/execute (Depends-on): Add cloexec.
76532         * modules/pipe (Depends-on): Likewise.
76533         * modules/cloexec (Depends-on): Add dup2.
76534         * modules/cloexec-tests (Files): New file.
76535         * tests/test-cloexec.c: Likewise.
76537         test-xalloc-die: fix test for mingw
76538         * modules/xalloc-die-tests (Files): Add tests/init.sh.
76539         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
76540         directory and .exe suffix off argv[0] output.
76542         test-fseeko: fix test for mingw
76543         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
76544         than undefining fseek, so test will pass on mingw.
76546 2009-12-05  Bruno Haible  <bruno@clisp.org>
76548         * lib/progname.h (set_program_name): Clarify specification.
76549         * lib/progname.c (set_program_name): Likewise.
76550         Reported by Jim Meyering.
76552 2009-12-05  Jim Meyering  <meyering@redhat.com>
76554         maint.mk: backslash-escape parens in default regexp
76555         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
76556         backslash-escape the literal parentheses.
76558         maint.mk: news-date-check: use grep -E
76559         * top/maint.mk (today): Define a Make variable, not a...
76560         (news-date-check): ...shell variable.
76561         (news-date-regexp): Use the Make variable.
76562         Use grep's -E option.  Change the failing diagnostic to mention
76563         the variable, $(news-date-regexp).
76565 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
76567         maintainer-makefile: allow customization of NEWS entry format
76568         * top/maint.mk (news-date-regexp): New overridable variable.
76569         (news-date-check): Use it.
76571 2009-12-04  Eric Blake  <ebb9@byu.net>
76573         mgetgroups: add xgetgroups, and avoid ENOSYS failures
76574         * lib/mgetgroups.h (xgetgroups): New prototype.
76575         * lib/mgetgroups.c (xgetgroups): New wrapper.
76576         (mgetgroups): Handle ENOSYS.
76577         * modules/mgetgroups (Depends-on): Add realloc.
76578         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
76580         mgetgroups: avoid argument promotion issues with -1
76581         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
76582         for invalid gid_t.
76583         * tests/test-chown.h (getegid, test_chown): Likewise.
76584         * tests/test-lchown.h (getegid, test_lchown): Likewise.
76586 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
76588         exclude: Fix header file problems.
76589         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
76591 2009-12-01  Jim Meyering  <meyering@redhat.com>
76593         fts: fts_open: do not let an empty string cause immediate failure
76594         This is required in support of GNU rm, for which the command
76595         "rm A '' B" must process and remove both A and B, in spite of
76596         the empty string argument.
76597         * lib/fts.c (fts_open): Do not let the presence of an empty string
76598         cause fts_open to fail immediately.  Most fts-using tools must be
76599         able to process all arguments, in order, and can be expected to
76600         diagnose such arguments themselves.
76602 2009-11-30  Eric Blake  <ebb9@byu.net>
76604         utimens: fix compilation error
76605         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
76606         Declare variable at right scope.
76608 2009-11-29  Jim Meyering  <meyering@redhat.com>
76610         bootstrap: handle perl-5.11's changed --version output
76611         * build-aux/bootstrap (get_version): Handle perl separately,
76612         since perl-5.11's --version output is different.
76614 2009-11-28  Jim Meyering  <meyering@redhat.com>
76616         userspec: depend on the inttostr module, too
76617         * modules/userspec (Depends-on): Add inttostr.
76619         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
76620         * lib/userspec.c (parse_with_separator): Do not accept a user ID
76621         number of MAXUID when it evaluates to (uid_t) -1.
76622         Likewise for group ID.  Reported by Matt McCutchen in
76623         <http://savannah.gnu.org/bugs/?28113>
76625         userspec: reformat to use spaces, not TABs
76626         * lib/userspec.c: Expand TABs to spaces.
76627         Add Emacs' "indent-tabs-mode: nil" hint.
76629 2009-11-27  Eric Blake  <ebb9@byu.net>
76631         getopt-gnu: flush out another BSD bug
76632         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
76633         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
76634         flush out BSD bug.
76635         * tests/test-getopt.h (test_getopt): End lists with NULL.
76636         * tests/test-getopt_long.h (test_getopt_long): Likewise.
76637         (test_getopt_long_posix): Enhance test.
76638         * modules/getopt-posix-tests (Depends-on): Add stdbool.
76639         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
76640         getopt-gnu.
76641         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
76642         Likewise.
76644 2009-11-27  Simon Josefsson  <simon@josefsson.org>
76646         * modules/idpriv-droptemp-tests (Notice): Fix text.
76648 2009-11-27  Jim Meyering  <meyering@redhat.com>
76650         test-xalloc-die: avoid spurious failure due to libtool argv difference
76651         In a libtool-enabled project, this test would fail due to a difference
76652         in the emitted program name, e.g.,
76653         -test-xalloc-die: memory exhausted
76654         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
76655         Use program to avoid that.
76656         * modules/xalloc-die-tests (Depends-on): Add progname.
76657         * tests/test-xalloc-die.c: Include progname.h".
76658         (program_name): Remove decl.
76659         (main): Call set_program_name.
76660         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
76662 2009-11-26  Richard Jones  <rjones@redhat.com>
76664         w32sock: leave win32 error in place.
76665         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
76667 2009-11-26  Eric Blake  <ebb9@byu.net>
76669         init.sh: suggest to use skip_ and fail_ functions in comments
76670         * tests/init.sh: Add a sentence.
76672 2009-11-25  Bruno Haible  <bruno@clisp.org>
76674         init.sh: add documentation in comments
76675         * tests/init.sh: Add some developer and user documentation.
76677 2009-11-26  Jim Meyering  <meyering@redhat.com>
76679         init.sh: accommodate even those who specify bogus srcdir manually
76680         * tests/init.sh: Normally, srcdir is guaranteed by automake and
76681         configure-time tests to be sanitized, so that there is no need to
76682         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
76683         (with no double quotes) suffices.  However, since tests may be
76684         invoked manually, and since you may explicitly set srcdir to the
76685         name of a directory containing spaces, do quote its uses here.
76686         * tests/test-pread.sh: Likewise.
76687         Suggested by Bruno Haible.
76689         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
76690         * tests/test-pread.sh: Write no data into the pipe, because
76691         test-pread actually reads none.  This avoids a diagnostic,
76692         "bash: echo: write error: Broken pipe", that arises in the unusual
76693         event something is ignoring SIGPIPE, and might be interpreted
76694         as some sort of failure.  Reported by Bruno Haible.
76696 2009-11-25  Jim Meyering  <meyering@redhat.com>
76698         test-pread: cover failure with ESPIPE and EINVAL
76699         * tests/test-pread.c (main): Test for failure, too.
76700         * tests/test-pread.sh: Invoke with stdin on a pipe.
76701         Suggested by Eric Blake.
76703         pread: improvement and fix
76704         * modules/pread (Depends-on): Depend on lseek, for portability to
76705         e.g., mingw.  Suggested by Eric Blake.
76706         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
76708         unistd.in.h: correct declaration of pread
76709         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
76710         Reported by Richard W.M. Jones.
76712         test-pread.sh: distribute the test script
76713         * modules/pread-tests (Files): Include test-pread.sh.
76715         test-pread.sh: clean up
76716         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
76717         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
76718         That is unnecessary, since it's always ".".
76719         Suggestion from Eric Blake.
76721         test-pread.sh: make executable
76722         * tests/test-pread.sh: Set executable bit.
76723         Reported by Eric Blake.
76725         correct typo in test-pread.sh
76726         * tests/test-pread.sh: Add #! line.
76728         test pread
76729         * tests/test-pread.c: New file.
76730         * tests/test-pread.sh: Likewise.
76731         * modules/pread-tests: Likewise.
76733         pread: new module
76734         * modules/pread: New file.
76735         * lib/unistd.in.h (pread): Define/declare.
76736         * lib/pread.c (pread): New file.
76737         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
76738         * modules/unistd (Makefile.am): Substitute witnesses.
76739         * doc/posix-functions/pread.texi (pread): Update.
76740         * MODULES.html.sh: Add pread.
76742 2009-11-25  Jim Meyering  <meyering@redhat.com>
76744         tests/init.sh: new file to be used via most *.sh tests
76745         * tests/init.sh: New file.
76747 2009-11-25  Eric Blake  <ebb9@byu.net>
76749         utimens: work around older Linux failure with symlinks
76750         * lib/utimens.c (lutimensat_works_really): New variable.
76751         (fdutimens, lutimens): Use it to manage kernels that support
76752         nanosecond times on files, but not on symlinks.
76753         Reported by Ondřej Vašík.
76755         utimes: fix configure grammar
76756         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
76758 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
76760         regex: Fix fastmap for multibyte character ranges.
76761         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
76762         characters when a multibyte character range is included.
76764 2009-11-22  Andy Wingo  <wingo@pobox.com>
76766         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
76767         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
76769 2009-11-24  Bruno Haible  <bruno@clisp.org>
76771         doc: Most *_l functions exist in MacOS X 10.5.
76772         * doc/posix-functions/duplocale.texi: Update platforms list.
76773         * doc/posix-functions/freelocale.texi: Likewise.
76774         * doc/posix-functions/newlocale.texi: Likewise.
76775         * doc/posix-functions/uselocale.texi: Likewise.
76776         * doc/posix-functions/isalnum_l.texi: Likewise.
76777         * doc/posix-functions/isalpha_l.texi: Likewise.
76778         * doc/posix-functions/isblank_l.texi: Likewise.
76779         * doc/posix-functions/iscntrl_l.texi: Likewise.
76780         * doc/posix-functions/isdigit_l.texi: Likewise.
76781         * doc/posix-functions/isgraph_l.texi: Likewise.
76782         * doc/posix-functions/islower_l.texi: Likewise.
76783         * doc/posix-functions/isprint_l.texi: Likewise.
76784         * doc/posix-functions/ispunct_l.texi: Likewise.
76785         * doc/posix-functions/isspace_l.texi: Likewise.
76786         * doc/posix-functions/isupper_l.texi: Likewise.
76787         * doc/posix-functions/iswalnum_l.texi: Likewise.
76788         * doc/posix-functions/iswalpha_l.texi: Likewise.
76789         * doc/posix-functions/iswblank_l.texi: Likewise.
76790         * doc/posix-functions/iswcntrl_l.texi: Likewise.
76791         * doc/posix-functions/iswctype_l.texi: Likewise.
76792         * doc/posix-functions/iswdigit_l.texi: Likewise.
76793         * doc/posix-functions/iswgraph_l.texi: Likewise.
76794         * doc/posix-functions/iswlower_l.texi: Likewise.
76795         * doc/posix-functions/iswprint_l.texi: Likewise.
76796         * doc/posix-functions/iswpunct_l.texi: Likewise.
76797         * doc/posix-functions/iswspace_l.texi: Likewise.
76798         * doc/posix-functions/iswupper_l.texi: Likewise.
76799         * doc/posix-functions/iswxdigit_l.texi: Likewise.
76800         * doc/posix-functions/isxdigit_l.texi: Likewise.
76801         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
76802         * doc/posix-functions/strcasecmp_l.texi: Likewise.
76803         * doc/posix-functions/strcoll_l.texi: Likewise.
76804         * doc/posix-functions/strfmon_l.texi: Likewise.
76805         * doc/posix-functions/strftime_l.texi: Likewise.
76806         * doc/posix-functions/strncasecmp_l.texi: Likewise.
76807         * doc/posix-functions/strxfrm_l.texi: Likewise.
76808         * doc/posix-functions/tolower_l.texi: Likewise.
76809         * doc/posix-functions/toupper_l.texi: Likewise.
76810         * doc/posix-functions/towctrans_l.texi: Likewise.
76811         * doc/posix-functions/towlower_l.texi: Likewise.
76812         * doc/posix-functions/towupper_l.texi: Likewise.
76813         * doc/posix-functions/wcscoll_l.texi: Likewise.
76814         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
76815         * doc/posix-functions/wctrans_l.texi: Likewise.
76816         * doc/posix-functions/wctype_l.texi: Likewise.
76817         * doc/glibc-functions/strptime_l.texi: Likewise.
76818         * doc/glibc-functions/strtod_l.texi: Likewise.
76819         * doc/glibc-functions/strtof_l.texi: Likewise.
76820         * doc/glibc-functions/strtol_l.texi: Likewise.
76821         * doc/glibc-functions/strtold_l.texi: Likewise.
76822         * doc/glibc-functions/strtoll_l.texi: Likewise.
76823         * doc/glibc-functions/strtoul_l.texi: Likewise.
76824         * doc/glibc-functions/strtoull_l.texi: Likewise.
76825         * doc/glibc-functions/wcsftime_l.texi: Likewise.
76826         * doc/glibc-functions/wcstod_l.texi: Likewise.
76827         * doc/glibc-functions/wcstof_l.texi: Likewise.
76828         * doc/glibc-functions/wcstol_l.texi: Likewise.
76829         * doc/glibc-functions/wcstold_l.texi: Likewise.
76830         * doc/glibc-functions/wcstoll_l.texi: Likewise.
76831         * doc/glibc-functions/wcstoul_l.texi: Likewise.
76832         * doc/glibc-functions/wcstoull_l.texi: Likewise.
76834 2009-11-24  Bruno Haible  <bruno@clisp.org>
76836         duplocale: Fix logic bug.
76837         * lib/duplocale.c: Don't include <langinfo.h>.
76838         (_NL_LOCALE_NAME): Remove macro.
76839         (rpl_duplocale): Use setlocale instead of nl_langinfo.
76840         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
76842 2009-11-23  Jim Meyering  <meyering@redhat.com>
76844         test-update-copyright: don't hard-code /usr/bin/perl
76845         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
76846         perl to print the current year.  Gilles Espinasse reported that
76847         the replaced use of perl was hard-coded as /usr/bin/perl.
76849 2009-11-23  Bruno Haible  <bruno@clisp.org>
76851         duplocale: Add support for glibc 2.3.x.
76852         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
76854 2009-11-22  Bruno Haible  <bruno@clisp.org>
76856         vasnprintf: Tiny optimization.
76857         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
76858         MacOS X.
76860 2009-11-22  Bruno Haible  <bruno@clisp.org>
76862         Tests for module 'duplocale'.
76863         * modules/duplocale-tests: New file.
76864         * tests/test-duplocale.c: New file.
76866         New module 'duplocale'.
76867         * m4/duplocale.m4: New file.
76868         * lib/locale.in.h (duplocale): New declaration.
76869         * lib/duplocale.c: New file.
76870         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
76871         gl_LOCALE_H_DEFAULTS): New macros.
76872         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
76873         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
76874         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
76875         REPLACE_DUPLOCALE.
76876         * modules/duplocale: New file.
76877         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
76879 2009-11-22  Bruno Haible  <bruno@clisp.org>
76881         * modules/locale-tests (configure.ac): Test for newlocale function.
76882         * tests/test-locale.c: When the system has extended locale functions,
76883         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
76885         locale: Make locale_t available when possible.
76886         * lib/locale.in.h: Include <xlocale.h> when it exists.
76887         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
76888         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
76889         * modules/locale (Depends-on): Add extensions.
76890         (Makefile.am): Also substitute HAVE_XLOCALE_H.
76891         * doc/posix-headers/locale.texi: Document the problem with locale_t.
76893 2009-11-22  Bruno Haible  <bruno@clisp.org>
76895         Add comments.
76896         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
76897         invocation.
76898         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
76899         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
76900         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
76902 2009-11-22  Bruno Haible  <bruno@clisp.org>
76904         error: account for the possibility of freopen (stdout).
76905         * lib/error.c: Include <unistd.h>.
76906         (flush_stdout): New function, extracted from error and error_at_line.
76907         Determine stdout's fd dynamically.
76908         (error, error_at_line): Invoke flush_stdout.
76909         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
76910         * modules/error (Depends-on): Add unistd.
76912 2009-11-22  Bruno Haible  <bruno@clisp.org>
76914         diffseq: Add comment.
76915         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
76917 2009-11-22  Jim Meyering  <meyering@redhat.com>
76919         c-stack: avoid defining an unused static function
76920         * lib/c-stack.c (find_stack_direction): Do not define this function
76921         when it will not be used.
76923         diffseq: avoid spurious gcc warnings
76924         * lib/diffseq.h (IF_LINT2): Define.
76925         (compareseq): Use it to initialize two members of "part".
76926         This avoids two used-uninitialized warnings.
76928 2009-11-21  Jim Meyering  <meyering@redhat.com>
76930         c-stack: avoid "ignoring return value of `write'" warning
76931         * lib/c-stack.c: Include "ignore-value.h".
76932         (die): Explicitly ignore each write return value.
76933         * modules/c-stack (Depends-on): Add ignore-value.
76935 2009-11-21  Bruno Haible  <bruno@clisp.org>
76937         diffseq: reduce scope of variable 'best'.
76938         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
76939         variable, earlier used for two different purposes.
76941 2009-11-21  Jim Meyering  <meyering@redhat.com>
76943         diffseq: remove useless assignment to "best"
76944         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
76945         assignment.  At that point "best" is already guaranteed to be zero.
76947 2009-11-20  Eric Blake  <ebb9@byu.net>
76949         build: mention ftp redirector in release announcements
76950         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
76951         values that used to come from cfg.mk; mention FTP redirect URL.
76952         * build-aux/announce-gen: Mention the mirror list.
76953         Suggested by Karl Berry.
76955         nanosleep: improve port to mingw
76956         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
76957         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
76958         LIB_NANOSLEEP, but only when needed.
76959         * modules/select (Link): Document LIBSOCKET.
76960         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
76961         enough.
76963         nanosleep: work around cygwin bug
76964         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
76965         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
76966         bug.
76967         (getnow): Delete, not needed.
76968         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
76969         LIB_CLOCK_GETTIME.
76970         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
76971         clock-time, gettime.
76972         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
76973         bug.
76974         * modules/nanosleep-tests: New test.
76975         * tests/test-nanosleep.c: New file.
76977         sleep: work around cygwin bug
76978         * lib/sleep.c (rpl_sleep): Work around the bug.
76979         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
76980         (gl_PREREQ_SLEEP): Delete unused macro.
76981         * modules/sleep (Depends-on): Add verify.
76982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
76983         * modules/unistd (Makefile.am): Substitute witness.
76984         * lib/unistd.in.h (sleep): Update prototype.
76985         * doc/posix-functions/sleep.texi (sleep): Document the bug.
76986         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
76987         * modules/sleep-tests (Depends-on): Check for alarm.
76989 2009-11-20  Jim Meyering  <meyering@redhat.com>
76991         maint.mk: improve sc_prohibit_magic_number_exit
76992         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
76993         so it does not match uses like System.exit(1).
76994         Add comments showing how to correct all offenders.
76996 2009-11-19  Eric Blake  <ebb9@byu.net>
76998         xalloc-die-tests: add missing library
76999         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
77001         test-xvasprintf: silence compiler warnings
77002         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
77003         empty string from gcc.
77005 2009-11-19  Jim Meyering  <meyering@redhat.com>
77007         xfreopen: new module, from coreutils
77008         * modules/xfreopen: New module.
77009         * lib/xfreopen.c: New file.
77010         * lib/xfreopen.h: New file.
77011         * MODULES.html.sh (File stream based Input/Output"): Add it.
77013 2009-11-19  Eric Blake  <ebb9@byu.net>
77015         manywarnings: depend on warnings
77016         * modules/manywarnings (Depends-on): Add warnings.
77018         build: avoid compiler warnings
77019         * lib/select.c (rpl_select): Delete unused variable.
77020         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
77022 2009-11-18  Eric Blake  <ebb9@byu.net>
77024         tests: avoid false negative with --with-packager
77025         * tests/test-version-etc.sh: Discard packager information.
77026         * tests/test-argp-version-etc-1.sh: Likewise.
77027         Reported by Mike Frysinger.
77029         utimens: fix regression on Solaris
77030         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
77031         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
77032         can only change fd timestamps via futimesat.  Instead, use an
77033         additional witness macro to avoid BSD bug.
77034         Reported by Jim Meyering.
77036 2009-11-17  Eric Blake  <ebb9@byu.net>
77038         usleep: use it to simplify tests
77039         * modules/stat-time-tests (Depends-on): Add usleep.
77040         (configure.ac): Drop usleep check.
77041         * modules/chown-tests (Depends-on, configure.ac): Likewise.
77042         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
77043         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
77044         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
77045         * modules/openat-tests (Depends-on, configure.ac): Likewise.
77046         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
77047         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
77048         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
77049         Likewise.
77050         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
77051         * tests/test-lchown.h (nap): Likewise.
77052         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
77053         * tests/test-stat-time.c (nap): Likewise.
77054         * tests/test-utimens-common.h (nap): Update comments.
77056         usleep: new module
77057         * modules/usleep: New file.
77058         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
77059         * lib/usleep.c (usleep): Likewise.
77060         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
77061         * modules/unistd (Makefile.am): Substitute witnesses.
77062         * lib/unistd.in.h (usleep): Add declaration.
77063         * doc/pastposix-functions/usleep.texi (usleep): Document this.
77064         * MODULES.html.sh (Date and time): Likewise.
77065         * modules/usleep-tests (Depends-on): New test.
77066         * tests/test-usleep.c: New file.
77068         chown: work around OpenBSD bug
77069         * lib/chown.c (rpl_chown): Work around the bug.
77070         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
77071         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
77072         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
77073         * modules/chown (Depends-on): Add stdbool.
77074         * modules/lchown (Depends-on): Likewise.
77075         * doc/posix-functions/chown.texi (chown): Document the bug.
77076         * doc/posix-functions/lchown.texi (lchown): Likewise.
77077         * tests/test-lchown.h (test_chown): Relax test.
77079         mkstemp: avoid conflict with C++ keyword template
77080         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
77081         * lib/mkostemp.c (mkostemp): Likewise.
77082         * lib/mkostemps.c (mkostemps): Likewise.
77083         * lib/mkstemp.c (mkstemp): Likewise.
77084         * lib/mkstemps.c (mkstemps): Likewise.
77086         xalloc-die-tests: optimize
77087         * tests/test-xalloc-die.sh: Reduce number of processes.
77089 2009-11-17  Simon Josefsson  <simon@josefsson.org>
77091         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
77092         patch from ludo@gnu.org (Ludovic Courtès).
77094 2009-11-17  Jim Meyering  <meyering@redhat.com>
77096         version-etc: use proper license string
77097         * modules/version-etc (License): Use LGPL, not LGPLv3+.
77098         * modules/version-etc-fsf: Likewise.
77100 2009-11-17  Simon Josefsson  <simon@josefsson.org>
77102         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
77103         printed to stdout.  Deal with EOL differences.
77105 2009-11-17  Eric Blake  <ebb9@byu.net>
77107         unsetenv: work around Solaris bug
77108         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
77109         * lib/unsetenv.c (rpl_unsetenv): Work around it.
77110         Reported by Jim Meyering.
77112         vasnprintf: avoid compiler warnings
77113         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
77114         variables.
77115         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
77117 2009-11-17  Simon Josefsson  <simon@josefsson.org>
77119         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
77120         settings since xalloc-die is no longer the self test,
77121         xalloc-die.sh is.
77123 2009-11-17  Jim Meyering  <meyering@redhat.com>
77125         test-xalloc-die.sh: make the code agree with the commit log
77126         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
77127         at the end, just in case you happen to have a test-xalloc-die
77128         program in some other PATH directory.
77130         test-xalloc-die.sh: fix a portability bug
77131         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
77132         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
77133         Otherwise, argv[0] (as often seen in diagnostics) would be too
77134         system-dependent, sometimes with, and sometimes without the leading "./".
77136         version-etc-fsf: relax license to LGPLv3+
77137         * modules/version-etc-fsf (License): Relax license.
77139 2009-11-16  Eric Blake  <ebb9@byu.net>
77141         xalloc-die-tests: avoid printing null pointer
77142         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
77143         shell script.
77144         * tests/test-xalloc-die.c (program_name): Declare.
77145         * tests/test-xalloc-die.sh (tmpfiles): New file.
77147         setenv, unsetenv: work around various bugs
77148         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
77149         (setenv) [HAVE_SETENV]: Work around bugs.
77150         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
77151         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
77152         for bugs.
77153         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
77154         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
77155         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
77156         * modules/stdlib (Makefile.am): Update substitutions.
77157         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
77158         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
77159         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
77160         * modules/setenv-tests: New test.
77161         * modules/unsetenv-tests: Likewise.
77162         * tests/test-setenv.c: New file.
77163         * tests/test-unsetenv.c: Likewise.
77165 2009-11-16  Jim Meyering  <meyering@redhat.com>
77167         version-etc: relax license to LGPLv3+
77168         * modules/version-etc (License): Relax license.
77170         better AC_REQUIRE expanded-before-required-warning avoidance
77171         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
77172         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
77173         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
77174         which is no longer needed.
77176 2009-11-16  Eric Blake  <ebb9@byu.net>
77178         test-freading: clean up temporary file
77179         * tests/test-freading.c (main): Remove file on success, and use
77180         ASSERT more liberally.
77181         Reported by Jim Meyering.
77183 2009-11-16  Jim Meyering  <meyering@redhat.com>
77185         avoid new AC_REQUIRE expanded-before-required warnings
77186         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
77187         merely using it.
77188         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
77189         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
77191 2009-11-15  Simon Josefsson  <simon@josefsson.org>
77193         * tests/test-xalloc-die.c: New file.
77194         * modules/xalloc-die-tests: New file.
77195         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
77196         XFAIL_TESTS so it can be appended by modules.
77198 2009-11-15  Simon Josefsson  <simon@josefsson.org>
77200         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
77201         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
77203 2009-11-14  Eric Blake  <ebb9@byu.net>
77205         fnmatch: avoid compiler warning
77206         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
77207         to silence compiler warning about mismatch signedness in ?:.
77208         Reported by Robert Millan.
77210         intprops: add double-inclusion guard
77211         * lib/intprops.h: Allow idempotent includes.
77212         Suggested by Bruce Korb.
77214         openat: detect Solaris fchownat bug
77215         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
77216         penalizing glibc chownat when only lchownat is broken.
77217         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
77218         trailing slash bugs.
77219         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
77220         * modules/openat-tests (Files): Include more files.
77221         (Depends-on): Add mgetgroups, sleep, stat-time.
77222         (configure.ac): Add additional checks.
77223         (Makefile.am): Build new test.
77224         * tests/test-fchownat.c: New file.
77226         lchown: detect Solaris and FreeBSD bug
77227         * lib/lchown.c (rpl_lchown): Work around bug.
77228         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
77229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
77230         * modules/unistd (Makefile.am): Populate it.
77231         * lib/unistd.in.h (lchown): Update declaration.
77232         * doc/posix-functions/lchown.texi (lchown): Document the bug.
77233         * modules/lchown-tests: New file.
77234         * tests/test-lchown.h (test_lchown): Likewise.
77235         * tests/test-lchown.c (main): Likewise.
77237         chown: detect Solaris and FreeBSD bug
77238         * lib/chown.c (rpl_chown): Work around bug.
77239         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
77240         (gl_PREREQ_CHOWN): Delete.
77241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
77242         * modules/unistd (Makefile.am): Populate it.
77243         * lib/unistd.in.h (chown): Update declaration.
77244         * lib/lchown.c (chown): Update client.
77245         * modules/lchown (Depends-on): Add lstat.
77246         * doc/posix-functions/chown.texi (chown): Document the bug.
77247         * doc/posix-functions/getgroups.texi (getgroups): Document
77248         getgroups pitfall.
77249         * modules/chown-tests: New file.
77250         * tests/test-chown.h (test_chown): Likewise.
77251         * tests/test-chown.c (main): Likewise.
77253 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
77255         gnulib-tool: correctly detect absence of m4 directories
77256         * gnulib-tool: Avoid extra newline on data passed to wc -l.
77258 2009-11-14  Jim Meyering  <meyering@redhat.com>
77260         maint.mk: Prohibit inclusion of "xalloc.h" without use.
77261         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
77263 2009-11-14  John W. Eaton  <jwe@gnu.org>
77265         strftime.h: wrap function declaration in extern "C" block
77266         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
77268 2009-11-13  Eric Blake  <ebb9@byu.net>
77270         getgroups: avoid compiler warning
77271         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
77273         getgroups: work around FreeBSD bug
77274         * lib/getgroups.c (rpl_getgroups): Work around the bug.
77275         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
77276         * doc/posix-functions/getgroups.texi (getgroups): Document it.
77277         * tests/test-getgroups.c (main): Fix buffer overrun.
77279         getgroups: avoid compilation failure
77280         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
77281         * modules/getgroups (Depends-on): Add stdint.
77283 2009-11-13  Jim Meyering  <meyering@redhat.com>
77285         test-getgroups: avoid compilation failure
77286         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
77288 2009-11-13  Eric Blake  <ebb9@byu.net>
77290         mgetgroups: new module, taken from coreutils
77291         * modules/mgetgroups: New file.
77292         * lib/mgetgroups.h: Likewise.
77293         * lib/mgetgroups.c (mgetgroups): Likewise.
77294         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
77295         * MODULES.html.sh (Users and groups): Mention it.
77297         getgroups: don't expose GETGROUPS_T to user
77298         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
77299         an element at a time if GETGROUPS_T is wrong size.
77300         * lib/getugroups.h (getugroups): Change signature.
77301         * lib/unistd.in.h (getgroups): Likewise.
77302         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
77303         signature needs fixing.
77304         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
77305         AC_TYPE_GETGROUPS.
77306         * modules/group-member (Depends-on): Add getgroups.
77307         * lib/group-member.c (group_info, get_group_info): Use gid_t.
77308         (group_member): Rely on getgroups replacement.
77309         * lib/getugroups.c (getugroups): Use gid_t.
77310         * tests/test-getgroups.c (main): Likewise.
77311         * NEWS: Mention the signature change.
77312         * doc/posix-functions/getgroups.texi (getgroups): Mention the
77313         problem with signature.
77314         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
77315         GETGROUPS_T is still useful for setgroups.
77317         getgroups, getugroups: provide stubs for mingw
77318         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
77319         * lib/getugroups.c (getugroups): Likewise.
77320         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
77321         function.  Modernize replacement scheme.
77322         (gl_PREREQ_GETGROUPS): Delete.
77323         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
77324         * modules/getgroups (configure.ac): Declare witness.
77325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
77326         * modules/unistd (Depends-on): Substitute witness.
77327         * lib/unistd.in.h (getgroups): Declare replacement.
77329         getgroups: avoid calling exit
77330         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
77331         drop xalloc.
77332         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
77333         dependencies.
77334         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
77335         exiting, in the rare case of malloc failure.
77337         getgroups: fix logic error
77338         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
77339         has more than 20 groups.
77340         * modules/getgroups-tests: New test.
77341         * tests/test-getgroups.c: New file.
77343 2009-11-13  Simon Josefsson  <simon@josefsson.org>
77345         * tests/test-base64.c: Improve.
77347 2009-11-13  Simon Josefsson  <simon@josefsson.org>
77349         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
77350         Blake <ebb9@byu.net>.
77352 2009-11-13  Simon Josefsson  <simon@josefsson.org>
77354         * tests/test-xvasprintf.c: Add %s%s related checks.
77356 2009-11-12  Eric Blake  <ebb9@byu.net>
77358         version-etc: match standards.texi style
77359         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
77360         and use <> only for URLs.
77362 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
77364         fts: do not fail on a submount during traversal
77365         * lib/fts.c (fts_build): Read the stat info again after opening
77366         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
77367         Original report at http://bugzilla.redhat.com/501848.
77369 2009-11-12  Jim Meyering  <meyering@redhat.com>
77371         bootstrap: sync from coreutils
77372         * build-aux/bootstrap (bootstrap_epilogue): New function.
77373         Use git_modules_config in one more place.  This make bootstrap's
77374         --gnulib-srcdir option more useful for testing.
77376         bootstrap: generalize autoheader check
77377         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
77378         AC_CONFIG_HEADERS.
77380 2009-11-11  Eric Blake  <ebb9@byu.net>
77382         mkfifoat: use new modules for Solaris and BSD bugs
77383         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
77384         * lib/mkfifoat.c (mknodat): Split...
77385         * lib/mknodat.c (mknodat): ...into new file.
77386         * modules/mkfifoat (Files): Ship new file.
77387         (Depends-on): Add mkfifo, mknod.
77388         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
77389         (Depends-on): Add symlink.
77390         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
77391         redundant with test_mkfifo.h.
77392         (do_mkfifoat, do_mknodat): New helpers.
77394         mknod: new module
77395         * modules/mknod: New file.
77396         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
77397         * lib/mknod.c (mknod): Likewise.
77398         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
77399         defaults.
77400         * modules/sys_stat (Makefile.am): Substitute them.
77401         * lib/sys_stat.in.h (mknod): Declare replacement.
77402         * MODULES.html.sh (Support for systems lacking POSIX:2008):
77403         Document it.
77404         * doc/posix-functions/mknod.texi (mknod): Likewise.
77405         * modules/mknod-tests: New test.
77406         * tests/test-mknod.c: Likewise.
77408         mkfifo: new module
77409         * modules/mkfifo: New file.
77410         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
77411         * lib/mkfifo.c (mkfifo): Likewise.
77412         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
77413         defaults.
77414         * modules/sys_stat (Makefile.am): Substitute them.
77415         * lib/sys_stat.in.h (mkfifo): Declare replacement.
77416         * MODULES.html.sh (Support for systems lacking POSIX:2008):
77417         Document it.
77418         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
77419         * modules/mkfifo-tests: New test.
77420         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
77421         from test-mkfifoat.c.
77422         * tests/test-mkfifo.c: New file.
77424         readlink: detect FreeBSD bug
77425         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
77426         slash on symlink.
77427         * doc/posix-functions/readlink.texi (readlink): Document the bug.
77428         * tests/test-readlink.h (test_readlink): Enhance test.
77430         symlink: detect FreeBSD bug
77431         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
77432         slash on symlink.
77433         * doc/posix-functions/symlink.texi (symlink): Document the bug.
77434         * tests/test-symlink.h (test_symlink): Enhance test.
77436 2009-11-10  Eric Blake  <ebb9@byu.net>
77438         link: detect FreeBSD bug
77439         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
77440         symlink.
77441         * doc/posix-functions/link.texi (link): Document the bug.
77442         * tests/test-link.h (test_link): Enhance test.
77443         * tests/test-linkat.c (main): Update caller.
77445         unlink, remove: detect FreeBSD bug
77446         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
77447         slash on symlink.
77448         * doc/posix-functions/unlink.texi (unlink): Document the bug.
77449         * doc/posix-functions/remove.texi (remove): Likewise.
77450         * tests/test-unlink.h (test_unlink): Enhance test.
77451         * tests/test-remove.c (main): Likewise.
77453 2009-11-09  Eric Blake  <ebb9@byu.net>
77455         rename: detect FreeBSD bug
77456         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
77457         slash on symlink.
77458         * modules/renameat-tests (Depends-on): Add filenamecat.
77459         * tests/test-rename.h (test_rename): Allow one more errno.
77460         * tests/test-renameat.c (main): Likewise.
77461         * doc/posix-functions/rename.texi (rename): Document the bug.
77463         open: detect FreeBSD bug
77464         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
77465         symlink.
77466         * doc/posix-functions/open.texi (open): Document the bug.
77467         * doc/posix-functions/utimes.texi (utimes): Likewise.
77468         * tests/test-open.h (test_open): Add parameters, and test symlink
77469         handling.
77470         * tests/test-open.c (main): Adjust caller.
77471         * tests/test-fcntl-safer.c (main): Likewise.
77472         * modules/open-tests (Depends-on): Add stdbool, symlink.
77473         * modules/fcntl-safer-tests (Depends-on): Likewise.
77474         * tests/test-openat.c (main): Add test-open tests.
77476         stat: detect FreeBSD bug
77477         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
77478         symlink.
77479         * doc/posix-functions/stat.texi (stat): Document the bug.
77480         * tests/test-stat.h (test_stat_func): Add argument.
77481         * tests/test-stat.c (main): Adjust caller.
77482         * tests/test-fstatat.c (main): Likewise.
77483         * modules/stat-tests (Depends-on): Add stdbool, symlink.
77484         Reported by Jim Meyering.
77486 2009-11-09  James Youngman  <jay@gnu.org>
77488         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
77489         * lib/strftime.c: Correct placement of #include "ignore-value.h".
77491 2009-11-08  Jim Meyering  <meyering@redhat.com>
77493         utimens: remove invalid futimesat call
77494         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
77495         It used the file descriptor of the target file as the DIR_FD
77496         parameter and NULL as the file name.  That caused failure with
77497         errno == EFAULT on FreeBSD-8.0-rc2
77499 2009-11-07  Eric Blake  <ebb9@byu.net>
77501         fflush, freadseek: use fseeko, not fseek
77502         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
77503         (clear_ungetc_buffer): Avoid potential problems on large files.
77504         * lib/freadseek.c (freadseek): Likewise.
77505         * modules/freadseek (Depends-on): Add fseeko.
77506         * modules/fseek (configure.ac): Set a witness.
77507         * tests/test-fflush.c (main): Use fseeko.
77508         * tests/test-fpurge.c (fseek): Disable link warning.
77509         * tests/test-freadable.c (fseek): Likewise.
77510         * tests/test-freading.c (fseek): Likewise.
77511         * tests/test-fseeko.c (fseek): Likewise.
77512         * tests/test-ftell.c (fseek): Likewise.
77513         * tests/test-ftello.c (fseek): Likewise.
77514         * tests/test-fwritable.c (fseek): Likewise.
77515         * tests/test-fwriting.c (fseek): Likewise.
77517 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77519         * modules/memchr (Depends-on): Drop getpagesize dependency.
77521 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77523         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
77524         Reported by Ludovic Courtès.
77525         * build-aux/pmccabe2html: Improve example usage.
77526         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
77528 2009-11-06  Jim Meyering  <meyering@redhat.com>
77530         do-release-commit-and-tag: New module.
77531         Automate the release-commit and tag process.
77532         * build-aux/do-release-commit-and-tag: New script, from coreutils.
77533         * modules/do-release-commit-and-tag: New file.
77534         * MODULES.html.sh (Support for maintaining and releasing): Add it.
77536 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77538         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
77539         because test-select.c uses inet_pton.
77541 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77543         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
77544         GETADDRINFO_LIB.  Bump serial number.
77545         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
77546         Suggested by Eric Blake <ebb9@byu.net>.
77548 2009-11-05  Eric Blake  <ebb9@byu.net>
77550         strtod: detect darwin bug
77551         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
77552         Reported by Leo Davis.
77554         freopen-safer: new module
77555         * modules/freopen-safer: New module.
77556         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
77557         * lib/freopen-safer.c (freopen_safer): New file.
77558         * lib/stdio-safer.h (freopen_safer): New declaration.
77559         * lib/stdio--.h (freopen): New override.
77560         * MODULES.html.sh (File stream based Input/Output): Mention it.
77561         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
77562         freopen-safer module.
77563         * doc/posix-functions/stderr.texi (stderr): Likewise.
77564         * doc/posix-functions/stdin.texi (stdin): Likewise.
77565         * doc/posix-functions/stdout.texi (stdout): Likewise.
77566         * modules/freopen-safer-tests: New test.
77567         * tests/test-reopen-safer.c: New file.
77569 2009-11-05  Jim Meyering  <meyering@redhat.com>
77571         maint.mk: Prohibit inclusion of "close-stream.h" without use.
77572         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
77574 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77576         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
77578 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77580         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
77582 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77584         Fix link error.
77585         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
77586         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
77588 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77590         * tests/test-func.c: Also test value of __func__.
77592 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77594         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
77595         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
77597 2009-11-05  Bruno Haible  <bruno@clisp.org>
77599         Fix link error.
77600         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
77601         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
77602         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
77604 2009-11-05  Bruno Haible  <bruno@clisp.org>
77606         Tests for module 'inet_pton'.
77607         * modules/inet_pton-tests: New file.
77608         * tests/test-inet_pton.c: New file.
77610 2009-11-05  Bruno Haible  <bruno@clisp.org>
77612         Tests for module 'inet_ntop'.
77613         * modules/inet_ntop-tests: New file.
77614         * tests/test-inet_ntop.c: New file.
77616 2009-11-04  Eric Blake  <ebb9@byu.net>
77618         stdlib-safer: wrap all mkstemp variants
77619         * modules/mkostemp (configure.ac): Set witness.
77620         * modules/mkostemps (configure.ac): Likewise.
77621         * modules/mkstemps (configure.ac): Likewise.
77622         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
77623         (mkstemps_safer): Wrap more functions.
77624         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
77625         wrapping.
77626         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
77627         (mkstemps_safer): Implement the wrappers.
77629         mkstemps, mkostemps: new modules
77630         * modules/mkostemps: New module.
77631         * modules/mkstemps: Likewise.
77632         * lib/mkostemps.c (mkostemps): New file.
77633         * lib/mkstemps.c (mkstemps): Likewise.
77634         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
77635         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
77636         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
77637         * modules/stdlib (Makefile.am): Substitute them.
77638         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
77639         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
77640         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
77641         * doc/gnulib.texi (Glibc stdlib.h): Include them.
77642         * MODULES.html.sh (File system functions): Mention them.
77644         tempname: resync from glibc
77645         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
77646         same values for __GT_FILE as glibc.  Abort even when assertions
77647         are disabled.
77648         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
77649         match its value otherwise.  Allow idempotent inclusion.
77650         * lib/mkdtemp.c (mkdtemp): Adjust caller.
77651         * lib/mkostemp.c (mkostemp): Likewise.
77652         * lib/mkstemp.c (mkstemp): Likewise.
77653         * lib/tmpfile.c (tmpfile): Likewise.
77654         * NEWS: Document this.
77656         utimens: fix use of futimens on older Linux
77657         * lib/utimens.c (fdutimens): Use updated, rather than original,
77658         timespec to avoid bug in older Linux kernel.
77659         Reported by Simon Josefsson.
77661 2009-11-04  Bruno Haible  <bruno@clisp.org>
77663         Make num_processors more flexible and consistent.
77664         * lib/nproc.h (enum nproc_query): New type.
77665         (num_processors): Add a 'query' argument.
77666         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
77667         (num_processors): Add a 'query' argument. Test the value of the
77668         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
77669         mingw, count the number of CPUs available for the current process.
77670         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
77671         Check for sched_getaffinity and sched_getaffinity_np.
77672         * modules/nproc (Depends-on): Add c-ctype, extensions.
77673         * NEWS: Mention the change.
77675 2009-11-03  Bruno Haible  <bruno@clisp.org>
77677         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
77679 2009-11-03  Jim Meyering  <meyering@redhat.com>
77681         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
77682         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
77683         if it is defined.
77685 2009-11-02  Eric Blake  <ebb9@byu.net>
77687         mktime, timegm: share common declaration
77688         * lib/mktime-internal.h: New file.
77689         * lib/mktime.c: Use it rather than open-coding a declaration.
77690         * lib/timegm.c: Likewise.
77691         * modules/mktime (Files): Ship it.
77692         * modules/timegm (Files): Likewise.
77693         Suggested by Bruno Haible.
77695         test-update-copyright: update test to match script changes
77696         * tests/test-update-copyright.sh: Avoid hard-coding perl
77697         location.  Don't update *.bak created by earlier runs.
77699 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77700             Simon Josefsson  <simon@josefsson.org>
77701             Bruno Haible  <bruno@clisp.org>
77703         Fix link error on Solaris 8.
77704         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
77705         also in libnsl. Define also INET_PTON_LIB.
77706         * modules/inet_pton (Link): New section.
77708 2009-11-02  Simon Josefsson  <simon@josefsson.org>
77709             Bruno Haible  <bruno@clisp.org>
77711         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
77712         * modules/inet_ntop (Link): New section.
77713         Reported by Boyan Kasarov <bkasarov@gmail.com>.
77715 2009-11-02  Eric Blake  <ebb9@byu.net>
77717         maint: avoid compiler warnings in m4 macros
77718         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
77719         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
77721 2009-11-02  Simon Josefsson  <simon@josefsson.org>
77723         * m4/pmccabe2html.m4: Remove file.
77724         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
77725         function.  Change maintainer.
77726         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
77727         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
77728         Courtès).
77730 2009-10-31  Eric Blake  <ebb9@byu.net>
77732         fseeko: fix m4 regression
77733         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
77734         regression from 2009-10-27.
77735         Reported by Ralf Wildenhues.
77737 2009-10-31  Jim Meyering  <meyering@redhat.com>
77739         inttostr: aesthetics and improved (compile-time) safety
77740         Define inttype_is_signed rather than inttype_is_unsigned,
77741         since the sole use is via "#if inttype_is_signed".
77742         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
77743         inttype_is_unsigned.
77744         * lib/offtostr.c (inttype_is_signed): Likewise.
77745         * lib/uinttostr.c (inttype_is_signed): Likewise.
77746         * lib/umaxtostr.c (inttype_is_signed): Likewise.
77747         * lib/inttostr.c (inttostr): Use verify to cross-check the
77748         inttype_is_signed value and the signedness of the actual type.
77749         * modules/inttostr (Depends-on): Add verify.
77751 2009-10-30  Eric Blake  <ebb9@byu.net>
77753         build: avoid compiler warnings
77754         * lib/fchmodat.c (lchmod): Mark unused variables.
77755         * lib/getopt.c (_getopt_initialize): Likewise.
77756         * lib/mktime.c (__mktime_internal): Provide prototype.
77757         * lib/inttostr.c (inttostr): Avoid compiler warning even with
77758         older gcc that do not understand #pragma GCC diagnostic.
77759         * lib/uinttostr.c (inttype_is_unsigned): Define.
77760         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
77762 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
77764         stat: fix compilation on AIX
77765         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
77766         only see struct stat64.
77768 2009-10-30  Eric Blake  <ebb9@byu.net>
77770         exclude: make more robust
77771         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
77772         rather than masking a coding bug.
77773         Suggested by Bruno Haible.
77775 2009-10-30  Jim Meyering  <meyering@redhat.com>
77777         perl scripts: remove #!/usr/bin/perl in favor of more portable...
77778         Rather than putting #!/usr/bin/perl on the first line,
77779         start with a variant of what's recommended by "man perlrun" that
77780         invokes the first "perl" program from your shell's search path.
77781         * build-aux/gitlog-to-changelog: Replace #!... as above.
77782         Add a "Local Variables" perl mode setting.
77783         Prompted by a patch from Ludovic Courtès.
77784         Improved by Eric Blake.
77785         * build-aux/useless-if-before-free: Likewise.
77786         * build-aux/announce-gen: Likewise.
77787         * build-aux/update-copyright: Likewise.
77789 2009-10-29  Eric Blake  <ebb9@byu.net>
77791         filenamecat-lgpl: adjust clients
77792         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
77793         filenamecat.
77794         * modules/renameat (Depends-on): Likewise.
77796         filenamecat: split into filenamecat-lgpl
77797         * modules/filenamecat-lgpl: New module.
77798         * modules/filenamecat (Files): Move library-safe files into
77799         filenamecat-lgpl.
77800         (Depends-on): Add filenamecat-lgpl.
77801         (configure.ac): Declare witness.
77802         * lib/filenamecat.h (file_name_concat): Only declare when using
77803         GPL module.
77804         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
77805         Move...
77806         * lib/filenamecat-lgpl.c: ...into new file.
77807         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
77808         (gl_FILE_NAME_CONCAT): Use it.
77809         * MODULES.html.sh (File system functions): Mention new module.
77811         argp: avoid memory leak
77812         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
77813         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
77814         base_name, since the latter malloc()s and can call exit().
77815         Leak introduced 2006-07-03.
77817         dirname-lgpl: adjust clients that don't need full dirname
77818         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
77819         * modules/filenamecat (Depends-on): Likewise.
77820         * modules/linkat (Depends-on): Likewise.
77821         * modules/mkancesdirs (Depends-on): Likewise.
77822         * modules/mkdir (Depends-on): Likewise.
77823         * modules/openat (Depends-on): Likewise.
77824         * modules/savewd (Depends-on): Likewise.
77825         * modules/rename (Depends-on): Likewise.
77826         (License): Relax license.
77827         * modules/mkdir-tests (Depends-on): Drop progname.
77828         (Makefile.am): Delete unneeded LDADD.
77829         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
77831         dirname: split into dirname-lgpl
77832         * modules/dirname-lgpl: New module.
77833         * modules/dirname (Files): Move library-safe files into
77834         dirname-lgpl.
77835         (Depends-on): Add dirname-lgpl.
77836         (configure.ac): Declare witness.
77837         * modules/double-slash-root (License): Relax license.
77838         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
77839         module.
77840         * lib/dirname.c (dir_len, mdir_name): Move...
77841         * lib/dirname-lgpl.c: ...into new file.
77842         * lib/basename.c (last_component, base_len): Move...
77843         * lib/basename-lgpl.c: ...into new file.
77844         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
77845         (gl_DIRNAME): Use it.
77846         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
77847         Mention new module.
77848         * modules/dirname-tests (Depends-on): Add progname.
77849         * tests/test-dirname.c (program_name): Delete.
77851         mkdir: make safe for libraries
77852         * modules/mkdir (Depends-on): Drop xalloc.
77853         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
77854         exit.
77856         tests: avoid some compiler warnings
77857         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
77858         literals.
77859         * tests/test-memchr.c (main): Avoid type mismatch.
77860         * tests/test-arpa_inet.c (main): Avoid unused parameters.
77861         * tests/test-base64.c (main): Likewise.
77862         * tests/test-getdelim.c (main): Likewise.
77863         * tests/test-gethostname.c (main): Likewise.
77864         * tests/test-getline.c (main): Likewise.
77865         * tests/test-netinet_in.c (main): Likewise.
77866         * tests/test-select.c (open_server_socket, main): Likewise.
77867         * tests/test-select-stdin.c (main): Likewise.
77868         * tests/test-sockets.c (main): Likewise.
77869         * tests/test-strsignal.c (main): Likewise.
77870         * tests/test-sys_select.c (main): Likewise.
77871         * tests/test-sys_socket.c (main): Likewise.
77872         * tests/test-u64.c (main): Likewise.
77873         * tests/test-xfprintf-posix.c (main): Likewise.
77874         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
77876         sockets: avoid compiler warning
77877         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
77879         maint: detect usage(1) and other suspicious exits
77880         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
77882 2009-10-29  Jim Meyering  <meyering@redhat.com>
77884         timespec: long-to-int truncation could make timespec_cmp malfunction
77885         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
77886         a multiple of 2^32 nanoseconds as no difference.
77888 2009-10-28  Jim Meyering  <meyering@redhat.com>
77890         fprintftime: wrap macro code argument in "do {...} while(0)"
77891         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
77892         cpy macro must be a statement that can be followed by a semicolon.
77893         Now that the else clause contains a comment and is hence longer
77894         than one line, I require curly braces.  That in turn requires
77895         that we wrap this code block in the standard do...while(0).
77897         fprintftime: remove stray semicolon from previous change
77898         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
77900         fprintftime: avoid a warning about ignored fwrite return value
77901         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
77902         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
77903         that is unsafe.
77904         * modules/fprintftime (Depends-on): Add ignore-value.
77906         exclude: avoid an unwarranted warning
77907         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
77909 2009-10-27  Eric Blake  <ebb9@byu.net>
77911         fseek: avoid compilation failure when fflush is replaced
77912         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
77913         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
77914         module is in use.
77915         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
77916         module is not in use; since REPLACE_FSEEK worked otherwise.
77917         (GNULIB_FTELLO): Likewise for ftell.
77918         Reported by Ian Beckwith and others.
77920 2009-10-27  Bruno Haible  <bruno@clisp.org>
77922         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
77923         Reported by Jim Meyering.
77925 2009-10-27  Jim Meyering  <jim@meyering.net>
77926             Bruno Haible  <bruno@clisp.org>
77928         Avoid warning despite dropping the return value of fwrite.
77929         * lib/unicodeio.c: Include ignore-value.h.
77930         (fwrite_success_callback): Explicitly ignore fwrite's return value.
77931         * modules/unicodeio (Depends-on): Add ignore-value.
77933 2009-10-26  Eric Blake  <ebb9@byu.net>
77935         areadlinkat: fix fallback path
77936         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
77937         pointer and zero.
77939 2009-10-22  Pádraig Brady  <P@draigBrady.com>
77941         Use a better IO block size for modern systems
77942         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
77943         * lib/md2.c: Likewise.
77944         * lib/md4.c: Likewise.
77945         * lib/md5.c: Likewise.
77946         * lib/sha1.c: Likewise.
77947         * lib/sha256.c: Likewise.
77948         * lib/sha512.c: Likewise.
77950 2009-10-22  Eric Blake  <ebb9@byu.net>
77952         tests: avoid several compiler warnings
77953         * tests/test-getcwd.c (main): Avoid buffer underflow.
77954         * tests/test-getdate.c (main): String literals are not safe with
77955         putenv, so use setenv.  Declare unused argument.
77956         * modules/getdate-tests (Depends-on): Add setenv.
77957         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
77958         problems with string literals in char *.
77959         * tests/test-hash.c (main): Avoid shadowing declaration.
77960         (insert_new): Treat string literals as char const *.
77961         * tests/test-getopt.h (test_getopt): Likewise.
77962         (getopt_loop): Alter types to minimize casting elsewhere.
77963         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
77964         (test_getopt_long_posix): Likewise.
77965         (do_getopt_long): Add wrapper to minimize casting.
77966         * tests/test-atexit.c (clear_temp_file): Use void.
77967         * tests/test-areadlink-with-size.c (main): Declare unused
77968         arguments.
77969         * tests/test-areadlink.c (main): Likewise.
77970         * tests/test-areadlinkat-with-size.c (main): Likewise.
77971         * tests/test-areadlinkat.c (main): Likewise.
77972         * tests/test-canonicalize-lgpl.c (main): Likewise.
77973         * tests/test-canonicalize.c (main): Likewise.
77974         * tests/test-dirent-safer.c (main): Likewise.
77975         * tests/test-dirname.c (main): Likewise.
77976         * tests/test-dup2.c (main): Likewise.
77977         * tests/test-fchdir.c (main): Likewise.
77978         * tests/test-fcntl-h.c (main): Likewise.
77979         * tests/test-fcntl-safer.c (main): Likewise.
77980         * tests/test-fdopendir.c (main): Likewise.
77981         * tests/test-fdutimensat.c (main): Likewise.
77982         * tests/test-fflush.c (main): Likewise.
77983         * tests/test-filenamecat.c (main): Likewise.
77984         * tests/test-filevercmp.c (main): Likewise.
77985         * tests/test-fopen-safer.c (main): Likewise.
77986         * tests/test-fopen.c (main): Likewise.
77987         * tests/test-fpending.c (main): Likewise.
77988         * tests/test-fpurge.c (main): Likewise.
77989         * tests/test-freading.c (main): Likewise.
77990         * tests/test-fstatat.c (main): Likewise.
77991         * tests/test-fsync.c (main): Likewise.
77992         * tests/test-futimens.c (main): Likewise.
77993         * tests/test-getndelim2.c (main): Likewise.
77994         * tests/test-gettimeofday.c (main): Likewise.
77995         * tests/test-getopt.c (main): Likewise.
77996         * tests/test-i-ring.c (main): Likewise.
77997         * tests/test-inttypes.c (main): Likewise.
77998         * tests/test-link.c (main): Likewise.
77999         * tests/test-lstat.c (main): Likewise.
78000         * tests/test-math.c (main): Likewise.
78001         * tests/test-md5.c (main): Likewise.
78002         * tests/test-memchr2.c (main): Likewise.
78003         * tests/test-memrchr.c (main): Likewise.
78004         * tests/test-mkdir.c (main): Likewise.
78005         * tests/test-mkdirat.c (main): Likewise.
78006         * tests/test-mkfifoat.c (main): Likewise.
78007         * tests/test-open.c (main): Likewise.
78008         * tests/test-openat-safer.c (main): Likewise.
78009         * tests/test-openat.c (main): Likewise.
78010         * tests/test-quotearg.c (main): Likewise.
78011         * tests/test-rawmemchr.c (main): Likewise.
78012         * tests/test-readlink.c (main): Likewise.
78013         * tests/test-remove.c (main): Likewise.
78014         * tests/test-rename.c (main): Likewise.
78015         * tests/test-renameat.c (main): Likewise.
78016         * tests/test-rmdir.c (main): Likewise.
78017         * tests/test-sha1.c (main): Likewise.
78018         * tests/test-signal.c (main): Likewise.
78019         * tests/test-sigaction.c (main): Likewise.
78020         * tests/test-stat.c (main): Likewise.
78021         * tests/test-stat-time.c (main): Likewise.
78022         * tests/test-stddef.c (main): Likewise.
78023         * tests/test-stdint.c (main): Likewise.
78024         * tests/test-stdio.c (main): Likewise.
78025         * tests/test-stdlib.c (main): Likewise.
78026         * tests/test-strchrnul.c (main): Likewise.
78027         * tests/test-strerror.c (main): Likewise.
78028         * tests/test-string.c (main): Likewise.
78029         * tests/test-strtod.c (main): Likewise.
78030         * tests/test-strverscmp.c (main): Likewise.
78031         * tests/test-symlink.c (main): Likewise.
78032         * tests/test-symlinkat.c (main): Likewise.
78033         * tests/test-sys_stat.c (main): Likewise.
78034         * tests/test-sys_time.c (main): Likewise.
78035         * tests/test-time.c (main): Likewise.
78036         * tests/test-unistd.c (main): Likewise.
78037         * tests/test-unlink.c (main): Likewise.
78038         * tests/test-unlinkat.c (main): Likewise.
78039         * tests/test-utimens.c (main): Likewise.
78040         * tests/test-utimensat.c (main): Likewise.
78041         * tests/test-version-etc.c (main): Likewise.
78042         * tests/test-wchar.c (main): Likewise.
78043         * tests/test-wctype.c (main): Likewise.
78044         * tests/test-xprintf-posix.c (main): Likewise.
78045         * tests/test-posixtm.c (main): Likewise.
78046         (STREQ): Delete unused macro.
78047         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
78048         shadowed variables.
78049         * tests/test-memchr.c (main): Likewise.
78051 2009-10-21  Eric Blake  <ebb9@byu.net>
78053         areadlinkat: avoid failure on older glibc
78054         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
78055         rather than mis-comparing 0 against FUNC_RESULT of char*.
78057 2009-10-21  Bruno Haible  <bruno@clisp.org>
78059         * modules/stpncpy (License): Relicense under LGPLv2+.
78060         Reported by David Lutterkort <lutter@redhat.com>.
78062 2009-10-20  Eric Blake  <ebb9@byu.net>
78064         utimensat: work around Solaris 9 bug
78065         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
78066         has trailing slash bugs.
78067         * tests/test-lutimens.h (test_lutimens): Enhance test.
78068         * tests/test-utimens.h (test_utimens): Likewise.
78069         * doc/posix-functions/utime.texi (utime): Enhance documentation.
78070         * doc/posix-functions/utimes.texi (utimes): Likewise.
78071         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
78072         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
78073         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
78074         * doc/posix-functions/futimens.texi (futimens): Likewise.
78076         fdutimensat: new module
78077         * modules/fdutimensat: New file.
78078         * lib/fdutimensat.c (fdutimensat): Likewise.
78079         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
78080         * MODULES.html.sh (File system functions): Mention module.
78081         * modules/fdutimensat-tests: New test.
78082         * tests/test-fdutimensat.c: Likewise.
78084         doc: regenerate INSTALL
78085         * doc/INSTALL: Reflect recent autoconf update.
78086         * doc/INSTALL.ISO: Likewise.
78087         * doc/INSTALL.UTF-8: Likewise.
78089 2009-10-20  Pádraig Brady  <P@draigBrady.com>
78091         acl: warn if ACL support is not detected
78092         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
78094 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
78096         * lib/nproc.h: Add extern "C" block for C++.
78098 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
78099             Bruno Haible  <bruno@clisp.org>
78101         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
78102         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
78103         * doc/posix-functions/isalpha.texi: Likewise.
78104         * doc/posix-functions/isblank.texi: Likewise.
78105         * doc/posix-functions/iscntrl.texi: Likewise.
78106         * doc/posix-functions/isdigit.texi: Likewise.
78107         * doc/posix-functions/isgraph.texi: Likewise.
78108         * doc/posix-functions/islower.texi: Likewise.
78109         * doc/posix-functions/isprint.texi: Likewise.
78110         * doc/posix-functions/ispunct.texi: Likewise.
78111         * doc/posix-functions/isspace.texi: Likewise.
78112         * doc/posix-functions/isupper.texi: Likewise.
78113         * doc/posix-functions/isxdigit.texi: Likewise.
78115 2009-10-18  Bruno Haible  <bruno@clisp.org>
78117         Tests for module 'isblank'.
78118         * modules/isblank-tests: New file.
78119         * tests/test-isblank.c: New file.
78121         New module 'isblank'.
78122         * lib/isblank.c: New file.
78123         * m4/isblank.m4: New file.
78124         * modules/isblank: New file.
78125         * doc/posix-functions/isblank.texi: Mention the new module.
78127 2009-10-18  Bruno Haible  <bruno@clisp.org>
78129         New module 'ctype'.
78130         * lib/ctype.in.h: New file.
78131         * m4/ctype.m4: New file.
78132         * modules/ctype: New file.
78133         * doc/posix-headers/ctype.texi: Mention the new module.
78135 2009-10-18  Jim Meyering  <meyering@redhat.com>
78137         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
78138         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
78139         right after its initialization, rather than farther down.
78140         Keeping these in close proximity makes it easier to ensure
78141         that each such variable is initialized.  E.g.,
78143             LIB_CLOCK_GETTIME=
78144             AC_SUBST([LIB_CLOCK_GETTIME])
78146         This change also increments these serial numbers.
78147         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
78148         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
78149         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78151 2009-10-18  Bruno Haible  <bruno@clisp.org>
78153         Don't let environment variables perturb build.
78154         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
78155         (gl_PREREQ_GETHRXTIME): ... not here.
78157 2009-10-18  Bruno Haible  <bruno@clisp.org>
78159         Avoid symlink attack in localcharset module.
78160         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
78161         (O_NOFOLLOW): Define fallback.
78162         (get_charset_aliases): Don't open the file if it is a symbolic link.
78163         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
78164         gl_FCNTL_H.
78165         (gl_FCNTL_H): Require it.
78166         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
78167         * modules/localcharset (Files): Add m4/fcntl_h.m4.
78168         Reported by Fergal Glynn <fglynn@veracode.com>.
78170 2009-10-18  Bruno Haible  <bruno@clisp.org>
78172         Implement nproc for mingw.
78173         * lib/nproc.c: Include <windows.h>
78174         (num_processors): On native Windows platforms, try GetSystemInfo.
78176 2009-10-18  Bruno Haible  <bruno@clisp.org>
78178         Implement nproc for IRIX.
78179         * lib/nproc.c: Include <sys/sysmp.h>.
78180         (num_processors): On IRIX systems, try sysmp.
78181         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
78183 2009-10-18  Bruno Haible  <bruno@clisp.org>
78185         Implement nproc for HP-UX.
78186         * lib/nproc.c: Include <sys/pstat.h>
78187         (num_processors): On HP-UX systems, try pstat_getdynamic.
78188         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
78189         pstat_getdynamic.
78191 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
78192             Bruno Haible  <bruno@clisp.org>
78194         Implement nproc for NetBSD, OpenBSD.
78195         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
78196         (ARRAY_SIZE): New macro.
78197         (num_processors): On BSD systems, try sysctl of HW_NCPU.
78198         * m4/nproc.m4: New file.
78199         * modules/nproc (Files): Add m4/nproc.m4.
78200         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
78201         (Makefile.am): Instead, augment lib_SOURCES.
78203 2009-10-18  Bruno Haible  <bruno@clisp.org>
78205         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
78206         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
78207         sys/param.h.
78209 2009-10-16  Eric Blake  <ebb9@byu.net>
78211         utimensat: new module
78212         * modules/utimensat: New file.
78213         * lib/utimensat.c (utimensat): Likewise.
78214         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
78215         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
78216         so we can work around Linux bugs.
78217         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
78218         * modules/sys_stat (Makefile.am): Substitute them.
78219         * lib/sys_stat.in.h (utimensat): Declare it.
78220         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78221         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
78222         * modules/utimensat-tests: New test.
78223         * tests/test-utimensat.c: Likewise.
78225         utimens: let lutimens work on non-symlinks
78226         * lib/utimens.c (lutimens): Fall back to utimens rather than
78227         failing with ENOSYS, when file is not a symlink.
78228         (utimens): Reduce redirection.
78229         * tests/test-lutimens.h (test_lutimens): Update test to cover
78230         non-symlinks.
78231         * tests/test-utimens.h (test_utimens): Update test to cover
78232         symlinks.
78233         * tests/test-utimens.c (main): Update caller.
78235         utimens: cache whether utimensat syscall works
78236         * lib/utimens.c (utimensat_works_really): New cache variable.
78237         (fdutimens, lutimens): Use it to avoid failing syscall.
78239         test-stat-time, test-utimens: improve portability
78240         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
78241         ext4 on alpha, and for cygwin.
78242         * tests/test-utimens-common.h: New file.
78243         (nap): Factor delays into single function.
78244         * tests/test-lutimens.h (test_lutimens): Use new header.
78245         * tests/test-futimens.h (test_futimens): Likewise.
78246         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
78247         timestamps to occur from same machine, as was done previously for
78248         test_utimens.
78249         * modules/utimens-tests (Files): Ship new file.
78250         * modules/futimens-tests (Files): Likewise.
78251         Reported in part by Jim Meyering.
78253         sys_stat: sort replacement declarations
78254         * lib/sys_stat.in.h: Sort declarations.
78255         * lib/futimens.c (futimens): Fix typo.
78257 2009-10-15  Jim Meyering  <meyering@redhat.com>
78259         don't let environment settings perturb build
78260         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
78261         could cause a configure-time and/or build-time malfunction.
78262         Typically, a configure-time function-in-library test is performed
78263         via code like this:
78265           LIB_VAR=
78266           AC_SUBST([LIB_VAR])
78267           prefix_saved_LIBS=$LIBS
78268             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
78269                        [test "$ac_cv_search_FUNC" = "none required" ||
78270                         LIB_VAR=$ac_cv_search_FUNC])
78271           LIBS=$prefix_saved_LIBS
78273         However, in each of the files affected by this change, the LIB_VAR=
78274         initialization was omitted.  Thus, when set in the environment, its
78275         value would propagate into generated Makefiles when FUNC is not found
78276         in LIB_NAME.
78277         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
78278         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
78279         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78281 2009-10-14  Eric Blake  <ebb9@byu.net>
78283         fchdir: avoid infinite recursion in mingw
78284         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
78285         recursing.
78287         test-stat-time: port to mingw
78288         * tests/test-stat-time.c (force_unlink): Return a value.
78289         (test_ctime) [W32]: Fix compilation error.
78290         (nap): Don't call usleep with too large an argument.  Use
78291         force_unlink.
78292         * doc/pastposix-functions/usleep.texi (usleep): Document the
78293         portability issue.
78295 2009-10-13  Jim Meyering  <meyering@redhat.com>
78297         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
78298         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
78299         * modules/pipe-filter-ii: Likewise.
78300         * modules/sys_socket-tests: Likewise.
78301         * modules/tsearch-tests: Likewise.
78302         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
78303         (check): Depend on it.
78305 2009-10-12  Eric Blake  <ebb9@byu.net>
78307         utimens-tests: port to NFS file systems
78308         * tests/test-utimens.h (test_utimens): Refactor utimecmp
78309         comparisons to avoid spurious failures from timestamp drift
78310         between NFS machines.
78312 2009-10-12  Eric Blake  <ebb9@byu.net>
78314         stat-time-tests: minor cleanups
78315         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
78316         * tests/test-stat-time.c (nap): Separate assignment from call.
78317         Suggested by Paolo Bonzini and Bruno Haible.
78319         sys_stat: guarantee struct timespec
78320         * lib/sys_stat.in.h (includes): Always include <time.h>
78321         * modules/sys_stat (Depends-on): Add time.
78322         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
78323         mode_t permission values.
78324         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
78325         get at subsecond timestamps.
78327 2009-10-10  Eric Blake  <ebb9@byu.net>
78329         futimens: new module
78330         * modules/futimens: New file.
78331         * lib/futimens.c (futimens): Likewise.
78332         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
78333         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
78334         we can work around Linux bugs.
78335         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
78336         * modules/sys_stat (Makefile.am): Substitute them.
78337         * lib/sys_stat.in.h (futimens): Declare it.
78338         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78339         * doc/posix-functions/futimens.texi (futimens): Likewise.
78340         * modules/futimens-tests: New test.
78341         * tests/test-futimens.c: Likewise.
78343         utimens: introduce fdutimens
78344         * lib/utimens.h (fdutimens): New prototype.
78345         * lib/utimens.c (gl_futimens): Move guts...
78346         (fdutimens): ...to new interface.
78347         * tests/test-utimens.c (do_fdutimens): Use it.
78349         utimens: add UTIME_NOW and UTIME_OMIT support
78350         * lib/utimens.c (validate_timespec, update_timespec): New helper
78351         functions.
78352         (gl_futimens, lutimens): Use them.
78353         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
78354         stdbool, sys_stat.
78355         (Link): Mention resulting library dependency.
78356         * modules/utimecmp (Link): Likewise.
78357         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
78358         (Makefile.am): Pick up library dependency.
78359         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
78360         definition.
78361         * tests/test-sys_stat.c: Test the definitions.
78362         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
78363         * NEWS: Document library dependency.
78365         utimecmp: support symlink timestamps
78366         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
78367         hashing when possible.  Use pathconf when available.
78368         (SYSCALL_RESOLUTION): Recognize tighter resolution.
78369         * modules/utimecmp (Depends-on): Add lstat.
78371         utimens: add lutimens interface
78372         * lib/utimens.c (lutimens): New function.
78373         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
78374         * lib/utimens.h (lutimens): Declare new interface.
78375         * tests/test-utimens.c (main): Enhance test.
78376         * tests/test-lutimens.h (test_lutimens): New file.
78377         * modules/utimens-tests (Files): Distribute it.
78378         (Depends-on): Add symlink.
78379         (configure.ac): Check for usleep.
78381         utimens: validate futimens usage
78382         * lib/utimens.c (gl_futimens): Require valid fd up front, using
78383         fewer syscalls on failure later on.  Avoid compiler warning on
78384         mingw.
78385         * modules/utimens (Depends-on): Add dup2.
78387         utimens: add test
78388         * modules/utimens-tests: New test.
78389         * tests/test-utimens.h: New file.
78390         * tests/test-futimens.h: Likewise.
78391         * tests/test-utimens.c: Likewise.
78393         doc: mention timestamp portability issues
78394         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
78395         instead.
78396         * doc/posix-functions/utime.texi (utime): Likewise.
78397         * doc/posix-functions/utimes.texi (utimes): Likewise.
78398         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
78399         instead.
78400         * doc/posix-functions/futimens.texi (futimens): Mention utimens
78401         module.
78402         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
78403         Mention weakness with symlink timestamps.
78404         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
78405         to utimensat/futimens instead.
78406         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
78408         test-dup2: enhance test
78409         * tests/test-dup2.c (main): Also check AT_FDCWD.
78411         test-stat-time: avoid more spurious failures
78412         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
78413         xfs; and avoid race if the two timestamps cross quantization edge.
78415         relocatable: prefer 'file system' over 'filesystem'
78416         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
78417         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
78418         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
78419         * doc/relocatable.texi (Enabling Relocatability): Likewise.
78420         * lib/relocatable.c (compute_curr_prefix): Likewise.
78422 2009-10-10  Jim Meyering  <meyering@redhat.com>
78424         stat-time-tests: check for the usleep function
78425         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
78427 2009-10-10  Bruno Haible  <bruno@clisp.org>
78429         * modules/xnanosleep: Put the Link section after the Include section.
78431 2009-10-09  Eric Blake  <ebb9@byu.net>
78433         dup2: work around FreeBSD 6.1 bug
78434         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
78435         * doc/posix-functions/dup2.texi (dup2): Document it.
78436         Reported by Nelson H. F. Beebe and Jim Meyering.
78438         test-stat-time: port to buggy NFS clients
78439         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
78440         (test_ctime): Also skip test if mtime and ctime are skewed.
78442         maint: prefer 'file system' over 'filesystem'
78443         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
78444         * doc/posix-functions/lstat.texi (lstat): Likewise.
78445         * lib/file-has-acl.c (file_has_acl): Likewise.
78446         * lib/fwriteerror.c [TEST]: Likewise.
78447         * tests/test-areadlink.h (test_areadlink): Likewise.
78448         * tests/test-areadlinkat-with-size.c (main): Likewise.
78449         * tests/test-areadlinkat.c (main): Likewise.
78450         * tests/test-canonicalize-lgpl.c (main): Likewise.
78451         * tests/test-canonicalize.c (main): Likewise.
78452         * tests/test-fstatat.c (main): Likewise.
78453         * tests/test-linkat.c (main): Likewise.
78454         * tests/test-lstat.h (test_lstat_func): Likewise.
78455         * tests/test-mkdir.h (test_mkdir): Likewise.
78456         * tests/test-readlink.h (test_readlink): Likewise.
78457         * tests/test-remove.c (main): Likewise.
78458         * tests/test-rename.h (test_rename): Likewise.
78459         * tests/test-renameat.c (main): Likewise.
78460         * tests/test-rmdir.h (test_rmdir_func): Likewise.
78461         * tests/test-symlink.h (test_symlink): Likewise.
78462         * tests/test-symlinkat.c (main): Likewise.
78463         * tests/test-unlink.h (test_unlink_func): Likewise.
78464         * tests/test-unlinkat.c (main): Likewise.
78466         maint: make realtime library usage explicit
78467         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
78468         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
78469         * modules/settime (Link): Likewise.
78470         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
78472         test-stat-time: speed up execution
78473         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
78474         warning on mingw.
78475         (nap): New helper function.
78476         (prepare_test): Use it to reduce sleep time.
78477         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
78478         execution.
78479         * modules/stat-time-tests (configure.ac): Check for usleep.
78481 2009-10-09  Jim Meyering  <meyering@redhat.com>
78483         selinux-h: always use getfilecon wrappers
78484         * lib/getfilecon.c: New file.
78485         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
78486         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
78487         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
78488         (fgetfilecon): Provide a stub.
78489         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
78490         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
78491         file unconditionally.
78492         When <selinux/selinux.h> is found, arrange to use wrappers.
78493         * modules/selinux-h (Files): Add getfilecon.c.
78494         (Makefile.am): Substitute include-next-related bits
78495         into the now-always-generated selinux/selinux.h file.
78496         * doc/glibc-functions/lgetfilecon.texi: New file.
78497         * doc/glibc-functions/fgetfilecon.texi: New file.
78498         * doc/glibc-functions/getfilecon.texi: New file.
78499         * doc/glibc-functions/getfilecon-desc.texi: New file.
78500         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
78501         which to pull in the new files.
78502         * MODULES.html.sh (Misc): Add selinux-h.
78504 2009-10-08  Jim Meyering  <meyering@redhat.com>
78506         unistd: fix comment typo
78507         * lib/unistd.in.h (euidaccess): Fix a comment typo.
78509 2009-10-08  Eric Blake  <ebb9@byu.net>
78511         areadlink: use SIZE_MAX consistently
78512         * modules/areadlink (Depends-on): Add stdint.
78513         * modules/areadlink-with-size (Depends-on): Likewise.
78514         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
78515         gives NULL; drop sys/types, since unistd gives size_t; and add
78516         stdint for SIZE_MAX.
78517         (SIZE_MAX): Rely on headers.
78518         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
78519         and add stdint.
78520         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
78521         (SIZE_MAX): Likewise.
78522         (INITIAL_BUF_SIZE): Turn into enum.
78523         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
78525 2009-10-08  Jim Meyering  <meyering@redhat.com>
78527         areadlinkat: avoid compilation failure
78528         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
78529         Fix typo in comment.
78531 2009-10-07  Eric Blake  <ebb9@byu.net>
78533         areadlinkat-with-size: new module
78534         * modules/areadlinkat-with-size: New module.
78535         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
78536         * lib/areadlink.h (areadlinkat): Declare it.
78537         * MODULES.html.sh (File system functions): Mention it.
78538         * modules/areadlinkat-with-size-tests: New test.
78539         * tests/test-areadlinkat-with-size.c: New file.
78541         xreadlinkat: new module
78542         * modules/xreadlinkat: New module.
78543         * lib/xreadlinkat.c (xreadlinkat): New file.
78544         * lib/xreadlink.h (xreadlinkat): Declare it.
78545         * MODULES.html.sh (File system functions): Mention it.
78547         areadlinkat: new module
78548         * lib/at-func.c (FUNC_FAIL): New define.
78549         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
78550         * modules/areadlinkat: New module.
78551         * lib/linkat.c (areadlinkat): Move...
78552         * lib/areadlinkat.c (areadlinkat): ...to new file.
78553         * lib/areadlink.h (areadlinkat): Declare it.
78554         * modules/linkat (Depends-on): Add areadlinkat.
78555         * MODULES.html.sh (File system functions): Mention it.
78556         * modules/areadlinkat-tests: New test.
78557         * tests/test-areadlinkat.c: New file.
78559         areadlink, areadlink-with-size: add tests
78560         * modules/areadlink-tests: New test.
78561         * modules/areadlink-with-size-tests: Likewise.
78562         * tests/test-areadlink.h: New file.
78563         * tests/test-areadlink.c: Likewise.
78564         * tests/test-areadlink-with-size.c: Likewise.
78566         maint: minor cleanups
78567         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
78568         _UNUSED_PARAMETER_ instead.
78569         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
78570         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
78571         * modules/linkat-tests (Files): Distribute test-link.h.
78573         openat, utimens: whitespace cleanup
78574         * lib/openat.c: Prefer space throughout, rather than mix of 8
78575         spaces vs. tabs.
78576         * lib/at-func.c: Likewise.
78577         * lib/utimens.c: Likewise.
78579         openat: avoid using wrong fd
78580         * lib/openat.c (openat_permissive): Reject user's fd if saving the
78581         working directory chooses same fd.
78582         * lib/at-func.c (AT_FUNC_NAME): Likewise.
78584         mkdir, mkdirat: fix cygwin 1.5.x bug
78585         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
78586         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
78587         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
78588         bug.
78589         (gl_PREREQ_MKDIR): Delete unused macro.
78590         * modules/mkdir (Files): Track file rename.
78591         (configure.ac): Update macro name.
78592         * modules/openat (Depends-on): Add mkdir.
78593         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
78595         mkdir, mkdirat: add tests
78596         * modules/mkdir-tests: New test.
78597         * tests/test-mkdir.h: New file.
78598         * tests/test-mkdir.c: Likewise.
78599         * tests/test-mkdirat.c: Likewise.
78600         * modules/openat-tests (Files): Add new files.
78601         (Makefile.am): Run new test.
78603 2009-10-06  Eric Blake  <ebb9@byu.net>
78605         doc: tweak *at function documentation
78606         * doc/posix-functions/faccessat.texi (faccessat): Mention
78607         known issue with replacement.
78608         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
78609         * doc/posix-functions/linkat.texi (linkat): Likewise.
78610         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
78611         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
78612         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
78613         * doc/posix-functions/renameat.texi (renameat): Likewise.
78614         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
78616         openat: fix GNU/Hurd bug in unlinkat
78617         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
78618         broken.
78619         * doc/posix-functions/unlink.texi (unlink): Document this.
78620         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
78622         fdopendir: fix GNU/Hurd bug
78623         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
78624         allowing non-directory fds.
78625         * lib/fdopendir.c (rpl_fdopendir): Work around it.
78626         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
78627         * modules/dirent (Makefile.am): Substitute it.
78628         * lib/dirent.in.h (fdopendir): Declare replacement.
78629         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
78630         * tests/test-fdopendir.c (main): Test something other than
78631         /dev/null, since on Hurd that behaves like a directory.
78633         test-symlink: port to GNU/Hurd
78634         * tests/test-symlink.h (test_symlink): Relax expected errno.
78636         doc: tweak more cygwin information
78637         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
78638         now compatible with glibc.
78639         * doc/posix-functions/getopt.texi (getopt): Likewise.
78641         getopt-gnu: add another test
78642         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
78643         guarantee behavior relied on by m4.
78644         * tests/test-getopt.c (main): Use it.
78645         * modules/getopt-posix-tests (Depends-on): Add setenv.
78646         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
78648         getopt: fix compilation on darwin
78649         * lib/getopt.in.h (includes): Leave breadcrumbs during system
78650         include.
78651         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
78652         Reported by Ludovic Courtès.
78654 2009-10-06  Bruno Haible  <bruno@clisp.org>
78656         * modules/size_max (Description): Discourage its use.
78657         Reported by Simon Josefsson.
78659 2009-10-06  Jim Meyering  <meyering@redhat.com>
78661         linkat: avoid compilation failure
78662         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
78664 2009-10-05  Eric Blake  <ebb9@byu.net>
78666         linkat: support Linux 2.6.17
78667         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
78668         linkat on Linux, but allow cache variable override.
78669         * lib/linkat.c (rpl_linkat): Define override.
78670         * modules/linkat (Depends-on): Add symlinkat.
78671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
78672         * modules/unistd (Makefile.am): Substitute it.
78673         * lib/unistd.in.h (linkat): Declare replacement.
78674         Reported by Pádraig Brady.
78676         quotearg: port test to systems with C.UTF-8 locale
78677         * tests/test-quotearg.c (struct result_strings): Add another
78678         member, differentiating between C.ASCII and C.UTF-8 handling.
78679         (compare_strings): Add parameter.
78680         (main): Adjust all callers.
78682         getopt: avoid clash with FreeBSD _getopt_internal
78683         * lib/getopt.in.h (_getopt_internal): Override the name.
78684         * lib/getopt_int.h (includes): Pick up any overrides.
78685         Reported by Reuben Thomas.
78687         hash: allow C89 compilation
78688         * lib/hash.c (check_tuning): Move declaration before statement.
78689         Reported by Reuben Thomas.
78691 2009-10-05  Karl Berry  <karl@gnu.org>
78693         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
78695 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
78696             Bruno Haible  <bruno@clisp.org>
78698         * lib/uname.c (uname): Use a table-driven algorithm to compute
78699         Windows NT versions.
78701 2009-10-04  Bruno Haible  <bruno@clisp.org>
78703         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
78704         program_invocation_short_name.
78705         * modules/progname (configure.ac): Test for presence of
78706         program_invocation_short_name.
78707         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
78709 2009-10-04  Bruno Haible  <bruno@clisp.org>
78711         * lib/progname.c (set_program_name): Fix comment.
78712         Reported by Jim Meyering.
78714 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
78715             Bruno Haible  <bruno@clisp.org>
78717         * lib/uname.c: Include <string.h>.
78718         (uname): Do only one call to GetVersionEx in the common case.
78720 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
78721             Bruno Haible  <bruno@clisp.org>
78723         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
78724         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
78725         (uname): Add support for Windows CE and various non-x86 CPU types.
78727 2009-10-03  Bruno Haible  <bruno@clisp.org>
78729         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
78730         invocation to tests/configure.ac.
78731         Reported by Ian Beckwith <ianb@erislabs.net>.
78733 2009-10-02  Eric Blake  <ebb9@byu.net>
78735         fchdir: avoid compiler warning
78736         * lib/fchdir.c (canonicalize_file_name)
78737         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
78739         test-open: support mingw errno values
78740         * tests/test-open.h (test_open): Relax test.
78741         * tests/test-fopen.h (test_fopen): Likewise.
78742         * tests/test-openat-safer.c (main): Likewise.
78744         open: fix opening directory on mingw
78745         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
78747         test-open: on GNU/Hurd, /dev/null is a directory
78748         * tests/test-fopen.h (main): Rename...
78749         (test_fopen): ...to this.  Use a guaranteed non-directory when
78750         confirming open behavior on trailing slash.
78751         * tests/test-openat-safer.c (main): Likewise.
78752         * tests/test-open.h (main): Likewise....
78753         (test_open): ...to this.
78754         * tests/test-fopen.c (main): Adjust caller.
78755         * tests/test-fopen-safer.c (main): Likewise.
78756         * tests/test-open.c (main): Likewise.
78757         * tests/test-fcntl-safer.c (main): Likewise.
78758         Reported by Samuel Thibault.
78760         rename, fchdir: don't ignore chdir failure
78761         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
78762         * lib/rename.c (rpl_rename) [W32]: Likewise.
78763         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
78764         an empty destination directory if source cannot be renamed,
78765         although there is still possibility for failure.
78766         * doc/posix-functions/rename.texi (rename): Document the race.
78767         Reported by Jim Meyering.
78769         maint: cleanup whitespace in recent commits
78770         * lib/rename.c (rpl_rename): Remove tabs.
78771         * tests/test-link.h (test_link): Likewise.
78772         * lib/fchdir.c (get_name): Likewise.
78773         Reported by Jim Meyering.
78775 2009-10-02  Ben Pfaff  <blp@gnu.org>
78777         relocatable-prog-wrapper: Add missing dependency on
78778         double-slash-root.
78779         * modules/relocatable-prog-wrapper: Add dependency.
78780         Reported by Ian Beckwith <ianb@erislabs.net>.
78782 2009-10-02  Eric Blake  <ebb9@byu.net>
78784         renameat: fix Solaris bugs
78785         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
78786         needed fixing.
78787         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
78788         * modules/stdio (Makefile.am): Substitute it.
78789         * lib/stdio.in.h (renameat): Declare replacement.
78790         * lib/renameat.c (rpl_renameat): Implement fix.
78792         renameat: new module
78793         * modules/renameat: New file.
78794         * lib/renameat.c (renameat): Likewise.
78795         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
78796         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
78797         * modules/stdio (Makefile.am): Substitute them.
78798         * lib/stdio.in.h (renameat): Declare it.
78799         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78800         * doc/posix-functions/renameat.texi (renameat): Likewise.
78801         * modules/renameat-tests: New test.
78802         * tests/test-renameat.c: Likewise.
78804         rename: fix mingw bugs
78805         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
78806         directory overwrite bugs.
78808         rename: fix another cygwin 1.5 bug
78809         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
78810         checks.
78811         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
78812         unnecessary cygwin workarounds.  Also work around bug with moving
78813         full directory onto an empty one.
78814         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
78816         rename-dest-slash: merge into rename module
78817         * modules/rename-dest-slash (Status): Mark obsolete.
78818         (Depends-on): Add rename.
78819         (Files): Let rename do it all.
78820         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
78821         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
78822         * m4/rename-dest-slash.m4: ...so this file can be deleted.
78823         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
78824         * lib/rename.c (rpl_rename): Update comments.
78826         rename: fix cygwin 1.5.x bugs
78827         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
78828         * lib/rename.c (rpl_rename): Work around them.
78829         * modules/rename (Depends-on): Add same-inode.
78831         rename: fix Solaris 10 bug
78832         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
78833         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
78834         was the only bug.
78836         rename: fix Solaris 9 bug
78837         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
78838         on non-directory.  Avoid calling exit.
78839         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
78840         strdup.
78841         * modules/rename-tests (Depends-on): Drop lstat.
78842         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
78843         (gl_PREREQ_RENAME): Delete unused macro.
78845         rename-dest-slash: fix NetBSD bug
78846         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
78847         links.
78848         * modules/rename-dest-slash (Depends-on): Add same-inode.
78850         rename-tests: new test, exposes several platform bugs
78851         * modules/rename-tests: New file.
78852         * tests/test-rename.h: Likewise.
78853         * tests/test-rename.c: Likewise.
78854         * doc/posix-functions/rename.texi (rename): Improve documentation,
78855         including bugs that will eventually be fixed in gnulib.
78857 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
78859         * lib/uname.c: Include <stdlib.h>
78860         (uname): Assume version info is available.
78862 2009-10-02  Jim Meyering  <meyering@redhat.com>
78864         gnu-web-doc-update: correct --help output
78865         * build-aux/gnu-web-doc-update: Make --help output relevant.
78867         gnu-web-doc-update: add standard options
78868         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
78870         gnu-web-doc-update: New module.
78871         Use this script to automatically update the on-line web documentation
78872         for your GNU project at http://www.gnu.org/software/$pkg/manual/
78873         * modules/gnu-web-doc-update: New file, from coreutils.
78874         * build-aux/gnu-web-doc-update: New script.
78876 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
78878         link: LoadLibrary is not needed.
78879         * lib/link.c: Use GetModuleHandle.
78881 2009-10-01  Eric Blake  <ebb9@byu.net>
78883         getopt: bump serial number
78884         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
78885         change.
78887         tests: tighten link, rmdir, and remove tests
78888         * tests/test-link.h (includes): No need to use <config.h> here.
78889         Clean up if directory hard link was created, otherwise test for
78890         trailing '.'.
78891         * tests/test-linkat.c (main): Simplify.
78892         * tests/test-remove.c (main): Enhance test for trailing '.'.
78893         * tests/test-rmdir.h (test_rmdir_func): Likewise.
78895 2009-10-01  Jim Meyering  <meyering@redhat.com>
78897         maint.mk: requiring "make major" was annoying, for a "minor" release.
78898         What is intended is "stable", to contrast with alpha and beta,
78899         so require "make stable", not "make major".
78900         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
78901         (get_tool_versions): Likewise.
78902         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
78904 2009-09-30  Ben Pfaff  <blp@gnu.org>
78906         Fix broken build of replacement for Windows tmpfile().
78907         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
78908         flags argument added along with the 'mkostemp' module.
78910 2009-09-28  Bruno Haible  <bruno@clisp.org>
78912         Avoid identifier clash with POSIX function 'remove' defined as a macro.
78913         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
78914         to 'remove_elt'.
78915         (gl_list_remove): Update.
78916         * lib/gl_list.c (gl_list_remove): Update.
78917         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
78918         to 'remove_elt'.
78919         (gl_oset_remove): Update.
78920         * lib/gl_list.c (gl_oset_remove): Update.
78921         Reported by Eric Blake.
78923 2009-09-28  Eric Blake  <ebb9@byu.net>
78925         doc: mention yet more cygwin 1.7 status
78926         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
78927         cygwin.
78928         * doc/glibc-functions/execvpe.texi (execvpe): New file.
78929         * doc/gnulib.texi (Glibc unistd.h): Mention it.
78931         argp: fix test failure
78932         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
78933         that are not upper-case.  Pass correct range to tolower.
78935 2009-09-27  Jim Meyering  <meyering@redhat.com>
78937         test-yesno: work around sparc-dash here-document infelicity
78938         Without this change, the literal \177 byte in a here document
78939         would make dash 0.5.5.1-3 access uninitialized memory.
78940         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
78941         Instead, use a marker, "@", and filter through tr to create the desired
78942         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
78944 2009-09-27  Bruno Haible  <bruno@clisp.org>
78946         Disable untested support for new flavours of ACLs on AIX.
78947         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
78948         progress.
78949         * lib/set-mode-acl.c (qset_acl): Likewise.
78951 2008-12-07  Bruno Haible  <bruno@clisp.org>
78953         Add support for new flavours of ACLs on AIX. (Untested.)
78954         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
78955         (file_has_acl): Add support for newer AIX.
78956         * lib/set-mode-acl.c (qset_acl): Likewise.
78957         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
78958         Rainer Tammer <tammer@tammer.net>.
78960 2009-09-26  Eric Blake  <ebb9@byu.net>
78962         argp: fix compilation of getopt
78963         * lib/getopt.in.h (includes): Use different guard than glibc.
78964         Reported by Sergey Poznyakoff.
78966         doc: mention more cygwin 1.7 status
78967         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
78968         bug.
78969         * doc/posix-functions/execl.texi (execl): Likewise.
78970         * doc/posix-functions/execle.texi (execle): Likewise.
78971         * doc/posix-functions/execlp.texi (execlp): Likewise.
78972         * doc/posix-functions/execv.texi (execv): Likewise.
78973         * doc/posix-functions/execve.texi (execve): Likewise.
78974         * doc/posix-functions/execvp.texi (execvp): Likewise.
78975         * doc/glibc-functions/canonicalize_file_name.texi
78976         (canonicalize_file_name): Cygwin 1.7 now provides this.
78977         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
78978         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
78979         on AT_SYMLINK_NOFOLLOW.
78981 2009-09-24  Eric Blake  <ebb9@byu.net>
78983         test-linkat: make test more robust
78984         * tests/test-linkat.c (main): Avoid collision with EEXIST.
78986         getopt: fix inclusion guards for cygwin
78987         * modules/getopt-posix (Depends-on): Add include-next.
78988         (Makefile.am): Substitute more items in replacement header.
78989         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
78990         <getopt.h>.
78991         * lib/getopt.in.h (includes): Use split inclusion guard, and
78992         prefer <getopt.h> over include <unistd.h> when one is present.
78993         (option): Also override name of 'struct option'.
78995         same-inode: revert prior change; it is not yet ready
78996         * NEWS: Undo mention of this change.
78997         * lib/same-inode.h (same-inode.h): Undo tri-state change.
78998         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
78999         * lib/cycle-check.c (cycle_check): Likewise.
79000         * lib/same.c (same_name): Likewise.
79001         * lib/at-func2.c (at_func2): Likewise.
79003 2009-09-23  Eric Blake  <ebb9@byu.net>
79005         linkat: new module
79006         * modules/linkat: New file.
79007         * lib/at-func2.c (at_func2): Likewise.
79008         * lib/linkat.c (linkat): Likewise.
79009         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
79010         * lib/openat-priv.h (at_func2): Add declaration.
79011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
79012         * modules/unistd (Makefile.am): Substitute them.
79013         * lib/unistd.in.h (linkat): Declare it.
79014         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79015         * doc/posix-functions/linkat.texi (linkat): Likewise.
79016         * doc/posix-functions/link.texi (link): Tweak wording.
79017         * tests/test-link.c (main): Move guts...
79018         * tests/test-link.h (test_link): ...into new file.
79019         * modules/linkat-tests: New test.
79020         * tests/test-linkat.c: Likewise.
79021         * modules/link-tests (Files): Ship new file.
79022         (Depends-on): Add stdbool.
79024         dirname: add library-safe mdir_name
79025         * lib/dirname.h (mdir_name): New prototype.
79026         * lib/dirname.c (dir_name): Move guts...
79027         (mdir_name): ...to new function that avoids xalloc_die.
79029         fchdir: another mingw fix
79030         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
79031         * lib/fchdir.c (get_name): New helper method; skips canonicalize
79032         on mingw (where it has not yet been ported), and make it optional
79033         elsewhere.
79034         (_gl_register_fd): Use it.
79036         same-inode: make SAME_INODE tri-state, to port to mingw
79037         * NEWS: Mention this change.
79038         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
79039         st_ino always being 0.
79040         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
79041         * lib/cycle-check.c (cycle_check): Likewise.
79042         * lib/same.c (same_name): Likewise.
79044         lstat: avoid mingw compilation error
79045         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
79046         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
79047         lstat ourselves.
79048         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
79049         was adequate.
79050         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
79051         the checks for lstat.
79052         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
79054         link: fix test failure on Solaris 9
79055         * lib/link.c (rpl_link): Don't assume link will catch bogus
79056         trailing slash on source.
79058         test-symlinkat: enhance test
79059         * tests/test-readlink.c (main): Move guts...
79060         * tests/test-readlink.h (test_readlink): ...into new file.
79061         * tests/test-symlink.c (main): Move guts...
79062         * tests/test-symlink.h (test_symlink): ...into new file.
79063         * tests/test-symlinkat.c (main): Use new files for further
79064         coverage.
79065         (do_symlink, do_readlink): New helper functions.
79066         * modules/symlink-tests (Files): Ship new file.
79067         (Depends-on): Add stdbool.
79068         * modules/readlink-tests (Files): Ship new file.
79069         (Depends-on): Add stdbool.
79070         * modules/symlinkat-tests (Files): Use new files.
79072 2009-09-23  Eric Blake  <ebb9@byu.net>
79074         readlink: document portability issue with symlink length
79075         * doc/posix-functions/lstat.texi (lstat): Mention that some file
79076         systems have bogus st_size on symlinks, and mention the
79077         areadlink-with-size module.
79078         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
79079         * doc/posix-functions/readlink.texi (readlink): Mention the
79080         areadlink module, and ERANGE failure.
79081         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
79082         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
79084         readlink: fix Solaris 9 bug with trailing slash
79085         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
79086         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
79087         * doc/posix-functions/readlink.texi (readlink): Document this.
79088         * modules/readlink-tests: New test.
79089         * tests/test-readlink.c: Likewise.
79091         readlink: fix cygwin 1.5.x bug with return type
79092         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
79093         * lib/unistd.in.h (readlink): Use ssize_t.
79094         * lib/readlink.c (readlink): Likewise.
79095         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
79096         * modules/unistd (Makefile.am): Substitute it.
79097         * lib/unistd.in.h (readlink): Declare replacement.
79098         * doc/posix-functions/readlink.texi (readlink): Document this.
79100         symlink: use throughout gnulib
79101         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
79102         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
79103         symlink is not used.
79104         * modules/symlinkat (Depends-on): Add symlink.
79105         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
79106         * modules/canonicalize-tests (Depends-on): Likewise.
79107         * modules/lstat-tests (Depends-on): Likewise.
79108         * modules/openat-tests (Depends-on): Likewise.
79109         * modules/remove-tests (Depends-on): Likewise.
79110         * modules/rmdir-tests (Depends-on): Likewise.
79111         * modules/unlink-tests (Depends-on): Likewise.
79112         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
79113         * tests/test-canonicalize.c (symlink): Likewise.
79114         * tests/test-fstatat.c (symlink): Likewise.
79115         * tests/test-lstat.c (symlink): Likewise.
79116         * tests/test-remove.c (symlink): Likewise.
79117         * tests/test-rmdir.c (symlink): Likewise.
79118         * tests/test-unlink.c (symlink): Likewise.
79119         * tests/test-unlinkat.c (symlink): Likewise.
79121         symlink: new module, for Solaris 9 bug
79122         * modules/symlink: New file.
79123         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
79124         * lib/symlink.c: Likewise.
79125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
79126         * modules/unistd (Makefile.am): Substitute them.
79127         * lib/unistd.in.h (symlink): Declare replacement.
79128         * MODULES.html.sh (File system functions): Mention it.
79129         * doc/posix-functions/symlink.texi (symlink): Likewise.
79130         * modules/symlink-tests: New test.
79131         * tests/test-symlink.c: Likewise.
79133 2009-09-23  Bruno Haible  <bruno@clisp.org>
79135         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
79136         when needed.
79137         Test case: gnulib-tool --import --with-tests atexit inttypes.
79138         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
79140 2009-09-23  Bruno Haible  <bruno@clisp.org>
79142         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
79143         subcommand, not in a subshell.
79145 2009-09-22  Eric Blake  <ebb9@byu.net>
79147         unistd: sort replacement declarations
79148         * lib/unistd.in.h: Sort declarations.
79150         open, openat: minor optimization
79151         * lib/open.c (open): If open succeeded, len is non-zero.
79152         * lib/openat.c (rpl_openat): Likewise.
79154         link-follow: ensure correct result
79155         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
79156         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
79157         distinguish between possible failures.
79159 2009-09-21  Eric Blake  <ebb9@byu.net>
79161         fts: avoid compiler warning
79162         * lib/fts.c (dirent_inode_sort_may_be_useful)
79163         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
79165 2009-09-19  Bruno Haible  <bruno@clisp.org>
79167         * lib/progreloc.c (canonicalize_file_name): New declaration.
79169 2009-09-19  Eric Blake  <ebb9@byu.net>
79171         link: fix quoting
79172         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
79174         openat: fix openat bugs on Solaris 9
79175         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
79176         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
79177         * modules/openat (Depends-on): Add open.
79178         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
79179         * modules/fcntl-h (Makefile.am): Substitute it.
79180         * lib/fcntl.in.h (openat): Declare replacement.
79181         * doc/posix-functions/openat.texi (openat): Document this.
79183         openat: move fstatat and unlinkat into correct files
79184         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
79185         compiled.
79186         * lib/openat.c (fstatat, unlinkat): Move...
79187         * lib/fstatat.c (fstatat): ...into correct files.
79188         * lib/unlinkat.c (unlinkat): Likewise.
79190         openat: fix unlinkat bugs on Solaris 9
79191         * lib/unlinkat.c (unlinkat): New file.
79192         * modules/openat (Depends-on): Add unlink.
79193         (Files): Distribute it.
79194         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
79195         trailing slash behavior is broken.
79196         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
79197         * modules/unistd (Makefile.am): Substitute it.
79198         * lib/unistd.in.h (unlinkat): Declare replacement.
79199         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
79201         openat: fix fstatat bugs on Solaris 9
79202         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
79203         stat.
79204         * doc/posix-functions/fstatat.texi (fstatat): Document this.
79206         test-unlinkat: enhance test, to expose Solaris 9 bug
79207         * tests/test-unlink.c (main): Factor guts...
79208         * tests/test-unlink.h (test_rmdir_func): ...into new file.
79209         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
79210         * tests/test-rmdir.c (main): Adjust caller.
79211         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
79212         (unlinker): New helper function.
79213         (rmdirat): Enhance check.
79214         * modules/rmdir-tests (Depends-on): Add stdbool.
79215         * modules/unlink-tests (Depends-on): Likewise.
79216         (Files): Add test-unlink.h.
79217         * modules/openat-tests (Files): Likewise.
79218         (Depends-on): Add unlinkdir.
79220         test-fstatat: new test, to expose Solaris 9 bugs
79221         * tests/test-stat.c (main): Factor guts...
79222         * tests/test-stat.h (test_stat_func): ...into new file.
79223         * tests/test-lstat.c (main): Factor guts...
79224         * tests/test-lstat.h (test_lstat_func): ...into new file.
79225         * tests/test-fstatat.c: New file.
79226         * modules/stat-tests (Files): Add test-stat.h.
79227         * modules/lstat-tests (Files): Add test-lstat.h.
79228         (Depends-on): Add stdbool.
79229         * modules/openat-tests (Depends-on): Add pathmax.
79230         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
79231         (Makefile.am): Run new test.
79233         remove: new module, for mingw and Solaris 9 bugs
79234         * modules/remove: New file.
79235         * lib/remove.c: Likewise.
79236         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
79237         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
79238         * modules/stdio (Makefile.am): Use them.
79239         * lib/stdio.in.h (remove): Declare replacement.
79240         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79241         * doc/posix-functions/remove.texi (remove): Likewise.
79242         * modules/remove-tests: New test.
79243         * tests/test-remove.c: Likewise.
79245         unlink: new module, for Solaris 9 bug
79246         * modules/unlink: New file.
79247         * lib/unlink.c: Likewise.
79248         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
79249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
79250         * modules/unistd (Makefile.am): Use them.
79251         * lib/unistd.in.h (stat): Declare replacement.
79252         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79253         * doc/posix-functions/unlink.texi (unlink): Likewise.
79254         * modules/unlink-tests: New test.
79255         * tests/test-unlink.c: Likewise.
79257         lstat: fix Solaris 9 bug
79258         * lib/lstat.c (lstat): Also check for trailing slash on
79259         non-symlink, non-directories.  Use stat module to simplify logic.
79260         * doc/posix-functions/lstat.texi (lstat): Document it.
79261         * modules/lstat-tests (Depends-on): Add errno, same-inode.
79262         (configure.ac): Check for symlink.
79263         * tests/test-lstat.c (main): Add more tests.
79265         stat: add as dependency to other modules
79266         * modules/chown (Depends-on): Add stat.
79267         * modules/euidaccess (Depends-on): Likewise.
79268         * modules/fchdir (Depends-on): Likewise.
79269         * modules/isdir (Depends-on): Likewise.
79270         * modules/link (Depends-on): Likewise.
79271         * modules/lstat (Depends-on): Likewise.
79272         * modules/mkdir-p (Depends-on): Likewise.
79273         * modules/modechange (Depends-on): Likewise.
79274         * modules/open (Depends-on): Likewise.
79275         * modules/readlink (Depends-on): Likewise.
79276         * modules/same (Depends-on): Likewise.
79278         stat: fix Solaris 9 bug
79279         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
79280         slash.
79281         * lib/stat.c (rpl_stat): Work around it.
79282         * doc/posix-functions/stat.texi (stat): Update documentation.
79284         stat: new module, for mingw bug
79285         * modules/stat: New file.
79286         * lib/stat.c: Likewise.
79287         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
79288         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79289         * modules/sys_stat (Makefile.am): Use them.
79290         * lib/sys_stat.in.h (stat): Declare replacement.
79291         * lib/openat.c (fstatat): Deal with lstat and stat being function
79292         macros.
79293         * modules/openat (Depends-on): Add inline.
79294         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79295         * doc/posix-functions/stat.texi (stat): Likewise.
79296         * modules/stat-tests: New test.
79297         * tests/test-stat.c: Likewise.
79299 2009-09-19  Jim Meyering  <meyering@redhat.com>
79301         syntax-check: detect unnecessary inclusion of canonicalize.h
79302         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
79304 2009-09-19  Eric Blake  <ebb9@byu.net>
79306         canonicalize-lgpl: adjust clients to use correct header
79307         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
79308         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
79309         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
79310         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
79311         * lib/progreloc.c (includes): Likewise.
79313 2009-09-19  Jim Meyering  <meyering@redhat.com>
79315         test-posixtm.c: correct a comment
79316         * tests/test-posixtm.c: Correct first-line comment.
79317         Spotted by Eric Blake.
79319 2009-09-16  Jim Meyering  <meyering@redhat.com>
79321         posixtm-tests: make T const-correct; add a test case
79322         * tests/test-posixtm.c (T): Declare const.
79323         Add a test for -(2^31+1).
79324         Remove useless can-succeed-only-in-2002 test.
79326         posixtm-tests: adjust the sole failing test
79327         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
79328         expected output matches what mktime now produces.  Cross-checked via
79329         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
79331         posixtm: move #ifdef'd tests into a new module
79332         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
79333         * tests/test-posixtm.c: ... this new file.
79334         * modules/posixtm-tests: New module.
79336 2009-09-19  Eric Blake  <ebb9@byu.net>
79338         openat: simplify use of at-func.c
79339         * lib/at-func.c (includes): Include prerequisites here, to
79340         simplify requirements on client files.
79341         * lib/openat-priv.h: Add double-inclusion guard.
79342         * lib/faccessat.c (includes): Simplify.
79343         * lib/fchmodat.c (includes): Likewise.
79344         * lib/fchownat.c (includes): Likewise.
79345         * lib/mkdirat.c (includes): Likewise.
79346         * lib/mkfifoat.c (includes): Likewise.
79347         * lib/symlinkat.c (includes): Likewise.
79349         openat: allow return of fd 0
79350         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
79351         * modules/save-cwd (Depends-on): Replace fcntl-safer with
79352         unistd-safer.
79353         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
79354         <fcntl.h>; this module does not leak fds.
79355         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
79356         must be allowed to return 0, leaving openat_safer to add the
79357         safety.
79358         (openat_permissive): Avoid writing to just-opened fd 2 if
79359         restoring the current directory fails.
79360         * lib/openat-die.c (openat_restore_fail): Add comment.
79361         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
79362         (save_cwd): Guarantee safe fd, but without use of open_safer.
79363         * tests/test-openat.c: New test.
79364         * modules/openat-tests (Files, Makefile.am): Distribute and build
79365         new file.
79367         relocatable-prog-wrapper: fix build
79368         * modules/relocatable-prog-wrapper (Files): Update name of
79369         canonicalize m4 file, broken on 2009-09-17.
79370         Reported by emad hajjar <aleppos@hotmail.com>.
79372 2009-09-19  Bruno Haible  <bruno@clisp.org>
79374         * lib/safe-alloc.h: Use the standard header with GPL copyright.
79375         * lib/safe-alloc.c: Likewise.
79376         Reported by Ian Beckwith <ianb@erislabs.net>.
79378 2009-09-18  Bruno Haible  <bruno@clisp.org>
79380         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
79381         Reported by <erobles@sensacd.com.mx>.
79383 2009-09-17  Eric Blake  <ebb9@byu.net>
79385         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
79386         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
79387         slashes when checking if last component is missing.
79388         * tests/test-canonicalize.c (main): Test this.
79390         canonicalize, canonicalize-lgpl: honor // if distinct from /
79391         * modules/canonicalize (Files): Add double-slash-root.m4.
79392         * modules/canonicalize-lgpl (Files): Likewise.
79393         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
79394         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
79395         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
79396         fallback definition.
79397         (canonicalize_filename_mode): Use it to protect //.
79398         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
79399         (__realpath): Likewise.
79400         * tests/test-canonicalize.c (main): Test this.
79401         * tests/test-canonicalize-lgpl.c (main): Likewise.
79402         * modules/canonicalize-tests (Depends-on): Add same-inode.
79403         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
79405         canonicalize-lgpl: fix glibc bug with trailing slash
79406         * m4/canonicalize-lgpl.m4: Move contents...
79407         * m4/canonicalize.m4: ...here.
79408         (gl_CANONICALIZE_LGPL): Factor realpath check...
79409         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
79410         glibc 2.3.5 bug, fixed 2005-04-27.
79411         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
79412         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
79413         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
79414         * modules/canonicalize-lgpl (Files): Manage file rename.
79415         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
79416         * modules/stdlib (Makefile.am): Substitute witness.
79417         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
79418         is needed.
79419         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
79420         replacement is required.
79421         * lib/canonicalize.c (canonicalize_file_name): Likewise.
79422         * doc/glibc-functions/canonicalize_file_name.texi
79423         (canonicalize_file_name): Document this.
79424         * doc/posix-functions/realpath.texi (realpath): Likewise.
79426         canonicalize-lgpl: reject non-directory with trailing slash
79427         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
79428         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
79429         catches failures in glibc 2.3.5.
79430         * tests/test-canonicalize.c (main): Likewise.
79432         canonicalize-lgpl: use native realpath if it works
79433         * lib/canonicalize-lgpl.c (realpath): Guard with
79434         FUNC_REALPATH_WORKS.
79435         * lib/stdlib.in.h (realpath): Make declaration optional based on
79436         HAVE_REALPATH.
79437         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
79438         native realpath works.
79439         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
79440         * modules/stdlib (Makefile.am): Substitute witness.
79442         canonicalize, canonicalize-lgpl: use <stdlib.h>
79443         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
79444         (Include): Mention <stdlib.h>.
79445         (configure.ac): Mention functions we provide.
79446         * modules/canonicalize (configure.ac): Likewise.
79447         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
79448         realpath if canonicalize_file_name is missing.
79449         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
79450         * modules/stdlib (Makefile.am): Substitute witnesses.
79451         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
79452         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
79453         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
79454         * NEWS: Document this.
79455         * doc/glibc-functions/canonicalize_file_name.texi
79456         (canonicalize_file_name): Likewise.
79457         * doc/posix-functions/realpath.texi (realpath): Likewise.
79458         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
79460         test-canonicalize: consolidate into single C program
79461         * tests/test-canonicalize.sh: Delete; move setup into...
79462         * tests/test-canonicalize.c (main): ...the program, making it
79463         easier to run in debugger.  Add some tests.
79464         * modules/canonicalize-tests (Files): Remove unused file.
79465         (Depends-on): Add progname.
79466         (configure.ac, Makefile.am): Simplify.
79468         test-canonicalize-lgpl: consolidate into single C program
79469         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
79470         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
79471         easier to run in debugger.  Add some tests.
79472         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
79473         (configure.ac, Makefile.am): Simplify.
79475         canonicalize: avoid resolvepath
79476         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
79477         unnecessary checks.
79478         * lib/canonicalize.c (includes): Simplify.
79479         (canonicalize_file_name): Drop resolvepath implementation.
79480         * modules/canonicalize (Depends-on): Drop filenamecat.
79482         canonicalize: don't lose errno
79483         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
79484         over calls to free.
79486         canonicalize: simplify errno handling
79487         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
79488         assignment.
79490         canonicalize, canonicalize-lgpl: update module dependencies
79491         * modules/canonicalize (Depends-on): Add extensions, lstat,
79492         pathmax, stdlib.
79493         (Files): Drop pathmax.h.
79494         (configure.ac): Adjust macro name.
79495         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
79496         lstat, stdlib, sys_stat.
79497         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
79498         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
79499         extensions.
79500         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
79501         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
79502         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
79503         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
79504         declaration, if available.
79505         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
79506         we can rely on the readlink module.
79507         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
79508         (includes): Use <unistd.h> unconditionally.
79510 2009-09-17  Eric Blake  <ebb9@byu.net>
79512         maint: make Include sections of modules consistent
79513         * modules/alloca: Use only header name; no need to list #include.
79514         * modules/alloca-opt: Likewise.
79515         * modules/arpa_inet: Likewise.
79516         * modules/canon-host: Likewise.
79517         * modules/configmake: Likewise.
79518         * modules/dirent: Likewise.
79519         * modules/eealloc: Likewise.
79520         * modules/environ: Likewise.
79521         * modules/fchdir: Likewise.
79522         * modules/fcntl: Likewise.
79523         * modules/fcntl-h: Likewise.
79524         * modules/gethrxtime: Likewise.
79525         * modules/gettime: Likewise.
79526         * modules/ignore-value: Likewise.
79527         * modules/inet_ntop: Likewise.
79528         * modules/inet_pton: Likewise.
79529         * modules/inttypes: Likewise.
79530         * modules/isnand-nolibm: Likewise.
79531         * modules/isnanf-nolibm: Likewise.
79532         * modules/mbchar: Likewise.
79533         * modules/mbfile: Likewise.
79534         * modules/mbiter: Likewise.
79535         * modules/mbuiter: Likewise.
79536         * modules/netdb: Likewise.
79537         * modules/netinet_in: Likewise.
79538         * modules/nproc: Likewise.
79539         * modules/pagealign_alloc: Likewise.
79540         * modules/poll: Likewise.
79541         * modules/printf-frexp: Likewise.
79542         * modules/pthread: Likewise.
79543         * modules/putenv: Likewise.
79544         * modules/random_r: Likewise.
79545         * modules/relocatable-prog: Likewise.
79546         * modules/search: Likewise.
79547         * modules/select: Likewise.
79548         * modules/selinux-h: Likewise.
79549         * modules/settime: Likewise.
79550         * modules/signal: Likewise.
79551         * modules/size_max: Likewise.
79552         * modules/socklen: Likewise.
79553         * modules/ssize_t: Likewise.
79554         * modules/stdarg: Likewise.
79555         * modules/stdbool: Likewise.
79556         * modules/stddef: Likewise.
79557         * modules/stdint: Likewise.
79558         * modules/stdio: Likewise.
79559         * modules/stdlib: Likewise.
79560         * modules/string: Likewise.
79561         * modules/strings: Likewise.
79562         * modules/sys_file: Likewise.
79563         * modules/sys_ioctl: Likewise.
79564         * modules/sys_select: Likewise.
79565         * modules/sys_socket: Likewise.
79566         * modules/sys_stat: Likewise.
79567         * modules/sys_time: Likewise.
79568         * modules/sys_times: Likewise.
79569         * modules/sys_utsname: Likewise.
79570         * modules/sys_wait: Likewise.
79571         * modules/sysexits: Likewise.
79572         * modules/time: Likewise.
79573         * modules/times: Likewise.
79574         * modules/tmpfile: Likewise.
79575         * modules/trim: Likewise.
79576         * modules/unistd: Likewise.
79577         * modules/wchar: Likewise.
79578         * modules/wctype: Likewise.
79580 2009-09-17  Bruno Haible  <bruno@clisp.org>
79582         Make getdate.y compile on QNX and NetBSD 5 / i386.
79583         * m4/getdate.m4 (gl_GETDATE): Conditionally define
79584         TIME_T_FITS_IN_LONG_INT.
79585         * lib/getdate.y (long_time_t): New type.
79586         (relative_time): Change type of 'seconds' field to long_time_t.
79587         (get_date): Update types of local variables. Check against overflow
79588         during conversion from long_time_t to time_t.
79589         Reported by Matt Kraai <kraai@ftbfs.org>
79590         and Hasso Tepper <hasso@netbsd.org>.
79592 2009-09-17  Bruno Haible  <bruno@clisp.org>
79594         * modules/COPYING: Update copyright years.
79595         * modules/README: Likeiwse.
79596         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
79597         Reported by Ian Beckwith <ianb@erislabs.net>.
79599 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
79601         * users.txt: Update references for gnuit package.
79603 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
79605         * m4/getdelim.m4: Fix typo in copyright line.
79607 2009-09-17  Bruno Haible  <bruno@clisp.org>
79609         * lib/atoll.c: Use the standard header with GPL copyright.
79610         * lib/argz.in.h: Likewise.
79611         * lib/glob.c: Likewise.
79612         * lib/glob-libc.h: Likewise.
79613         * lib/random_r.c: Likewise.
79614         * lib/siglist.h: Likewise.
79615         * lib/strsignal.c: Likewise.
79616         Reported by Ian Beckwith <ianb@erislabs.net>.
79618 2009-09-17  Eric Blake  <ebb9@byu.net>
79620         rmdir: ensure correct dependency order
79621         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
79623 2009-09-17  Bruno Haible  <bruno@clisp.org>
79625         Disable assertion that fails on NetBSD 5 / i386.
79626         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
79627         Reported by Sam Steingold <sds@gnu.org>
79628         and Hasso Tepper <hasso@netbsd.org>.
79630 2009-09-16  Eric Blake  <ebb9@byu.net>
79632         unlinkdir: port to mingw
79633         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
79634         on which no one can unlink a directory.
79636         stdlib: sort witness names
79637         * modules/stdlib (Makefile.am): Sort replacements.
79638         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
79639         * lib/stdlib.in.h: Likewise.
79641         parse-duration-tests: avoid link failure
79642         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
79643         LIBINTL.
79644         Reported by Tom G. Christensen.
79646         openat-tests: ensure unlinkat behaves like rmdir
79647         * tests/test-rmdir.c (main): Factor guts...
79648         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
79649         * modules/rmdir-tests (Files): Ship new file.
79650         * modules/openat-tests: New test.
79651         * tests/test-unlinkat.c: Likewise.
79653         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
79654         * modules/rmdir-errno (Status, Notice): Now obsolete.
79656         rmdir: work around cygwin 1.5.x and mingw bugs
79657         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
79658         * lib/rmdir.c (rmdir): Work around it.
79659         * modules/rmdir (Status, Notice): No longer obsolete.
79660         (Files): Add dos.m4.
79661         (Depends-on): Add unistd.
79662         (configure.ac): Set witnesses.
79663         (License): Relax to LGPLv2+.
79664         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
79665         * modules/unistd (Makefile.am): Substitute witnesses.
79666         * lib/unistd.in.h (rmdir): Declare replacement.
79667         * doc/posix-functions/rmdir.texi (rmdir): Document this.
79668         * modules/rmdir-tests: New tests.
79669         * tests/test-rmdir.c: Likewise.
79671 2009-09-15  Eric Blake  <ebb9@byu.net>
79673         fchdir: improve use of replacement functions
79674         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
79675         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
79676         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
79677         REPLACE_CLOSEDIR.
79678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
79679         * modules/sys_stat (Makefile.am): Substitute correct witness.
79680         * modules/dirent (Makefile.am): Likewise.
79681         * modules/unistd (Makefile.am): Likewise.
79682         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
79683         * lib/unistd.in.h (dup): Likewise.
79684         * lib/sys_stat.in.h (fstat): Likewise.
79686         maint: ignore gnulib-tool temp files
79687         * .gitignore: Ignore files created during gnulib-tool --test.
79689 2009-09-13  Jim Meyering  <meyering@redhat.com>
79691         posixtm: don't reject a time that specify "60" as the number of seconds
79692         * lib/posixtm.c (posixtime): The code to reject invalid dates
79693         would also reject a time specified with the .60 suffix.
79694         But POSIX allows that, in order to accommodate leap seconds.
79695         So don't reject it.
79696         (main): Adjust tests accordingly.
79697         * modules/posixtm (Depends-on): Add stpcpy.
79699 2009-09-11  Jim Meyering  <meyering@redhat.com>
79701         announce-gen: include [$release_type] in emitted Subject:
79702         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
79703         e.g., [stable] in the emitted Subject: line.
79705 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79707         Remove obsolete macros from several modules.
79708         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
79709         obsolete Autoconf macros with their modern counterparts.
79710         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
79711         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
79712         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
79713         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
79714         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
79715         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
79716         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
79717         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
79718         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
79719         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
79720         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
79721         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
79722         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
79723         * m4/sockets.m4 (gl_SOCKETS): Likewise.
79724         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
79725         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
79726         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
79727         * m4/time_r.m4 (gl_TIME_R): Likewise.
79728         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
79729         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
79730         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
79732         Fix copyright header in build-aux scripts.
79733         * build-aux/git-version-gen: Fix copyright header to match GPLv3
79734         recommendation.
79735         * build-aux/ncftpput-ftp: Likewise.
79736         * build-aux/update-copyright: Likewise.
79738 2009-09-09  Eric Blake  <ebb9@byu.net>
79740         test-link: allow Linux choice of errno
79741         * tests/test-link.c (main): Relax test for alternate error.
79743         strndup: fix improper m4 caching
79744         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
79745         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
79746         (gl_PREREQ_STRNDUP): Delete.
79747         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
79748         * modules/string (Makefile.am): Substitute it.
79749         * lib/string.in.h (strndup): Modernize prototype.
79751         getcwd: port to mingw
79752         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
79753         different from the POSIX assumptions made throughout the getcwd
79754         module; fortunately, the mingw getcwd does not need replacement.
79755         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
79756         * modules/getcwd-tests: New test.
79757         * tests/test-getcwd.c: Likewise.
79759         link: fix platform bugs
79760         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
79761         * lib/link.c (link): Work around them.  Fix related mingw bug.
79762         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
79763         * modules/unistd (Makefile.am): Substitute it.
79764         * lib/unistd.in.h (link): Declare replacement.
79765         * doc/posix-functions/link.texi (link): Document this.
79766         * modules/link (Depends-on): Add strdup-posix, sys_stat.
79768         test-link: consolidate into single C program, test more cases
79769         * tests/test-link.sh: Delete.
79770         * tests/test-link.c: Test more error conditions.  Exposes bugs on
79771         at least Cygwin and Solaris.
79772         * modules/link-tests (Files): Remove unused file.
79773         (Depends-on): Add errno, sys_stat.
79774         (Makefile.am): Simplify.
79776 2009-09-08  Bruno Haible  <bruno@clisp.org>
79778         Work around towlower, towupper bug on mingw.
79779         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
79780         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
79781         * doc/posix-functions/towlower.texi: Mention the mingw bug.
79782         * doc/posix-functions/towupper.texi: Likewise.
79783         Reported by Eric Blake.
79785 2009-09-08  Jim Meyering  <meyering@redhat.com>
79787         build: don't try to run autoheader if we don't use it
79788         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
79789         is not used in configure.ac.
79791 2009-09-08  Eric Blake  <ebb9@byu.net>
79793         euidaccess: fix compilation error
79794         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
79796         rawmemchr: relax license
79797         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
79798         okay.
79799         Reported by Jim Meyering.
79801         mkfifoat: new module
79802         * modules/mkfifoat: New file.
79803         * lib/mkfifoat.c: Likewise.
79804         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
79805         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79806         * modules/sys_stat (Makefile.am): Use them.
79807         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
79808         * MODULES.html.sh (File system functions): Mention module.
79809         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
79810         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
79811         * modules/mkfifoat-tests: New test.
79812         * tests/test-mkfifoat.c: Likewise.
79814         strchrnul: relax license
79815         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
79816         okay.
79817         Reported by Jim Meyering.
79819 2009-09-08  Eric Blake  <ebb9@byu.net>
79821         fstatat: fix compilation on Solaris
79822         * lib/fstatat.c (includes): Add fcntl.h.
79823         Reported by Pádraig Brady.
79825 2009-09-07  Eric Blake  <ebb9@byu.net>
79827         rename: modernize replacement
79828         * modules/rename (Depends-on): Add stdio.
79829         (configure.ac): Declare witness.
79830         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
79831         stdio take care of replacement.
79832         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
79833         * modules/stdio (Makefile.am): Substitute them.
79834         * lib/stdio.in.h (rename): Declare replacement.
79835         * lib/rename.c (includes): Allow cross-compilation to non-windows
79836         machines.
79837         * doc/posix-functions/rename.texi (rename): Improve
79838         documentation.
79840         stdio: sort witness names
79841         * modules/stdio (Makefile.am): Sort replacements.
79842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
79843         * lib/stdio.in.h: Likewise.
79845         getcwd: minor cleanups
79846         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
79847         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
79849         openat: provide more convenience names
79850         * modules/faccessat (configure.ac): Add C witness.
79851         * lib/unistd.in.h (readlinkat): Fix typo.
79852         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
79853         convenience wrappers.
79854         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
79855         wrappers in syntax checks.
79857 2009-09-06  Eric Blake  <ebb9@byu.net>
79859         doc: fix comments in recent patches
79860         * lib/faccessat.c: Mention correct function.
79861         * lib/fchmodat.c: Likewise.
79862         * lib/fchownat.c: Likewise.
79863         * lib/symlinkat.c: Likewise.
79864         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
79865         constants.
79867         faccessat, symlinkat: continue cleanup of previous patch
79868         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
79869         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
79870         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
79871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
79872         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
79873         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
79874         set.
79876 2009-09-06  Bruno Haible  <bruno@clisp.org>
79878         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
79879         (fstatat): Declare if GNULIB_FSTATAT is set.
79880         (mkdirat): Declare if GNULIB_MKDIRAT is set.
79881         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
79882         (unlinkat): Declare if GNULIB_UNLINKAT is set.
79883         * modules/fcntl-h (Files): Remove m4/openat.m4.
79884         * modules/sys_stat (Files): Remove m4/openat.m4.
79885         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
79886         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
79887         * modules/unistd (Files): Remove m4/openat.m4.
79888         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
79889         GNULIB_OPENAT.
79890         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
79891         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
79892         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
79893         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
79894         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
79895         gl_OPENAT_DEFAULTS.
79896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
79897         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
79898         Don't require gl_OPENAT_DEFAULTS.
79899         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
79900         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
79901         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
79902         (gl_OPENAT_DEFAULTS): Remove macro.
79904 2009-09-06  Bruno Haible  <bruno@clisp.org>
79906         * modules/openat (configure.ac): Remove unneeded witness.
79908 2009-09-06  Bruno Haible  <bruno@clisp.org>
79910         Set errno to ENOSYS when a function is entirely unsupported.
79911         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
79912         EOPNOTSUPP.
79913         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
79914         * modules/chown (Depends-on): Remove errno.
79916 2009-09-06  Bruno Haible  <bruno@clisp.org>
79918         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
79920 2009-09-06  Bruno Haible  <bruno@clisp.org>
79922         * lib/sys_stat.in.h: Fix preprocessor command indentation.
79924 2009-09-06  Ben Pfaff  <blp@gnu.org>
79925             Bruno Haible  <bruno@clisp.org>
79927         Work around a glibc bug in strtok_r.
79928         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
79929         Undefine if UNDEFINE_STRTOK_R is set.
79930         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
79931         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
79932         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
79933         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
79934         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
79935         UNDEFINE_STRTOK_R.
79936         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
79938 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
79940         exclude: minor fix
79941         * lib/exclude.c: Include wctype.h
79943 2009-09-06  Akim Demaille  <demaille@gostai.com>
79945         bootstrap: improve error message
79946         * build-aux/bootstrap (find_tool): Upon failure, report the list
79947         of candidates.
79948         Honor the initial value of the envvar.
79950 2009-09-05  Eric Blake  <ebb9@byu.net>
79952         symlinkat: new module
79953         * modules/symlinkat: New file.
79954         * lib/symlinkat.c: Likewise.
79955         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
79956         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
79957         * modules/unistd (Makefile.am): Use them.
79958         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
79959         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
79960         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
79961         * MODULES.html.sh (File system functions): Mention module.
79962         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
79963         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
79964         * modules/symlinkat-tests: New test.
79965         * tests/test-symlinkat.c: Likewise.
79967         test-openat-safer: add more checks
79968         * tests/test-openat-safer.c (main): Check more code paths.
79970 2009-09-05  Jim Meyering  <meyering@redhat.com>
79972         syntax-check: detect unnecessary inclusion of openat.h
79973         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
79975 2009-09-05  Bruno Haible  <bruno@clisp.org>
79977         Support towlower, towupper.
79978         * doc/posix-functions/towlower.texi: Mention module wctype.
79979         * doc/posix-functions/towupper.texi: Likewise.
79980         * lib/wctype.in.h (towlower, towupper): New functions.
79981         * tests/test-wctype.c: Include stdio.h, stdlib.h.
79982         (ASSERT): New macro.
79983         (e): New variable.
79984         (main): Test also towlower, towupper. Test WEOF argument.
79985         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
79987 2009-09-05  Bruno Haible  <bruno@clisp.org>
79989         Fix conversion behaviour when the input is invalid.
79990         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
79991         mark occurring in first pass of indirect conversion.
79992         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
79993         input.
79994         Found by clang's static analyzer.
79996 2009-09-05  Bruno Haible  <bruno@clisp.org>
79998         * tests/test-striconveh.c (main): Test indirect conversion on platforms
79999         where direct conversion is possible.
80001 2009-09-04  Eric Blake  <ebb9@byu.net>
80003         openat: fail with ENOENT on empty name
80004         * lib/openat-proc.c (openat_proc_name): Special-case the empty
80005         buffer.
80007         link-follow: fix logic bug in prior patch
80008         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
80009         reversed sense of yes and no in prior patch.  Avoid confusing
80010         compilation failure with desired semantics.
80012         link-follow: accommodate mingw and cross-compilation
80013         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
80014         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
80015         cross-compilation results to -1, to make linkat easier to
80016         implement when cross-compiling.  Trivially support mingw.
80017         * modules/link-follow (configure.ac): Call new name.
80018         * NEWS: Mention this.
80020 2009-09-03  Eric Blake  <ebb9@byu.net>
80022         faccessat: compile replacement
80023         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
80024         needed.
80026         fts: fix compilation error
80027         * lib/fts.c (includes): Re-add "openat.h", for
80028         openat_needs_fchdir.
80030         faccessat: new module
80031         * modules/faccessat: New file.
80032         * lib/faccessat.c: Likewise.
80033         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
80034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
80035         * modules/unistd (Makefile.am): Use it.
80036         * lib/unistd.in.h (faccessat): Declare it.
80037         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
80038         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
80039         * MODULES.html.sh (File system functions): Mention it.
80040         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
80041         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
80043         euidaccess: prefer POSIX over non-standard implementation
80044         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
80045         * lib/euidaccess.c (euidaccess): Use it if available.
80047         openat: make template easier to use
80048         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
80049         AT_FUNC_F2 to be undefined.
80050         (VALIDATE_FLAG): New macro; use it to reject bad flags.
80051         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
80052         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
80053         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
80054         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
80055         Likewise.
80056         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
80057         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
80058         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
80059         Likewise.
80061         openat: declare in POSIX headers
80062         * NEWS: Mention this.
80063         * modules/openat (configure.ac): Declare witnesses.
80064         (Depends-on): Add fcntl-h, sys_stat, unistd.
80065         (Include): Mention correct headers.
80066         * modules/fcntl-h (Depends-on): Add link-warning.
80067         (Files): Add openat.m4.
80068         (Makefile.am): Substitute witnesses.
80069         * modules/sys_stat (Files, Makefile.am): Likewise.
80070         * modules/unistd (Files, Makefile.am): Likewise.
80071         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
80072         (gl_OPENAT_DEFAULTS): New macro.
80073         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
80074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
80075         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
80076         (SYS_STAT_H): Remove unused variable.
80077         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
80078         * lib/fcntl--.h (includes): Remove unneeded header.
80079         * lib/openat-safer.c (includes): Likewise.
80080         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
80081         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
80082         appropriate headers.
80083         (__OPENAT_PREFIX): Delete.
80084         * lib/fcntl.in.h (openat): Provide declaration.
80085         (AT_FDCWD): Fix Solaris bug.
80086         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
80087         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
80088         * lib/fchmodat.c (includes):  Adjust to find declaration.
80089         * lib/fchownat.c (includes): Likewise.
80090         * lib/mkdirat.c (includes): Likewise.
80091         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
80092         still visible.
80094 2009-09-02  Eric Blake  <ebb9@byu.net>
80096         errno: use consistently
80097         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
80098         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
80099         * lib/canonicalize.c (ELOOP): Likewise.
80100         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
80101         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
80102         * lib/lchown.c (EOPNOTSUPP): Likewise.
80103         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
80104         * lib/savewd.c (ESTALE): Likewise.
80105         * lib/settime.c (ENOSYS): Likewise.
80106         * lib/utimens.c (ENOSYS): Likewise.
80107         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
80108         * lib/chdir-safer.c (ELOOP): Likewise.
80109         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
80110         * modules/c-stack (Depends-on): Add errno.
80111         * modules/canonicalize (Depends-on): Likewise.
80112         * modules/chdir-safer (Depends-on): Likewise.
80113         * modules/fdopendir (Depends-on): Likewise.
80114         * modules/inet_ntop (Depends-on): Likewise.
80115         * modules/inet_pton (Depends-on): Likewise.
80116         * modules/lchown (Depends-on): Likewise.
80117         * modules/openat (Depends-on): Likewise.
80118         * modules/savewd (Depends-on): Likewise.
80119         * modules/settime (Depends-on): Likewise.
80120         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
80122         fts: avoid leaking fds
80123         * modules/fts (Depends-on): Add cloexec.
80124         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
80125         flag.
80127         fts: make directory fds more robust
80128         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
80129         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
80131         backupfile, chdir-long, fts, savedir: make safer
80132         * lib/backupfile.c (includes): Use "dirent--.h", since
80133         numbered_backup can write to stderr during readdir.
80134         * lib/savedir.c (includes): Likewise.
80135         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
80136         emulation can write to stderr on failure.
80137         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
80138         * lib/getcwd.c: Document why opendir_safer is unused.
80139         * lib/glob.c: Likewise.
80140         * lib/scandir.c: Likewise.
80141         * lib/openat-proc.c: Likewise, for open_safer.
80142         * modules/backupfile (Depends-on): Add dirent-safer.
80143         * modules/savedir (Depends-on): Likewise.
80144         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
80145         * modules/chdir-long (Depends-on): Add openat-safer.
80147         openat-safer: new module
80148         * modules/openat-safer: New file.
80149         * lib/openat-safer.c: Likewise.
80150         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
80151         * lib/fcntl-safer.h (openat_safer): Declare.
80152         * lib/fcntl--.h (openat): Override.
80153         * MODULES.html.sh (File descriptor based I/O): Mention it.
80154         * lib/openat.h: Add double-inclusion guards.
80155         * lib/openat.c (includes): Only include "fcntl-safer.h", not
80156         "fcntl--.h", so we can implement openat.
80157         * modules/openat-safer-tests: New test.
80158         * tests/test-openat-safer.c: New file.
80160         dirent-safer: new module
80161         * modules/dirent-safer: New file.
80162         * lib/dirent--.h: Likewise.
80163         * lib/dirent-safer.h: Likewise.
80164         * lib/opendir-safer.c: Likewise.
80165         * m4/dirent-safer.m4: Likewise.
80166         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
80167         * modules/dirent-safer-tests: New test.
80168         * tests/test-dirent-safer.c: New file.
80169         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
80171         fdopendir: optimize on mingw
80172         * lib/unistd.in.h (_gl_directory_name): New prototype.
80173         * lib/fchdir.c (_gl_directory_name): Implement it.
80174         (fchdir): Use it to simplify implementation.
80175         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
80176         fchdir, when available, to avoid calling [f]chdir().
80178         fdopendir: split into its own module
80179         * lib/openat.c (fdopendir): Move...
80180         * lib/fdopendir.c: ...into new file.
80181         * modules/fdopendir: New module.
80182         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
80183         * modules/openat (Depends-on): Add fdopendir.
80184         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
80185         fdopendir here.
80186         * modules/savedir (Depends-on): Only need fdopendir, not full
80187         openat.
80188         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
80189         * lib/openat.h (fdopendir): Drop prototype.
80190         * lib/dirent.in.h (fdopendir): Provide prototype.
80191         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
80192         * modules/dirent (Makefile.am): Substitute them.
80193         * MODULES.html.sh (File system functions): Mention it.
80194         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
80195         * modules/fdopendir-tests: New file.
80196         * tests/test-fdopendir.c: Likewise.
80198         fchdir: use more consistent macro convention
80199         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
80200         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
80201         REPLACE_FCHDIR, rather than relying on config.h macros.
80202         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
80203         inside a single make-time REPLACE_FCHDIR block, rather than using
80204         the config.h FCHDIR_REPLACEMENT.
80205         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
80206         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
80207         Manage fstat replacement.
80208         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
80209         REPLACE_FCHDIR.
80210         * modules/sys_stat (Files): Add m4/unistd_h.m4.
80211         (Makefile.am): Substitute REPLACE_FCHDIR.
80212         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
80213         FCHDIR_REPLACEMENT.
80214         * lib/dup-safer.c (dup_safer): Likewise.
80215         * lib/dup2.c (rpl_dup2): Likewise.
80216         * lib/dup3.c (rpl_dup3): Likewise.
80217         * lib/open.c (rpl_open): Likewise.
80219         fchdir: simplify error handling, and support dup3
80220         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
80221         stdbool, malloc-posix, realloc-posix.
80222         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
80223         (ensure_dirs_slot): Return false on allocation failure.
80224         (rpl_dup2): Delete.
80225         (_gl_register_dup): New function.
80226         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
80227         (_gl_register_fd): Close fd on allocation failure.
80228         * lib/fcntl.in.h (_gl_register_fd): Update signature.
80229         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
80230         prototype.
80231         (rpl_dup2_fchdir): Delete prototype.
80232         * lib/open.c (open): Update caller.
80233         * lib/dup2.c (dup2): Track fchdir metadata.
80234         * lib/dup3.c (dup3): Likewise.
80235         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
80236         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
80238 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80240         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
80241         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
80242         don't pass arguments to AC_OUTPUT.
80244 2009-09-02  Bruno Haible  <bruno@clisp.org>
80246         * modules/mkdtemp (License): Relicense under LGPLv2+.
80247         Reported by Paolo Bonzini.
80249 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80251         Replace uses of obsolete autoconf macros in Jim's modules.
80252         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
80253         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
80254         can evoke a warning from autoconf when run with -Wobsolete
80255         enabled.  They were declared obsolete for good reasons (see
80256         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
80257         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
80258         should not continue using the deprecated macros.
80259         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
80260         obsolete Autoconf macros with modern counterparts.
80261         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
80262         * m4/dos.m4 (gl_AC_DOS): Likewise.
80263         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
80264         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
80265         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
80266         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
80267         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
80268         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
80269         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
80270         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
80271         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
80272         Likewise.
80273         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
80274         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
80275         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
80276         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
80277         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
80278         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
80280 2009-09-01  Eric Blake  <ebb9@byu.net>
80282         fchdir: fix off-by-one bug in previous patch
80283         * lib/fchdir.c (rpl_fstat): Use correct bounds.
80284         (_gl_unregister_fd): Delete useless if.
80286 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
80288         maint.mk: sort the list of syntax-check rules
80289         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
80290         easier to get a sense of progress when the rules are run sequentially
80291         and take a long time.
80293 2009-09-01  Simon Josefsson  <simon@josefsson.org>
80295         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
80296         * modules/netinet_in: Likewise.
80297         * modules/sys_file: Likewise.
80298         * modules/sys_ioctl: Likewise.
80299         * modules/sys_select: Likewise.
80300         * modules/sys_socket: Likewise.
80301         * modules/sys_stat: Likewise.
80302         * modules/sys_time: Likewise.
80303         * modules/sys_times: Likewise.
80304         * modules/sys_utsname: Likewise.
80305         * modules/sys_wait: Likewise.
80307 2009-09-01  Jim Meyering  <meyering@redhat.com>
80309         fts: help ensure that return values are not ignored
80310         * lib/fts_.h (__GNUC_PREREQ): Define.
80311         (__attribute_warn_unused_result__): Define.
80312         (fts_children, fts_close, fts_open, fts_read): Declare with
80313         __attribute_warn_unused_result__.
80315         fts: fts_close now fails also when closing a dir file descriptor fails
80316         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
80317         and propagate to caller, along with errno.
80319         announce-gen: correct formatting in --help output
80320         * build-aux/announce-gen (usage): Move the one-line description in
80321         --help output "up", to where it belongs, just after Usage:.
80323 2009-08-31  Eric Blake  <ebb9@byu.net>
80325         fchdir: port to mingw
80326         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
80327         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
80328         opened, then use a substitute.
80329         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
80330         replacement.
80331         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
80332         (_gl_register_fd): No need to check stat if open already filters
80333         all directories.
80334         (fchdir): Fix error condition to match POSIX.
80335         * modules/fchdir (Depends-on): Add sys_stat.
80336         * doc/posix-functions/open.texi (open): Document the limitation.
80337         * modules/fchdir-tests: New file.
80338         * tests/test-fchdir.c: Likewise.
80340         canonicalize: allow cross-testing from cygwin to mingw
80341         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
80342         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
80343         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
80344         Likewise.
80345         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
80346         target does not support symlinks.
80347         * tests/test-canonicalize-lgpl.sh: Likewise.
80349         chown: avoid compilation warning on mingw
80350         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
80351         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
80352         mingw.
80353         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
80354         * modules/chown (Depends-on): Add errno.
80356 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
80358         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
80359         command.
80361 2009-08-31  Jim Meyering  <meyering@redhat.com>
80363         canonicalize: remove useless initialization
80364         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
80365         initialization of local, "end".
80367 2009-08-30  Bruno Haible  <bruno@clisp.org>
80369         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
80370         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
80371         ENOSYS.
80373 2009-08-30  Bruno Haible  <bruno@clisp.org>
80375         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
80376         /usr/xpg4/bin/tr when it exists.
80377         * tests/test-pipe-filter-gi1.sh: Likewise.
80379 2009-08-30  Bruno Haible  <bruno@clisp.org>
80381         Work around deficient /usr/bin/id program on Solaris.
80382         * tests/test-file-has-acl.sh (ID): New variable.
80383         * tests/test-set-mode-acl.sh (ID): Likewise.
80384         * tests/test-copy-acl.sh (ID): Likewise.
80385         * tests/test-copy-file.sh (ID): Likewise.
80387 2009-08-30  Bruno Haible  <bruno@clisp.org>
80389         New module 'xstriconveh'.
80390         * lib/xstriconveh.h: New file.
80391         * lib/xstriconveh.c: New file.
80392         * modules/xstriconveh: New file.
80394 2009-08-30  Bruno Haible  <bruno@clisp.org>
80396         Make it easier to use mem_cd_iconveh.
80397         * lib/striconveh.h (iconveh_t): New type.
80398         (iconveh_open, iconveh_close): New declarations.
80399         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
80400         with a single 'const iconveh_t *' argument.
80401         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
80402         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
80403         with a single 'const iconveh_t *' argument.
80404         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
80405         * tests/test-striconveh.c (main): Update.
80406         * NEWS: Mention the change.
80408 2009-08-30  Bruno Haible  <bruno@clisp.org>
80410         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
80411         problem.
80413 2009-08-30  Bruno Haible  <bruno@clisp.org>
80415         Work around iconv_open problem on Solaris.
80416         * lib/iconv_open-solaris.gperf: New file.
80417         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
80418         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
80419         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
80420         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
80421         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
80422         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
80424 2009-08-29  Jim Meyering  <meyering@redhat.com>
80426         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
80427         * top/maint.mk (cvs-check): Remove target; it was just an alias
80428         to the better-named vc-diff-check.
80429         (maintainer-distcheck): Remove rule.  It was used only from
80430         the (alpha/beta/major) target, and all of its commands but one
80431         were coreutils-specific.
80432         (vc-dist): Remove rule.
80433         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
80434         Run vc-diff-check, not vc-dist.
80435         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
80437 2009-08-27  Bruno Haible  <bruno@clisp.org>
80439         * tests/test-bitrotate.c (main): Remove test that uses a shift count
80440         of 0.
80442 2009-08-27  Bruno Haible  <bruno@clisp.org>
80444         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
80445         compilers.
80446         * doc/func.texi: Document the SunPRO C bug.
80448 2009-08-27  Bruno Haible  <bruno@clisp.org>
80450         Fix link error on Solaris.
80451         * tests/test-parse-duration.c (xstrdup): Remove function.
80453 2009-08-26  Pádraig Brady  <P@draigbrady.com>
80455         ignore-value: handle pointer types, too
80456         * lib/ignore-value.h (__attribute__): Remove definition.
80457         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
80458         of a more concise and more-often effective "(void) i" statement.
80459         (ignore_ptr): New function to suppress warnings from functions that
80460         return pointers, and to make it explicit that one function doesn't
80461         handle all cases.
80463 2009-08-25  Bruno Haible  <bruno@clisp.org>
80465         dup2: work around a Linux bug.
80466         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
80467         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
80468         * doc/posix-functions/dup2.texi: Mention the Linux bug.
80469         Reported by Simon Josefsson.
80471 2009-08-25  Jim Meyering  <meyering@redhat.com>
80473         libguestfs uses gnulib
80474         * users.txt: Add libguestfs.
80476 2009-08-24  Eric Blake  <ebb9@byu.net>
80478         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
80479         * lib/pipe2.c (includes): Add binary-io.h.
80480         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
80482 2009-08-24  Bruno Haible  <bruno@clisp.org>
80484         Tolerate declared but missing accept4 syscall.
80485         * lib/accept4.c (accept4): Invoke original accept4 function first, if
80486         available.
80487         * lib/sys_socket.in.h (accept4): If the function is already present,
80488         override it.
80489         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
80490         * modules/accept4 (Makefile.am): Compile accept4.c always.
80491         Reported by Paolo Bonzini and Eric Blake.
80493 2009-08-23  Bruno Haible  <bruno@clisp.org>
80495         New module 'accept4'.
80496         * lib/sys_socket.in.h (accept4): New declaration.
80497         * lib/accept4.c: New file.
80498         * m4/accept4.m4: New file.
80499         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
80500         GNULIB_ACCEPT4, HAVE_ACCEPT4.
80501         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
80502         HAVE_ACCEPT4.
80503         * modules/accept4: New file.
80504         * doc/glibc-functions/accept4.texi: Mention the new module.
80506 2009-08-24  Jim Meyering  <meyering@redhat.com>
80508         progname: also set global program_invocation_name, when possible
80509         Before this change, a libtool-enabled program that calls glibc's
80510         error function would report the program name as
80511         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
80512         * modules/progname (configure.ac): Check for a declaration of
80513         program_invocation_name.
80514         * lib/progname.c:  Include <errno.h>.
80515         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
80516         Set program_invocation_name.
80518 2009-08-23  Bruno Haible  <bruno@clisp.org>
80520         * lib/dup3.c: Include <string.h>.
80522 2009-08-23  Bruno Haible  <bruno@clisp.org>
80524         * lib/dup3.c (dup3): Test only once whether the system actually exists.
80525         * lib/pipe2.c (pipe2): Likewise.
80526         Suggested by Eric Blake.
80528 2009-08-23  Bruno Haible  <bruno@clisp.org>
80530         Tolerate declared but missing dup3 syscall.
80531         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
80532         * lib/unistd.in.h (dup3): If the function is already present,
80533         override it.
80534         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
80535         * modules/dup3 (Makefile.am): Compile dup3.c always.
80536         Reported by Paolo Bonzini.
80538 2009-08-23  Bruno Haible  <bruno@clisp.org>
80540         Tolerate declared but missing pipe2 syscall.
80541         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
80542         available.
80543         * lib/unistd.in.h (pipe2): If the function is already present,
80544         override it.
80545         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
80546         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
80547         Reported by Paolo Bonzini.
80549 2009-08-23  Bruno Haible  <bruno@clisp.org>
80551         * lib/pipe2.c (pipe2): Move #ifs inside function.
80553 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
80555         quotearg: document limitations of quote_these_too
80556         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
80557         those limitations are created.
80558         * lib/quotearg.h (set_char_quoting): Document that digits and
80559         letters that are special after backslash are not permitted.
80560         (quotearg_char): Cross-reference set_char_quoting documentation.
80562 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
80564         quotearg: implement custom_quoting_style
80565         * lib/quotearg.c: (struct quoting_options): Add left_quote and
80566         right_quote fields.
80567         (set_custom_quoting): New public function.
80568         (quotearg_buffer_restyled): Add left_quote and right_quote
80569         arguments, handle them very much like locale quoting, and update
80570         all uses.
80571         (quotearg_n_custom): New public function.
80572         (quotearg_n_custom_mem): New public function.
80573         (quotearg_custom): New public function.
80574         (quotearg_custom_mem): New public function.
80575         * lib/quotearg.h: Prototype and document new public functions.
80576         (enum quoting_style): For escape_quoting_style and
80577         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
80578         ignored even though they're otherwise like c_quoting_style.
80579         Add custom_quoting_style member and document with comparison to
80580         clocale_quoting_style.
80581         * tests/test-quotearg.c (custom_quotes): New array.
80582         (custom_results): New array.
80583         (main): Extend to test custom quoting.
80585 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
80587         quotearg: fix right quote escaping when it's in quote_these_too
80588         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
80589         quote, be sure to prepend only one backslash.
80590         * tests/test-quotearg.c (use_quote_double_quotes): New function.
80591         (main): Test it.
80593 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
80595         quotearg-tests: test escaping of embedded locale quotes
80596         * tests/test-quotearg.c (struct result_strings): Add member for
80597         new input.
80598         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
80599         (inputs): Add new input.
80600         (results_g): Add expected results.
80601         (flag_results): Likewise.
80602         (locale_results): Likewise.
80603         (compare_strings): Check those.
80605 2009-08-23  Bruno Haible  <bruno@clisp.org>
80607         Tests for module 'dup3'.
80608         * modules/dup3-tests: New file.
80609         * tests/test-dup3.c: New file.
80611         New module 'dup3'.
80612         * lib/unistd.in.h (dup3): New declaration.
80613         * lib/dup3.c: New file.
80614         * m4/dup3.m4: New file.
80615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
80616         HAVE_DUP3.
80617         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
80618         * modules/dup3: New file.
80619         * doc/glibc-functions/dup3.texi: Mention the new module.
80621 2009-08-23  Bruno Haible  <bruno@clisp.org>
80623         Tweak the dup2 test.
80624         * tests/test-dup2.c (main): Create the test file empty. Verify that an
80625         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
80626         the test file is still empty. Fix argument order of lseek.
80628 2009-08-23  Bruno Haible  <bruno@clisp.org>
80630         Avoid test link errors when the modules getopt-gnu, gettext are used.
80631         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
80632         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
80634 2009-08-23  Bruno Haible  <bruno@clisp.org>
80636         Fix getdtablesize() on mingw.
80637         * lib/getdtablesize.c (getdtablesize): Implement differently.
80638         * lib/unistd.in.h (getdtablesize): Improve comment.
80640 2009-08-23  Bruno Haible  <bruno@clisp.org>
80642         New module 'mkostemp'.
80643         Based on Ulrich Drepper's 2007-08-10 change in glibc.
80644         * lib/stdlib.in.h (mksotemp): New declaration.
80645         * lib/mkostemp.c: New file, from glibc with modifications.
80646         * lib/tempname.h (GT_FILE): Remove outdated comment.
80647         (gen_tempname): Add flags argument.
80648         * lib/tempname.c (__GT_BIGFILE): Remove macro.
80649         (__GT_FILE): Map to 1.
80650         (small_open, large_open): Remove macros.
80651         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
80652         * lib/mkstemp.c (mkstemp): Update.
80653         * lib/mkdtemp.c (mkdtemp): Likewise.
80654         * m4/mkostemp.m4: New file.
80655         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
80656         HAVE_MKOSTEMP.
80657         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
80658         HAVE_MKOSTEMP.
80659         * modules/mkostemp: New file, based on modules/mkstemp.
80660         * doc/glibc-functions/mkostemp.texi: Mention the new module.
80661         * NEWS: Mention the change.
80663 2009-08-23  Bruno Haible  <bruno@clisp.org>
80665         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
80666         Reported by Eric Blake.
80668 2009-08-23  Bruno Haible  <bruno@clisp.org>
80670         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
80671         Reported by Eric Blake.
80673 2009-08-23  Bruno Haible  <bruno@clisp.org>
80675         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
80676         * modules/pipe2 (Depends-on): Likewise.
80678 2009-08-23  Eric Blake  <ebb9@byu.net>
80680         fcntl-h: add O_TTY_INIT support
80681         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
80682         * tests/test-fcntl-h.c (o): Test it.
80683         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
80685         fcntl-h: rename from fcntl, in preparation for fcntl(2)
80686         * modules/fcntl: Move <fcntl.h> header replacement...
80687         * modules/fcntl-h: ...to new name, so as not to collide with
80688         like-named function.
80689         * tests/test-fcntl.c: Rename...
80690         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
80691         * modules/fcntl-tests: Rename...
80692         * modules/fcntl-h-tests: ...to this.  Update test file name.
80693         * modules/chdir-long (Depends-on): Update clients.
80694         * modules/chdir-safer (Depends-on): Likewise.
80695         * modules/fcntl-safer (Depends-on): Likewise.
80696         * modules/fts (Depends-on): Likewise.
80697         * modules/mkancesdirs (Depends-on): Likewise.
80698         * modules/mkdir-p (Depends-on): Likewise.
80699         * modules/open (Depends-on): Likewise.
80700         * modules/savewd (Depends-on): Likewise.
80701         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
80702         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
80704 2009-08-22  Bruno Haible  <bruno@clisp.org>
80706         * modules/binary-io (License): Relicense under LGPL.
80707         * modules/pipe2 (License): Likewise.
80709 2009-08-22  Bruno Haible  <bruno@clisp.org>
80711         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
80712         return value.
80713         * lib/pipe-filter-gi.c (filter_init): Likewise.
80714         Reported by Eric Blake.
80716 2009-08-22  Bruno Haible  <bruno@clisp.org>
80718         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
80719         * modules/pipe (Depends-on): Add pipe2.
80721 2009-08-22  Bruno Haible  <bruno@clisp.org>
80723         Tests for module 'pipe2'.
80724         * modules/pipe2-tests: New file.
80725         * tests/test-pipe2.c: New file.
80727         New module 'pipe2'.
80728         * lib/unistd.in.h (pipe2): New declaration.
80729         * lib/pipe2.c: New file.
80730         * m4/pipe2.m4: New file.
80731         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
80732         HAVE_PIPE2.
80733         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
80734         * modules/pipe2: New file.
80735         * doc/glibc-functions/pipe2.texi: Mention the new module.
80737 2009-08-22  Bruno Haible  <bruno@clisp.org>
80739         Reference some new glibc functions.
80740         * doc/glibc-functions/accept4.texi: New file.
80741         * doc/glibc-functions/dup3.texi: New file.
80742         * doc/glibc-functions/mkostemp.texi: New file.
80743         * doc/glibc-functions/pipe2.texi: New file.
80744         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
80745         (Glibc sys/socket.h): Refer to accept4.
80746         (Glibc unistd.h): Refer to dup3, pipe2.
80747         Reported by Eric Blake.
80749 2009-08-22  Jim Meyering  <meyering@redhat.com>
80750             Bruno Haible  <bruno@clisp.org>
80752         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
80753         This makes it so packages using automake-1.11's silent-rules option
80754         can print e.g., a single "GEN    configmake.h" line, rather than
80755         the 30+ statements that perform the job.  If you want to see the
80756         actual commands, you can still run "make V=1".
80757         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
80758         so that make output is abbreviated when those variables are defined
80759         appropriately.
80760         * modules/argz: Likewise.
80761         * modules/arpa_inet: Likewise.
80762         * modules/byteswap: Likewise.
80763         * modules/configmake: Likewise.
80764         * modules/dirent: Likewise.
80765         * modules/errno: Likewise.
80766         * modules/fcntl: Likewise.
80767         * modules/float: Likewise.
80768         * modules/fnmatch: Likewise.
80769         * modules/getopt-posix: Likewise.
80770         * modules/glob: Likewise.
80771         * modules/iconv_open: Likewise.
80772         * modules/inttypes: Likewise.
80773         * modules/localcharset: Likewise.
80774         * modules/locale: Likewise.
80775         * modules/math: Likewise.
80776         * modules/netdb: Likewise.
80777         * modules/netinet_in: Likewise.
80778         * modules/poll: Likewise.
80779         * modules/posix_spawnp-tests: Likewise.
80780         * modules/sched: Likewise.
80781         * modules/search: Likewise.
80782         * modules/selinux-h: Likewise.
80783         * modules/signal: Likewise.
80784         * modules/spawn: Likewise.
80785         * modules/stdarg: Likewise.
80786         * modules/stdbool: Likewise.
80787         * modules/stddef: Likewise.
80788         * modules/stdint: Likewise.
80789         * modules/stdio: Likewise.
80790         * modules/stdlib: Likewise.
80791         * modules/string: Likewise.
80792         * modules/strings: Likewise.
80793         * modules/sys_file: Likewise.
80794         * modules/sys_ioctl: Likewise.
80795         * modules/sys_select: Likewise.
80796         * modules/sys_socket: Likewise.
80797         * modules/sys_stat: Likewise.
80798         * modules/sys_time: Likewise.
80799         * modules/sys_times: Likewise.
80800         * modules/sys_utsname: Likewise.
80801         * modules/sys_wait: Likewise.
80802         * modules/sysexits: Likewise.
80803         * modules/time: Likewise.
80804         * modules/unistd: Likewise.
80805         * modules/wchar: Likewise.
80806         * modules/wctype: Likewise.
80808 2009-08-22  Jim Meyering  <meyering@redhat.com>
80810         announce-gen: detect write failure
80811         * build-aux/announce-gen: Add Coda at end.
80812         Remove equivalent-but-more-verbose block at top.
80814 2009-08-19  Akim Demaille  <demaille@gostai.com>
80816         bootstrap: --help to stdout.
80817         * bootstrap (usage): Don't send --help to stderr.
80818         Use a here doc instead of a long string.
80820 2009-08-21  Eric Blake  <ebb9@byu.net>
80822         test-popen-safer: split from test-popen
80823         * tests/test-popen.c (main): Move...
80824         * tests/test-popen.h: ...into new file.
80825         * tests/test-popen-safer2.c: New file.
80826         * modules/popen-tests (Files): Add test-popen.h.
80827         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
80828         Suggested by Bruno Haible.
80830         test-fcntl-safer: split from test-open
80831         * tests/test-open.c (main): Move...
80832         * tests/test-open.h: ...into new file.
80833         * tests/test-fcntl-safer.c: New file.
80834         * modules/open-tests (Files): Add test-open.h.
80835         * modules/fcntl-safer-tests: New file.
80836         Suggested by Bruno Haible.
80838         test-fopen-safer: split from test-fopen
80839         * tests/test-fopen.c (main): Move...
80840         * tests/test-fopen.h: ...into new file.
80841         * tests/test-fopen-safer.c: New file.
80842         * modules/fopen-tests (Files): Add test-fopen.h.
80843         * modules/fopen-safer-tests: New file.
80844         Suggested by Bruno Haible.
80846 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
80848         popen-safer: test O_CLOEXEC at run-time.
80849         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
80851 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
80853         fcntl: move more flags to the header
80854         * lib/cloexec.c: Do not define FD_CLOEXEC here.
80855         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
80856         * lib/fcntl.in.h: Do both things here.
80858 2009-08-21  Jim Meyering  <meyering@redhat.com>
80860         consistently remove $@-t before redirecting to it
80861         * modules/argz: Remove $@-t and $@ before redirecting to the former.
80862         * modules/alloca-opt: Likewise.
80863         * modules/byteswap: Likewise.
80864         * modules/fnmatch: Likewise.
80865         * modules/getopt-posix: Likewise.
80866         * modules/glob: Likewise.
80867         * modules/poll: Likewise.
80868         * modules/posix_spawnp-tests: Likewise.
80869         * modules/sys_socket: Likewise.
80870         * modules/sysexits: Likewise.
80872 2009-08-21  Eric Blake  <ebb9@byu.net>
80874         popen: simplify access to original popen
80875         * lib/popen.c (rpl_popen): No need to worry about popen being a
80876         macro.
80877         Reported by Bruno Haible.
80879 2009-08-20  Eric Blake  <ebb9@byu.net>
80881         build: avoid some compiler warnings
80882         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
80883         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
80884         type.
80885         (new_exclude_segment, excluded_file_pattern_p)
80886         (excluded_file_name_p): Reduce scope.
80887         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
80888         old-style declaration.
80890 2009-08-20  Simon Josefsson  <simon@josefsson.org>
80892         * tests/test-exclude1.sh: Handle Windows EOL.
80893         * tests/test-exclude2.sh: Likewise.
80894         * tests/test-exclude3.sh: Likewise.
80895         * tests/test-exclude4.sh: Likewise.
80896         * tests/test-exclude5.sh: Likewise.
80897         * tests/test-exclude6.sh: Likewise.
80898         * tests/test-exclude7.sh: Likewise.
80900 2009-08-19  Akim Demaille  <demaille@gostai.com>
80902         bootstrap: find sha1sum when named gsha1sum.
80903         * bootstrap (find_tool): New.
80904         ($SHA1SUM): New.
80905         Use it.
80907 2009-08-20  Jim Meyering  <meyering@redhat.com>
80909         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
80910         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
80911         expression that converts "." in a file name to "\." in the resulting
80912         regexp.  Start with a dummy statement, so that prior shell variable
80913         definitions are expanded portably.  Reported by Simon Josefsson.
80915 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
80917         Fix polling for writeability of a screen buffer.
80918         * lib/poll.c: Distinguish input and screen buffers for the
80919         Win32 implementation.
80920         * lib/select.c: Likewise.
80922 2009-08-19  Eric Blake  <ebb9@byu.net>
80924         popen-safer: prevent popen from clobbering std descriptors
80925         * modules/popen-safer: New file.
80926         * lib/popen-safer.c: Likewise.
80927         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
80928         * lib/stdio--.h (popen): Provide override.
80929         * lib/stdio-safer.h (popen_safer): Provide declaration.
80930         * tests/test-popen.c (includes): Partially test this.
80931         * modules/popen-safer-tests: New file, for more tests.
80932         * tests/test-popen-safer.c: Likewise.
80933         * MODULES.html.sh (file stream based Input/Output): Mention it.
80935         tests: test some of the *-safer modules
80936         * modules/fopen-safer (Depends-on): Add fopen.
80937         * modules/fcntl-safer (Depends-on): Add fcntl.
80938         * modules/stdlib-safer (Depends-on): Add stdlib.
80939         (configure.ac): Set indicator.
80940         * modules/unistd-safer (configure.ac): Likewise.
80941         * modules/tmpfile-safer (configure.ac): Likewise.
80942         (Depends-on): Add tmpfile.
80943         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
80944         active.
80945         * tests/test-fopen.c (includes): Test safer versions when they are
80946         in use.
80947         * tests/test-open.c (includes): Likewise.
80949         popen: fix cygwin 1.5 bug when stdin closed
80950         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
80951         * modules/popen: New file.
80952         * modules/popen-tests: Likewise.
80953         * tests/test-popen.c: Likewise.
80954         * m4/popen.m4: Likewise.
80955         * lib/popen.c: Likewise.
80956         * lib/stdio.in.h (popen): New declaration.
80957         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
80958         * modules/stdio (Makefile.am): Likewise.
80959         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
80961 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
80963         maint.mk: give full control over update-copyright exclusions
80964         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
80965         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
80966         (update-copyright): Don't force inclusion of top-level
80967         ChangeLog.  Don't force exclusion of all COPYING files, but make
80968         them the default exclusion instead.
80970 2009-08-16  Bruno Haible  <bruno@clisp.org>
80972         Fix test failures on Solaris 10.
80973         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
80974         tests when Solaris iconv() is used.
80975         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
80976         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
80977         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
80978         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
80979         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
80981 2009-08-16  Bruno Haible  <bruno@clisp.org>
80983         Fix test failures on Solaris 10.
80984         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
80985         'tr' program and pass it as first argument.
80986         * tests/test-pipe-filter-gi1.sh: Likewise.
80987         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
80988         program as first argument.
80989         * tests/test-pipe-filter-gi1.c (main): Likewise.
80991 2009-08-16  Eric Blake  <ebb9@byu.net>
80993         fpurge: fix previous commits
80994         * modules/fpurge (Makefile.am): Make replacement conditional,
80995         partially reverting 2007-04-29 change; missed in previous
80996         attempt.
80997         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
80998         is missing.
81000 2009-08-16  Bruno Haible  <bruno@clisp.org>
81002         Clarify fpurge's effect on the file position.
81003         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
81004         * tests/test-fpurge.c (main): Make a second pass for checking the file
81005         position.
81007 2009-08-16  Bruno Haible  <bruno@clisp.org>
81009         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
81010         declaration of fpurge is missing.
81011         * tests/test-fpurge.c (main): Check that the file has not more contents
81012         than expected. Close the file before removing it.
81014 2009-08-15  Eric Blake  <ebb9@byu.net>
81016         fpurge: don't wrap working cygwin implementation
81017         * lib/fpurge.c (fpurge): Fix comment typo.
81018         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
81019         1.7 to avoid replacement.
81020         * tests/test-fpurge.c (main): Enhance test.
81022 2009-08-15  Eric Blake  <ebb9@byu.net>
81023         and Jim Meyering  <meyering@redhat.com>
81025         test-update-copyright: skip if perl is insufficient
81026         * tests/test-update-copyright.sh: Failure to run maintainer tool
81027         should not cause testsuite failure on cygwin 1.5.
81029 2009-08-14  Eric Blake  <ebb9@byu.net>
81031         doc: mention more functions added in cygwin 1.7.0
81032         * doc/posix-headers/limits.texi (limits.h): Update for recent
81033         cygwin additions.
81034         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
81035         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
81036         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
81037         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
81038         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
81040 2009-08-14  Eric Blake  <ebb9@byu.net>
81042         maint.mk: simplify update-copyright rule
81043         * top/maint.mk (update-copyright-local): Delete, and document how
81044         to do it in cfg.mk instead.
81045         (update-copyright-exclude-regexp): Delete, and document how to do
81046         it in .x-update-copyright instead.
81047         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
81048         exclude ChangeLog.
81050 2009-08-14  Bruno Haible  <bruno@clisp.org>
81052         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
81054 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
81056         maint.mk: support update-copyright-env
81057         * top/maint.mk (update-copyright-env): Define place-holder.
81058         (update-copyright): Expand $(update-copyright-env) before
81059         invoking update-copyright.
81061 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
81063         update-copyright: implement forced reformatting
81064         * build-aux/update-copyright: Implement and document
81065         UPDATE_COPYRIGHT_FORCE.
81066         * tests/test-update-copyright.sh: Test it.
81068 2009-08-14  Eric Blake  <ebb9@byu.net>
81069         and Bruno Haible  <bruno@clisp.org>
81071         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
81072         * tests/test-locale.c: Revert previous patch related to NULL.
81073         * tests/test-stdio.c: Likewise.
81074         * tests/test-stdlib.c: Likewise.
81075         * tests/test-string.c: Likewise.
81076         * tests/test-unistd.c: Likewise.
81077         * modules/time-tests (Depends-on): Add verify.
81078         * modules/wchar-tests (Depends-on): Likewise.
81079         * tests/test-time.c: Test for NULL compliance.
81080         * tests/test-wchar.c: Likewise.
81081         * modules/locale (Depends-on): Add stddef.
81082         * modules/stdio (Depends-on): Likewise.
81083         * modules/stdlib (Depends-on): Likewise.
81084         * modules/string (Depends-on): Likewise.
81085         * modules/time (Depends-on): Likewise.
81086         * modules/unistd (Depends-on): Likewise.
81087         * modules/wchar (Depends-on): Likewise.
81088         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
81089         * lib/stdlib.in.h (includes): Likewise.
81090         * lib/string.in.h (includes): Likewise.
81091         * lib/time.in.h (includes): Likewise.
81092         * lib/unistd.in.h (includes): Likewise.
81093         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
81094         replaced.
81095         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
81096         * m4/stddef_h.m4: New file.
81097         * modules/stddef: Likewise.
81098         * lib/stddef.in.h: Likewise.
81099         * modules/stddef-tests: Likewise.
81100         * tests/test-stddef.c: Likewise.
81101         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
81102         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
81103         * doc/posix-headers/locale.texi (locale.h): Likewise.
81104         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
81105         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
81106         * doc/posix-headers/string.texi (string.h): Likewise.
81107         * doc/posix-headers/time.texi (time.h): Likewise.
81108         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
81109         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
81111 2009-08-14  Eric Blake  <ebb9@byu.net>
81113         doc: improve git diff of texinfo files
81114         * .gitattributes: Add rule for *.texi files, with hint on how to
81115         use it.
81116         Copied from m4, and based on a report by Bruno Haible.
81118 2009-08-14  Bruno Haible  <bruno@clisp.org>
81120         Disable multithread support by default on Cygwin 1.5.x for real.
81121         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
81123 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
81125         update-copyright: much ado about intervals
81126         * build-aux/update-copyright: Implement and document
81127         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
81128         of copyright year intervals.
81129         Also, document UPDATE_COPYRIGHT_YEAR.
81130         * tests/test-update-copyright.sh: Test it.
81132         update-copyright: convert 2-digit to 4-digit years
81133         * build-aux/update-copyright: Implement and document.
81134         * tests/test-update-copyright.sh: Update.
81136 2009-08-14  Jim Meyering  <meyering@redhat.com>
81138         test-exclude: avoid coreutils "make check" failure
81139         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
81140         just as in test-argmatch.c.
81142 2009-08-13  Eric Blake  <ebb9@byu.net>
81144         test-dup2: fix bad assumption
81145         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
81146         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
81148         test-version-etc: fix CRLF portability issue
81149         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
81150         recognize \r.
81151         * tests/test-argp-version-etc-1.sh: Likewise.
81153         getopt: update client modules
81154         * modules/argp (Depends-on): Use getopt-gnu.
81155         * modules/git-merge-changelog (Depends-on): Likewise.
81156         * modules/long-options (Depends-on): Likewise.
81157         * modules/xstrtol (Depends-on): Likewise.
81159 2009-08-13  Simon Josefsson  <simon@josefsson.org>
81161         * tests/test-version-etc.sh: Don't fail on different
81162         project/version.  Don't fail on CRLF differences.  Rewrite to use
81163         multiple -e instead of multiple sed forks, suggested by Eric Blake
81164         <ebb9@byu.net>.
81165         * tests/test-argp-version-etc-1.sh: Likewise.
81167 2009-08-13  Simon Josefsson  <simon@josefsson.org>
81169         * tests/test-version-etc.sh: Don't fail on different
81170         project/version.
81172 2009-08-12  Bruno Haible  <bruno@clisp.org>
81174         Tests for modules 'getopt-posix', 'getopt-gnu'.
81175         * modules/getopt-posix-tests: New file.
81176         * tests/test-getopt.c: New file.
81177         * tests/test-getopt.h: New file.
81178         * tests/test-getopt_long.h: New file.
81180         New modules 'getopt-posix', 'getopt-gnu'.
81181         * modules/getopt-gnu: New file, renamed from modules/getopt.
81182         * modules/getopt-posix: New file.
81183         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
81184         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
81185         (gl_GETOPT): Remove macro.
81186         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
81187         Disable the test against BSD systems that declare optreset. Test
81188         against mingw bug. Test against lack of support of optional arguments
81189         on many platforms.
81190         * doc/glibc-headers/getopt.texi: Update module name and list of
81191         relevant platforms.
81192         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
81193         'getopt-gnu' and more portability problems.
81194         * NEWS: Mention the changes.
81196 2009-08-12  Bruno Haible  <bruno@clisp.org>
81198         Ensure that optarg etc. get declared by <unistd.h>.
81199         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
81200         AC_USE_SYSTEM_EXTENSIONS.
81201         * modules/getopt (Depends-on): Add 'extensions'.
81203 2009-08-12  Bruno Haible  <bruno@clisp.org>
81205         Avoid test link errors.
81206         * modules/pipe-filter-ii-tests (Makefile.am): Define
81207         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
81208         * modules/pipe-filter-gi-tests (Makefile.am): Define
81209         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
81210         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81212 2009-08-12  Bruno Haible  <bruno@clisp.org>
81214         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
81215         gl_GETOPT_SUBSTITUTE before.
81216         (gl_GETOPT): Use it.
81217         * m4/argp.m4 (gl_ARGP): Update.
81218         Reported by Sergey Poznyakoff.
81220         * m4/getopt.m4: Reorder macros.
81221         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
81222         (gl_GETOPT_SUBSTITUTE): Remove macro.
81224 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
81226         Minor improvement in gitlog-to-changelog
81228         * build-aux/gitlog-to-changelog: New option `--format' makes
81229         output format string configurable.
81231 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
81233         Optimize exclude: use hash tables for non-wildcard patterns.
81235         * lib/exclude.c: Include hash.h and mbuiter.h
81236         (struct exclude_pattern, exclude_segment): New data types.
81237         (struct exclude): Rewrite.
81238         (fnmatch_pattern_has_wildcards): New function.
81239         (new_exclude_segment, free_exclude_segment): New functions.
81240         (excluded_file_pattern_p, excluded_file_name_p): New functions.
81241         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
81242         * lib/exclude.h (is_fnmatch_pattern): New prototype.
81243         * modules/exclude: Depend on hash and mbuiter.
81245         * modules/exclude-tests: New file.
81246         * tests/test-exclude.c: New file.
81247         * tests/test-exclude1.sh: New file.
81248         * tests/test-exclude2.sh: New file.
81249         * tests/test-exclude3.sh: New file.
81250         * tests/test-exclude4.sh: New file.
81251         * tests/test-exclude5.sh: New file.
81252         * tests/test-exclude6.sh: New file.
81253         * tests/test-exclude7.sh: New file.
81255 2009-08-12  Bruno Haible  <bruno@clisp.org>
81257         Ensure that getopt() gets declared by <unistd.h>.
81258         * lib/unistd.in.h: Conditionally include getopt.h.
81259         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
81260         Set GNULIB_UNISTD_H_GETOPT.
81261         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
81262         GNULIB_UNISTD_H_GETOPT.
81263         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
81265 2009-08-12  Bruno Haible  <bruno@clisp.org>
81267         Clarify logic.
81268         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
81269         gl_replace_getopt instead of GETOPT_H.
81271 2009-08-12  Bruno Haible  <bruno@clisp.org>
81273         * m4/getopt.m4: Add comments.
81275 2009-08-12  Bruno Haible  <bruno@clisp.org>
81277         Disable multithread support by default on Cygwin 1.5.x.
81278         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
81279         set gl_use_threads=no if not specified otherwise.
81281 2009-08-11  Bruno Haible  <bruno@clisp.org>
81283         Avoid compilation error on NetBSD 5.0.
81284         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
81285         * tests/test-stdio.c: Likewise.
81286         * tests/test-stdlib.c: Likewise.
81287         * tests/test-string.c: Likewise.
81288         * tests/test-unistd.c: Likewise.
81289         Reported by Greg Troxel <gdt@ir.bbn.com>
81290         at <https://savannah.gnu.org/support/?106973>.
81292 2009-08-11  Bruno Haible  <bruno@clisp.org>
81294         * modules/dup2-tests (Depends-on): Remove close.
81296         Undo 2009-07-19 commit.
81297         * modules/acl-tests (Depends-on): Remove close.
81298         * modules/binary-io-tests (Depends-on): Likewise.
81299         * modules/closein-tests (Depends-on): Likewise.
81300         * modules/flock-tests (Depends-on): Likewise.
81301         * modules/fsync-tests (Depends-on): Likewise.
81302         * modules/lseek-tests (Depends-on): Likewise.
81303         * modules/pipe-tests (Depends-on): Likewise.
81304         * modules/posix_spawn-tests (Depends-on): Likewise.
81305         * modules/posix_spawnp-tests (Depends-on): Likewise.
81306         * modules/stat-time-tests (Depends-on): Likewise.
81307         * modules/yesno-tests (Depends-on): Likewise.
81309 2009-08-10  Bruno Haible  <bruno@clisp.org>
81311         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
81313 2009-08-10  Bruno Haible  <bruno@clisp.org>
81315         Fix a gcc warning.
81316         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
81318 2009-08-10  Bruno Haible  <bruno@clisp.org>
81320         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
81321         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
81322         not only the first time.
81323         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
81324         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
81325         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
81326         is 1, not only the first time.
81328 2009-08-10  Bruno Haible  <bruno@clisp.org>
81330         Make it possible to use module 'gethostname' without module 'close'.
81331         * lib/unistd.in.h (close): Evoke a link error only if
81332         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
81333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
81334         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81335         * modules/unistd (Makefile.am): Substitute
81336         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81337         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
81338         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
81339         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
81340         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81341         * modules/sys_ioctl (Makefile.am): Substitute
81342         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81343         * modules/socket (configure.ac): On native Windows, set
81344         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
81345         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81346         Reported by Sam Steingold <sds@gnu.org>.
81348 2009-08-10  Bruno Haible  <bruno@clisp.org>
81350         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
81351         * modules/ioctl (configure.ac): Likewise.
81353 2009-08-10  Bruno Haible  <bruno@clisp.org>
81355         Avoid collision between gnulib wrapper and libintl wrapper.
81356         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
81357         already defined in intl/printf.c.
81358         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
81359         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
81361 2009-08-09  Bruno Haible  <bruno@clisp.org>
81363         Make <sys/select.h> really self-contained, also on Solaris 10.
81364         * lib/sys_select.in.h: Include <string.h>.
81365         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
81366         Solaris 10 problem.
81367         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
81368         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
81369         Reported by Jim Meyering.
81371 2009-08-09  Bruno Haible  <bruno@clisp.org>
81373         Avoid warnings from 'aclocal' that are due to a use of macro name
81374         AM_XGETTEXT_OPTION that is not defined in automake.
81375         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
81376         automake.
81377         * modules/error (configure.ac): Likewise.
81378         * modules/propername (configure.ac): Likewise.
81379         * modules/vasprintf (configure.ac): Likewise.
81380         * modules/verror (configure.ac): Likewise.
81381         * modules/xprintf (configure.ac): Likewise.
81382         * modules/xvasprintf (configure.ac): Likewise.
81384 2009-08-08  Bruno Haible  <bruno@clisp.org>
81386         Avoid compilation error in C++ mode.
81387         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
81388         Reported by Sam Steingold <sds@gnu.org>.
81390 2009-08-08  Bruno Haible  <bruno@clisp.org>
81392         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
81393         for the various Unix platforms.
81394         * doc/posix-headers/limits.texi: Update platforms list regarding
81395         HOST_NAME_MAX.
81396         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81398 2009-08-07  Jim Meyering  <meyering@redhat.com>
81400         selinux-at: fix typo in a comment
81401         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
81402         Spotted by Paolo Bonzini.
81404         selinux-at: remove redundant m4 code, add documentation
81405         * modules/selinux-at (configure.ac): Remove redundant code.
81406         LIB_SELINUX is already set via the dependent module, selinux-h.
81407         (Include): Add quotes around selinux-at.h.
81408         * lib/selinux-at.h: Add documentation.
81409         Reported by Bruno Haible in
81410         http://marc.info/?l=gnulib-bug&m=124958988300749
81412 2009-08-07  Bruno Haible  <bruno@clisp.org>
81414         Avoid link error on MacOS X 10.3 and 10.4.
81415         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
81416         on non-ELF systems.
81417         * lib/argp-pv.c (argp_program_version): Likewise.
81418         Reported by Simon Josefsson.
81420 2009-08-07  Simon Josefsson  <simon@josefsson.org>
81422         * tests/test-version-etc.sh: Use $EXEEXT.
81424 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
81426         update-copyright: update documentation to point to maint.mk
81427         * build-aux/update-copyright: Here.
81429 2009-08-06  Jim Meyering  <meyering@redhat.com>
81431         maint.mk: support update-copyright-local
81432         * top/maint.mk (update-copyright-local): Define place-holder.
81433         (update-copyright): Depend on $(update-copyright-local).
81435 2009-08-06  Jim Meyering  <meyering@redhat.com>
81437         selinux-at: new module
81438         Initially written for coreutils, this module will soon be
81439         used by findutils, too.
81440         * MODULES.html.sh [Misc]: Add selinux-at.
81441         * lib/selinux-at.h: New file, from coreutils.
81442         * lib/selinux-at.c: Likewise.
81443         * modules/selinux-at: Likewise.
81444         (License): Change from LGPL to GPL, since it depends
81445         on the GPL'd openat module.
81447         doc: update README
81448         * README: Remove references to cogito.
81449         Remove cvs-repo-updating instructions from 2007.
81450         Don't imply that CVS is better if you have limited disk space.
81452 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81454         update-copyright: support C-style comments
81455         * build-aux/update-copyright: Implement and document.
81456         * tests/test-update-copyright.sh: Test.
81458 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81460         update-copyright: support omitted "(C)"
81461         * build-aux/update-copyright: Implement and document.  Also,
81462         allow variable whitespace before "(C)".
81463         * tests/test-update-copyright.sh: Test.
81465 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81467         update-copyright: don't trip on non-FSF copyright statements
81468         * build-aux/update-copyright: Fix so that the first correctly
81469         formatted FSF copyright statement is recognized no matter what
81470         appears before it.  Update documentation.
81471         * tests/test-update-copyright.sh: Test that.
81473 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81475         update-copyright: clean up code a little
81476         * build-aux/update-copyright: Append "_re" to the name of any
81477         variable holding a regular expression.
81478         Replace "old" and "new" with "stmt" in variable names.
81479         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
81480         handled correctly.
81481         Format code more consistently.
81483 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81485         update-copyright-tests: improve portability
81486         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
81487         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
81489 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
81491         update-copyright: support @copyright{} and &copy;
81492         * build-aux/update-copyright: Implement and document.
81493         * tests/test-update-copyright.sh: Test.
81495 2009-08-04  Jim Meyering  <meyering@redhat.com>
81497         update-copyright-tests: correctly test EOL=\r\n handling
81498         * tests/test-update-copyright.sh: Put \r at the end of some lines
81499         for the dos-eol tests.  Based on a patch by Joel E. Denny.
81501         maint.mk: make update-copyright exclusion list more configurable
81502         * top/maint.mk (update-copyright): Default to excluding COPYING,
81503         but allow an override, in case someone does want to update that file.
81505         maint.mk: don't update copyright date in COPYING
81506         * top/maint.mk (update-copyright): Exclude COPYING.
81508         maint.mk: add a copyright-updating rule
81509         * top/maint.mk (update-copyright): New rule.
81510         Derived from coreutils/Makefile.am.
81512         update-copyright: rename some variables
81513         * build-aux/update-copyright: Rename a few variables for clarity.
81514         Tweak syntax.  List Joel E. Denny as coauthor.
81516 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
81518         update-copyright: fix bug for 2-digit last year and add tests
81519         * build-aux/update-copyright: Fix bug.
81520         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
81521         specified.
81522         * modules/update-copyright-tests: New
81523         * tests/test-update-copyright.sh: New.
81525 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
81527         update-copyright: handle leading tabs in line prefix
81528         * build-aux/update-copyright: Count leading tabs as 8 spaces
81529         when computing margin.  This helps with the formatting of
81530         ChangeLogs, for example.
81531         Fix documentation a little.
81533 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
81535         update-copyright: support EOL=\r\n
81536         * build-aux/update-copyright: Implement that.
81538 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
81540         update-copyright: automatically format copyright statements
81541         * build-aux/update-copyright: Implement that.
81542         Also, be a little more predictable and safer by always failing
81543         when the full copyright format is not perfectly recognized as an
81544         unbroken whole.  Discussed at
81545         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
81546         Rewrite documentation.
81548 2009-08-03  Bruno Haible  <bruno@clisp.org>
81550         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
81552 2009-08-02  Bruno Haible  <bruno@clisp.org>
81554         Tests for module 'uname'.
81555         * modules/uname-tests: New file.
81556         * tests/test-uname.c: New file.
81558         New module 'uname'.
81559         * lib/uname.c: New file.
81560         * m4/uname.m4: New file.
81561         * modules/uname: New file.
81562         * doc/posix-functions/uname.texi: Mention the new module.
81564 2009-08-02  Bruno Haible  <bruno@clisp.org>
81566         Tests for module 'sys_utsname'.
81567         * modules/sys_utsname-tests: New file.
81568         * tests/test-sys_utsname.c: New file.
81570         New module 'sys_utsname'.
81571         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
81572         * m4/sys_utsname_h.m4: New file.
81573         * modules/sys_utsname: New file.
81574         * doc/posix-headers/sys_utsname.texi: Mention the new module.
81576 2009-08-02  Bruno Haible  <bruno@clisp.org>
81578         Implicitly initialize the sockets library.
81579         * lib/gethostname.c: Include sockets.h.
81580         (rpl_gethostname): Invoke gl_sockets_startup.
81581         * lib/socket.c: Include sockets.h.
81582         (rpl_socket): Invoke gl_sockets_startup.
81583         * modules/gethostname (Depends-on): Add sockets.
81584         * modules/socket (Depends-on): Likewise.
81585         * tests/test-poll.c: Don't include sockets.h.
81586         (main): Don't invoke gl_sockets_startup.
81587         * tests/test-select.c: Don't include sockets.h.
81588         (main): Don't invoke gl_sockets_startup.
81590 2009-08-02  Bruno Haible  <bruno@clisp.org>
81592         Allow multiple calls to gl_sockets_startup.
81593         * lib/sockets.c (initialized_sockets_version): New variable.
81594         (gl_sockets_startup): Do nothing if already called for this or a higher
81595         version.
81596         (gl_sockets_cleanup): Reset initialized_sockets_version.
81598 2009-08-03  Simon Josefsson  <simon@josefsson.org>
81600         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
81601         different project/version.
81603 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
81604             Bruno Haible  <bruno@clisp.org>
81606         Tests for module 'pipe-filter-gi'.
81607         * modules/pipe-filter-gi-tests: New file.
81608         * tests/test-pipe-filter-gi1.sh: New file.
81609         * tests/test-pipe-filter-gi1.c: New file.
81610         * tests/test-pipe-filter-gi2.sh: New file.
81611         * tests/test-pipe-filter-gi2-main.c: New file.
81612         * tests/test-pipe-filter-gi2-child.c: New file.
81614         New module 'pipe-filter-gi'.
81615         * lib/pipe-filter-gi.c: New file.
81616         * modules/pipe-filter-gi: New file.
81618 2009-08-02  Bruno Haible  <bruno@clisp.org>
81619             Paolo Bonzini  <bonzini@gnu.org>
81621         Tests for module 'pipe-filter-ii'.
81622         * modules/pipe-filter-ii-tests: New file.
81623         * tests/test-pipe-filter-ii1.sh: New file.
81624         * tests/test-pipe-filter-ii1.c: New file.
81625         * tests/test-pipe-filter-ii2.sh: New file.
81626         * tests/test-pipe-filter-ii2-main.c: New file.
81627         * tests/test-pipe-filter-ii2-child.c: New file.
81629         New module 'pipe-filter-ii'.
81630         * lib/pipe-filter.h: New file.
81631         * lib/pipe-filter-ii.c: New file.
81632         * lib/pipe-filter-aux.h: New file.
81633         * modules/pipe-filter-ii: New file.
81635 2009-08-02  Simon Josefsson  <simon@josefsson.org>
81637         * lib/gc-libgcrypt.c: Change copyright to FSF.
81638         * lib/gc-gnulib.c: Likewise.
81640 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
81642         * lib/gethostname.c: Include limits.h.
81644 2009-08-02  Simon Josefsson  <simon@josefsson.org>
81645             Bruno Haible  <bruno@clisp.org>
81647         Ensure HOST_NAME_MAX as part of the gethostname module.
81648         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
81649         define also HOST_NAME_MAX.
81650         * tests/test-gethostname.c: Include <limits.h>.
81651         (main): Check also HOST_NAME_MAX.
81652         * doc/posix-headers/limits.texi: Document the mingw problem.
81654 2009-08-02  Bruno Haible  <bruno@clisp.org>
81656         * lib/gethostname.c (gethostname): Fix handling of large len argument.
81657         Add comments.
81659 2009-03-31  Simon Josefsson  <simon@josefsson.org>
81661         * lib/gethostname.c: Add Windows wrapper.
81662         * m4/gethostname.m4: Look for gethostname in -lws2_32.
81663         * modules/gethostname: Depend on sys_socket & errno, for also
81664         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
81665         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
81667 2009-07-31  Jim Meyering  <meyering@redhat.com>
81669         getloadavg: fix symbol name in comment
81670         * lib/getloadavg.c: Correct a typo I introduced when adding
81671         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
81672         Matt Kraai spotted the problem.
81674 2009-07-29  Matt Kraai  <mkraai@beckman.com>
81676         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
81677         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
81678         code also if ! defined N_NAME_POINTER.
81679         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
81680         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
81681         but the n_name member is a 12-byte array.
81683 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
81685         update-copyright: generalize comment handling
81686         * build-aux/update-copyright: Handle copyright statements
81687         within more comment styles.
81688         Document usage.
81689         Report any file with an external copyright holder or parse failure.
81691 2009-07-29  Jim Meyering  <meyering@redhat.com>
81693         mktime: correct setting of REPLACE_MKTIME
81694         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
81696         update-copyright: new module
81697         * modules/update-copyright: New file.
81698         * build-aux/update-copyright: New file.
81699         * MODULES.html.sh (maint+release support): Add update-copyright.
81701 2009-07-27  Bruno Haible  <bruno@clisp.org>
81703         Fix compilation error when <ctime> is used and mktime is replaced.
81704         * lib/time.in.h (mktime): New declaration.
81705         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
81706         REPLACE_MKTIME instead of defining mktime in config.h.
81707         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
81708         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
81709         Reported by Ross McFarland <rwmcfa1@neces.com>.
81711 2009-07-27  Bruno Haible  <bruno@clisp.org>
81713         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
81714         Reported by Matt Kraai <mkraai@beckman.com>.
81716 2009-07-25  Jim Meyering  <meyering@redhat.com>
81718         maint.mk: avoid warnings about missing files
81719         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
81720         diagnostic when .prev-version does not exist.
81721         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
81722         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
81723         nonexistent cfg.mk.
81724         Suggestions from Simon Josefsson.
81726 2009-07-25  Bruno Haible  <bruno@clisp.org>
81728         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
81729         defined as macros. Needed on QNX 6.4.1.
81730         Reported by Matt Kraai <mkraai@beckman.com>.
81732 2009-07-23  Jim Meyering  <meyering@redhat.com>
81734         maint.mk: invoke "make dist" with a working value of XZ_OPT
81735         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
81737 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
81739         Make fseeko.c compile on QNX.
81740         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
81742 2009-07-22  Peter Simons  <simons@cryp.to>
81744         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
81745         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
81746         * lib/md4.h: Likewise.
81747         * lib/md5.h: Likewise.
81748         * lib/sha1.h: Likewise.
81749         * lib/sha256.h: Likewise.
81750         * lib/sha512.h: Likewise.
81752         tests-sha1: don't assign literal string to 'char *' variable
81753         * tests/test-sha1.c (main): Declare locals with "const" to match
81754         attributes of the right hand side.
81756 2009-07-21  Eric Blake  <ebb9@byu.net>
81758         dup2: fix more mingw problems
81759         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
81760         fd to itself.
81761         * doc/posix-functions/dup2.texi (dup2): Document the bug.
81762         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
81763         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
81764         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
81765         care of mingw bugs.
81767 2009-07-21  Jim Meyering  <meyering@redhat.com>
81769         vc-list-files: avoid failure when /bin/sh is dash
81770         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
81771         On some Debian based systems, /bin/sh is a symlink to dash, and running
81772         this command would omit the "/" following each 'tests' prefix:
81773           dash -x build-aux/vc-list-files -C . tests
81774         That is because bash and dash work differently:
81775           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
81776           bash ok
81777           dash odd
81779 2009-07-21  Eric Blake  <ebb9@byu.net>
81781         dup2-tests: test previous patch
81782         * modules/dup2-tests: New file.
81783         * tests/test-dup2.c: Likewise.
81784         * tests/test-open.c (main): Avoid unspecified behavior.
81785         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
81786         test.
81788         dup2: work around mingw and cygwin 1.5 bug
81789         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
81790         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
81791         * modules/unistd (Makefile.am): Substitute it.
81792         * lib/unistd.in.h (dup2): Declare the replacement.
81793         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
81794         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
81795         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
81796         * modules/execute (Depends-on): Add dup2.
81797         * modules/fseterr (Depends-on): Likewise.
81798         * modules/pipe (Depends-on): Likewise.
81799         * modules/posix_spawn-internal (Depends-on): Likewise.
81801 2009-07-21  Bruno Haible  <bruno@clisp.org>
81803         * modules/.gitattributes: New file.
81805 2009-07-20  Bruno Haible  <bruno@clisp.org>
81807         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
81808         (main): Use it.
81810 2009-07-20  Eric Blake  <ebb9@byu.net>
81812         test-pipe: make a bit more robust.
81813         * tests/test-pipe.c (myerr): Allow error messages regardless of
81814         what we do to stderr.
81815         (test_pipe): Rearrange to avoid deadlock.
81816         (child_main): Try a larger read, to ensure we avoided deadlock.
81817         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
81818         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
81819         if misused.
81821 2009-07-19  Jim Meyering  <meyering@redhat.com>
81823         fts: avoid false-positive cycle-detection
81824         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
81825         for each new command line argument.
81827 2009-07-19  Bruno Haible  <bruno@clisp.org>
81829         Fix build error on mingw with the modules sys_select and unistd.
81830         * modules/acl-tests (Depends-on): Add close.
81831         * modules/binary-io-tests (Depends-on): Likewise.
81832         * modules/closein-tests (Depends-on): Likewise.
81833         * modules/flock-tests (Depends-on): Likewise.
81834         * modules/fsync-tests (Depends-on): Likewise.
81835         * modules/lseek-tests (Depends-on): Likewise.
81836         * modules/pipe-tests (Depends-on): Likewise.
81837         * modules/posix_spawn-tests (Depends-on): Likewise.
81838         * modules/posix_spawnp-tests (Depends-on): Likewise.
81839         * modules/stat-time-tests (Depends-on): Likewise.
81840         * modules/yesno-tests (Depends-on): Likewise.
81842 2009-07-19  Bruno Haible  <bruno@clisp.org>
81844         Unify conditionals.
81845         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
81846         macros, not at the compiler macros.
81847         * lib/pipe.c: Likewise.
81848         * lib/execute.c: Likewise.
81849         * lib/spawni.c: Likewise.
81851 2009-07-19  Bruno Haible  <bruno@clisp.org>
81853         Fix handling of closed stdin/stdout/stderr on mingw.
81854         * lib/w32spawn.h: Include unistd.h.
81855         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
81856         file descriptor with O_NOINHERIT flag.
81857         (fd_safer_noinherit): New function, based on fd-safer.c.
81858         (dup_safer_noinherit): New function, based on dup-safer.c.
81859         (undup_safer_noinherit): New function.
81860         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
81861         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
81862         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
81863         instead of fd_safer.
81864         * tests/test-pipe.c: Include <windows.h>.
81865         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
81866         result.
81868         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
81869         from main.
81870         (test_pipe): Pass an extra argument for disambiguation.
81871         (main): Invoke parent_main or child_main.
81873         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
81874         consistently.
81876 2009-07-18  Eric Blake  <ebb9@byu.net>
81878         test-pipe: fix mingw build
81879         * tests/test-pipe.c (main): Avoid fcntl on mingw.
81881 2009-07-18  Bruno Haible  <bruno@clisp.org>
81883         * modules/pipe-tests (Makefile.am): Fix typo.
81885 2009-07-18  Eric Blake  <ebb9@byu.net>
81887         error: fix mingw build
81888         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
81889         Reported by Bruno Haible.
81891         error: avoid undefined use of stdout
81892         * lib/error.c (error, error_at_line): Check that fd 1 is open
81893         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
81894         is handling faults and the close_stdout module wants to report the
81895         detection of closed stdout as an error.
81897 2009-07-17  Eric Blake  <ebb9@byu.net>
81899         pipe: be robust in face of closed fds
81900         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
81901         should cause child to misbehave.
81902         * modules/pipe-tests: New module.
81903         * tests/test-pipe.c: New file.
81904         * tests/test-pipe.sh: New file.
81905         Reported by Akim Demaille.
81907 2009-07-14  Bruno Haible  <bruno@clisp.org>
81909         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
81910         Reported by anonymous kc.
81912 2009-07-07  Jim Meyering  <meyering@redhat.com>
81914         maint.mk: don't look for translatable strings in *.m4 or *.mk
81915         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
81916         when searching for translatable strings.
81918 2009-07-05  Jim Meyering  <meyering@redhat.com>
81920         remove superfluous parentheses in STREQ definition
81921         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
81922         * lib/getugroups.c (STREQ): Likewise.
81923         * lib/fnmatch.c (STREQ): Likewise.
81924         Spotted by Bruno Haible.
81926 2009-07-04  Jim Meyering  <meyering@redhat.com>
81928         argv-iter: new module
81929         * MODULES.html.sh: Add argv-iter.
81930         * lib/argv-iter.c, lib/argv-iter.h: New files.
81931         * modules/argv-iter: New file.
81932         * modules/argv-iter-tests: New file.
81933         * tests/test-argv-iter.c: Test it.
81935 2009-07-04  Bruno Haible  <bruno@clisp.org>
81937         Fix assertion.
81938         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
81939         contains more exact copies of a given entry than file2, leave the extra
81940         copies unpaired rather than aborting.
81941         Reported by Eric Blake.
81943 2009-07-02  Bruno Haible  <bruno@clisp.org>
81945         Speedup git-merge-changelog for git cherry-pick.
81946         * lib/git-merge-changelog.c (struct entries_mapping): New type.
81947         (entries_mapping_get): New function, extracted from compute_mapping.
81948         (entries_mapping_reverse_get): New function.
81949         (compute_mapping): Add a 'full' argument. Return the result in a
81950         'struct entries_mapping'.
81951         (main): Update. Access the mappings through entries_mapping_get.
81952         Reported by Eric Blake.
81954 2009-07-02  Bruno Haible  <bruno@clisp.org>
81956         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
81957         best_i.
81959 2009-07-02  Bruno Haible  <bruno@clisp.org>
81961         Speed up approximate search for matching ChangeLog entries.
81962         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
81963         argument. Call fstrcmp_bounded instead of fstrcmp.
81964         (compute_mapping, try_split_merged_entry, main): Update callers.
81966 2009-07-02  Bruno Haible  <bruno@clisp.org>
81968         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
81970 2009-06-30  Bruno Haible  <bruno@clisp.org>
81972         Reduce the number of uc_is_cased calls.
81973         * lib/unicase.h (casing_suffix_context_t): Add
81974         'first_char_except_ignorable' field.
81975         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
81976         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
81977         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
81978         Update initializer.
81979         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
81980         case-ignorable characters.
81981         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
81982         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
81983         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
81984         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
81985         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
81987 2009-06-30  Bruno Haible  <bruno@clisp.org>
81989         Tests for module 'unicase/ignorable'.
81990         * modules/unicase/ignorable-tests: New file.
81991         * tests/unicase/test-ignorable.c: New file, generated by
81992         gen-uni-tables.
81994         Tests for module 'unicase/cased'.
81995         * modules/unicase/cased-tests: New file.
81996         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
81997         * tests/unicase/test-predicate-part1.h: New file, derived from
81998         tests/unictype/test-predicate-part1.h.
81999         * tests/unicase/test-predicate-part2.h: New file, same as
82000         tests/unictype/test-predicate-part2.h.
82002         Fix evaluation of "Before C" condition of FINAL_SIGMA.
82003         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
82004         (output_casing_properties): New function.
82005         (main): Call it.
82006         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
82007         * lib/unicase/cased.c: Include unictype/bitmap.h.
82008         (uc_is_cased): Define through a bitmap lookup.
82009         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
82010         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
82011         (uc_is_case_ignorable): Define through a bitmap lookup.
82012         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
82013         lib/unictype/bitmap.h.
82014         (Depends-on): Add inline. Clean up.
82015         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
82016         lib/unictype/bitmap.h.
82017         (Depends-on): Add inline. Clean up.
82018         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
82019         recognition.
82020         * tests/unicase/test-u16-tolower.c (main): Likewise.
82021         * tests/unicase/test-u32-tolower.c (main): Likewise.
82023 2009-06-30  Bruno Haible  <bruno@clisp.org>
82025         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
82026         * lib/unicase/u16-casemap.c: Likewise.
82027         * lib/unicase/u32-casemap.c: Likewise.
82029 2009-06-29  Bruno Haible  <bruno@clisp.org>
82031         Define u32_casefold as a wrapper around u32_ct_casefold.
82032         * lib/unicase/u32-casefold.c: Update.
82033         * modules/unicase/u32-casefold (Depends-on): Add
82034         unicase/u32-ct-casefold, unicase/empty-prefix-context,
82035         unicase/empty-suffix-context. Clean up.
82037         Define u16_casefold as a wrapper around u16_ct_casefold.
82038         * lib/unicase/u16-casefold.c: Update.
82039         * modules/unicase/u16-casefold (Depends-on): Add
82040         unicase/u16-ct-casefold, unicase/empty-prefix-context,
82041         unicase/empty-suffix-context. Clean up.
82043         Define u8_casefold as a wrapper around u8_ct_casefold.
82044         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
82045         * lib/unicase/u8-casefold.c: Update.
82046         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
82047         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82049         Define u32_totitle as a wrapper around u32_ct_totitle.
82050         * lib/unicase/u32-totitle.c: Update.
82051         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
82052         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82054         Define u16_totitle as a wrapper around u16_ct_totitle.
82055         * lib/unicase/u16-totitle.c: Update.
82056         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
82057         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82059         Define u8_totitle as a wrapper around u8_ct_totitle.
82060         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
82061         functions.
82062         (FUNC): Delegate to U_CT_TOTITLE.
82063         * lib/unicase/u8-totitle.c: Update.
82064         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
82065         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82067         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
82068         invocation.
82069         * modules/unicase/u32-tolower (Depends-on): Add
82070         unicase/empty-prefix-context, unicase/empty-suffix-context.
82072         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
82073         invocation.
82074         * modules/unicase/u16-tolower (Depends-on): Add
82075         unicase/empty-prefix-context, unicase/empty-suffix-context.
82077         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
82078         * modules/unicase/u8-tolower (Depends-on): Add
82079         unicase/empty-prefix-context, unicase/empty-suffix-context.
82081         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
82082         invocation.
82083         * modules/unicase/u32-toupper (Depends-on): Add
82084         unicase/empty-prefix-context, unicase/empty-suffix-context.
82086         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
82087         invocation.
82088         * modules/unicase/u16-toupper (Depends-on): Add
82089         unicase/empty-prefix-context, unicase/empty-suffix-context.
82091         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
82092         * modules/unicase/u8-toupper (Depends-on): Add
82093         unicase/empty-prefix-context, unicase/empty-suffix-context.
82095         New module 'unicase/u32-ct-casefold'.
82096         * lib/unicase/u32-ct-casefold.c: New file.
82097         * modules/unicase/u32-ct-casefold: New file.
82099         New module 'unicase/u16-ct-casefold'.
82100         * lib/unicase/u16-ct-casefold.c: New file.
82101         * modules/unicase/u16-ct-casefold: New file.
82103         New module 'unicase/u8-ct-casefold'.
82104         * lib/unicase/u8-ct-casefold.c: New file.
82105         * lib/unicase/u-ct-casefold.h: New file, derived from
82106         lib/unicase/u-casefold.h.
82107         * modules/unicase/u8-ct-casefold: New file.
82109         New module 'unicase/u32-ct-totitle'.
82110         * lib/unicase/u32-ct-totitle.c: New file.
82111         * modules/unicase/u32-ct-totitle: New file.
82113         New module 'unicase/u16-ct-totitle'.
82114         * lib/unicase/u16-ct-totitle.c: New file.
82115         * modules/unicase/u16-ct-totitle: New file.
82117         New module 'unicase/u8-ct-totitle'.
82118         * lib/unicase/u8-ct-totitle.c: New file.
82119         * lib/unicase/u-ct-totitle.h: New file, derived from
82120         lib/unicase/u-totitle.h.
82121         * modules/unicase/u8-ct-totitle: New file.
82123         New module 'unicase/u32-ct-tolower'.
82124         * lib/unicase/u32-ct-tolower.c: New file.
82125         * modules/unicase/u32-ct-tolower: New file.
82127         New module 'unicase/u16-ct-tolower'.
82128         * lib/unicase/u16-ct-tolower.c: New file.
82129         * modules/unicase/u16-ct-tolower: New file.
82131         New module 'unicase/u8-ct-tolower'.
82132         * lib/unicase/u8-ct-tolower.c: New file.
82133         * modules/unicase/u8-ct-tolower: New file.
82135         New module 'unicase/u32-ct-toupper'.
82136         * lib/unicase/u32-ct-toupper.c: New file.
82137         * modules/unicase/u32-ct-toupper: New file.
82139         New module 'unicase/u16-ct-toupper'.
82140         * lib/unicase/u16-ct-toupper.c: New file.
82141         * modules/unicase/u16-ct-toupper: New file.
82143         New module 'unicase/u8-ct-toupper'.
82144         * lib/unicase/u8-ct-toupper.c: New file.
82145         * modules/unicase/u8-ct-toupper: New file.
82147         Add context arguments to u*_casemap functions.
82148         * lib/unicase/unicasemap.h: Include unicase.h.
82149         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
82150         suffix_context arguments.
82151         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
82152         functions.
82153         (FUNC): Add prefix_context and suffix_context arguments. Use
82154         uc_is_cased and uc_is_case_ignorable.
82155         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
82156         * lib/unicase/u16-casemap.c: Likewise.
82157         * lib/unicase/u32-casemap.c: Likewise.
82158         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
82159         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
82160         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
82161         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
82162         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
82163         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
82165         New module 'unicase/u32-suffix-context'.
82166         * lib/unicase/u32-suffix-context.c: New file.
82167         * modules/unicase/u32-suffix-context: New file.
82169         New module 'unicase/u16-suffix-context'.
82170         * lib/unicase/u16-suffix-context.c: New file.
82171         * modules/unicase/u16-suffix-context: New file.
82173         New module 'unicase/u8-suffix-context'.
82174         * lib/unicase/u8-suffix-context.c: New file.
82175         * lib/unicase/u-suffix-context.h: New file.
82176         * modules/unicase/u8-suffix-context: New file.
82178         New module 'unicase/empty-suffix-context'.
82179         * lib/unicase/empty-suffix-context.c: New file.
82180         * modules/unicase/empty-suffix-context: New file.
82182         New module 'unicase/u32-prefix-context'.
82183         * lib/unicase/u32-prefix-context.c: New file.
82184         * modules/unicase/u32-prefix-context: New file.
82186         New module 'unicase/u16-prefix-context'.
82187         * lib/unicase/u16-prefix-context.c: New file.
82188         * modules/unicase/u16-prefix-context: New file.
82190         New module 'unicase/u8-prefix-context'.
82191         * lib/unicase/u8-prefix-context.c: New file.
82192         * lib/unicase/u-prefix-context.h: New file.
82193         * lib/unicase/context.h: New file.
82194         * modules/unicase/u8-prefix-context: New file.
82196         New module 'unicase/empty-prefix-context'.
82197         * lib/unicase/empty-prefix-context.c: New file.
82198         * modules/unicase/empty-prefix-context: New file.
82200         New module 'unicase/ignorable'.
82201         * lib/unicase/ignorable.c: New file.
82202         * modules/unicase/ignorable: New file.
82204         New module 'unicase/cased'.
82205         * lib/unicase/caseprop.h: New file.
82206         * lib/unicase/cased.c: New file.
82207         * modules/unicase/cased: New file.
82209         New functions for case mapping of substrings.
82210         * lib/unicase.h (casing_prefix_context_t): New type.
82211         (unicase_empty_prefix_context): New variable.
82212         (u8_casing_prefix_context, u16_casing_prefix_context,
82213         u32_casing_prefix_context, u8_casing_prefixes_context,
82214         u16_casing_prefixes_context, u32_casing_prefixes_context): New
82215         declarations.
82216         (casing_suffix_context_t): New type.
82217         (unicase_empty_suffix_context): New variable.
82218         (u8_casing_suffix_context, u16_casing_suffix_context,
82219         u32_casing_suffix_context, u8_casing_suffixes_context,
82220         u16_casing_suffixes_context, u32_casing_suffixes_context,
82221         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
82222         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
82223         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
82224         declarations.
82226 2009-06-28  Jim Meyering  <meyering@redhat.com>
82228         boostrap: indent only with spaces
82229         * build-aux/bootstrap: Indent only with spaces, never TABs.
82231         bootstrap: split long lines
82232         * build-aux/bootstrap: Keep line length < 80.
82234         bootstrap: sync from coreutils
82235         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
82236         just as autoreconf does.  Verify a list of prerequisite
82237         package-name,version-number pairs if defined in bootstrap.conf.
82238         Refer to README-prereq, if prerequisites are not satisfied.
82240 2009-06-27  Eric Blake  <ebb9@byu.net>
82242         tests: add test for bogus NULL definition
82243         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
82244         * tests/test-stdlib.c: Likewise.
82245         * tests/test-string.c: Likewise.
82246         * tests/test-locale.c: Likewise.
82247         * tests/test-unistd.c: Likewise.
82248         * modules/stdio-tests (Depends-on): Add verify.
82249         * modules/stdlib-tests (Depends-on): Likewise.
82250         * modules/string-tests (Depends-on): Likewise.
82251         * modules/locale-tests (Depends-on): Likewise.
82252         * modules/unistd-tests (Depends-on): Likewise.
82254 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
82256         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
82257         self-explaining comment.
82258         * m4/selinux-selinux-h: Update serial.
82259         (gl_LIBSELINUX): New macro, adding a warning for missing development
82260         packages to code extracted from...
82261         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
82262         Add warning for missing development packages here, too.
82264 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
82266         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
82268 2009-06-25  Eric Blake  <ebb9@byu.net>
82270         version-etc: fix regression
82271         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
82272         gcc.
82273         (version_etc): Use it, to catch bugs with trailing NULL.
82274         * lib/version-etc.c (version_etc_arn): Delete unused argument.
82275         (version_etc_va): Fix logic bug.
82276         * modules/version-etc-tests: Add test.
82277         * tests/test-version-etc.c: New file.
82278         * tests/test-version-etc.sh: Likewise.
82280 2009-06-25  Sam Steingold  <sds@gnu.org>
82282         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
82283         mbtowc declaration.
82285 2009-06-25  Eric Blake  <ebb9@byu.net>
82287         fpurge: migrate into <stdio.h>
82288         * lib/fpurge.h: Delete...
82289         * lib/stdio.in.h (fpurge): ...and declare here, instead.
82290         * lib/fpurge.c (fpurge): Change declaring header.
82291         * modules/fpurge (Files): Drop deleted file.
82292         (Depends-on): Add stdio.
82293         (configure.ac): Set witness.
82294         * modules/stdio (Makefile.am): Support fpurge macros.
82295         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
82296         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
82297         * lib/fflush.c: Update client.
82298         * tests/test-fpurge.c: Likewise.
82299         * NEWS: Mention the change.
82301 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82303         * lib/argp-version-etc.c (program_authors): Add const
82304         qualifier.
82305         * lib/version-etc.c: Fix typos in the comments.
82306         * modules/argp-version-etc: Depends on version-etc.
82308 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82310         argp-version-etc: new module.
82312         * lib/argp-version-etc.c: New file.
82313         * lib/argp-version-etc.h: New file.
82314         * modules/argp-version-etc: New file.
82315         * modules/argp-version-etc-tests: New file.
82316         * tests/test-argp-version-etc.c: New test.
82317         * tests/test-argp-version-etc-1.sh: New test.
82319 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82321         Provide additional interfaces and documentation for version-etc
82322         module.
82324         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
82325         interfaces.
82326         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
82327         prototypes.
82329 2009-06-24  Bruno Haible  <bruno@clisp.org>
82331         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
82332         HAVE_LIB${NAME} macro.
82333         Reported by Sam Steingold <sds@gnu.org>.
82335 2009-06-23  Simon Josefsson  <simon@josefsson.org>
82337         * modules/hash-tests (test_hash_LDADD): Link to libintl when
82338         needed.
82340 2009-06-21  Bruno Haible  <bruno@clisp.org>
82342         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
82343         work.
82344         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
82345         together with LIB${NAME}, LTLIB${NAME}.
82346         Reported by Sam Steingold <sds@gnu.org>.
82348 2009-06-20  Jim Meyering  <meyering@redhat.com>
82350         tests: make sc_require_test_exit_idiom more generic
82351         * top/maint.mk (Exit_witness_file): New overridable variable.
82352         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
82353         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
82355 2009-06-19  Jim Meyering  <meyering@redhat.com>
82357         hash: reverse order of src/dst parameters in an internal interface
82358         * lib/hash.c (transfer_entries): Reverse order of parameters to
82359         put DST before SRC.  Adjust callers.
82361         tests: test-hash: avoid wholesale duplication
82362         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
82363         Instead, use a loop and add a single conditional.
82365         tests: test-hash: allow seed selection via a command line argument
82366         * tests/test-hash.c (get_seed): New function.
82367         (main): Use it.
82369 2009-06-19  Eric Blake  <ebb9@byu.net>
82371         hash: avoid memory leak on allocation failure
82372         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
82373         failure.  Factor repeated algorithm...
82374         (transfer_entries): ...into new helper routine.
82375         (hash_delete): React to hash_rehash return value.
82377         hash: reduce memory pressure in hash_rehash no-op case
82378         * lib/hash.c (next_prime): Avoid overflow.
82379         (hash_initialize): Factor bucket size computation...
82380         (compute_bucket_size): ...into new helper function.
82381         (hash_rehash): Use new function and open coding to reduce memory
82382         pressure, and avoid a memory leak in USE_OBSTACK code.
82383         Reported by Jim Meyering.
82385 2009-06-18  Eric Blake  <ebb9@byu.net>
82387         hash: make rotation more obvious
82388         * modules/hash (Depends-on): Add bitrotate and stdint.
82389         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
82390         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
82391         (SIZE_MAX): Rely on headers for definition.
82392         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
82393         (raw_hasher): Use rotr_sz.
82394         Suggested by Jim Meyering.
82396         hash: fix memory leak in last patch
82397         * lib/hash.c (hash_rehash): Avoid memory leak.
82399         hash: avoid no-op rehashing
82400         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
82402         hash: provide default callback functions
82403         * lib/hash.c (raw_hasher, raw_comparator): New functions.
82404         (hash_initialize): Use them as defaults.
82405         * tests/test-hash.c (main): Test this.
82407         hash: minor optimization
82408         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
82409         when possible.
82410         (hash_initialize): Document this promise.
82411         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
82412         * tests/test-hash.c (hash_compare_strings): Test this.
82414 2009-06-18  Bruno Haible  <bruno@clisp.org>
82416         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
82417         going to be replaced anyway.
82419 2009-06-18  Bruno Haible  <bruno@clisp.org>
82421         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
82422         in one place.
82423         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
82424         be replaced anyway.
82426 2009-06-18  Eric Blake  <ebb9@byu.net>
82428         hash: check for resize before insertion
82429         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
82430         threshold before insertion, so that a pathological hash_rehash
82431         that fills every bucket can still trigger another rehash.
82433 2009-06-18  Jim Meyering  <meyering@redhat.com>
82435         hash-tests: add a loop around the small tests
82436         * tests/test-hash.c (main): Repeat small tests with selected
82437         small initial table sizes.
82439 2009-06-17  Eric Blake  <ebb9@byu.net>
82441         hash: minor cleanups
82442         * lib/hash.h (hash_entry): Make opaque, by moving...
82443         * lib/hash.c (hash_entry): ...here.
82444         (hash_insert): Clarify restrictions on what can be inserted.
82445         (hash_get_next): Clarify when it is safe to remove an element
82446         during traversal.
82447         (check_tuning): Skip verification when tuning is known safe.
82448         (hash_initialize): Clarify restrictions on tuning.
82450 2009-06-17  Jim Meyering  <jim@meyering.net>
82451         and Eric Blake  <ebb9@byu.net>
82453         hash-tests: new module
82454         * modules/hash-tests: New file.
82455         * tests/test-hash.c: New file.
82457 2009-06-17  Eric Blake  <ebb9@byu.net>
82459         strstr-simple: document new module
82460         * MODULES.html.sh: Document new module.
82462         strstr, strcasestr: replace on platforms with broken memchr
82463         * modules/strstr: Split into...
82464         * modules/strstr-simple: ...new module that does not care about
82465         performance, but does care about glibc bug.
82466         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
82467         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
82468         if platform memchr is broken, per Debian bug 521737.
82469         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
82470         memchr.
82471         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
82472         * doc/posix-functions/strstr.texi (strstr): Document the fix.
82473         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
82474         * modules/mountlist (Depends-on): Add strstr-simple.
82475         * modules/gen-uni-tables (Depends-on): Likewise.
82476         * modules/argz (Depends-on): Add strstr.
82478 2009-06-17  Bruno Haible  <bruno@clisp.org>
82480         * modules/posix_spawn-internal (Depends-on): Add errno.
82482 2009-06-17  Bruno Haible  <bruno@clisp.org>
82484         Define missing ESTALE on Interix 3.5.
82485         * lib/errno.in.h (ESTALE): Assign a value if missing.
82486         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
82487         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
82488         missing.
82489         * doc/posix-headers/errno.texi: Mention the Interix bug.
82490         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
82492 2009-06-15  Eric Blake  <ebb9@byu.net>
82494         memchr, memchr2: add valgrind exception
82495         * lib/memchr.valgrind: New file.
82496         * lib/memchr2.valgrind: New file.
82497         * modules/memchr (Files): Distribute valgrind file.
82498         * modules/memchr2 (Files): Likewise.
82500         docs: memchr is no longer obsolete
82501         * MODULES.html.sh: Move memchr from obsolete to string.h section.
82502         * lib/string.in.h (memchr): Simplify logic.
82504 2009-06-14  Jim Meyering  <meyering@redhat.com>
82506         link-follow: fix the "checking..." message to not mention trailing slash
82507         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
82508         never considered trailing slashes.
82510 2009-06-14  Bruno Haible  <bruno@clisp.org>
82512         * m4/memchr.m4: Mention also the bug on IA-64.
82513         * doc/posix-functions/memchr.texi: Likewise.
82515 2009-06-12  Eric Blake  <ebb9@byu.net>
82517         memchr: detect broken x86_64 and alpha implementations
82518         * modules/memchr-tests (Depends-on): Move mmap detection...
82519         * modules/memchr (Depends-on): ...here.
82520         (configure.ac): Set indicator.
82521         * lib/string.in.h (memchr): Declare replacement.
82522         * modules/string (Makefile.am): Trigger replacement.
82523         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
82524         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
82525         bugs.
82526         * doc/posix-functions/memchr.texi (memchr): Document the bug.
82527         * modules/getpagesize (License): Relax license.
82529 2009-06-11  Bruno Haible  <bruno@clisp.org>
82531         * lib/idpriv.h: Add more references.
82533 2009-06-08  Bruno Haible  <bruno@clisp.org>
82535         Tests for module 'idpriv-droptemp'.
82536         * modules/idpriv-droptemp-tests: New file.
82537         * tests/test-idpriv-droptemp.sh: New file.
82538         * tests/test-idpriv-droptemp.su.sh: New file.
82539         * tests/test-idpriv-droptemp.c: New file.
82541         New module 'idpriv-droptemp'.
82542         * lib/idpriv-droptemp.c: New file.
82543         * modules/idpriv-droptemp: New file.
82545 2009-06-08  Bruno Haible  <bruno@clisp.org>
82547         Tests for module 'idpriv-drop'.
82548         * modules/idpriv-drop-tests: New file.
82549         * tests/test-idpriv-drop.sh: New file.
82550         * tests/test-idpriv-drop.su.sh: New file.
82551         * tests/test-idpriv-drop.c: New file.
82553         New module 'idpriv-drop'.
82554         * lib/idpriv.h: New file.
82555         * lib-idpriv-drop.c: New file.
82556         * m4/idpriv.m4: New file.
82557         * modules/idpriv-drop: New file.
82559 2009-06-08  Bruno Haible  <bruno@clisp.org>
82561         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
82562         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
82563         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
82564         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
82565         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
82566         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
82567         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
82569 2009-06-08  Eric Blake  <ebb9@byu.net>
82571         test-strstr: use memory fence, when possible
82572         * tests/test-strstr.c (main): Use memory fence, in order to be
82573         more likely to trigger Debian bug 521737.
82574         * modules/strstr-tests (Files): Pull in additional files.
82576         memchr: no longer obsolete, for wider field testing
82577         * modules/memchr (Status, Notice): Delete, this module is no
82578         longer obsolete.
82579         * modules/vasnprintf (Depends-on): Add memchr.
82581 2009-06-07  Jim Meyering  <meyering@redhat.com>
82583         hash: declare some functions with the warn_unused_result attribute
82584         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
82586 2009-06-07  Bruno Haible  <bruno@clisp.org>
82588         * tests/test-alignof.c: Don't test int64_t if it does not exist.
82589         Reported by Eric Blake.
82591 2009-06-06  Eric Blake  <ebb9@byu.net>
82593         test-alignof: fix typo with long double
82594         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
82595         compiler error.
82597 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
82599         Escape non-texinfo { and }s.
82600         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
82601         markup error.
82603 2009-06-04  Jim Meyering  <meyering@redhat.com>
82605         gitlog-to-changelog: don't infloop on an empty commit log
82606         * build-aux/gitlog-to-changelog: Warn about an empty log message.
82607         Reported by Boris Petersen <transacid@centerim.org>.
82609 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
82611         version-etc: extend for packagers
82612         Add three new configure options, intended for packagers:
82613           --with-packager="packager name"
82614           --with-packager-version="packager-specific version"
82615           --with-packager-bug-reports="packager bug reporting"
82616         An example with coreutils:
82617           $ ./configure \
82618             --with-packager=Gentoo \
82619             --with-packager-bug-report=http://bugs.gentoo.org/ \
82620             --with-packager-version="patchset 1.6"
82621           $ ./src/ls --version | head -n2
82622           ls (GNU coreutils) 7.1-dirty
82623           Packaged by Gentoo (patchset 1.6)
82624         Note that the bug reporting info via --help doesn't show up because
82625         coreutils uses its own custom emit_bug_reporting_address() implementation
82626         in src/system.h.  If it didn't, it'd look like:
82627           $ ./src/ls --help | tail -n4
82628           Report bugs to <bug-coreutils@gnu.org>.
82629           Report Gentoo bugs to <http://bugs.gentoo.org/>.
82630           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
82631           General help using GNU software: <http://www.gnu.org/gethelp/>.
82632         * lib/version-etc.c: Print new information, if provided.
82633         * m4/version-etc.m4: New file.
82634         * modules/version-etc (Files): Add m4/version-etc.m4.
82635         (configure.ac): Add gl_VERSION_ETC.
82637 2009-05-31  Bruno Haible  <bruno@clisp.org>
82639         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
82640         and 'int64_t'.
82641         * modules/alignof-tests (Dependencies): Add stdint.
82642         Reported by Eric Blake.
82644 2009-05-31  Bruno Haible  <bruno@clisp.org>
82646         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
82647         restriction due to compiler bugs.
82648         Reported by Eric Blake.
82650 2009-05-31  Simon Josefsson  <simon@josefsson.org>
82651             Bruno Haible  <bruno@clisp.org>
82653         Fix test-alignof failure.
82654         * lib/alignof.h (alignof_slot): New macro.
82655         (alignof_type): New macro, with the same semantics as the previous
82656         'alignof'.
82657         (alignof): Alias to alignof_slot.
82658         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
82659         check that the results are usable as constant expressions.
82661 2009-05-31  Bruno Haible  <bruno@clisp.org>
82663         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
82664         * tests/test-memchr.c (main): Check that memchr does not read past the
82665         first occurrence of the byte.
82666         * tests/test-strstr.c (main): Update comment.
82667         Suggested by Eric Blake.
82669 2009-05-30  Bruno Haible  <bruno@clisp.org>
82671         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
82672         detail how to use dumpbin.
82673         Reported by David Byron <dbyron@dbyron.com>.
82675 2009-06-02  Simon Josefsson  <simon@josefsson.org>
82677         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
82679 2009-06-02  Simon Josefsson  <simon@josefsson.org>
82681         * m4/manywarnings.m4: Add GCC 4.4 warnings.
82683 2009-05-28  Bruno Haible  <bruno@clisp.org>
82685         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
82686         build-aux/ files.
82688 2009-05-28  Simon Josefsson  <simon@josefsson.org>
82690         * gnulib-tool (func_import): Transform license on build-aux/ files too.
82692 2009-05-27  Simon Josefsson  <simon@josefsson.org>
82694         * gnulib-tool (sed_transform_main_lib_file)
82695         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
82696         regexps.
82698 2009-05-26  Simon Josefsson  <simon@josefsson.org>
82700         * tests/test-strstr.c: Add another self-test.
82701         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
82702         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
82704 2009-05-23  Bruno Haible  <bruno@clisp.org>
82706         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
82707         change.
82709 2009-05-21  Bruno Haible  <bruno@clisp.org>
82711         Simplify use of mode_t varargs.
82712         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
82713         uses 'mode_t' or 'int'.
82714         * lib/openat.c (openat): Likewise.
82715         * lib/open-safer.c (open_safer): Likewise.
82716         * m4/mode_t.m4: New file.
82717         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
82718         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
82719         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
82720         * modules/open (Files): Add m4/mode_t.m4.
82721         * modules/openat (Files): Likewise.
82722         * modules/fcntl-safer (Files): Likewise.
82723         Suggested by Eric Blake.
82725 2009-05-21  Pádraig Brady  <P@draigbrady.com>
82727         * doc/glibc-functions/fallocate.texi: New file.
82728         * doc/gnulib.texi: Include it.
82730 2009-05-21  Eric Blake  <ebb9@byu.net>
82731             Bruno Haible  <bruno@clisp.org>
82733         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
82734         invocations.
82735         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
82737 2009-05-21  Eric Blake  <ebb9@byu.net>
82738             Bruno Haible  <bruno@clisp.org>
82740         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
82741         include_next. Fix of 2008-11-20 commit.
82742         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
82743         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
82744         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
82745         NEXT_MATH_H.
82746         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
82747         instead of NEXT_MATH_H.
82749 2009-05-21  Bruno Haible  <bruno@clisp.org>
82751         Avoid redefinition warnings for SIZE_MAX.
82752         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
82753         Reported by Simon Josefsson.
82755 2009-05-21  Bruno Haible  <bruno@clisp.org>
82757         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
82758         AC_CACHE_VAL.
82760 2009-05-20  Bruno Haible  <bruno@clisp.org>
82762         Make zeroptr.h work on mingw.
82763         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
82764         mprotect.
82765         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
82766         * modules/memchr2-tests (configure.ac): Likewise.
82767         * modules/memcmp-tests (configure.ac): Likewise.
82768         * modules/memmem-tests (configure.ac): Likewise.
82769         * modules/memrchr-tests (configure.ac): Likewise.
82770         Reported by Simon Josefsson.
82772 2009-05-20  Simon Josefsson  <simon@josefsson.org>
82774         * tests/test-glob.c: Include string.h for strcmp prototype.
82776 2009-05-20  Simon Josefsson  <simon@josefsson.org>
82778         * modules/getdelim (Depends-on): Add explicit stdint, although it
82779         was implicitly already pulled in via realloc-posix.
82780         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
82782 2009-05-20  Simon Josefsson  <simon@josefsson.org>
82784         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
82785         G. Christensen" <tgc@jupiterrise.com>.
82786         * m4/sys_socket_h.m4: Check for sa_family_t.
82787         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
82788         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
82789         * tests/test-sys_socket.c: Check that sa_family_t works.
82791 2009-05-18  Eric Blake  <ebb9@byu.net>
82793         maint.mk: allow gnulib_dir in VPATH build
82794         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
82796 2009-05-15  Jim Meyering  <meyering@redhat.com>
82798         maint.mk: Give gnulib_dir a default definition.
82799         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
82800         Thus, most packages no longer need to specify this variable in cfg.mk
82802 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
82804         rename.m4: fix typos that would make non-mingw cross-configure fail
82805         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
82807 2009-05-13  Eric Blake  <ebb9@byu.net>
82809         mmap-anon: avoid out-of-order autoconf expansion
82810         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
82811         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
82812         * modules/memchr-tests (Depends-on): Add extensions.
82813         * modules/memchr2-tests (Depends-on): Add extensions.
82814         * modules/memcmp-tests (Depends-on): Add extensions.
82815         * modules/memmem-tests (Depends-on): Add extensions.
82816         * modules/memrchr-tests (Depends-on): Add extensions.
82818 2009-05-13  Bruno Haible  <bruno@clisp.org>
82820         Make some tests ISO C 99 compliant.
82821         * tests/zerosize-ptr.h: New file.
82822         * tests/test-memchr.c: Include zerosize-ptr.h.
82823         (main): Use a zero-size object pointer instead of NULL.
82824         * tests/test-memchr2.c: Include zerosize-ptr.h.
82825         (main): Use a zero-size object pointer instead of NULL.
82826         * tests/test-memcmp.c: Include zerosize-ptr.h.
82827         (main): Use a zero-size object pointer instead of NULL.
82828         * tests/test-memmem.c: Include zerosize-ptr.h.
82829         (main): Use a zero-size object pointer instead of NULL.
82830         * tests/test-memrchr.c: Include zerosize-ptr.h.
82831         (main): Use a zero-size object pointer instead of NULL.
82832         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
82833         m4/mmap-anon.m4.
82834         (Depends-on): Add getpagesize.
82835         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82836         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
82837         m4/mmap-anon.m4.
82838         (Depends-on): Add getpagesize.
82839         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82840         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
82841         m4/mmap-anon.m4.
82842         (Depends-on): Add getpagesize.
82843         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82844         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
82845         m4/mmap-anon.m4.
82846         (Depends-on): Add getpagesize.
82847         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82848         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
82849         m4/mmap-anon.m4.
82850         (Depends-on): Add getpagesize.
82851         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82853 2009-05-12  Bruno Haible  <bruno@clisp.org>
82855         Tests for module 'alignof'.
82856         * modules/alignof-tests: New file.
82857         * tests/test-alignof.c: New file.
82859 2009-05-12  Bruno Haible  <bruno@clisp.org>
82861         Fix alignof macro.
82862         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
82863         vendor compilers that are always correct.
82865 2009-05-12  Bruno Haible  <bruno@clisp.org>
82867         Make the MAP_ANONYMOUS detection work on HP-UX 11.
82868         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
82869         not whether its fully works.
82871 2009-05-12  Bruno Haible  <bruno@clisp.org>
82873         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
82875 2009-05-12  Jim Meyering  <meyering@redhat.com>
82877         * top/maint.mk: Adjust backslash alignment.
82879 2009-05-11  Simon Josefsson  <simon@josefsson.org>
82881         * top/maint.mk: Make $(srcdir)/build-aux configurable.
82883 2009-05-11  Eric Blake  <ebb9@byu.net>
82885         argp: avoid undefined behavior
82886         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
82887         macros.
82889 2009-05-08  Simon Josefsson  <simon@josefsson.org>
82891         * tests/test-vc-list-files-git.sh: Do git config of user.email and
82892         user.name to prevent git commit from complaining.
82894 2009-05-10  Bruno Haible  <bruno@clisp.org>
82896         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
82897         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
82898         it rewrites every file name only once.
82899         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
82901 2009-05-08  Bruno Haible  <bruno@clisp.org>
82903         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
82904         instead of 'max'.
82906 2009-05-08  Simon Josefsson  <simon@josefsson.org>
82908         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
82909         sockaddr_storage test.
82911 2009-05-07  Simon Josefsson  <simon@josefsson.org>
82913         * modules/sys_socket (Makefile.am): Substitute
82914         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
82915         * m4/sys_socket_h.m4: Check for sockaddr_storage.
82916         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
82917         * tests/test-sys_socket.c: Check sockaddr_storage.
82919 2009-05-08  Bruno Haible  <bruno@clisp.org>
82921         New module 'alignof'.
82922         * lib/alignof.h: New file.
82923         * modules/alignof: New file.
82925 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
82926             Bruno Haible  <bruno@clisp.org>
82928         Fix test-file-has-acl on FreeBSD.
82929         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
82930         mask is implicitly added.
82931         * tests/test-file-has-acl.c: Include <signal.h>.
82932         (main): Terminate the test after 5 seconds.
82933         * modules/acl-tests (configure.ac): Check for alarm function.
82935 2009-05-04  Bruno Haible  <bruno@clisp.org>
82937         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
82938         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
82939         * modules/errno (configure.ac): Drop AC_REQUIRE.
82940         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
82941         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
82943 2009-05-04  Simon Josefsson  <simon@josefsson.org>
82945         * modules/glob-tests: New module.
82946         * tests/test-glob.c: Add.
82948 2009-05-04  Simon Josefsson  <simon@josefsson.org>
82950         * modules/fnmatch-tests: New module.
82951         * tests/test-fnmatch.c: Add.
82953 2009-05-04  Eric Blake  <ebb9@byu.net>
82955         maint: make the new no-submodule-changes rule VPATH-safe
82956         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
82958 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
82959             Bruno Haible  <bruno@clisp.org>
82961         acl: Fix infinite loop on FreeBSD.
82962         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
82963         of return value from acl_get_entry.
82964         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
82965         Likewise.
82967 2009-05-03  Bruno Haible  <bruno@clisp.org>
82969         * lib/acl-internal.h (acl_entries): Clarify return value.
82970         * lib/acl_entries.c (acl_entries): Likewise.
82972 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
82974         Bug fix in acl module.
82975         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
82977 2009-05-03  Bruno Haible  <bruno@clisp.org>
82979         Create gperf-generated file in the source dir, not in the build dir.
82980         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
82981         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
82982         * modules/unicase/locale-language (unicase/locale-languages.h):
82983         Likewise.
82984         * modules/unicase/special-casing (unicase/special-casing-table.h):
82985         Likewise.
82986         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
82987         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
82988         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
82989         Reported by Ralf Wildenhues.
82991 2009-05-03  Bruno Haible  <bruno@clisp.org>
82993         * modules/fnmatch (Description, configure.ac): Taken from
82994         fnmatch-posix.
82995         * modules/fnmatch-posix: Turn into a symbolic reference to the
82996         'fnmatch' module, and deprecate.
82997         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
82999 2009-05-03  Bruno Haible  <bruno@clisp.org>
83001         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
83002         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
83003         Reported by Ralf Wildenhues.
83005 2009-05-04  Simon Josefsson  <simon@josefsson.org>
83007         * m4/fnmatch.m4: Fix fnmatch re-define.
83009 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
83011         priv-set: new module and tests; adapt write-any-file
83012         * lib/priv-set.c: New file.
83013         * lib/priv-set.h: New file.
83014         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
83015         * lib/write-any-file.c: Simplify by using priv-set module.
83016         * m4/priv-set.m4: New file.
83017         * modules/priv-set: New file.
83018         * modules/unlinkdir: Add dependency on priv-set module.
83019         * modules/write-any-file: Likewise.
83021         Tests for module 'priv-set'.
83022         * modules/priv-set-tests: New file.
83023         * tests/test-priv-set.c: New file.
83025 2009-05-03  Jim Meyering  <meyering@redhat.com>
83026             Bruno Haible  <bruno@clisp.org>
83028         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
83029         use the converted UTF-8 variant of the name instead.
83031 2009-05-03  Jim Meyering  <meyering@redhat.com>
83033         tests: tighten some getdate tests
83034         * tests/test-getdate.c (main): Tighten tests: require equality,
83035         not just greater than.  Set TZ envvar to UTC0.
83037 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
83039         getdate: correctly interpret "next monday" when run on a Monday
83040         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
83041         that e.g., "next tues" (when run on a tuesday) results in a date
83042         that is one week in the future, and not today's date.
83043         I.e., add a week when the wday is the same as the current one.
83044         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
83045         and earlier by Martin Bernreuther and Jan Minář.
83046         * tests/test-getdate.c (main): Check that "next DAY" is always in
83047         the future and that "last DAY" is always in the past.
83049 2009-05-02  Jim Meyering  <meyering@redhat.com>
83051         build: ensure that a release build fails when a submodule is unclean
83052         * top/maint.mk (no-submodule-changes): New rule.
83053         (alpha beta major): Depend on it.
83055 2009-05-02  Bruno Haible  <bruno@clisp.org>
83057         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
83058         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
83059         shell variable gl_fnmatch_required to detect which variant is
83060         requested.
83061         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
83062         gl_FUNC_FNMATCH_POSIX.
83063         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
83064         exclude fnmatch-posix.
83066 2009-05-02  Bruno Haible  <bruno@clisp.org>
83068         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
83069         * modules/mbsrtowcs (License): Change to LGPLv2+.
83070         * modules/strnlen1 (License): Likewise.
83071         Reported by Simon Josefsson.
83073 2009-05-02  Bruno Haible  <bruno@clisp.org>
83075         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
83076         "cross".
83077         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
83078         gnulib-tool was called with option --source-base=lib.
83080 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83082         Use automake *-local hooks without commands, for extensibility.
83083         * modules/localcharset (Makefile.am): Rename install-exec-local
83084         rule to install-exec-localcharset, and make it a prerequisite of
83085         install-exec-local.  Likewise, rename the uninstall-local rule to
83086         uninstall-localcharset, and make it a prerequisite of the former.
83088 2009-05-01  Bruno Haible  <bruno@clisp.org>
83090         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
83091         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
83092         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
83093         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
83094         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
83095         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
83096         m4/locale-zh.m4, m4/codeset.m4.
83098         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
83099         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
83100         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
83101         m4/locale-zh.m4.
83103         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
83104         REPLACE_WCRTOMB if mbstate_t must be replaced.
83105         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
83106         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
83108 2009-05-01  Bruno Haible  <bruno@clisp.org>
83110         Avoid compiler warnings when redefining macros defined by <libintl.h>.
83111         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
83112         dngettext, dcngettext, textdomain, bindtextdomain,
83113         bind_textdomain_codeset): Undefine before redefining.
83115 2009-04-30  Bruno Haible  <bruno@clisp.org>
83117         Fix bug introduced on 2009-04-25.
83118         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
83119         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
83120         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
83121         is defined.
83122         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
83123         is defined.
83124         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
83125         is defined.
83126         Reported by Elbert_Pol <elbert.pol@gmail.com>.
83128 2009-04-28  Bruno Haible  <bruno@clisp.org>
83130         Comment tweaks.
83131         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
83132         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
83133         * lib/unicase.h (u*_casexfrm): Likewise.
83134         Reported by Paolo Bonzini.
83136 2009-04-28  Bruno Haible  <bruno@clisp.org>
83138         Fix a compilation error.
83139         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
83140         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
83141         Reported by Jim Meyering.
83143 2009-04-27  Bruno Haible  <bruno@clisp.org>
83145         New module 'libunistring'.
83146         * modules/libunistring: New file.
83147         * m4/libunistring.m4: New file.
83148         * MODULES.html.sh (Unicode string functions): Add it.
83150 2009-04-27  Eric Blake  <ebb9@byu.net>
83152         maint.mk: allow package-specific header to provide <config.h>
83153         * top/maint.mk (sc_require_config_h): New variable.
83154         (sc_require_config_h, sc_require_config_h_first): Use it.
83156 2009-04-27  Simon Josefsson  <simon@josefsson.org>
83158         * top/maint.mk (sc_avoid_if_before_free): Except
83159         useless-if-before-free script.
83161 2009-04-27  Eric Blake  <ebb9@byu.net>
83163         maintainer-makefile: depend on all required helper scripts
83164         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
83165         useless-if-before-free.
83166         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
83167         version, rather than assuming gnulib checkout is available.
83168         Reported by Simen Josefsson.
83170 2009-04-26  Bruno Haible  <bruno@clisp.org>
83172         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
83173         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
83174         "../" or "..".
83176 2009-04-26  Bruno Haible  <bruno@clisp.org>
83178         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
83179         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
83180         AC_LIB_HAVE_LINKFLAGS.
83182 2009-04-26  Bruno Haible  <bruno@clisp.org>
83184         Simplify calling convention of u*_conv_from_encoding.
83185         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
83186         u32_conv_from_encoding): Expect a resultbuf argument and return the
83187         result directly as a pointer.
83188         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
83189         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
83190         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
83191         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
83192         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
83193         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
83194         Update.
83195         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
83196         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
83197         * lib/vasnprintf.c (VASNPRINTF): Update.
83198         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
83199         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
83200         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
83201         * NEWS: Mention the change.
83203 2009-04-26  Bruno Haible  <bruno@clisp.org>
83205         Simplify calling convention of u*_conv_to_encoding.
83206         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
83207         u32_conv_to_encoding): Expect a resultbuf argument and return the
83208         result directly as a pointer.
83209         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
83210         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
83211         freeing scaled_offsets if mem_iconveha failed.
83212         * lib/unicase/u-casexfrm.h (FUNC): Update.
83213         * lib/uninorm/u-normxfrm.h (FUNC): Update.
83214         * lib/vasnprintf.c (VASNPRINTF): Update.
83215         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
83216         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
83217         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
83218         * NEWS: Mention the change.
83220 2009-04-26  Bruno Haible  <bruno@clisp.org>
83222         Avoid test failures on AIX and OSF/1.
83223         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
83224         malloc(0).
83225         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
83226         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
83227         Likewise.
83228         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
83229         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
83230         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
83231         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
83232         * doc/posix-functions/malloc.texi: Document the portability problem
83233         related to malloc(0).
83235 2009-04-26  Bruno Haible  <bruno@clisp.org>
83237         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
83238         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
83239         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
83241 2009-04-25  Bruno Haible  <bruno@clisp.org>
83243         Avoid link error when creating a namespace clean library.
83244         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
83245         as macro with arguments if already defined as an alias.
83246         * lib/signbitf.c (gl_signbitf): Don't undefine.
83247         * lib/signbitd.c (gl_signbitd): Don't undefine.
83248         * lib/signbitl.c (gl_signbitl): Don't undefine.
83250 2009-04-25  Jim Meyering  <meyering@redhat.com>
83252         vc-list-files: fix another quoting bug
83253         * build-aux/vc-list-files: Avoid sed backslash expansion
83254         of pathological directory names.
83256 2009-04-25  Eric Blake  <ebb9@byu.net>
83258         vc-list-files: fix shell quoting error
83259         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
83260         timestamp.
83262 2009-04-25  Jim Meyering  <meyering@redhat.com>
83264         vc-list-files: restore lost functionality with subdir argument
83265         * build-aux/vc-list-files: When given a non-"." sub-directory
83266         argument, substitute the $dir/ prefix back onto each resulting name.
83267         Otherwise, coreutils' root_tests check would fail.
83269 2009-04-24  Eric Blake  <ebb9@byu.net>
83271         vc-list-files: ignore git symlinks
83272         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
83273         than ls-files, to ignore git symlinks.
83275         maint.mk: import improvements from m4
83276         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
83277         (move_if_change): Delete unused macro.
83278         (news-date-check, vc-diff-check): Support VPATH builds.
83279         (announcement): Likewise.  Split --bootstrap-tools list...
83280         (boostrap-tools): ...into separate list, which can be overridden
83281         in cfg.mk.
83282         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
83283         requiring dependency on useless-if-before-free module.
83284         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
83285         Support VPATH builds.
83287 2009-04-24  Jim Meyering  <meyering@redhat.com>
83289         maint.mk: remove coreutils-specific rules and variables
83290         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
83291         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
83292         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
83294         maint.mk: remove obsolete rule
83295         * top/maint.mk (rel-check): Remove rule.
83296         (WGET, WGETFLAGS): Remove now-unused variables.
83298 2009-04-24  Simon Josefsson  <simon@josefsson.org>
83300         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
83301         consistency.
83303         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
83304         '$(PATH_SEPARATOR)' instead of ':'.
83306 2009-04-24  Simon Josefsson  <simon@josefsson.org>
83308         * lib/getopt1.c (main): Use 'const' for static array.
83310 2009-04-24  Simon Josefsson  <simon@josefsson.org>
83312         * top/maint.mk: Sync with coreutils.
83313         * NEWS: Explain incompatibilities.
83315 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83316             Bruno Haible  <bruno@clisp.org>
83318         Fix cross-compilation results.
83319         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
83320         statement, as third argument of AC_TRY_RUN.
83321         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
83322         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
83323         Likewise.
83324         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
83325         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
83326         Likewise.
83327         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
83328         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
83329         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
83331 2009-04-20  Bruno Haible  <bruno@clisp.org>
83333         Avoid test failure on mingw.
83334         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
83336 2009-04-20  Bruno Haible  <bruno@clisp.org>
83338         Avoid compilation error on mingw.
83339         * modules/localename-tests (Depends-on): Add locale.
83341 2009-04-19  Bruno Haible  <bruno@clisp.org>
83343         Support for building a shared library on Windows platforms.
83344         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
83345         (main): Test the presence of UNINORM_NFC here.
83346         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
83347         (main): Test the presence of UNINORM_NFD here.
83348         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
83349         (main): Test the presence of UNINORM_NFKC here.
83350         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
83351         (main): Test the presence of UNINORM_NFKD here.
83353 2009-04-19  Bruno Haible  <bruno@clisp.org>
83355         Avoid a compiler warning.
83356         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
83357         Change type of variable 'sequence'.
83359 2009-04-19  Bruno Haible  <bruno@clisp.org>
83361         * modules/configmake (Makefile.am): When the contents of configmake.h
83362         does not change, arrange to preserve its modification time.
83364 2009-04-17  Simon Josefsson  <simon@josefsson.org>
83366         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
83367         gettext domain.
83369 2009-04-16  Jim Meyering  <meyering@redhat.com>
83371         useless-if-before-free: improve conversion code
83372         * build-aux/useless-if-before-free: Adjust code-in-comment to match
83373         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
83375 2009-04-14  Bruno Haible  <bruno@clisp.org>
83377         * modules/fcntl (Depends-on): Add extensions.
83378         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
83380 2009-04-12  Ben Pfaff  <blp@gnu.org>
83382         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
83383         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
83385 2009-03-20  Ben Pfaff  <blp@gnu.org>
83387         Make rename replace existing destinations on Windows.
83388         * m4/rename.m4: Add test for Mingw.
83389         * lib/rename.c: Add rename replacement that uses MoveFileEx with
83390         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
83391         * doc/posix-functions/rename.texi: Document.
83393 2009-04-10  Bruno Haible  <bruno@clisp.org>
83395         New include file "iconveh.h".
83396         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
83397         * lib/striconveh.h: Include it.
83398         (enum iconv_ilseq_handler): Remove definition.
83399         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
83400         striconveh.h.
83401         * lib/striconveha.c: Include striconveh.h.
83402         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
83403         * modules/striconveh (Files): Add lib/iconveh.h.
83404         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
83405         lib/striconveh.h.
83407 2009-04-10  Bruno Haible  <bruno@clisp.org>
83409         * lib/uniconv.h: Update comment.
83411 2009-04-10  Bruno Haible  <bruno@clisp.org>
83413         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
83414         always.
83415         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
83416         * lib/unistr/u16-mbtouc-aux.c: Likewise.
83417         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
83418         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
83419         "unistring-notinline.h", so that the function gets defined always.
83420         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
83421         * lib/unistr/u8-uctomb.c: Likewise.
83422         * lib/unistr/u16-mbtouc.c: Likewise.
83423         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
83424         * lib/unistr/u16-uctomb.c: Likewise.
83425         * lib/unistr/u32-mbtouc.c: Likewise.
83426         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
83427         * lib/unistr/u32-uctomb.c: Likewise.
83429 2009-04-10  Bruno Haible  <bruno@clisp.org>
83431         Mark 'utime' obsolete.
83432         * modules/utime (Status, Notice): New sections.
83433         Suggested by Jim Meyering.
83435         Fix cross-compile guess for utime test.
83436         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
83437         autoconf.
83438         * doc/posix-functions/utime.texi: Give more precisions.
83439         Reported by Jan <ipif@ymail.com>.
83441 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
83443         filevercmp: correct today's change
83444         * lib/filevercmp.c: Also handle coreutils' test inputs.
83445         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
83447         Fix regression in 'filevercmp' module. Thanks Sven Joachim
83448         for reporting it.
83449         * lib/filevercmp.c: Special handle for "", "." and "..".
83450         * tests/test-filevercmp.c: Enlarge the set suite.
83452 2009-04-07  Jim Meyering  <meyering@redhat.com>
83454         useless-if-before-free: show how to remove braced useless free, too
83455         * build-aux/useless-if-before-free: still only in a comment, though.
83457 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
83459         maint.mk: import changes to syntax-check macros from coreutils
83460         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
83461         Use them in the relevant macros.
83463 2009-04-06  Bruno Haible  <bruno@clisp.org>
83465         Fix unportable use of bit-fields.
83466         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
83467         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
83468         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
83470 2009-04-06  Bruno Haible  <bruno@clisp.org>
83472         Avoid test failures on AIX and OSF/1.
83473         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
83474         that malloc(0) = NULL.
83475         * tests/unicase/test-u8-tolower.c (check): Likewise.
83476         * tests/unicase/test-u8-totitle.c (check): Likewise.
83477         * tests/unicase/test-u8-toupper.c (check): Likewise.
83478         * tests/unicase/test-u16-casefold.c (check): Likewise.
83479         * tests/unicase/test-u16-tolower.c (check): Likewise.
83480         * tests/unicase/test-u16-totitle.c (check): Likewise.
83481         * tests/unicase/test-u16-toupper.c (check): Likewise.
83482         * tests/unicase/test-u32-casefold.c (check): Likewise.
83483         * tests/unicase/test-u32-tolower.c (check): Likewise.
83484         * tests/unicase/test-u32-totitle.c (check): Likewise.
83485         * tests/unicase/test-u32-toupper.c (check): Likewise.
83486         * tests/uninorm/test-u8-nfc.c (check): Likewise.
83487         * tests/uninorm/test-u8-nfd.c (check): Likewise.
83488         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
83489         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
83490         * tests/uninorm/test-u16-nfc.c (check): Likewise.
83491         * tests/uninorm/test-u16-nfd.c (check): Likewise.
83492         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
83493         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
83494         * tests/uninorm/test-u32-nfc.c (check): Likewise.
83495         * tests/uninorm/test-u32-nfd.c (check): Likewise.
83496         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
83497         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
83499 2009-04-05  Bruno Haible  <bruno@clisp.org>
83501         Work around an autoconf limitation.
83502         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
83503         comment line if it would be longer than 3 KB.
83505 2009-04-05  Bruno Haible  <bruno@clisp.org>
83507         Avoid test failure with libiconv-1.13.
83508         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
83509         of the expected test results.
83511 2009-04-05  Bruno Haible  <bruno@clisp.org>
83513         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
83514         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
83515         that it should be installed.
83517 2009-04-05  Bruno Haible  <bruno@clisp.org>
83519         * gnulib-tool: New option --copy-file.
83520         (func_usage): Document it.
83521         (func_dest_tmpfilename): Moved out of func_import.
83522         (func_add_file, func_update_file): New functions, extracted from
83523         func_import.
83524         (func_import): Update.
83526 2009-04-05  Karl Berry  <karl@gnu.org>
83528         * README: prominently mention gnulib-tool.
83529         Rearrange sections so getting the code is near the top.
83531 2009-04-05  Bruno Haible  <bruno@clisp.org>
83533         * lib/unicase.h: Mention u*_cmp2.
83534         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
83535         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
83536         * lib/unicase/ulc-casecmp.c: Likewise.
83537         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
83538         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
83539         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
83540         unistr/u8-cmp.
83541         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
83542         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
83543         unistr/u16-cmp.
83544         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
83545         unistr/u32-cmp.
83547         * lib/uninorm.h: Mention u*_cmp2.
83548         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
83549         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
83550         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
83551         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
83552         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
83553         unistr/u8-cmp.
83554         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
83555         unistr/u16-cmp.
83556         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
83557         unistr/u32-cmp.
83559         New module 'unistr/u32-cmp2'.
83560         * lib/unistr/u32-cmp2.c: New file.
83561         * modules/unistr/u32-cmp2: New file.
83563         New module 'unistr/u16-cmp2'.
83564         * lib/unistr/u16-cmp2.c: New file.
83565         * modules/unistr/u16-cmp2: New file.
83567         New module 'unistr/u8-cmp2'.
83568         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
83569         * lib/unistr/u8-cmp2.c: New file.
83570         * lib/unistr/u-cmp2.h: New file.
83571         * modules/unistr/u8-cmp2: New file.
83573 2009-04-05  Bruno Haible  <bruno@clisp.org>
83575         * lib/unictype.h (uc_property_is_valid): New macro.
83576         * tests/unictype/test-pr_byname.c (main): Use it.
83578         * lib/unistr.h: Doc fixes.
83579         * lib/uniconv.h: Doc fixes.
83580         * lib/unictype.h: Doc fixes.
83582 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
83584         Port coreutils 7.2 to Solaris 8.
83586         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
83587         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
83588         for Solaris 8.  This is a bit of a hack, as it means it's the
83589         caller's responsibility to add -lnsl if needed, but most likely it
83590         won't be needed since only getaddrinfo uses this and getaddrinfo
83591         isn't needed on Solaris 8.
83593         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
83594         problem to Solaris 8 encountered with coreutils 7.2, which
83595         resulted in a message "fnmatch.c:292: warning: passing argument 4
83596         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
83597         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
83599 2009-04-03  Simon Josefsson  <simon@josefsson.org>
83601         * m4/ld-version-script.m4: Add FIXME comment.
83603 2009-04-02  Simon Josefsson  <simon@josefsson.org>
83605         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
83606         SOVERSION variable.
83608 2009-04-02  Bruno Haible  <bruno@clisp.org>
83610         * Makefile (info, html, dvi, pdf): Combine the rules.
83611         Suggested by Jim Meyering.
83613 2009-04-01  Bruno Haible  <bruno@clisp.org>
83615         * Makefile (info, html, dvi, pdf): New targets.
83616         Reported by Reuben Thomas <rrt@sc3d.org>.
83618 2009-04-01  Bruno Haible  <bruno@clisp.org>
83620         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
83621         can be put into PATH.
83622         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
83624 2009-04-01  Bruno Haible  <bruno@clisp.org>
83626         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
83628 2009-04-01  Bruno Haible  <bruno@clisp.org>
83630         Rename module 'visibility'.
83631         * modules/lib-symbol-visibility: Renamed from modules/visibility.
83632         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
83633         * doc/gnulib.texi: Update.
83634         * MODULES.html.sh (Misc): Update.
83635         * NEWS: Mention the change.
83637 2009-04-01  Simon Josefsson  <simon@josefsson.org>
83639         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
83640         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
83641         Eric Blake <ebb9@byu.net> for review.
83642         * MODULES.html.sh: Add lib-msvc-compat.
83643         * doc/gnulib.texi: Link to new section.
83644         * m4/ld-output-def.m4: New file.
83645         * doc/ld-output-def.texi: New file.
83647 2009-04-01  Simon Josefsson  <simon@josefsson.org>
83649         Rename ld-version-script to lib-symbol-versions.  Suggested by
83650         Bruno Haible <bruno@clisp.org>.
83651         * modules/ld-version-script: Renamed to lib-symbol-versions.
83652         * doc/ld-version-script.texi: Fix module name.
83653         * MODULES.html.sh: Add lib-symbol-versions.
83655 2009-03-31  Simon Josefsson  <simon@josefsson.org>
83657         * modules/u64-tests: New file.
83658         * tests/test-u64.c: New file.
83660 2009-03-04  Simon Josefsson  <simon@josefsson.org>
83662         * MODULES.html.sh: Mention u64.
83663         * modules/u64: New module.
83664         * modules/crypto/sha512: Depend on u64 module instead of providing
83665         u64.h.
83667 2009-03-27  Eric Blake  <ebb9@byu.net>
83669         test-strerror: make debugging EAI_SYSTEM easier
83670         * modules/getaddrinfo-tests (Depends-on): Add strerror.
83671         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
83672         failure was EAI_SYSTEM.
83674 2009-03-25  Bruno Haible  <bruno@clisp.org>
83676         Fix a problem with --enable-relocatable on Solaris 7.
83677         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
83678         since 2008-02-24.
83680 2009-03-25  Eric Blake  <ebb9@byu.net>
83682         test-sockets: avoid gcc warning
83683         * tests/test-sockets.c (main): Silence compiler warning.
83685 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
83687         New modules nproc, pthread, contributed by Glen Lenker.
83689         * MODULES.html.sh: Add pthread, nproc.
83690         * lib/nproc.c: New file.
83691         * lib/nproc.h: New file.
83692         * lib/pthread.in.h: New file.
83693         * m4/pthread.m4: New file.
83694         * modules/nproc: New file.
83695         * modules/pthread: New file.
83697 2009-03-24  Simon Josefsson  <simon@josefsson.org>
83699         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
83700         New variable.
83702 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
83704         filevercmp: handle simple~ and numbered.~3~ backup suffixes
83705         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
83706         * tests/test-filevercmp.c: Add tests for backup suffixes.
83708 2009-03-24  Simon Josefsson  <simon@josefsson.org>
83710         * modules/stdlib (Depends-on): Add stdint, needed when defining
83711         struct random_data on, for example, HP-UX 10.20.  Reported by
83712         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
83714 2009-03-24  Simon Josefsson  <simon@josefsson.org>
83716         * lib/readline.c (readline): Call fflush on stdout after printing
83717         prompt.
83719 2009-03-20  Bruno Haible  <bruno@clisp.org>
83721         Remove dependency from 'close' module to -lws2_32 on native Windows.
83722         * lib/close-hook.h: New file.
83723         * lib/close-hook.c: New file.
83724         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
83725         w32sock.h.
83726         (_gl_close_fd_maybe_socket): Remove function.
83727         (rpl_close): Invoke execute_all_close_hooks instead of
83728         _gl_close_fd_maybe_socket.
83729         * lib/sockets.c: Include close-hook.h, w32sock.h.
83730         (close_fd_maybe_socket): New function, essentially from lib/close.c.
83731         (close_sockets_hook): New variable.
83732         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
83733         (gl_sockets_cleanup): Unregister it.
83734         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
83735         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
83736         * modules/close-hook: New file.
83737         * modules/close (Files): Remove lib/w32sock.h.
83738         (Depends-on): Add close-hook.
83739         (Link): Remove section.
83740         * modules/sockets (Files): Add lib/w32sock.h.
83741         (Depends-on): Add close-hook.
83742         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
83743         invocation.
83744         * NEWS: Mention that LIB_CLOSE is gone.
83746 2009-03-23  Eric Blake  <ebb9@byu.net>
83748         signal-tests: test previous patch
83749         * tests/test-signal.c: New file.
83750         * modules/signal-tests: Likewise.
83752         signal.h: always support 'volatile sig_atomic_t'
83753         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
83754         (gl_SIGNAL_H_DEFAULTS): Add a default.
83755         * modules/signal (Makefile.am): Substitute if needed.
83756         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
83757         users can blindly add volatile.
83758         * doc/posix-headers/signal.texi (signal.h): Document it.
83759         Reported by Matthew Woehlke.
83761 2009-03-23  Jim Meyering  <meyering@redhat.com>
83763         pathmax: PATH_MAX: use pathconf only when available
83764         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
83765         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
83766         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
83767         This avoids a link failure in a PSP cross-compilation environment
83768         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
83770         * lib/vasnprintf.c (divide): Fix typo in comment.
83772 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83774         * gnulib-tool (func_filter_filelist): Fix comment.
83776 2009-03-20  Bruno Haible  <bruno@clisp.org>
83778         Make sockets.h self-contained.
83779         * lib/sockets.c: Include sockets.h first.
83780         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
83782 2009-03-19  Eric Blake  <ebb9@byu.net>
83784         doc: mention more functions added in cygwin 1.7.0
83785         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
83786         addition.
83787         * doc/posix-functions/log2f.texi: Likewise.
83789 2009-03-19  Jim Meyering  <meyering@redhat.com>
83791         fsusage: avoid syntax error due to statement-before-declaration
83792         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
83793         after all declarations.  Reported by Matthew Woehlke in
83794         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
83796 2009-03-18  Eric Blake  <ebb9@byu.net>
83798         build-aux/compile: sync from automake
83799         * build-aux/compile: New file, from automake.
83800         * config/srclist.txt: Mention build-aux/compile.
83802 2009-03-17  Bruno Haible  <bruno@clisp.org>
83804         * lib/git-merge-changelog.c: Fix typo in comment.
83805         Reported by Reuben Thomas <rrt@sc3d.org>.
83807 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
83809         * m4/regex.m4: update and improve help for
83810         --without-included-regex.
83812 2009-03-17  Simon Josefsson  <simon@josefsson.org>
83814         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
83815         failure on missing include files.
83817 2009-03-17  Eric Blake  <ebb9@byu.net>
83819         doc: mention more functions added in cygwin 1.7.0
83820         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
83821         addition.
83822         * doc/posix-functions/fwscanf.texi: Likewise.
83823         * doc/posix-functions/swprintf.texi: Likewise.
83824         * doc/posix-functions/swscanf.texi: Likewise.
83825         * doc/posix-functions/vfwprintf.texi: Likewise.
83826         * doc/posix-functions/vfwscanf.texi: Likewise.
83827         * doc/posix-functions/vswprintf.texi: Likewise.
83828         * doc/posix-functions/vswscanf.texi: Likewise.
83829         * doc/posix-functions/vwprintf.texi: Likewise.
83830         * doc/posix-functions/vwscanf.texi: Likewise.
83831         * doc/posix-functions/wcscasecmp.texi: Likewise.
83832         * doc/posix-functions/wcsdup.texi: Likewise.
83833         * doc/posix-functions/wcsftime.texi: Likewise.
83834         * doc/posix-functions/wcsncasecmp.texi: Likewise.
83835         * doc/posix-functions/wprintf.texi: Likewise.
83836         * doc/posix-functions/wscanf.texi: Likewise.
83837         * doc/glibc-functions/gethostbyname2.texi: Likewise.
83839 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83841         maint.mk: really add $(AM_MAKEFLAGS)
83842         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
83843         was inadvertently omitted in the last commit.
83844         Spotted by Bruno Haible.
83846         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
83847         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
83848         $(AM_MAKEFLAGS)' rather than plain `make'.
83850         gnulib-tool: execute $MAKE not make
83851         * gnulib-tool: Default $MAKE to 'make'.
83852         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
83853         than make.  Initialize $MAKE in the do-autobuild script.
83855         gnulib-tool: use $MAKE not make in generated files
83856         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
83857         make, in generated files.  Initialize $MAKE in the do-autobuild
83858         script.
83860         * top/GNUmakefile (_have-git-version-gen): Fix typo.
83862         GNUmakefile: disable parallelism only for multiple, recursive targets
83863         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
83864         additions in the Makefile.
83865         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
83866         by Automake.
83867         (.NOTPARALLEL): Only disable parallel builds if multiple targets
83868         are listed on the command line and at least one of them is
83869         listed in $(ALL_RECURSIVE_TARGETS).
83871 2009-03-14  Bruno Haible  <bruno@clisp.org>
83873         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
83874         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
83875         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
83876         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
83877         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
83878         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
83879         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
83880         unistr/u8-uctomb.
83881         * modules/unistr/u8-strchr (Depends-on): Likewise.
83882         * modules/unistr/u8-strrchr (Depends-on): Likewise.
83883         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
83884         unistr/u16-uctomb.
83885         * modules/unistr/u16-strchr (Depends-on): Likewise.
83886         * modules/unistr/u16-strrchr (Depends-on): Likewise.
83888 2009-03-12  Bruno Haible  <bruno@clisp.org>
83890         Work around select() bug on Interix 3.5.
83891         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
83892         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
83893         * m4/select.m4: New file.
83894         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
83895         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
83896         * modules/select (Files): Add m4/select.m4.
83897         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
83898         * modules/nanosleep (Depends-on): Add select.
83899         * modules/poll (Depends-on): Likewise.
83900         * doc/posix-functions/select.texi: Mention the Interix bug.
83901         Reported by Markus Duft <mduft@gentoo.org>.
83903         * lib/select.c: Renamed from lib/winsock-select.c.
83904         * modules/select (Files): Add lib/select.c, remove
83905         lib/winsock-select.c.
83906         (configure.ac): Update.
83908 2009-03-12  Jim Meyering  <meyering@redhat.com>
83910         avoid gcc warnings about unused macro definitions
83911         * lib/readtokens.c (STREQ): Remove unused definition.
83912         * lib/xmalloc.c (SIZE_MAX): Likewise.
83913         * lib/openat-die.c (N_): Likewise.
83914         * lib/mountlist.c (SIZE_MAX): Remove definition.
83915         Instead, include <stdint.h>.
83916         * lib/readutmp.c: Likewise.
83917         * modules/readutmp (Depends-on): Add stdint.
83918         * modules/mountlist (Depends-on): Add stdint.
83919         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
83921 2009-03-10  Bruno Haible  <bruno@clisp.org>
83923         Tests for module 'mbmemcasecoll'.
83924         * modules/mbmemcasecoll-tests: New file.
83925         * tests/test-mbmemcasecoll1.sh: New file.
83926         * tests/test-mbmemcasecoll2.sh: New file.
83927         * tests/test-mbmemcasecoll3.sh: New file.
83928         * tests/test-mbmemcasecoll.c: New file.
83930         New module 'mbmemcasecoll'.
83931         * lib/mbmemcasecoll.h: New file.
83932         * lib/mbmemcasecoll.c: New file.
83933         * modules/mbmemcasecoll: New file.
83935         * tests/test-mbmemcasecmp.h: New file, extracted from
83936         tests/test-mbmemcasecmp.c.
83937         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
83938         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
83939         (main): Update.
83940         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
83942 2009-03-09  Bruno Haible  <bruno@clisp.org>
83944         Tests for module 'mbmemcasecmp'.
83945         * modules/mbmemcasecmp-tests: New file.
83946         * tests/test-mbmemcasecmp1.sh: New file.
83947         * tests/test-mbmemcasecmp2.sh: New file.
83948         * tests/test-mbmemcasecmp3.sh: New file.
83949         * tests/test-mbmemcasecmp.c: New file.
83951         New module 'mbmemcasecmp'.
83952         * lib/mbmemcasecmp.h: New file.
83953         * lib/mbmemcasecmp.c: New file.
83954         * modules/mbmemcasecmp: New file.
83956 2009-03-09  Bruno Haible  <bruno@clisp.org>
83958         Tests for module 'unicase/ulc-casecoll'.
83959         * modules/unicase/ulc-casecoll-tests: New file.
83960         * tests/unicase/test-ulc-casecoll1.sh: New file.
83961         * tests/unicase/test-ulc-casecoll2.sh: New file.
83962         * tests/unicase/test-ulc-casecoll.c: New file.
83964         New module 'unicase/ulc-casecoll'.
83965         * lib/unicase.h (ulc_casecoll): New declaration.
83966         * lib/unicase/ulc-casecoll.c: New file.
83967         * modules/unicase/ulc-casecoll: New file.
83969         New module 'unicase/ulc-casexfrm'.
83970         * lib/unicase.h (ulc_casexfrm): New declaration.
83971         * lib/unicase/ulc-casexfrm.c: New file.
83972         * modules/unicase/ulc-casexfrm: New file.
83974 2009-03-09  Bruno Haible  <bruno@clisp.org>
83976         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
83977         invocations.
83979         * m4/mbscasecmp.m4: Remove file.
83980         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
83981         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
83983         * m4/mbscasestr.m4: Remove file.
83984         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
83985         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
83987         * m4/mbschr.m4: Remove file.
83988         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
83989         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
83991         * m4/mbscspn.m4: Remove file.
83992         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
83993         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
83995         * m4/mbslen.m4: Remove file.
83996         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
83997         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
83999         * m4/mbsncasecmp.m4: Remove file.
84000         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
84001         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
84003         * m4/mbsnlen.m4: Remove file.
84004         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
84005         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
84007         * m4/mbspbrk.m4: Remove file.
84008         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
84009         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
84011         * m4/mbspcasecmp.m4: Remove file.
84012         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
84013         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
84015         * m4/mbsrchr.m4: Remove file.
84016         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
84017         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
84019         * m4/mbssep.m4: Remove file.
84020         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
84021         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
84023         * m4/mbsspn.m4: Remove file.
84024         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
84025         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
84027         * m4/mbsstr.m4: Remove file.
84028         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
84029         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
84031         * m4/mbstok_r.m4: Remove file.
84032         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
84033         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
84035         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
84037         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
84038         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
84040         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
84042 2009-03-08  Bruno Haible  <bruno@clisp.org>
84044         Tests for module 'unicase/ulc-casecmp'.
84045         * modules/unicase/ulc-casecmp-tests: New file.
84046         * tests/unicase/test-ulc-casecmp1.sh: New file.
84047         * tests/unicase/test-ulc-casecmp2.sh: New file.
84048         * tests/unicase/test-ulc-casecmp.c: New file.
84050         New module 'unicase/ulc-casecmp'.
84051         * lib/unicase.h (ulc_casecmp): New declaration.
84052         * lib/unicase/ulc-casecmp.c: New file.
84053         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
84054         'const SRC_UNIT *'.
84055         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
84056         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
84057         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
84058         * modules/unicase/ulc-casecmp: New file.
84060         Tests for module 'unicase/u32-is-cased'.
84061         * modules/unicase/u32-is-cased-tests: New file.
84062         * tests/unicase/test-u32-is-cased.c: New file.
84064         Tests for module 'unicase/u16-is-cased'.
84065         * modules/unicase/u16-is-cased-tests: New file.
84066         * tests/unicase/test-u16-is-cased.c: New file.
84068         Tests for module 'unicase/u8-is-cased'.
84069         * modules/unicase/u8-is-cased-tests: New file.
84070         * tests/unicase/test-u8-is-cased.c: New file.
84071         * tests/unicase/test-is-cased.h: New file.
84073         New module 'unicase/u32-is-cased'.
84074         * lib/unicase/u32-is-cased.c: New file.
84075         * modules/unicase/u32-is-cased: New file.
84077         New module 'unicase/u16-is-cased'.
84078         * lib/unicase/u16-is-cased.c: New file.
84079         * modules/unicase/u16-is-cased: New file.
84081         New module 'unicase/u8-is-cased'.
84082         * lib/unicase/u8-is-cased.c: New file.
84083         * lib/unicase/u-is-cased.h: New file.
84084         * modules/unicase/u8-is-cased: New file.
84086         Tests for module 'unicase/u32-is-casefolded'.
84087         * modules/unicase/u32-is-casefolded-tests: New file.
84088         * tests/unicase/test-u32-is-casefolded.c: New file.
84090         Tests for module 'unicase/u16-is-casefolded'.
84091         * modules/unicase/u16-is-casefolded-tests: New file.
84092         * tests/unicase/test-u16-is-casefolded.c: New file.
84094         Tests for module 'unicase/u8-is-casefolded'.
84095         * modules/unicase/u8-is-casefolded-tests: New file.
84096         * tests/unicase/test-u8-is-casefolded.c: New file.
84097         * tests/unicase/test-is-casefolded.h: New file.
84099         New module 'unicase/u32-is-casefolded'.
84100         * lib/unicase/u32-is-casefolded.c: New file.
84101         * modules/unicase/u32-is-casefolded: New file.
84103         New module 'unicase/u16-is-casefolded'.
84104         * lib/unicase/u16-is-casefolded.c: New file.
84105         * modules/unicase/u16-is-casefolded: New file.
84107         New module 'unicase/u8-is-casefolded'.
84108         * lib/unicase/u8-is-casefolded.c: New file.
84109         * modules/unicase/u8-is-casefolded: New file.
84111         Tests for module 'unicase/u32-is-titlecase'.
84112         * modules/unicase/u32-is-titlecase-tests: New file.
84113         * tests/unicase/test-u32-is-titlecase.c: New file.
84115         Tests for module 'unicase/u16-is-titlecase'.
84116         * modules/unicase/u16-is-titlecase-tests: New file.
84117         * tests/unicase/test-u16-is-titlecase.c: New file.
84119         Tests for module 'unicase/u8-is-titlecase'.
84120         * modules/unicase/u8-is-titlecase-tests: New file.
84121         * tests/unicase/test-u8-is-titlecase.c: New file.
84122         * tests/unicase/test-is-titlecase.h: New file.
84124         New module 'unicase/u32-is-titlecase'.
84125         * lib/unicase/u32-is-titlecase.c: New file.
84126         * modules/unicase/u32-is-titlecase: New file.
84128         New module 'unicase/u16-is-titlecase'.
84129         * lib/unicase/u16-is-titlecase.c: New file.
84130         * modules/unicase/u16-is-titlecase: New file.
84132         New module 'unicase/u8-is-titlecase'.
84133         * lib/unicase/u8-is-titlecase.c: New file.
84134         * modules/unicase/u8-is-titlecase: New file.
84136         Tests for module 'unicase/u32-is-lowercase'.
84137         * modules/unicase/u32-is-lowercase-tests: New file.
84138         * tests/unicase/test-u32-is-lowercase.c: New file.
84140         Tests for module 'unicase/u16-is-lowercase'.
84141         * modules/unicase/u16-is-lowercase-tests: New file.
84142         * tests/unicase/test-u16-is-lowercase.c: New file.
84144         Tests for module 'unicase/u8-is-lowercase'.
84145         * modules/unicase/u8-is-lowercase-tests: New file.
84146         * tests/unicase/test-u8-is-lowercase.c: New file.
84147         * tests/unicase/test-is-lowercase.h: New file.
84149         New module 'unicase/u32-is-lowercase'.
84150         * lib/unicase/u32-is-lowercase.c: New file.
84151         * modules/unicase/u32-is-lowercase: New file.
84153         New module 'unicase/u16-is-lowercase'.
84154         * lib/unicase/u16-is-lowercase.c: New file.
84155         * modules/unicase/u16-is-lowercase: New file.
84157         New module 'unicase/u8-is-lowercase'.
84158         * lib/unicase/u8-is-lowercase.c: New file.
84159         * modules/unicase/u8-is-lowercase: New file.
84161         Tests for module 'unicase/u32-is-uppercase'.
84162         * modules/unicase/u32-is-uppercase-tests: New file.
84163         * tests/unicase/test-u32-is-uppercase.c: New file.
84165         Tests for module 'unicase/u16-is-uppercase'.
84166         * modules/unicase/u16-is-uppercase-tests: New file.
84167         * tests/unicase/test-u16-is-uppercase.c: New file.
84169         Tests for module 'unicase/u8-is-uppercase'.
84170         * modules/unicase/u8-is-uppercase-tests: New file.
84171         * tests/unicase/test-u8-is-uppercase.c: New file.
84172         * tests/unicase/test-is-uppercase.h: New file.
84174         New module 'unicase/u32-is-uppercase'.
84175         * lib/unicase/u32-is-uppercase.c: New file.
84176         * modules/unicase/u32-is-uppercase: New file.
84178         New module 'unicase/u16-is-uppercase'.
84179         * lib/unicase/u16-is-uppercase.c: New file.
84180         * modules/unicase/u16-is-uppercase: New file.
84182         New module 'unicase/u8-is-uppercase'.
84183         * lib/unicase/u8-is-uppercase.c: New file.
84184         * modules/unicase/u8-is-uppercase: New file.
84186         New module 'unicase/u32-is-invariant'.
84187         * lib/unicase/u32-is-invariant.c: New file.
84188         * modules/unicase/u32-is-invariant: New file.
84190         New module 'unicase/u16-is-invariant'.
84191         * lib/unicase/u16-is-invariant.c: New file.
84192         * modules/unicase/u16-is-invariant: New file.
84194         New module 'unicase/u8-is-invariant'.
84195         * lib/unicase/u8-is-invariant.c: New file.
84196         * lib/unicase/invariant.h: New file.
84197         * lib/unicase/u-is-invariant.h: New file.
84198         * modules/unicase/u8-is-invariant: New file.
84200         Tests for module 'unicase/u32-casecoll'.
84201         * modules/unicase/u32-casecoll-tests: New file.
84202         * tests/unicase/test-u32-casecoll.c: New file.
84204         Tests for module 'unicase/u16-casecoll'.
84205         * modules/unicase/u16-casecoll-tests: New file.
84206         * tests/unicase/test-u16-casecoll.c: New file.
84208         Tests for module 'unicase/u8-casecoll'.
84209         * modules/unicase/u8-casecoll-tests: New file.
84210         * tests/unicase/test-u8-casecoll.c: New file.
84212         New module 'unicase/u32-casecoll'.
84213         * lib/unicase/u32-casecoll.c: New file.
84214         * modules/unicase/u32-casecoll: New file.
84216         New module 'unicase/u16-casecoll'.
84217         * lib/unicase/u16-casecoll.c: New file.
84218         * modules/unicase/u16-casecoll: New file.
84220         New module 'unicase/u8-casecoll'.
84221         * lib/unicase/u8-casecoll.c: New file.
84222         * lib/unicase/u-casecoll.h: New file.
84223         * modules/unicase/u8-casecoll: New file.
84225         New module 'unicase/u32-casexfrm'.
84226         * lib/unicase/u32-casexfrm.c: New file.
84227         * modules/unicase/u32-casexfrm: New file.
84229         New module 'unicase/u16-casexfrm'.
84230         * lib/unicase/u16-casexfrm.c: New file.
84231         * modules/unicase/u16-casexfrm: New file.
84233         New module 'unicase/u8-casexfrm'.
84234         * lib/unicase/u8-casexfrm.c: New file.
84235         * lib/unicase/u-casexfrm.h: New file.
84236         * modules/unicase/u8-casexfrm: New file.
84238         Tests for module 'unicase/u32-casecmp'.
84239         * modules/unicase/u32-casecmp-tests: New file.
84240         * tests/unicase/test-u32-casecmp.c: New file.
84242         Tests for module 'unicase/u16-casecmp'.
84243         * modules/unicase/u16-casecmp-tests: New file.
84244         * tests/unicase/test-u16-casecmp.c: New file.
84246         Tests for module 'unicase/u8-casecmp'.
84247         * modules/unicase/u8-casecmp-tests: New file.
84248         * tests/unicase/test-u8-casecmp.c: New file.
84249         * tests/unicase/test-casecmp.h: New file.
84251         New module 'unicase/u32-casecmp'.
84252         * lib/unicase/u32-casecmp.c: New file.
84253         * modules/unicase/u32-casecmp: New file.
84255         New module 'unicase/u16-casecmp'.
84256         * lib/unicase/u16-casecmp.c: New file.
84257         * modules/unicase/u16-casecmp: New file.
84259         New module 'unicase/u8-casecmp'.
84260         * lib/unicase/u8-casecmp.c: New file.
84261         * lib/unicase/u-casecmp.h: New file.
84262         * modules/unicase/u8-casecmp: New file.
84264         Tests for module 'unicase/u32-casefold'.
84265         * modules/unicase/u32-casefold-tests: New file.
84266         * tests/unicase/test-u32-casefold.c: New file.
84268         Tests for module 'unicase/u16-casefold'.
84269         * modules/unicase/u16-casefold-tests: New file.
84270         * tests/unicase/test-u16-casefold.c: New file.
84272         Tests for module 'unicase/u8-casefold'.
84273         * modules/unicase/u8-casefold-tests: New file.
84274         * tests/unicase/test-u8-casefold.c: New file.
84276         New module 'unicase/u32-casefold'.
84277         * lib/unicase/u32-casefold.c: New file.
84278         * modules/unicase/u32-casefold: New file.
84280         New module 'unicase/u16-casefold'.
84281         * lib/unicase/u16-casefold.c: New file.
84282         * modules/unicase/u16-casefold: New file.
84284         New module 'unicase/u8-casefold'.
84285         * lib/unicase/u8-casefold.c: New file.
84286         * lib/unicase/u-casefold.h: New file.
84287         * modules/unicase/u8-casefold: New file.
84289         New module 'unicase/tocasefold'.
84290         * lib/unicase/casefold.h: New file.
84291         * lib/unicase/tocasefold.c: New file.
84292         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
84293         * modules/unicase/tocasefold: New file.
84295         Tests for module 'unicase/u32-totitle'.
84296         * modules/unicase/u32-totitle-tests: New file.
84297         * tests/unicase/test-u32-totitle.c: New file.
84299         Tests for module 'unicase/u16-totitle'.
84300         * modules/unicase/u16-totitle-tests: New file.
84301         * tests/unicase/test-u16-totitle.c: New file.
84303         Tests for module 'unicase/u8-totitle'.
84304         * modules/unicase/u8-totitle-tests: New file.
84305         * tests/unicase/test-u8-totitle.c: New file.
84307         New module 'unicase/u32-totitle'.
84308         * lib/unicase/u32-totitle.c: New file.
84309         * modules/unicase/u32-totitle: New file.
84311         New module 'unicase/u16-totitle'.
84312         * lib/unicase/u16-totitle.c: New file.
84313         * modules/unicase/u16-totitle: New file.
84315         New module 'unicase/u8-totitle'.
84316         * lib/unicase/u8-totitle.c: New file.
84317         * lib/unicase/u-totitle.h: New file.
84318         * modules/unicase/u8-totitle: New file.
84320         Tests for module 'unicase/u32-tolower'.
84321         * modules/unicase/u32-tolower-tests: New file.
84322         * tests/unicase/test-u32-tolower.c: New file.
84324         Tests for module 'unicase/u16-tolower'.
84325         * modules/unicase/u16-tolower-tests: New file.
84326         * tests/unicase/test-u16-tolower.c: New file.
84328         Tests for module 'unicase/u8-tolower'.
84329         * modules/unicase/u8-tolower-tests: New file.
84330         * tests/unicase/test-u8-tolower.c: New file.
84332         New module 'unicase/u32-tolower'.
84333         * lib/unicase/u32-tolower.c: New file.
84334         * modules/unicase/u32-tolower: New file.
84336         New module 'unicase/u16-tolower'.
84337         * lib/unicase/u16-tolower.c: New file.
84338         * modules/unicase/u16-tolower: New file.
84340         New module 'unicase/u8-tolower'.
84341         * lib/unicase/u8-tolower.c: New file.
84342         * modules/unicase/u8-tolower: New file.
84344         Tests for module 'unicase/u32-toupper'.
84345         * modules/unicase/u32-toupper-tests: New file.
84346         * tests/unicase/test-u32-toupper.c: New file.
84348         Tests for module 'unicase/u16-toupper'.
84349         * modules/unicase/u16-toupper-tests: New file.
84350         * tests/unicase/test-u16-toupper.c: New file.
84352         Tests for module 'unicase/u8-toupper'.
84353         * modules/unicase/u8-toupper-tests: New file.
84354         * tests/unicase/test-u8-toupper.c: New file.
84356         New module 'unicase/u32-toupper'.
84357         * lib/unicase/u32-toupper.c: New file.
84358         * modules/unicase/u32-toupper: New file.
84360         New module 'unicase/u16-toupper'.
84361         * lib/unicase/u16-toupper.c: New file.
84362         * modules/unicase/u16-toupper: New file.
84364         New module 'unicase/u8-toupper'.
84365         * lib/unicase/u8-toupper.c: New file.
84366         * modules/unicase/u8-toupper: New file.
84368         New module 'unicase/u32-casemap'.
84369         * lib/unicase/u32-casemap.c: New file.
84370         * modules/unicase/u32-casemap: New file.
84372         New module 'unicase/u16-casemap'.
84373         * lib/unicase/u16-casemap.c: New file.
84374         * modules/unicase/u16-casemap: New file.
84376         New module 'unicase/u8-casemap'.
84377         * lib/unicase/unicasemap.h: New file.
84378         * lib/unicase/u8-casemap.c: New file.
84379         * lib/unicase/u-casemap.h: New file.
84380         * modules/unicase/u8-casemap: New file.
84382         New module 'unicase/special-casing'.
84383         * lib/unicase/special-casing.h: New file.
84384         * lib/unicase/special-casing.c: New file.
84385         * lib/unicase/special-casing-table.gperf: New file, generated by
84386         gen-uni-tables.c.
84387         * modules/unicase/special-casing: New file.
84389         Tests for module 'unicase/locale-language'.
84390         * modules/unicase/locale-language-tests: New file.
84391         * tests/unicase/test-locale-language.sh: New file.
84392         * tests/unicase/test-locale-language.c: New file.
84394         New module 'unicase/locale-language'.
84395         * lib/unicase/locale-language.c: New file.
84396         * lib/unicase/locale-languages.gperf: New file.
84397         * modules/unicase/locale-language: New file.
84399         Generate more tables for case conversion and case folding.
84400         * lib/gen-uni-tables.c (SCC_*): New enum items.
84401         (struct special_casing_rule): New type.
84402         (casing_rules, num_casing_rules, allocated_casing_rules): New
84403         variables.
84404         (add_casing_rule, fill_casing_rules): New functions.
84405         (struct casefold_rule): New type.
84406         (casefolding_rules, num_casefolding_rules,
84407         allocated_casefolding_rules): New variables.
84408         (fill_casefolding_rules): New function.
84409         (unicode_casefold): New variable.
84410         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
84411         sort_casing_rules, output_casing_rules): New functions.
84412         (main): Accept to more arguments: SpecialCasing.txt and
84413         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
84414         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
84415         Output mapping for casefolding.
84417         * lib/unicase.h: Include stdbool.h, uninorm.h.
84418         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
84419         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
84420         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
84421         arguments.
84422         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
84423         resultp arguments.
84424         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
84425         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
84426         resultp arguments.
84427         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
84428         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
84429         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
84430         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
84431         declarations.
84432         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
84434 2009-03-08  Bruno Haible  <bruno@clisp.org>
84436         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
84437         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
84438         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
84439         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
84441 2009-03-07  Bruno Haible  <bruno@clisp.org>
84443         Adjust u*_normcmp, u*_normcoll API.
84444         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
84445         u16_normcoll, u32_normcoll): Change failure conventions.
84446         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
84447         errno and return -1.
84448         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
84450 2009-03-07  Bruno Haible  <bruno@clisp.org>
84452         Tests for module 'uninorm/u32-normcoll'.
84453         * modules/uninorm/u32-normcoll-tests: New file.
84454         * tests/uninorm/test-u32-normcoll.c: New file.
84456         Tests for module 'uninorm/u16-normcoll'.
84457         * modules/uninorm/u16-normcoll-tests: New file.
84458         * tests/uninorm/test-u16-normcoll.c: New file.
84460         Tests for module 'uninorm/u8-normcoll'.
84461         * modules/uninorm/u8-normcoll-tests: New file.
84462         * tests/uninorm/test-u8-normcoll.c: New file.
84464 2009-03-07  Bruno Haible  <bruno@clisp.org>
84466         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
84467         tests/uninorm/test-u32-normcmp.c.
84468         * tests/uninorm/test-u32-normcmp.c: Include it.
84469         (test_nonascii): New function, extracted from main. Add some more
84470         tests.
84471         (main): Invoke test_ascii and test_nonascii.
84472         * modules/uninorm/u32-normcmp-tests (Files): Add
84473         tests/uninorm/test-u32-normcmp.h.
84474         (Depends-on): Remove uninorm/u32-normcmp.
84476         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
84477         tests/uninorm/test-u16-normcmp.c.
84478         * tests/uninorm/test-u16-normcmp.c: Include it.
84479         (test_nonascii): New function, extracted from main. Add some more
84480         tests.
84481         (main): Invoke test_ascii and test_nonascii.
84482         * modules/uninorm/u16-normcmp-tests (Files): Add
84483         tests/uninorm/test-u16-normcmp.h.
84484         (Depends-on): Remove uninorm/u16-normcmp.
84486         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
84487         tests/uninorm/test-u8-normcmp.c.
84488         * tests/uninorm/test-u8-normcmp.c: Include it.
84489         (test_nonascii): New function, extracted from main. Add some more
84490         tests.
84491         (main): Invoke test_ascii and test_nonascii.
84492         * modules/uninorm/u8-normcmp-tests (Files): Add
84493         tests/uninorm/test-u8-normcmp.h.
84494         (Depends-on): Remove uninorm/u8-normcmp.
84496 2009-03-07  Bruno Haible  <bruno@clisp.org>
84498         New module 'uninorm/u32-normcoll'.
84499         * lib/uninorm/u32-normcoll.c: New file.
84500         * modules/uninorm/u32-normcoll: New file.
84502         New module 'uninorm/u16-normcoll'.
84503         * lib/uninorm/u16-normcoll.c: New file.
84504         * modules/uninorm/u16-normcoll: New file.
84506         New module 'uninorm/u8-normcoll'.
84507         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
84508         declarations.
84509         * lib/uninorm/u8-normcoll.c: New file.
84510         * lib/uninorm/u-normcoll.h: New file.
84511         * modules/uninorm/u8-normcoll: New file.
84513         New module 'uninorm/u32-normxfrm'.
84514         * lib/uninorm/u32-normxfrm.c: New file.
84515         * modules/uninorm/u32-normxfrm: New file.
84517         New module 'uninorm/u16-normxfrm'.
84518         * lib/uninorm/u16-normxfrm.c: New file.
84519         * modules/uninorm/u16-normxfrm: New file.
84521         New module 'uninorm/u8-normxfrm'.
84522         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
84523         declarations.
84524         * lib/uninorm/u8-normxfrm.c: New file.
84525         * lib/uninorm/u-normxfrm.h: New file.
84526         * modules/uninorm/u8-normxfrm: New file.
84528 2009-03-07  Bruno Haible  <bruno@clisp.org>
84530         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
84531         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
84532         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
84534 2009-03-07  Bruno Haible  <bruno@clisp.org>
84536         New module 'memxfrm'.
84537         * lib/memxfrm.h: New file.
84538         * lib/memxfrm.c: New file.
84539         * modules/memxfrm: New file.
84541 2009-03-07  Bruno Haible  <bruno@clisp.org>
84543         New module 'memcmp2'.
84544         * lib/memcmp2.h: New file.
84545         * lib/memcmp2.c: New file.
84546         * modules/memcmp2: New file.
84548 2009-03-07  Bruno Haible  <bruno@clisp.org>
84550         Tests for module 'uninorm/decomposing-form'.
84551         * modules/uninorm/decomposing-form-tests: New file.
84552         * tests/uninorm/test-decomposing-form.c: New file.
84554         New module 'uninorm/decomposing-form'.
84555         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
84556         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
84557         Add 'decomposing_variant' field.
84558         * lib/uninorm/decomposing-form.c: New file.
84559         * lib/uninorm/nfc.c (uninorm_nfc): Update.
84560         * lib/uninorm/nfd.c (uninorm_nfd): Update.
84561         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
84562         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
84563         * modules/uninorm/decomposing-form: New file.
84564         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
84565         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
84567 2009-03-07  Bruno Haible  <bruno@clisp.org>
84569         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
84570         strings.
84572 2009-03-06  Bruno Haible  <bruno@clisp.org>
84574         Tests for module 'uninorm/u32-normcmp'.
84575         * tests/uninorm/test-u32-normcmp.c: New file.
84576         * modules/uninorm/u32-normcmp-tests: New file.
84578         Tests for module 'uninorm/u16-normcmp'.
84579         * tests/uninorm/test-u16-normcmp.c: New file.
84580         * modules/uninorm/u16-normcmp-tests: New file.
84582         Tests for module 'uninorm/u8-normcmp'.
84583         * tests/uninorm/test-u8-normcmp.c: New file.
84584         * modules/uninorm/u8-normcmp-tests: New file.
84586         New module 'uninorm/u32-normcmp'.
84587         * lib/uninorm/u32-normcmp.c: New file.
84588         * modules/uninorm/u32-normcmp: New file.
84590         New module 'uninorm/u16-normcmp'.
84591         * lib/uninorm/u16-normcmp.c: New file.
84592         * modules/uninorm/u16-normcmp: New file.
84594         New module 'uninorm/u8-normcmp'.
84595         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
84596         declarations.
84597         * lib/uninorm/u8-normcmp.c: New file.
84598         * lib/uninorm/u-normcmp.h: New file.
84599         * modules/uninorm/u8-normcmp: New file.
84601 2009-03-06  Bruno Haible  <bruno@clisp.org>
84603         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
84604         Reported by Eric Blake.
84606 2009-03-06  Eric Blake  <ebb9@byu.net>
84607             Bruno Haible  <bruno@clisp.org>
84609         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
84610         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
84611         condition.
84612         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
84613         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
84614         condition.
84615         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
84617 2009-03-06  Eric Blake  <ebb9@byu.net>
84619         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
84620         to avoid compiler warnings.
84621         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
84623 2009-03-05  Bruno Haible  <bruno@clisp.org>
84625         * tests/test-ftell.c (main): Disable test beyond end of file on
84626         FreeMiNT.
84627         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
84629 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
84631         * lib/filevercmp.c: Move hidden files up in ordering.
84632         * tests/test-filevercmp.c: Add tests for hidden files.
84634 2009-03-04  Bruno Haible  <bruno@clisp.org>
84636         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
84637         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
84638         AM_CFLAGS.
84639         Reported by Simon Josefsson.
84641 2009-03-03  Bruno Haible  <bruno@clisp.org>
84643         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
84644         Reported by Simon Josefsson.
84646         * doc/ld-version-script.texi: Update node reference.
84648 2009-03-03  Bruno Haible  <bruno@clisp.org>
84650         * modules/visibility (License): Change to 'unlimited'.
84651         Suggested by Simon Josefsson.
84653 2009-03-03  Jim Meyering  <meyering@redhat.com>
84655         unlinkdir: cannot_unlink_dir may modify process state
84656         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
84657         it's neither thread-safe nor appropriate for use in a library.
84659 2009-03-03  Eric Blake  <ebb9@byu.net>
84661         test-closein: silence test under Darwin
84662         * tests/test-closein.sh: Ignore stderr from cat, since we don't
84663         care if it dies from EPIPE or EBADF.
84665 2009-03-03  Bruno Haible  <bruno@clisp.org>
84667         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
84668         earlier.
84669         * doc/visibility.texi: Fix @node and @section.
84671 2009-03-03  Simon Josefsson  <simon@josefsson.org>
84673         * doc/gnulib.texi: Link to sections for ld version script and
84674         visibility.
84675         * doc/visibility.texi: Add @node and @section.
84676         * modules/ld-version-script: New module.
84677         * m4/ld-version-script.m4: New file.
84678         * doc/ld-version-script.texi: New file.
84680 2009-03-02  David Lutterkort  <lutter@redhat.com>
84682         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
84683         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
84685 2009-03-02  Bruno Haible  <bruno@clisp.org>
84687         * doc/visibility.texi: Mention libtool's -export-symbols option.
84689 2009-03-02  Jim Meyering  <meyering@redhat.com>
84691         announce-gen: new option: --no-print-checksums
84692         * build-aux/announce-gen (usage): Describe it.
84693         (print_checksums): Print a newline here, not in the [*] footnote.
84694         (main): Honor it.
84696 2009-03-01  Bruno Haible  <bruno@clisp.org>
84698         Use socklen_t in the native Windows replacements prototypes.
84699         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
84700         instead of 'int'.
84701         * lib/getsockopt.c (rpl_getsockopt): Likewise.
84702         * lib/setsockopt.c (rpl_setsockopt): Likewise.
84703         * modules/getsockopt (Depends-on): Add socklen.
84704         * modules/setsockopt (Depends-on): Add socklen.
84706 2009-03-01  Bruno Haible  <bruno@clisp.org>
84708         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
84709         least 4.2.
84711 2009-03-01  Eric Blake  <ebb9@byu.net>
84712             Bruno Haible  <bruno@clisp.org>
84714         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
84715         error messages.
84716         * lib/wait-process.c (wait_subprocess): Omit error message about
84717         deadly signal sent to the child of termsigp != NULL.
84719 2009-03-01  Eric Blake  <ebb9@byu.net>
84721         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
84723 2009-03-01  Bruno Haible  <bruno@clisp.org>
84725         Avoid a gcc warning.
84726         * tests/test-sched.c (b): Make global.
84727         Reported by Eric Blake.
84729 2009-01-19  Martin Lambers  <marlam@marlam.de>
84731         Provide POSIX semantics for socket timeout options on W32.
84732         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
84733         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
84734         * modules/setsockopt: Depend on sys_time module for struct timeval.
84735         * modules/getsockopt: Depend on sys_time module for struct timeval.
84737 2009-03-01  Simon Josefsson  <simon@josefsson.org>
84739         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
84740         __USE_GNU, for consistency with netdb.in.h.
84741         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84743 2009-03-01  Bruno Haible  <bruno@clisp.org>
84745         More support for FreeMiNT.
84746         * lib/fseeko.c (rpl_fseeko): Complete last commit.
84747         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84749 2009-03-01  Bruno Haible  <bruno@clisp.org>
84751         More support for FreeMiNT.
84752         * lib/fpurge.c (fpurge): Correct last commit.
84753         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84755 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84757         Fix unportable awk script in vc-list-files.
84758         * build-aux/vc-list-files: In the replacement awk script, use
84759         substr with a second argument of 1, not zero.
84760         Report by Simon Josefsson.
84762 2009-02-28  Bruno Haible  <bruno@clisp.org>
84764         More support for FreeMiNT.
84765         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
84766         to FreeMiNT today.
84767         * lib/fwriting.c (fwriting): Likewise.
84768         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
84770 2009-02-28  Bruno Haible  <bruno@clisp.org>
84772         * tests/test-freadseek.c (main): Disable test beyond end of file on
84773         FreeMiNT.
84774         * tests/test-ftello.c (main): Likewise.
84775         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
84777 2009-02-28  Bruno Haible  <bruno@clisp.org>
84779         Add tentative support for FreeMiNT.
84780         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
84781         * lib/fpurge.c (fpurge): Likewise.
84782         * lib/freadable.c (freadable): Likewise.
84783         * lib/freading.c (freading): Likewise.
84784         * lib/freadptr.c (freadptr): Likewise.
84785         * lib/freadseek.c (freadptrinc): Likewise.
84786         * lib/fseeko.c (rpl_fseeko): Likewise.
84787         * lib/fseterr.c (fseterr): Likewise.
84788         * lib/fwritable.c (fwritable): Likewise.
84789         * lib/fwriting.c (fwriting): Likewise.
84790         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
84791         Hourihane.
84792         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84794 2009-02-28  Bruno Haible  <bruno@clisp.org>
84796         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
84797         SIGCHLD.
84798         Reported by Jim Meyering.
84800 2009-02-28  Bruno Haible  <bruno@clisp.org>
84802         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
84803         Mention the results of these tests on various platforms.
84804         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
84805         order.
84806         * doc/posix-functions/printf.texi: Likewise.
84807         * doc/posix-functions/snprintf.texi: Likewise.
84808         * doc/posix-functions/sprintf.texi: Likewise.
84809         * doc/posix-functions/vfprintf.texi: Likewise.
84810         * doc/posix-functions/vprintf.texi: Likewise.
84811         * doc/posix-functions/vsnprintf.texi: Likewise.
84812         * doc/posix-functions/vsprintf.texi: Likewise.
84813         * doc/glibc-functions/obstack_printf.texi: Likewise.
84814         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
84816 2009-02-28  Bruno Haible  <bruno@clisp.org>
84818         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
84819         Reported by Loïc Minier <lool@dooz.org>.
84821 2009-02-27  Bruno Haible  <bruno@clisp.org>
84823         * gnulib-tool (func_import): Make the sed expression used to create the
84824         sed script for updating the .gitignore file POSIX compliant.
84825         Reported by Eric Blake.
84827 2009-02-27  Bruno Haible  <bruno@clisp.org>
84829         * gnulib-tool (sed): Don't alias as "sed --posix".
84830         Reported by Eric Blake.
84832 2009-02-27  Bruno Haible  <bruno@clisp.org>
84834         Avoid test link errors.
84835         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
84836         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
84837         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
84838         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
84839         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
84841 2009-02-27  Bruno Haible  <bruno@clisp.org>
84843         Avoid spurious "(cached)" in configure output.
84844         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
84845         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
84846         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
84847         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
84848         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
84849         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
84850         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
84851         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
84852         Reported by Eric Blake.
84854 2009-02-27  Eric Blake  <ebb9@byu.net>
84856         printf: fix regression in previous patch
84857         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
84859 2009-02-27  Bruno Haible  <bruno@clisp.org>
84861         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
84862         value.
84863         * lib/stdint.in.h: Likewise.
84864         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
84866 2009-02-27  Eric Blake  <ebb9@byu.net>
84868         doc: mention more functions added in cygwin 1.7.0
84869         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
84870         addition.
84871         * doc/posix-functions/open_wmemstream.texi: Likewise.
84872         * doc/posix-functions/wcsnlen.texi: Likewise.
84873         * doc/posix-functions/wcsnrtombs.texi: Likewise.
84874         * doc/posix-functions/wcstod.texi: Likewise.
84875         * doc/posix-functions/wcstof.texi: Likewise.
84876         * doc/posix-functions/wcstoimax.texi: Likewise.
84877         * doc/posix-functions/wcstok.texi: Likewise.
84878         * doc/posix-functions/wcstoumax.texi: Likewise.
84880         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
84881         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
84882         * doc/posix-functions/fprintf.texi: Update.
84883         * doc/posix-functions/printf.texi: Update.
84884         * doc/posix-functions/snprintf.texi: Update.
84885         * doc/posix-functions/sprintf.texi: Update.
84886         * doc/posix-functions/vfprintf.texi: Update.
84887         * doc/posix-functions/vprintf.texi: Update.
84888         * doc/posix-functions/vsnprintf.texi: Update.
84889         * doc/posix-functions/vsprintf.texi: Update.
84890         * doc/glibc-functions/obstack_printf.texi: Update.
84891         * doc/glibc-functions/obstack_vprintf.texi: Update.
84893 2009-02-26  Eric Blake  <ebb9@byu.net>
84895         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
84896         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
84897         compilation bug by using runtime conversion.
84898         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
84899         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
84900         * modules/ceill-tests (Files): Use nan.h.
84901         * modules/floorl-tests (Files): Likewise.
84902         * modules/frexpl-tests (Files): Likewise.
84903         * modules/isnanl-tests (Files): Likewise.
84904         * modules/ldexpl-tests (Files): Likewise.
84905         * modules/roundl-tests (Files): Likewise.
84906         * modules/truncl-tests (Files): Likewise.
84907         * tests/test-ceill.c (main): Use a working NaN.
84908         * tests/test-floorl.c (main): Likewise.
84909         * tests/test-frexpl.c (main): Likewise.
84910         * tests/test-isnan.c (test_long_double): Likewise.
84911         * tests/test-isnanl.h (main): Likewise.
84912         * tests/test-ldexpl.h (main): Likewise.
84913         * tests/test-roundl.h (main): Likewise.
84914         * tests/test-truncl.h (main): Likewise.
84915         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
84917 2009-02-26  Eric Blake  <ebb9@byu.net>
84918             Bruno Haible  <bruno@clisp.org>
84920         Work around a *printf bug with %ls on Solaris.
84921         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
84922         precision is specified, sprintf stops converting the wide string
84923         argument when the number of bytes that have been produced by this
84924         conversion equals or exceeds the precision.
84925         * doc/posix-functions/fprintf.texi: Update.
84926         * doc/posix-functions/printf.texi: Update.
84927         * doc/posix-functions/snprintf.texi: Update.
84928         * doc/posix-functions/sprintf.texi: Update.
84929         * doc/posix-functions/vfprintf.texi: Update.
84930         * doc/posix-functions/vprintf.texi: Update.
84931         * doc/posix-functions/vsnprintf.texi: Update.
84932         * doc/posix-functions/vsprintf.texi: Update.
84933         * doc/glibc-functions/obstack_printf.texi: Update.
84934         * doc/glibc-functions/obstack_vprintf.texi: Update.
84936 2009-02-26  Eric Blake  <ebb9@byu.net>
84938         stdlib: favor compiler check of random.h
84939         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
84940         to avoid an ObjC random.h installed by Swarm.
84942 2009-02-26  Bruno Haible  <bruno@clisp.org>
84944         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
84945         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
84946         Reported by Gary V. Vaughan <gary@gnu.org>.
84948 2009-02-26  Bruno Haible  <bruno@clisp.org>
84950         Fix *printf behaviour regarding the %ls directive.
84951         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
84952         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
84953         NEED_PRINTF_DIRECTIVE_LS.
84954         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
84955         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
84956         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
84957         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
84958         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
84959         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
84960         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
84961         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
84962         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
84963         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
84964         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
84965         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
84966         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
84967         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84968         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
84969         * doc/posix-functions/fprintf.texi: Update.
84970         * doc/posix-functions/printf.texi: Update.
84971         * doc/posix-functions/snprintf.texi: Update.
84972         * doc/posix-functions/sprintf.texi: Update.
84973         * doc/posix-functions/vfprintf.texi: Update.
84974         * doc/posix-functions/vprintf.texi: Update.
84975         * doc/posix-functions/vsnprintf.texi: Update.
84976         * doc/posix-functions/vsprintf.texi: Update.
84977         * doc/glibc-functions/obstack_printf.texi: Update.
84978         * doc/glibc-functions/obstack_vprintf.texi: Update.
84979         Reported by Eric Blake.
84981 2009-02-25  Bruno Haible  <bruno@clisp.org>
84983         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
84984         with known value.
84985         Reported by Gary V. Vaughan <gary@gnu.org>.
84987 2009-02-25  Bruno Haible  <bruno@clisp.org>
84989         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
84990         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
84991         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
84992         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
84993         Reported by Gary V. Vaughan <gary@gnu.org>.
84995 2009-02-25  Bruno Haible  <bruno@clisp.org>
84997         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
84998         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
84999         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
85000         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
85001         Reported by Gary V. Vaughan <gary@gnu.org>.
85003 2009-02-25  Eric Blake  <ebb9@byu.net>
85005         tests: skip fseek/ftell tests if ungetc is broken
85006         * m4/ungetc.m4: New file.
85007         * modules/fseek-tests: Split test, so ungetc dependency is
85008         separate from rest of test.
85009         * modules/fseeko-tests: Likewise.
85010         * modules/ftell-tests: Likewise.
85011         * modules/ftello-tests: Likewise.
85012         * tests/test-fseek.c (main): Isolate ungetc dependency.
85013         * tests/test-fseeko.c (main): Likewise.
85014         * tests/test-ftell.c (main): Likewise.
85015         * tests/test-ftello.c (main): Likewise.
85016         * tests/test-fseek2.sh: New file.
85017         * tests/test-fseeko2.sh: Likewise.
85018         * tests/test-ftell2.sh: Likewise.
85019         * tests/test-ftello2.sh: Likewise.
85021 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
85023         test-getaddrinfo: fix usage of skip return code 77
85024         * tests/test-gettaddrinfo.c: Return skip code 77 only
85025         for first occurrence of skip (4x77 is not 77)
85027 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
85029         strtod: avoid C99 decl-after-statement
85030         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
85032 2009-02-24  Eric Blake  <ebb9@byu.net>
85034         strtod: detect HP-UX 11.31 bug
85035         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
85036         Reported by Gary V. Vaughan.
85038 2009-02-23  Bruno Haible  <bruno@clisp.org>
85040         Fix invalid read past end of memory block.
85041         * lib/vasnprintf.c (DCHAR_SET): Define.
85042         (local_wcslen): Define only when needed.
85043         (local_strnlen, local_wcsnlen): New functions.
85044         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
85045         directives that involve a conversion ourselves.
85046         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
85047         wcsnlen, mbrtowc, wcrtomb.
85048         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
85049         * tests/test-vasprintf-posix.c (test_function): Likewise.
85050         * tests/test-snprintf-posix.h (test_function): Likewise.
85051         * tests/test-sprintf-posix.h (test_function): Likewise.
85052         Reported by Ben Pfaff <blp@cs.stanford.edu>.
85054 2009-02-22  Bruno Haible  <bruno@clisp.org>
85056         Implement new clarified decomposition of Hangul syllables.
85057         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
85058         of type LTV, return only a pairwise decomposition.
85059         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
85060         Likewise.
85061         * tests/uninorm/test-decomposition.c (main): Updated expected result.
85062         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
85063         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
85065 2009-02-22  Bruno Haible  <bruno@clisp.org>
85067         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
85068         zero-length results and shrink excess allocated memory.
85069         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
85070         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
85071         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
85072         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
85073         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
85074         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
85075         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
85076         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
85077         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
85078         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
85079         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
85080         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
85082 2009-02-21  Bruno Haible  <bruno@clisp.org>
85084         * doc/gnulib.texi: Include safe-alloc.texi earlier.
85085         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
85086         spaces after a period. Put a space between a macro name and its
85087         argument list. Trivial rewordings.
85088         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
85089         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
85090         (main): Return 0 explicitly.
85092 2009-02-21  Bruno Haible  <bruno@clisp.org>
85094         Tests for module 'uninorm/filter'.
85095         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
85096         * modules/uninorm/filter-tests: New file.
85098         New module 'uninorm/filter'.
85099         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
85100         uninorm_filter_flush, uninorm_filter_free): New declarations.
85101         * lib/uninorm/uninorm-filter.c: New file.
85102         * modules/uninorm/filter: New file.
85104 2009-02-21  Bruno Haible  <bruno@clisp.org>
85106         Tests for module 'uninorm/nfkc'.
85107         * tests/uninorm/test-nfkc.c: New file.
85108         * tests/uninorm/test-u8-nfkc.c: New file.
85109         * tests/uninorm/test-u16-nfkc.c: New file.
85110         * tests/uninorm/test-u32-nfkc.c: New file.
85111         * tests/uninorm/test-u32-nfkc-big.sh: New file.
85112         * tests/uninorm/test-u32-nfkc-big.c: New file.
85113         * modules/uninorm/nfkc-tests: New file.
85115         New module 'uninorm/nfkc'.
85116         * lib/uninorm/nfkc.c: New file.
85117         * modules/uninorm/nfkc: New file.
85119         Tests for module 'uninorm/nfkd'.
85120         * tests/uninorm/test-nfkd.c: New file.
85121         * tests/uninorm/test-u8-nfkd.c: New file.
85122         * tests/uninorm/test-u16-nfkd.c: New file.
85123         * tests/uninorm/test-u32-nfkd.c: New file.
85124         * tests/uninorm/test-u32-nfkd-big.sh: New file.
85125         * tests/uninorm/test-u32-nfkd-big.c: New file.
85126         * modules/uninorm/nfkd-tests: New file.
85128         New module 'uninorm/nfkd'.
85129         * lib/uninorm/nfkd.c: New file.
85130         * modules/uninorm/nfkd: New file.
85132         Tests for module 'uninorm/nfc'.
85133         * tests/uninorm/test-nfc.c: New file.
85134         * tests/uninorm/test-u8-nfc.c: New file.
85135         * tests/uninorm/test-u16-nfc.c: New file.
85136         * tests/uninorm/test-u32-nfc.c: New file.
85137         * tests/uninorm/test-u32-nfc-big.sh: New file.
85138         * tests/uninorm/test-u32-nfc-big.c: New file.
85139         * modules/uninorm/nfc-tests: New file.
85141         New module 'uninorm/nfc'.
85142         * lib/uninorm/nfc.c: New file.
85143         * modules/uninorm/nfc: New file.
85145         Tests for module 'uninorm/nfd'.
85146         * tests/uninorm/test-nfd.c: New file.
85147         * tests/uninorm/test-u8-nfd.c: New file.
85148         * tests/uninorm/test-u16-nfd.c: New file.
85149         * tests/uninorm/test-u32-nfd.c: New file.
85150         * tests/uninorm/test-u32-nfd-big.sh: New file.
85151         * tests/uninorm/test-u32-nfd-big.c: New file.
85152         * tests/uninorm/test-u32-normalize-big.h: New file.
85153         * tests/uninorm/test-u32-normalize-big.c: New file.
85154         * tests/uninorm/NormalizationTest.txt: New file, created from
85155         Unicode 5.1.0 NormalizationTest.txt.
85156         * modules/uninorm/nfd-tests: New file.
85158         New module 'uninorm/nfd'.
85159         * lib/uninorm/nfd.c: New file.
85160         * modules/uninorm/nfd: New file.
85162         New module 'uninorm/u32-normalize'.
85163         * lib/uninorm/u32-normalize.c: New file.
85164         * modules/uninorm/u32-normalize: New file.
85166         New module 'uninorm/u16-normalize'.
85167         * lib/uninorm/u16-normalize.c: New file.
85168         * modules/uninorm/u16-normalize: New file.
85170         New module 'uninorm/u8-normalize'.
85171         * lib/uninorm/u8-normalize.c: New file.
85172         * lib/uninorm/normalize-internal.h: New file.
85173         * lib/uninorm/u-normalize-internal.h: New file.
85174         * modules/uninorm/u8-normalize: New file.
85176         New module 'uninorm/decompose-internal'.
85177         * lib/uninorm/decompose-internal.c: New file.
85178         * modules/uninorm/decompose-internal: New file.
85180         Tests for module 'uninorm/composition'.
85181         * tests/uninorm/test-composition.c: New file.
85182         * modules/uninorm/composition-tests: New file.
85184         New module 'uninorm/composition'.
85185         * lib/uninorm/composition.c: New file.
85186         * lib/uninorm/composition-table.gperf: New file, generated by
85187         gen-uni-tables.
85188         * modules/uninorm/composition: New file.
85190         Tests for module 'uninorm/compat-decomposition'.
85191         * tests/uninorm/test-compat-decomposition.c: New file.
85192         * modules/uninorm/compat-decomposition-tests: New file.
85194         New module 'uninorm/compat-decomposition'.
85195         * lib/uninorm/decompose-internal.h: New file.
85196         * lib/uninorm/compat-decomposition.c: New file.
85197         * modules/uninorm/compat-decomposition: New file.
85199         Tests for module 'uninorm/canonical-decomposition'.
85200         * tests/uninorm/test-canonical-decomposition.c: New file.
85201         * modules/uninorm/canonical-decomposition-tests: New file.
85203         New module 'uninorm/canonical-decomposition'.
85204         * lib/uninorm/canonical-decomposition.c: New file.
85205         * modules/uninorm/canonical-decomposition: New file.
85207         Tests for module 'uninorm/decomposition'.
85208         * tests/uninorm/test-decomposition.c: New file.
85209         * modules/uninorm/decomposition-tests: New file.
85211         New module 'uninorm/decomposition'.
85212         * lib/uninorm/decomposition.c: New file.
85213         * modules/uninorm/decomposition: New file.
85215         New module 'uninorm/decomposition-table'.
85216         * lib/uninorm/decomposition-table.h: New file.
85217         * lib/uninorm/decomposition-table.c: New file.
85218         * lib/uninorm/decomposition-table1.h: New file, generated by
85219         gen-uni-tables.
85220         * lib/uninorm/decomposition-table2.h: New file, generated by
85221         gen-uni-tables.
85222         * modules/uninorm/decomposition-table: New file.
85224         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
85225         (UC_DECOMP_*): New enumeration items.
85226         (get_decomposition): New function.
85227         (struct decomp_table): New type.
85228         (output_decomposition, output_decomposition_tables): New functions.
85229         (unicode_composition_exclusions): New variable.
85230         (fill_composition_exclusions, debug_output_composition_tables): New
85231         functions.
85232         (main): Accept one more argument. Invoke fill_composition_exclusions.
85233         Output decomposition and composition tables.
85235         New module 'uninorm/base'.
85236         * lib/uninorm.h: New file.
85237         * lib/unictype.h: Update comment.
85238         * modules/uninorm/base: New file.
85240 2009-02-21  David Lutterkort  <lutter@redhat.com>
85242         Tests for module 'safe-alloc'.
85243         * tests/test-safe-alloc.c: New file.
85244         * modules/safe-alloc-tests: New file.
85246         New module 'safe-alloc'.
85247         * lib/safe-alloc.h: New file.
85248         * lib/safe-alloc.c: New file.
85249         * m4/safe-alloc.m4: New file.
85250         * modules/safe-alloc: New file.
85251         * doc/safe-alloc.texi: New file.
85252         * doc/gnulib.texi: Include it.
85253         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
85254         safe-alloc.
85256 2009-02-18  Bruno Haible  <bruno@clisp.org>
85258         Fix link error on non-glibc systems.
85259         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
85260         variable.
85261         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
85263 2009-02-18  Jim Meyering  <meyering@redhat.com>
85265         fts: avoid used-uninitialized error due to recent change
85266         * lib/fts.c (fts_read): Guard uses of the new member,
85267         parent->fts_n_dirs_remaining, since it's not relevant for
85268         the parent of a directory specified on the command-line.
85270 2009-02-17  James Youngman  <jay@gnu.org>
85271             Bruno Haible  <bruno@clisp.org>
85273         * m4/include_next.m4: Reformulate comment.
85275 2009-02-16  Jim Meyering  <meyering@redhat.com>
85277         fts: add #if guards so that the fts_lgpl module still builds
85278         * lib/fts.c: Guard just-added hash-table-using parts with
85279         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
85280         Reported by Simon Josefsson.
85282 2009-02-15  Bruno Haible  <bruno@clisp.org>
85284         * modules/array-mergesort-tests: New file.
85285         * tests/test-array-mergesort.c: New file.
85287         New module 'array-mergesort'.
85288         * modules/array-mergesort: New file.
85289         * lib/array-mergesort.h: New file.
85291 2009-02-15  Bruno Haible  <bruno@clisp.org>
85293         Fix 2009-02-07 commit.
85294         * lib/gen-uni-tables.c (output_predicate, output_category,
85295         output_combclass, output_bidi_category, output_decimal_digit,
85296         output_digit, output_numeric, output_mirror, output_scripts,
85297         output_ident_category, output_simple_mapping): Fix format directives.
85298         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
85300 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
85302         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
85303         fixes are available from IBM.
85305 2009-02-13  Jim Meyering  <meyering@redhat.com>
85307         fts: arrange not to stat non-directories in more cases
85308         This makes GNU find (when it doesn't need to stat each file)
85309         *much* more efficient at traversing reiserfs file systems.
85310         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
85311         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
85312         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
85313         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
85314         (leaf_optimization_applies): New function.
85315         (LCO_hash, LCO_compare): New helper functions.
85316         (link_count_optimize_ok): New function.
85317         (fts_stat): Initialize new member (if dir).
85318         (fts_read): Decrement parent's fts_n_dirs_remaining count if
85319         we've just stat'ed a directory.  Skip the stat call when possible.
85320         ---
85321         Note this AFS-related exchange:
85322         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
85323         and note find's pioctl call in find/fstype.c.
85324         But that is necessary only if you want to enable the
85325         optimization for AFS, and for now, I don't.
85327         fts: move a function definition "up" (no semantic change)
85328         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
85329         "up" to precede upcoming use of a related function.
85331 2009-02-11  Jim Meyering  <meyering@redhat.com>
85333         fts: correct internal computation of nlinks (optimization-related)
85334         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
85335         whether the current entry is a directory, so don't test it.
85337 2009-02-10  Bruno Haible  <bruno@clisp.org>
85339         Tests for module 'uniwbrk/ulc-wordbreaks'.
85340         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
85341         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
85342         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
85344         Tests for module 'uniwbrk/u32-wordbreaks'.
85345         * modules/uniwbrk/u32-wordbreaks-tests: New file.
85346         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
85348         Tests for module 'uniwbrk/u16-wordbreaks'.
85349         * modules/uniwbrk/u16-wordbreaks-tests: New file.
85350         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
85352         Tests for module 'uniwbrk/u8-wordbreaks'.
85353         * modules/uniwbrk/u8-wordbreaks-tests: New file.
85354         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
85356 2009-02-10  Bruno Haible  <bruno@clisp.org>
85358         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
85359         property.
85360         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
85361         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
85362         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
85364 2009-02-10  Simon Josefsson  <simon@josefsson.org>
85366         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
85367         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
85369 2009-02-10  Bruno Haible  <bruno@clisp.org>
85371         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
85372         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
85373         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
85374         * lib/unilbrk/u8-possible-linebreaks.c: Update.
85375         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
85376         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
85378 2009-02-09  Simon Josefsson  <simon@josefsson.org>
85380         * lib/sockets.h (gl_fd_to_handle): New function.
85382         * tests/test-sockets.c: Call gl_fd_to_handle.
85384 2009-02-09  Bruno Haible  <bruno@clisp.org>
85386         * doc/havelib.texi: Document the conventions on bi-arch systems.
85388 2009-02-08  Bruno Haible  <bruno@clisp.org>
85390         Document the AC_LIB_LINKFLAGS macro.
85391         * doc/havelib.texi: New file, mostly written on 2005-05-24.
85392         * doc/gnulib.texi: Include it.
85394 2009-02-08  Bruno Haible  <bruno@clisp.org>
85396         Fix wrong order of sections, compared to TOC.
85397         * doc/gnulib.texi: Include relocatable-maint.texi after the
85398         "Regular expressions" node, not before.
85400 2009-02-08  Bruno Haible  <bruno@clisp.org>
85402         Tests for module 'unicase/totitle'.
85403         * modules/unicase/totitle-tests: New file.
85405         Tests for module 'unicase/tolower'.
85406         * modules/unicase/tolower-tests: New file.
85408         Tests for module 'unicase/toupper'.
85409         * modules/unicase/toupper-tests: New file.
85410         * tests/unicase/test-mapping-part1.h: New file.
85411         * tests/unicase/test-mapping-part2.h: New file.
85413         New module 'unicase/totitle'.
85414         * modules/unicase/totitle: New file.
85415         * lib/unicase/totitle.c: New file.
85417         New module 'unicase/tolower'.
85418         * modules/unicase/tolower: New file.
85419         * lib/unicase/tolower.c: New file.
85421         New module 'unicase/toupper'.
85422         * modules/unicase/toupper: New file.
85423         * lib/unicase/toupper.c: New file.
85424         * lib/unicase/simple-mapping.h: New file.
85426         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
85427         (mapping_table): New structure.
85428         (output_simple_mapping): New function.
85429         (main): Invoke output_simple_mapping_test and output_simple_mapping.
85430         * modules/gen-uni-tables (Description): Update.
85431         * lib/unicase/toupper.h: New file, automatically generated by
85432         gen-uni-tables.
85433         * lib/unicase/tolower.h: New file, automatically generated by
85434         gen-uni-tables.
85435         * lib/unicase/totitle.h: New file, automatically generated by
85436         gen-uni-tables.
85437         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
85438         gen-uni-tables.
85439         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
85440         gen-uni-tables.
85441         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
85442         gen-uni-tables.
85444         New module 'unicase/base'.
85445         * modules/unicase/base: New file.
85446         * lib/unicase.h: New file.
85448 2009-02-08  Bruno Haible  <bruno@clisp.org>
85450         New module 'uniwbrk/ulc-wordbreaks'.
85451         * modules/uniwbrk/ulc-wordbreaks: New file.
85452         * lib/uniwbrk/ulc-wordbreaks.c: New file.
85454         New module 'uniwbrk/u32-wordbreaks'.
85455         * modules/uniwbrk/u32-wordbreaks: New file.
85456         * lib/uniwbrk/u32-wordbreaks.c: New file.
85458         New module 'uniwbrk/u16-wordbreaks'.
85459         * modules/uniwbrk/u16-wordbreaks: New file.
85460         * lib/uniwbrk/u16-wordbreaks.c: New file.
85462         New module 'uniwbrk/u8-wordbreaks'.
85463         * modules/uniwbrk/u8-wordbreaks: New file.
85464         * lib/uniwbrk/u8-wordbreaks.c: New file.
85465         * lib/uniwbrk/u-wordbreaks.h: New file.
85467         New module 'uniwbrk/table'.
85468         * modules/uniwbrk/table: New file.
85469         * lib/uniwbrk/wbrktable.h: New file.
85470         * lib/uniwbrk/wbrktable.c: New file.
85472         New module 'uniwbrk/wordbreak-property'.
85473         * modules/uniwbrk/wordbreak-property: New file.
85474         * lib/uniwbrk/wordbreak-property.c: New file.
85476         * lib/gen-uni-tables.c (WBP_*): New enum items.
85477         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
85478         (unicode_org_wbp): New variable.
85479         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
85480         New functions.
85481         (wbp_table): New structure.
85482         (output_wbp, output_wbrk_tables): New functions.
85483         (main): Accept additional argument. Invoke fill_org_wbp,
85484         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
85485         output_wbrk_tables.
85486         * modules/gen-uni-tables (Description): Update.
85487         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
85488         gen-uni-tables.
85490         New module 'uniwbrk/base'.
85491         * modules/uniwbrk/base: New file.
85492         * lib/uniwbrk.h: New file.
85494 2009-02-08  Bruno Haible  <bruno@clisp.org>
85496         Update to Unicode 5.1.0.
85497         * lib/gen-uni-tables.c (is_property_alphabetic): Include
85498         U+2185..U+2188.
85499         (is_property_default_ignorable_code_point): Don't include characters
85500         of category Cc or Cs and not-a-characters.
85501         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
85502         U+0D79, U+109E, U+109F, U+A60C.
85503         * lib/unictype/bidi_of.h: Regenerated.
85504         * lib/unictype/blocks.h: Regenerated.
85505         * lib/unictype/categ_C.h: Regenerated.
85506         * lib/unictype/categ_Cf.h: Regenerated.
85507         * lib/unictype/categ_Cn.h: Regenerated.
85508         * lib/unictype/categ_L.h: Regenerated.
85509         * lib/unictype/categ_Ll.h: Regenerated.
85510         * lib/unictype/categ_Lm.h: Regenerated.
85511         * lib/unictype/categ_Lo.h: Regenerated.
85512         * lib/unictype/categ_Lu.h: Regenerated.
85513         * lib/unictype/categ_M.h: Regenerated.
85514         * lib/unictype/categ_Mc.h: Regenerated.
85515         * lib/unictype/categ_Me.h: Regenerated.
85516         * lib/unictype/categ_Mn.h: Regenerated.
85517         * lib/unictype/categ_N.h: Regenerated.
85518         * lib/unictype/categ_Nd.h: Regenerated.
85519         * lib/unictype/categ_Nl.h: Regenerated.
85520         * lib/unictype/categ_No.h: Regenerated.
85521         * lib/unictype/categ_P.h: Regenerated.
85522         * lib/unictype/categ_Pd.h: Regenerated.
85523         * lib/unictype/categ_Pe.h: Regenerated.
85524         * lib/unictype/categ_Pf.h: Regenerated.
85525         * lib/unictype/categ_Pi.h: Regenerated.
85526         * lib/unictype/categ_Po.h: Regenerated.
85527         * lib/unictype/categ_Ps.h: Regenerated.
85528         * lib/unictype/categ_S.h: Regenerated.
85529         * lib/unictype/categ_Sk.h: Regenerated.
85530         * lib/unictype/categ_Sm.h: Regenerated.
85531         * lib/unictype/categ_So.h: Regenerated.
85532         * lib/unictype/categ_of.h: Regenerated.
85533         * lib/unictype/combining.h: Regenerated.
85534         * lib/unictype/ctype_alnum.h: Regenerated.
85535         * lib/unictype/ctype_alpha.h: Regenerated.
85536         * lib/unictype/ctype_graph.h: Regenerated.
85537         * lib/unictype/ctype_lower.h: Regenerated.
85538         * lib/unictype/ctype_print.h: Regenerated.
85539         * lib/unictype/ctype_punct.h: Regenerated.
85540         * lib/unictype/ctype_upper.h: Regenerated.
85541         * lib/unictype/decdigit.h: Regenerated.
85542         * lib/unictype/digit.h: Regenerated.
85543         * lib/unictype/mirror.h: Regenerated.
85544         * lib/unictype/numeric.h: Regenerated.
85545         * lib/unictype/pr_alphabetic.h: Regenerated.
85546         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
85547         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
85548         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
85549         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
85550         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
85551         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
85552         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
85553         * lib/unictype/pr_combining.h: Regenerated.
85554         * lib/unictype/pr_dash.h: Regenerated.
85555         * lib/unictype/pr_decimal_digit.h: Regenerated.
85556         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
85557         * lib/unictype/pr_deprecated.h: Regenerated.
85558         * lib/unictype/pr_diacritic.h: Regenerated.
85559         * lib/unictype/pr_extender.h: Regenerated.
85560         * lib/unictype/pr_format_control.h: Regenerated.
85561         * lib/unictype/pr_grapheme_base.h: Regenerated.
85562         * lib/unictype/pr_grapheme_extend.h: Regenerated.
85563         * lib/unictype/pr_grapheme_link.h: Regenerated.
85564         * lib/unictype/pr_id_continue.h: Regenerated.
85565         * lib/unictype/pr_id_start.h: Regenerated.
85566         * lib/unictype/pr_ideographic.h: Regenerated.
85567         * lib/unictype/pr_ignorable_control.h: Regenerated.
85568         * lib/unictype/pr_lowercase.h: Regenerated.
85569         * lib/unictype/pr_math.h: Regenerated.
85570         * lib/unictype/pr_numeric.h: Regenerated.
85571         * lib/unictype/pr_other_alphabetic.h: Regenerated.
85572         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
85573         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
85574         * lib/unictype/pr_other_id_continue.h: Regenerated.
85575         * lib/unictype/pr_other_lowercase.h: Regenerated.
85576         * lib/unictype/pr_other_math.h: Regenerated.
85577         * lib/unictype/pr_punctuation.h: Regenerated.
85578         * lib/unictype/pr_sentence_terminal.h: Regenerated.
85579         * lib/unictype/pr_soft_dotted.h: Regenerated.
85580         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
85581         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
85582         * lib/unictype/pr_unified_ideograph.h: Regenerated.
85583         * lib/unictype/pr_uppercase.h: Regenerated.
85584         * lib/unictype/pr_xid_continue.h: Regenerated.
85585         * lib/unictype/pr_xid_start.h: Regenerated.
85586         * lib/unictype/pr_zero_width.h: Regenerated.
85587         * lib/unictype/scripts.h: Regenerated.
85588         * lib/unictype/scripts_byname.gperf: Regenerated.
85589         * lib/unictype/sy_java_ident.h: Regenerated.
85590         * lib/unilbrk/lbrkprop1.h: Regenerated.
85591         * lib/unilbrk/lbrkprop2.h: Regenerated.
85592         * tests/unictype/test-categ_C.c: Regenerated.
85593         * tests/unictype/test-categ_Cf.c: Regenerated.
85594         * tests/unictype/test-categ_Cn.c: Regenerated.
85595         * tests/unictype/test-categ_L.c: Regenerated.
85596         * tests/unictype/test-categ_Ll.c: Regenerated.
85597         * tests/unictype/test-categ_Lm.c: Regenerated.
85598         * tests/unictype/test-categ_Lo.c: Regenerated.
85599         * tests/unictype/test-categ_Lu.c: Regenerated.
85600         * tests/unictype/test-categ_M.c: Regenerated.
85601         * tests/unictype/test-categ_Mc.c: Regenerated.
85602         * tests/unictype/test-categ_Me.c: Regenerated.
85603         * tests/unictype/test-categ_Mn.c: Regenerated.
85604         * tests/unictype/test-categ_N.c: Regenerated.
85605         * tests/unictype/test-categ_Nd.c: Regenerated.
85606         * tests/unictype/test-categ_Nl.c: Regenerated.
85607         * tests/unictype/test-categ_No.c: Regenerated.
85608         * tests/unictype/test-categ_P.c: Regenerated.
85609         * tests/unictype/test-categ_Pd.c: Regenerated.
85610         * tests/unictype/test-categ_Pe.c: Regenerated.
85611         * tests/unictype/test-categ_Pf.c: Regenerated.
85612         * tests/unictype/test-categ_Pi.c: Regenerated.
85613         * tests/unictype/test-categ_Po.c: Regenerated.
85614         * tests/unictype/test-categ_Ps.c: Regenerated.
85615         * tests/unictype/test-categ_S.c: Regenerated.
85616         * tests/unictype/test-categ_Sk.c: Regenerated.
85617         * tests/unictype/test-categ_Sm.c: Regenerated.
85618         * tests/unictype/test-categ_So.c: Regenerated.
85619         * tests/unictype/test-ctype_alnum.c: Regenerated.
85620         * tests/unictype/test-ctype_alpha.c: Regenerated.
85621         * tests/unictype/test-ctype_graph.c: Regenerated.
85622         * tests/unictype/test-ctype_lower.c: Regenerated.
85623         * tests/unictype/test-ctype_print.c: Regenerated.
85624         * tests/unictype/test-ctype_punct.c: Regenerated.
85625         * tests/unictype/test-ctype_upper.c: Regenerated.
85626         * tests/unictype/test-decdigit.h: Regenerated.
85627         * tests/unictype/test-digit.h: Regenerated.
85628         * tests/unictype/test-numeric.h: Regenerated.
85629         * tests/unictype/test-pr_alphabetic.c: Regenerated.
85630         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
85631         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
85632         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
85633         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
85634         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
85635         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
85636         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
85637         * tests/unictype/test-pr_combining.c: Regenerated.
85638         * tests/unictype/test-pr_dash.c: Regenerated.
85639         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
85640         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
85641         * tests/unictype/test-pr_deprecated.c: Regenerated.
85642         * tests/unictype/test-pr_diacritic.c: Regenerated.
85643         * tests/unictype/test-pr_extender.c: Regenerated.
85644         * tests/unictype/test-pr_format_control.c: Regenerated.
85645         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
85646         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
85647         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
85648         * tests/unictype/test-pr_id_continue.c: Regenerated.
85649         * tests/unictype/test-pr_id_start.c: Regenerated.
85650         * tests/unictype/test-pr_ideographic.c: Regenerated.
85651         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
85652         * tests/unictype/test-pr_lowercase.c: Regenerated.
85653         * tests/unictype/test-pr_math.c: Regenerated.
85654         * tests/unictype/test-pr_numeric.c: Regenerated.
85655         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
85656         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
85657         Regenerated.
85658         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
85659         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
85660         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
85661         * tests/unictype/test-pr_other_math.c: Regenerated.
85662         * tests/unictype/test-pr_punctuation.c: Regenerated.
85663         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
85664         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
85665         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
85666         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
85667         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
85668         * tests/unictype/test-pr_uppercase.c: Regenerated.
85669         * tests/unictype/test-pr_xid_continue.c: Regenerated.
85670         * tests/unictype/test-pr_xid_start.c: Regenerated.
85671         * tests/unictype/test-pr_zero_width.c: Regenerated.
85673         Update to Unicode 5.1.0.
85674         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
85675         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
85676         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
85677         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
85678         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
85679         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
85680         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
85681         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
85682         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
85683         (nonspacing_table_ind): Update.
85684         * tests/uniwidth/test-uc_width2.sh: Update expected result.
85686         Update to Unicode 5.1.0.
85687         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
85688         code transform.
85689         * lib/uniname/uniname.c (unicode_character_name,
85690         unicode_name_character): Add the range 0x1Fxxx to the code transform.
85691         * lib/uniname/uninames.h: Regenerated.
85692         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
85694 2009-02-07  Bruno Haible  <bruno@clisp.org>
85696         Merge gen-ctype and gen-lbrk into a single program.
85697         * lib/gen-uni-tables.c: New file, incorporating
85698         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
85699         Add directory prefixes to the names of the generated files.
85700         * lib/unictype/gen-ctype.c: Remove file.
85701         * lib/unilbrk/gen-lbrk.c: Remove file.
85702         * modules/gen-uni-tables: New file.
85703         * modules/unictype/gen-ctype: Remove file.
85704         * modules/unilbrk/gen-lbrk: Remove file.
85706 2009-02-07  Bruno Haible  <bruno@clisp.org>
85708         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
85710         New module 'unistr/u32-strcoll'.
85711         * modules/unistr/u32-strcoll: New file.
85712         * lib/unistr/u32-strcoll.c: New file.
85714         New module 'unistr/u16-strcoll'.
85715         * modules/unistr/u16-strcoll: New file.
85716         * lib/unistr/u16-strcoll.c: New file.
85718         New module 'unistr/u8-strcoll'.
85719         * modules/unistr/u8-strcoll: New file.
85720         * lib/unistr/u8-strcoll.c: New file.
85721         * lib/unistr/u-strcoll.h: New file.
85723 2009-02-07  Bruno Haible  <bruno@clisp.org>
85725         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
85726         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
85727         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
85728         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
85729         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
85730         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
85732 2009-02-07  Bruno Haible  <bruno@clisp.org>
85734         Make 64-bit clean.
85735         * lib/unictype/gen-ctype.c (output_predicate, output_category,
85736         output_combclass, output_bidi_category, output_decimal_digit,
85737         output_digit, output_numeric, output_mirror, output_scripts,
85738         output_ident_category): Use proper width specifier in format strings.
85740 2009-02-07  Bruno Haible  <bruno@clisp.org>
85742         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
85743         failure behaviour.
85745 2009-02-07  Jim Meyering  <meyering@redhat.com>
85747         regex: avoid compilation failure with upcoming gcc-4.4
85748         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
85749         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
85750         "... error: integer overflow in preprocessor expression".
85752 2009-02-05  Ben Pfaff  <blp@gnu.org>
85754         Fix link errors on Windows when close module is used.
85755         * modules/close: Add $(LIB_CLOSE) to Link section.
85756         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
85757         $(LIB_CLOSE) on Windows.
85759 2009-02-05  Jim Meyering  <meyering@redhat.com>
85761         still avoid unused-parameter warnings, but do it cleanly
85762         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
85763         (get_fs_usage): Cast to void instead.
85764         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
85765         (dev_from_mount_options, read_file_system_list): Cast to void.
85766         Prompted by Bruno Haible.
85768 2009-02-04  Jim Meyering  <meyering@redhat.com>
85770         fsusage.c: correct copyright year
85771         * lib/fsusage.c: Reflect year in which the change is pushed into
85773         avoid misc. warnings
85774         * lib/fsusage.c (UNUSED_PARAM): Define.
85775         (get_fs_usage): Mark parameter "disk" as unused.
85776         * lib/getugroups.c (getgrent): Use "void" in prototype.
85777         * lib/mountlist.c: Mark unused parameters.
85778         (read_file_system_list): Declare a local with "const".
85779         * lib/nanosleep.c (getnow): Declare static.
85780         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
85782         dirfd: set errno upon failure
85783         * lib/dirfd.c: Include <errno.h>.
85784         Set errno to ENOTSUP when returning -1.
85785         * modules/dirfd (Depends-on): Add errno.
85786         Suggested by John Kodis <kodis@comcast.net>.
85788 2009-02-01  Bruno Haible  <bruno@clisp.org>
85790         Don't assume sizeof (long) >= sizeof (void *).
85791         * lib/memcmp.c: Include stdint.h.
85792         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
85793         srcp2 to 'const byte *'.
85794         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
85795         types to uintptr_t.
85796         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
85797         * modules/memcmp (Depends-on): Add stdint.
85798         Reported by Ozkan Sezer <sezeroz@gmail.com>.
85800 2009-01-30  Eric Blake  <ebb9@byu.net>
85802         fix more require-before-expand issues
85803         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
85804         expand, AC_PROG_AWK.
85805         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
85807 2009-01-28  Eric Blake  <ebb9@byu.net>
85809         version-etc: use consistent URL formatting
85810         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
85811         Improve formatting.  Use fputs for string without %.
85813 2009-01-28  Jim Meyering  <meyering@redhat.com>
85815         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
85816         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
85817         "underquoted definition of NAME" from autoconf-2.59.
85819 2009-01-28  Bruno Haible  <bruno@clisp.org>
85821         * doc/gnulib.texi: Add "Obsolete modules" to index.
85823 2009-01-28  Jim Meyering  <meyering@redhat.com>
85825         useless-if-before-free: recognize more variants
85826         * build-aux/useless-if-before-free: Also recognize e.g.,
85827         if (NULL != p) free (p);
85829 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
85831         test-getaddrinfo: skip (don't fail) this test when there's no network
85832         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
85833         on the presumption that it means you lack network access.
85835 2009-01-26  Jim Meyering  <meyering@redhat.com>
85837         fflush: avoid warnings on modern systems
85838         * lib/fflush.c (rpl_fflush): Move declarations of locals,
85839         pos and result, into scopes where they're used.
85841 2009-01-26  Eric Blake  <ebb9@byu.net>
85843         Silence warning reintroduced by recent extensions patch.
85844         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
85845         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
85846         autoconf.
85848         Backport improved autoconf semantics of AC_DEFUN_ONCE.
85849         * m4/00gnulib.m4: New file.
85850         * gnulib-tool (func_get_filelist): Always use it.
85851         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
85852         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
85854 2009-01-25  Bruno Haible  <bruno@clisp.org>
85856         Make test-quotearg work on MacOS X and AIX.
85857         * tests/test-quotearg.sh: New file.
85858         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
85859         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
85860         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
85861         include <libintl.h>.
85862         (fake_locale): Remove variable.
85863         (gettext, dgettext, dcgettext): Remove functions.
85864         (main): Instead of setting a fake locale, set a real locale. Call
85865         textdomain and bindtextdomain.
85866         * modules/quotearg-tests (Files): Add the new files.
85867         (Depends-on): Add gettext, setenv, unsetenv.
85868         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
85869         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
85870         Augment TESTS_ENVIRONMENT.
85872 2009-01-25  Bruno Haible  <bruno@clisp.org>
85874         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
85875         fr_FR.ISO8859-1 locale on MacOS X.
85876         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
85877         ja_JP.eucJP locale on MacOS X.
85878         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
85879         zh_CN.GB18030 locale on MacOS X.
85881 2009-01-25  Bruno Haible  <bruno@clisp.org>
85883         Avoid link errors on MacOS X 10.3.
85884         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
85885         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
85887 2009-01-25  Bruno Haible  <bruno@clisp.org>
85889         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
85890         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
85891         * modules/pipe (Files): Remove m4/posix_spawn.m4.
85892         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
85893         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
85894         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
85895         posix_spawnattr_init, posix_spawnattr_setsigmask,
85896         posix_spawnattr_setflags, posix_spawnattr_destroy.
85898         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
85899         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
85900         * modules/execute (Files): Remove m4/posix_spawn.m4.
85901         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
85902         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
85903         posix_spawnattr_init, posix_spawnattr_setsigmask,
85904         posix_spawnattr_setflags, posix_spawnattr_destroy.
85906 2009-01-25  Bruno Haible  <bruno@clisp.org>
85908         * lib/glthread/threadlib.c: Include <stdlib.h>.
85910 2009-01-25  Bruno Haible  <bruno@clisp.org>
85912         * lib/glthread/threadlib.c (dummy): New declaration.
85914 2009-01-25  Bruno Haible  <bruno@clisp.org>
85916         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
85917         multibyte characters also for the GB18030 encoding. Don't crash when
85918         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
85920 2009-01-25  Bruno Haible  <bruno@clisp.org>
85922         Avoid redefining 'struct random_data' on OSF/1 5.1.
85923         * lib/stdlib.in.h: Include <random.h> if it exists.
85924         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
85925         HAVE_RANDOM_H. Include <random.h> when testing whether
85926         'struct random_data' exists.
85927         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
85929 2009-01-25  Bruno Haible  <bruno@clisp.org>
85931         Don't install charset.alias on MacOS X >= 10.3.
85932         * lib/localcharset.c (DARWIN7): New macro.
85933         (get_charset_aliases): Hardcode the result for Darwin7.
85934         * modules/localcharset (install-exec-local): Don't install
85935         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
85937 2009-01-25  Bruno Haible  <bruno@clisp.org>
85939         Don't install charset.alias on mingw and Cygwin.
85940         * modules/localcharset (install-exec-local): Don't install
85941         charset.alias on mingw and Cygwin, if the file does not yet exist.
85942         The result for these platforms is hardcoded in localcharset.c.
85944 2009-01-25  Bruno Haible  <bruno@clisp.org>
85946         Make it possible again to use AC_GNU_SOURCE together with gnulib.
85947         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
85948         before requiring AC_USE_SYSTEM_EXTENSIONS.
85950 2009-01-25  Jim Meyering  <meyering@redhat.com>
85952         c-strtod: avoid warnings
85953         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
85954         "assignment discards qualifiers from pointer target type" warnings.
85956 2009-01-24  Bruno Haible  <bruno@clisp.org>
85958         Add support for non-UTF-8 locales on MacOS X.
85959         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
85960         canonical encodings. For Darwin 7 and newer, don't map traditional
85961         encodings to UTF-8.
85962         Reported by Vincent Lefevre <vincent@vinc17.org>
85963         at <http://savannah.gnu.org/bugs/?25235>.
85965 2009-01-24  Bruno Haible  <bruno@clisp.org>
85967         * doc/gnulib.texi (Obsolete modules): New section.
85968         Reported by Mike Frysinger <vapier@gentoo.org>.
85970 2009-01-24  Bruno Haible  <bruno@clisp.org>
85972         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
85973         (%.dvi): New rule.
85975 2009-01-24  Bruno Haible  <bruno@clisp.org>
85977         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
85978         Reported by Eric Blake.
85980 2009-01-24  Bruno Haible  <bruno@clisp.org>
85982         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
85983         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
85984         Reported by Gary V. Vaughan <gary@gnu.org>.
85986 2009-01-24  Bruno Haible  <bruno@clisp.org>
85988         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
85990 2009-01-23  Bruno Haible  <bruno@clisp.org>
85992         Make c-strtod, c-strtold usable in libraries.
85993         * lib/c-strtod.c: Include string.h instead of xalloc.h.
85994         (C_STRTOD): Call strdup instead of xstrdup.
85995         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
85996         * modules/c-strtold (Depends-on): Likewise.
85997         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
85998         * NEWS: Mention the change.
85999         Reported by Michael Gold <mgold@ncf.ca>.
86001 2009-01-23  Jim Meyering  <meyering@redhat.com>
86003         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
86004         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
86005         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
86007 2009-01-23  Simon Josefsson  <simon@josefsson.org>
86009         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
86010         GNU CoreUtils.
86011         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
86012         * modules/version-etc (Description): Update.
86014 2009-01-22  Bruno Haible  <bruno@clisp.org>
86016         Cache the C locale object.
86017         * lib/c-strtod.c (c_locale_cache): New variable.
86018         (c_locale): New function.
86019         (C_STRTOD): Use it, and don't call freelocale.
86020         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
86021         Suggested by Paolo Bonzini.
86023 2009-01-21  Bruno Haible  <bruno@clisp.org>
86025         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
86026         conditions other than overflow.
86028 2009-01-21  Bruno Haible  <bruno@clisp.org>
86030         * lib/c-strtod.c: Include errno.h.
86031         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
86032         value from STRTOD_L and STRTOD.
86034 2009-01-21  Bruno Haible  <bruno@clisp.org>
86035         and Jim Meyering  <meyering@redhat.com>
86037         nanosleep: skip configure test (fail it) for apple universal builds
86038         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
86039         universal builds, assume that nanosleep does not work.
86040         * modules/nanosleep (Depends-on): Add multiarch.
86042         mktime: skip configure test (fail it) for apple universal builds
86043         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
86044         universal builds, assume that mktime does not work.
86045         * modules/mktime (Depends-on): Add multiarch.
86047 2009-01-21  Eric Blake  <ebb9@byu.net>
86049         multiarch: avoid expand-before-require warning
86050         * modules/multiarch (configure.ac): Require, rather than expand,
86051         gl_MULTIARCH.
86052         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
86053         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
86054         enforce that all clients require it.  Partial reversion of
86055         2008-12-29 patch.
86057         error: avoid expand-before-require warning
86058         * modules/errno (configure.ac): Require, rather than expand,
86059         gl_HEADER_ERRNO_H.
86060         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
86061         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
86062         enforce that all clients require it.
86064         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
86065         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
86066         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
86067         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
86069 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
86071         Revert:
86072         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
86074         regex: do not depend on obsolete modules.
86075         * modules/regex: Remove memcmp and memmove.
86077 2009-01-20  Bruno Haible  <bruno@clisp.org>
86079         Make the 'link' module link on Windows NT 4.
86080         * lib/link.c (_WIN32_WINNT): Don't define.
86081         (CreateHardLinkFuncType): New type.
86082         (CreateHardLinkFunc, initialized): New variables.
86083         (initialize): New function.
86084         (link): Invoke CreateHardLink indirectly through the function pointer.
86086 2009-01-20  Bruno Haible  <bruno@clisp.org>
86088         Fix compilation failure on mingw.
86089         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
86091 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
86093         * doc/c-strtod.texi: Mention a couple of restrictions.
86095 2009-01-20  Jim Meyering  <meyering@redhat.com>
86097         gettimeofday: move more declarations out of functions
86098         * lib/gettimeofday.c: Move extern declarations of tzset and
86099         gmtime out of containing functions.  Prompted by Bruno Haible.
86101 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
86103         regex: do not depend on obsolete modules.
86104         * modules/regex: Remove memcmp and memmove.
86106 2009-01-19  Bruno Haible  <bruno@clisp.org>
86108         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
86109         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
86110         gl_BIGENDIAN, not AC_C_BIGENDIAN.
86111         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
86112         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
86114 2009-01-19  Bruno Haible  <bruno@clisp.org>
86116         * tests/test-link.c: Include <errno.h>.
86117         (main): Exit with code 77 when a hard link cannot be created due to
86118         the file system.
86119         * tests/test-link.sh: Skip test when a hard link cannot be created due
86120         to the file system.
86121         Suggested by Eric Blake.
86123 2009-01-19  Martin Lambers  <marlam@marlam.de>
86125         * modules/link-tests: New file.
86126         * tests/test-link.sh: New file.
86127         * tests/test-link.c: New file.
86129 2009-01-19  Eric Blake  <ebb9@byu.net>
86131         doc: mention another function added in cygwin 1.7.0
86132         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
86133         Another new function in cygwin 1.7.
86135 2009-01-19  Bruno Haible  <bruno@clisp.org>
86137         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
86138         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
86139         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
86140         gl_BIGENDIAN, not AC_C_BIGENDIAN.
86141         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
86142         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
86143         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
86144         * m4/md4.m4 (gl_MD4): Likewise.
86145         * m4/md5.m4 (gl_MD5): Likewise.
86146         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
86147         * m4/sha1.m4 (gl_SHA1): Likewise.
86148         * m4/sha256.m4 (gl_SHA256): Likewise.
86149         * m4/sha512.m4 (gl_SHA512): Likewise.
86151 2009-01-19  Bruno Haible  <bruno@clisp.org>
86153         * modules/uniname/uniname-tests (Depends-on): Add progname.
86154         * tests/uniname/test-uninames.c: Include progname.h.
86155         (main): Call set_program_name.
86157         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
86158         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
86159         (main): Call set_program_name.
86161         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
86162         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
86163         (main): Call set_program_name.
86165         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
86166         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
86167         (main): Call set_program_name.
86169         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
86170         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
86171         (main): Call set_program_name.
86173         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
86174         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
86175         (main): Call set_program_name.
86177         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
86178         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
86179         (main): Call set_program_name.
86181         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
86182         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
86183         (main): Call set_program_name.
86185         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
86186         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
86187         (main): Call set_program_name.
86189 2009-01-19  Eric Blake  <ebb9@byu.net>
86191         test-unistd: test previous patch
86192         * tests/test-unistd.c: Test *_FILENO macros.
86194         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
86195         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
86196         Guarantee a definition.
86197         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
86198         * modules/unistd-safer (Depends-on): Add dependency on unistd.
86199         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
86200         * lib/dup-safer.c (STDERR_FILENO): Likewise.
86201         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
86202         Likewise.
86203         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
86204         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
86205         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
86206         Likewise.
86207         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
86208         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
86209         (STDERR_FILENO): Likewise.
86210         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
86211         (STDERR_FILENO): Likewise.
86212         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
86213         (STDERR_FILENO): Likewise.
86214         Reported by Elbert Pol.
86216 2009-01-19  Eric Blake  <ebb9@byu.net>
86218         doc: mention more functions added in cygwin 1.7.0
86219         * doc/posix-functions/abort.texi (abort): Update wording related
86220         to cygwin.
86221         * doc/posix-functions/daylight.texi (daylight): Likewise.
86222         * doc/posix-functions/optarg.texi (optarg): Likewise.
86223         * doc/posix-functions/optarg.texi (opterr): Likewise.
86224         * doc/posix-functions/optarg.texi (optind): Likewise.
86225         * doc/posix-functions/optarg.texi (optopt): Likewise.
86226         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
86227         worked in 1.5.x, and was withdrawn in 1.7.
86228         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
86229         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
86230         cygwin versions.
86231         * doc/posix-functions/perror.texi (perror): Likewise.
86232         * doc/posix-functions/printf.texi (printf): Likewise.
86233         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
86234         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
86235         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
86236         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
86237         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
86238         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
86239         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
86240         Likewise.
86241         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
86242         Likewise.
86243         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
86244         this function.
86245         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
86246         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
86247         Likewise.
86248         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
86249         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
86250         * doc/posix-functions/confstr.texi (confstr): Likewise.
86251         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
86252         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
86253         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
86254         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
86255         * doc/posix-functions/fputws.texi (fputws): Likewise.
86256         * doc/posix-functions/fwide.texi (fwide): Likewise.
86257         * doc/posix-functions/getwc.texi (getwc): Likewise.
86258         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
86259         * doc/posix-functions/putwc.texi (putwc): Likewise.
86260         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
86261         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
86262         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
86263         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
86264         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
86265         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
86266         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
86267         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
86268         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
86269         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
86270         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
86272 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
86274         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
86275         * lib/ioctl.c: Include <sys/ioctl.h>.
86277 2009-01-19  Simon Josefsson  <simon@josefsson.org>
86279         * modules/getdate-tests (Depends-on): Add progname.
86280         * tests/test-getdate.c: Use progname module, to avoid link errors
86281         on non-glibc systems.
86283 2009-01-18  Simon Josefsson  <simon@josefsson.org>
86285         * modules/filenamecat-tests (Depends-on): Add progname.
86286         * modules/fstrcmp-tests (Depends-on): Likewise.
86288         * tests/test-filenamecat.c: Use progname module, to avoid link
86289         errors on non-glibc systems.
86290         * tests/test-fstrcmp.c: Likewise.
86292 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
86294         gettimeofday: avoid warning: nested extern declaration of 'localtime'
86295         * lib/gettimeofday.c: Move extern declaration out of function.
86297 2009-01-18  Bruno Haible  <bruno@clisp.org>
86299         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
86300         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
86301         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
86303 2009-01-18  Bruno Haible  <bruno@clisp.org>
86305         * lib/strftime.c (MEMPCPY): Remove unused macro.
86306         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
86308 2009-01-18  Martin Lambers  <marlam@marlam.de>
86310         New module 'link'.
86311         * lib/unistd.in.h (link): New declaration.
86312         * lib/link.c: New file.
86313         * m4/link.m4: New file.
86314         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
86315         HAVE_LINK.
86316         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
86317         * modules/link: New file.
86318         * doc/posix-functions/link.texi: Mention the new module.
86320 2009-01-18  Bruno Haible  <bruno@clisp.org>
86322         * tests/test-avltree_list.c (main): Call set_program_name.
86323         * tests/test-avltree_oset.c (main): Likewise.
86324         * tests/test-obstack-printf.c: Include progname.h.
86325         (main): Call set_program_name.
86326         * tests/test-quotearg.c: Include progname.h.
86327         (main): Call set_program_name.
86328         * tests/test-xmemdup0.c: Include progname.h.
86329         (main): Call set_program_name.
86331 2009-01-18  Bruno Haible  <bruno@clisp.org>
86333         New module 'alphasort'.
86334         * lib/dirent.in.h (alphasort): New declaration.
86335         * lib/alphasort.c: New file, from glibc with modifications.
86336         * m4/alphasort.m4: New file.
86337         * modules/alphasort: New file.
86338         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
86339         HAVE_ALPHASORT.
86340         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
86341         HAVE_ALPHASORT.
86342         * doc/posix-functions/alphasort.texi: Mention the new module and the
86343         portability problems.
86345 2009-01-18  Bruno Haible  <bruno@clisp.org>
86347         New module 'scandir'.
86348         * lib/dirent.in.h (scandir): New declaration.
86349         * lib/scandir.c: New file, from glibc with modifications.
86350         * m4/scandir.m4: New file.
86351         * modules/scandir: New file.
86352         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
86353         HAVE_SCANDIR.
86354         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
86355         HAVE_SCANDIR.
86356         * doc/posix-functions/scandir.texi: Mention the new module and the
86357         portability problems.
86359 2009-01-17  Bruno Haible  <bruno@clisp.org>
86361         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
86362         Update documentation.
86363         (func_remove_suffix): Escape all dots in the suffix. Update
86364         documentation.
86365         (func_filter_filelist): Update documentation.
86366         Reported by Ralf Wildenhues.
86368 2009-01-17  Bruno Haible  <bruno@clisp.org>
86370         * modules/dprintf-posix-tests: New file.
86371         * tests/test-dprintf-posix.sh: New file.
86372         * tests/test-dprintf-posix.c: New file.
86374         New modules 'dprintf', 'dprintf-posix'.
86375         * lib/stdio.in.h (dprintf): New declaration.
86376         * lib/dprintf.c: New file.
86377         * m4/dprintf.m4: New file.
86378         * m4/dprintf-posix.m4: New file.
86379         * modules/dprintf: New file.
86380         * modules/dprintf-posix: New file.
86381         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
86382         HAVE_DPRINTF, REPLACE_DPRINTF.
86383         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
86384         HAVE_DPRINTF, REPLACE_DPRINTF.
86385         * doc/posix-functions/dprintf.texi: Mention the new modules.
86387 2009-01-17  Bruno Haible  <bruno@clisp.org>
86389         * modules/vdprintf-posix-tests: New file.
86390         * tests/test-vdprintf-posix.sh: New file.
86391         * tests/test-vdprintf-posix.c: New file.
86393         New modules 'vdprintf', 'vdprintf-posix'.
86394         * lib/stdio.in.h (vdprintf): New declaration.
86395         * lib/vdprintf.c: New file.
86396         * m4/vdprintf.m4: New file.
86397         * m4/vdprintf-posix.m4: New file.
86398         * modules/vdprintf: New file.
86399         * modules/vdprintf-posix: New file.
86400         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
86401         HAVE_VDPRINTF, REPLACE_VDPRINTF.
86402         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
86403         HAVE_VDPRINTF, REPLACE_VDPRINTF.
86404         * doc/posix-functions/vdprintf.texi: Mention the new modules.
86406 2009-01-17  Bruno Haible  <bruno@clisp.org>
86408         Fix replacement of fopen on mingw.
86409         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
86410         mingw.
86412 2009-01-17  Bruno Haible  <bruno@clisp.org>
86414         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
86415         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
86417 2009-01-17  Bruno Haible  <bruno@clisp.org>
86419         Avoid test-fflush2.sh failure on mingw.
86420         * tests/test-fflush2.c: Include binary-io.h.
86421         (main): Put standard input into binary mode.
86422         * modules/fflush-tests (Depends-on): Add binary-io.
86424 2009-01-17  Bruno Haible  <bruno@clisp.org>
86426         * lib/wchar.in.h: In another particular situation, include only the
86427         system's <wchar.h> file.
86428         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
86429         Reported by Albert Chin-A-Young <china@thewrittenword.com>
86430         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
86432 2009-01-17  Bruno Haible  <bruno@clisp.org>
86434         Support for stripping executables in --enable-relocatable.
86435         * build-aux/install-reloc: Expect one more argument, or an environment
86436         variable RELOC_STRIP_PROG. If set, strip the destination program and
86437         its wrapper.
86438         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
86439         RELOC_STRIP_PROG.
86440         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
86441         to set RELOCATABLE_STRIP.
86442         * NEWS: Mention the new Makefile requirement.
86444 2009-01-17  Bruno Haible  <bruno@clisp.org>
86446         * build-aux/install-reloc: Remove debugging information left over by
86447         C compiler on MacOS X.
86449 2009-01-17  Bruno Haible  <bruno@clisp.org>
86451         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
86452         * lib/progreloc.c (find_executable): Fix type of pointer passed to
86453         _NSGetExecutablePath.
86455 2009-01-16  Jim Meyering  <meyering@redhat.com>
86457         strerror: avoid warnings about discarding "const"
86458         * lib/strerror.c (rpl_strerror): Instead of returning a const
86459         string from each and every "case", use a variable, and add a single
86460         cast after the switch.
86462 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
86464         * lib/arpa_inet.in.h: Add extern "C" block for C++.
86466 2009-01-16  Bruno Haible  <bruno@clisp.org>
86468         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
86469         array initializer syntax that also works in C++ mode.
86470         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
86472 2009-01-16  Jim Meyering  <meyering@redhat.com>
86474         poll: suppress a warning
86475         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
86476         to ignore "...unsigned expression < 0 is always false" warnings.
86478 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
86480         poll: remove declarations of unused variables
86481         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
86482         sockbuf and optlen.
86484 2009-01-15  Bruno Haible  <bruno@clisp.org>
86486         Make fflush-after-ungetc POSIX compliant on BSD systems.
86487         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
86488         (clear_ungetc_buffer): Implement also for other systems.
86489         (rpl_fflush): On glibc systems, invoke
86490         clear_ungetc_buffer_preserving_position. Otherwise, invoke
86491         clear_ungetc_buffer after fetching the stream's position, not before.
86493 2009-01-15  Bruno Haible  <bruno@clisp.org>
86495         Make fflush-after-ungetc POSIX compliant on glibc systems.
86496         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
86497         after ungetc.
86498         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
86499         (rpl_fflush): On glibc systems, simply call the system's fflush
86500         function after clearing the ungetc buffer.
86501         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
86502         Instead, lseek only to the end of file, then use the system's fseeko
86503         for the rest. On glibc systems, reset the EOF indicator bit.
86505 2009-01-15  Jim Meyering  <meyering@redhat.com>
86507         openmp.m4: revert quote-adding change, for portability to older autoconf
86508         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
86509         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
86510         Simon Josefsson noticed the problem when using autoconf-2.61.
86512 2009-01-15  Bruno Haible  <bruno@clisp.org>
86514         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
86515         * tests/test-fflush2.c (ASSERT): Always fail.
86516         (main): Add two tests for fflush() after ungetc(), taking into account
86517         the Austin Group's clarification.
86518         Suggested by Eric Blake.
86520 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
86522         mktime.m4: remove K&R-style function prototypes
86523         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
86524         for the Sun C++ compiler.
86526 2009-01-14  Bruno Haible  <bruno@clisp.org>
86528         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
86529         while including <wchar.h>.
86530         * lib/wchar.in.h: In two particular situations on HP-UX, include only
86531         the system's <wchar.h> file.
86532         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
86534 2009-01-14  Bruno Haible  <bruno@clisp.org>
86536         * m4/csharp.m4: Don't mention gettext on the serial number line.
86537         * m4/csharpexec.m4: Likewise.
86538         * m4/eaccess.m4: Likewise.
86539         * m4/javaexec.m4: Likewise.
86540         * m4/sig_atomic_t.m4: Likewise.
86541         * m4/tmpdir.m4: Likewise.
86542         * m4/intldir.m4: Bump gettext version.
86543         * m4/lib-ld.m4: Likewise.
86545 2009-01-14  Bruno Haible  <bruno@clisp.org>
86547         * lib/progname.c (set_program_name): Add more comments.
86548         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
86550 2009-01-14  Simon Josefsson  <simon@josefsson.org>
86552         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
86553         were sys/stat.h does not define it.
86555 2009-01-14  Jim Meyering  <meyering@redhat.com>
86557         many *.m4 files: improve m4 quoting
86558         99% of this change was performed by running the following commands:
86559         git ls-files | grep '\.m4$' | xargs perl -pi \
86560           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
86561           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
86562           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
86563           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
86564         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
86565         The remainder were to add Copyright dates, increment serial numbers,
86566         undo some changes in comments, exclude m4/intl.m4, and add quotes
86567         around the "1" in ",1" where the unusual spacing prohibited the
86568         above regexps from doing the job.  For more details, see
86569         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
86570         * m4/acl.m4: Modified.
86571         * m4/afs.m4: Likewise.
86572         * m4/alloca.m4: Likewise.
86573         * m4/argp.m4: Likewise.
86574         * m4/argz.m4: Likewise.
86575         * m4/atexit.m4: Likewise.
86576         * m4/bison-i18n.m4: Likewise.
86577         * m4/bison.m4: Likewise.
86578         * m4/byteswap.m4: Likewise.
86579         * m4/c-stack.m4: Likewise.
86580         * m4/c-strtod.m4: Likewise.
86581         * m4/calloc.m4: Likewise.
86582         * m4/canonicalize-lgpl.m4: Likewise.
86583         * m4/chown.m4: Likewise.
86584         * m4/clock_time.m4: Likewise.
86585         * m4/codeset.m4: Likewise.
86586         * m4/copy-file.m4: Likewise.
86587         * m4/csharp.m4: Likewise.
86588         * m4/csharpcomp.m4: Likewise.
86589         * m4/csharpexec.m4: Likewise.
86590         * m4/d-ino.m4: Likewise.
86591         * m4/d-type.m4: Likewise.
86592         * m4/dirfd.m4: Likewise.
86593         * m4/double-slash-root.m4: Likewise.
86594         * m4/eaccess.m4: Likewise.
86595         * m4/eealloc.m4: Likewise.
86596         * m4/environ.m4: Likewise.
86597         * m4/errno_h.m4: Likewise.
86598         * m4/euidaccess.m4: Likewise.
86599         * m4/execute.m4: Likewise.
86600         * m4/fatal-signal.m4: Likewise.
86601         * m4/fchdir.m4: Likewise.
86602         * m4/fcntl_h.m4: Likewise.
86603         * m4/fileblocks.m4: Likewise.
86604         * m4/filenamecat.m4: Likewise.
86605         * m4/findprog.m4: Likewise.
86606         * m4/flexmember.m4: Likewise.
86607         * m4/fnmatch.m4: Likewise.
86608         * m4/fopen.m4: Likewise.
86609         * m4/fpending.m4: Likewise.
86610         * m4/fprintf-posix.m4: Likewise.
86611         * m4/free.m4: Likewise.
86612         * m4/frexp.m4: Likewise.
86613         * m4/frexpl.m4: Likewise.
86614         * m4/fsusage.m4: Likewise.
86615         * m4/ftruncate.m4: Likewise.
86616         * m4/gc-camellia.m4: Likewise.
86617         * m4/gc-random.m4: Likewise.
86618         * m4/gc.m4: Likewise.
86619         * m4/getaddrinfo.m4: Likewise.
86620         * m4/getcwd-abort-bug.m4: Likewise.
86621         * m4/getcwd-path-max.m4: Likewise.
86622         * m4/getdate.m4: Likewise.
86623         * m4/getdomainname.m4: Likewise.
86624         * m4/getgroups.m4: Likewise.
86625         * m4/gethostname.m4: Likewise.
86626         * m4/gethrxtime.m4: Likewise.
86627         * m4/getline.m4: Likewise.
86628         * m4/getloadavg.m4: Likewise.
86629         * m4/getndelim2.m4: Likewise.
86630         * m4/getpass.m4: Likewise.
86631         * m4/gettext.m4: Likewise.
86632         * m4/gettime.m4: Likewise.
86633         * m4/gettimeofday.m4: Likewise.
86634         * m4/gnulib-common.m4: Likewise.
86635         * m4/group-member.m4: Likewise.
86636         * m4/host-os.m4: Likewise.
86637         * m4/iconv.m4: Likewise.
86638         * m4/iconv_open.m4: Likewise.
86639         * m4/inet_ntop.m4: Likewise.
86640         * m4/inet_pton.m4: Likewise.
86641         * m4/inline.m4: Likewise.
86642         * m4/intldir.m4: Likewise.
86643         * m4/intlmacosx.m4: Likewise.
86644         * m4/intmax.m4: Likewise.
86645         * m4/intmax_t.m4: Likewise.
86646         * m4/inttypes.m4: Likewise.
86647         * m4/inttypes_h.m4: Likewise.
86648         * m4/inttypes-pri.m4: Likewise.
86649         * m4/isapipe.m4: Likewise.
86650         * m4/isnand.m4: Likewise.
86651         * m4/isnanf.m4: Likewise.
86652         * m4/isnanl.m4: Likewise.
86653         * m4/javacomp.m4: Likewise.
86654         * m4/javaexec.m4: Likewise.
86655         * m4/jm-winsz1.m4: Likewise.
86656         * m4/jm-winsz2.m4: Likewise.
86657         * m4/lchown.m4: Likewise.
86658         * m4/lcmessage.m4: Likewise.
86659         * m4/ldexpl.m4: Likewise.
86660         * m4/lib-ld.m4: Likewise.
86661         * m4/lib-link.m4: Likewise.
86662         * m4/libsigsegv.m4: Likewise.
86663         * m4/link-follow.m4: Likewise.
86664         * m4/localcharset.m4: Likewise.
86665         * m4/locale-fr.m4: Likewise.
86666         * m4/locale-ja.m4: Likewise.
86667         * m4/locale-tr.m4: Likewise.
86668         * m4/locale-zh.m4: Likewise.
86669         * m4/lock.m4: Likewise.
86670         * m4/longlong.m4: Likewise.
86671         * m4/ls-mntd-fs.m4: Likewise.
86672         * m4/lstat.m4: Likewise.
86673         * m4/malloc.m4: Likewise.
86674         * m4/mathl.m4: Likewise.
86675         * m4/mbrtowc.m4: Likewise.
86676         * m4/mbstate_t.m4: Likewise.
86677         * m4/mbswidth.m4: Likewise.
86678         * m4/memchr.m4: Likewise.
86679         * m4/memcmp.m4: Likewise.
86680         * m4/memcpy.m4: Likewise.
86681         * m4/memmem.m4: Likewise.
86682         * m4/memmove.m4: Likewise.
86683         * m4/mempcpy.m4: Likewise.
86684         * m4/memrchr.m4: Likewise.
86685         * m4/memset.m4: Likewise.
86686         * m4/minmax.m4: Likewise.
86687         * m4/mkdir-slash.m4: Likewise.
86688         * m4/mkdtemp.m4: Likewise.
86689         * m4/mktime.m4: Likewise.
86690         * m4/mmap-anon.m4: Likewise.
86691         * m4/mountlist.m4: Likewise.
86692         * m4/nanosleep.m4: Likewise.
86693         * m4/nls.m4: Likewise.
86694         * m4/nocrash.m4: Likewise.
86695         * m4/open.m4: Likewise.
86696         * m4/openat.m4: Likewise.
86697         * m4/openmp.m4: Likewise.
86698         * m4/pathmax.m4: Likewise.
86699         * m4/perl.m4: Likewise.
86700         * m4/physmem.m4: Likewise.
86701         * m4/pipe.m4: Likewise.
86702         * m4/po.m4: Likewise.
86703         * m4/poll.m4: Likewise.
86704         * m4/posixtm.m4: Likewise.
86705         * m4/posixver.m4: Likewise.
86706         * m4/printf-frexp.m4: Likewise.
86707         * m4/printf-frexpl.m4: Likewise.
86708         * m4/printf-posix.m4: Likewise.
86709         * m4/printf-posix-rpl.m4: Likewise.
86710         * m4/printf.m4: Likewise.
86711         * m4/progtest.m4: Likewise.
86712         * m4/putenv.m4: Likewise.
86713         * m4/readline.m4: Likewise.
86714         * m4/readlink.m4: Likewise.
86715         * m4/readutmp.m4: Likewise.
86716         * m4/realloc.m4: Likewise.
86717         * m4/regex.m4: Likewise.
86718         * m4/relocatable.m4: Likewise.
86719         * m4/relocatable-lib.m4: Likewise.
86720         * m4/rename-dest-slash.m4: Likewise.
86721         * m4/rename.m4: Likewise.
86722         * m4/rmdir-errno.m4: Likewise.
86723         * m4/rmdir.m4: Likewise.
86724         * m4/roundf.m4: Likewise.
86725         * m4/roundl.m4: Likewise.
86726         * m4/rpmatch.m4: Likewise.
86727         * m4/save-cwd.m4: Likewise.
86728         * m4/selinux-selinux-h.m4: Likewise.
86729         * m4/setenv.m4: Likewise.
86730         * m4/settime.m4: Likewise.
86731         * m4/sig2str.m4: Likewise.
86732         * m4/sig_atomic_t.m4: Likewise.
86733         * m4/signalblocking.m4: Likewise.
86734         * m4/signbit.m4: Likewise.
86735         * m4/sigpipe.m4: Likewise.
86736         * m4/sockets.m4: Likewise.
86737         * m4/sockpfaf.m4: Likewise.
86738         * m4/st_dm_mode.m4: Likewise.
86739         * m4/stat-time.m4: Likewise.
86740         * m4/stdbool.m4: Likewise.
86741         * m4/stdint.m4: Likewise.
86742         * m4/stdint_h.m4: Likewise.
86743         * m4/stpcpy.m4: Likewise.
86744         * m4/stpncpy.m4: Likewise.
86745         * m4/strcase.m4: Likewise.
86746         * m4/strchrnul.m4: Likewise.
86747         * m4/strcspn.m4: Likewise.
86748         * m4/strdup.m4: Likewise.
86749         * m4/strftime.m4: Likewise.
86750         * m4/strndup.m4: Likewise.
86751         * m4/strnlen.m4: Likewise.
86752         * m4/strpbrk.m4: Likewise.
86753         * m4/strptime.m4: Likewise.
86754         * m4/strsep.m4: Likewise.
86755         * m4/strtod.m4: Likewise.
86756         * m4/strtoimax.m4: Likewise.
86757         * m4/strtok_r.m4: Likewise.
86758         * m4/strtol.m4: Likewise.
86759         * m4/strtoll.m4: Likewise.
86760         * m4/strtoul.m4: Likewise.
86761         * m4/strtoull.m4: Likewise.
86762         * m4/strtoumax.m4: Likewise.
86763         * m4/strverscmp.m4: Likewise.
86764         * m4/threadlib.m4: Likewise.
86765         * m4/timegm.m4: Likewise.
86766         * m4/tm_gmtoff.m4: Likewise.
86767         * m4/tmpdir.m4: Likewise.
86768         * m4/tmpfile.m4: Likewise.
86769         * m4/tzset.m4: Likewise.
86770         * m4/uintmax_t.m4: Likewise.
86771         * m4/unlinkdir.m4: Likewise.
86772         * m4/unlocked-io.m4: Likewise.
86773         * m4/uptime.m4: Likewise.
86774         * m4/userspec.m4: Likewise.
86775         * m4/utimbuf.m4: Likewise.
86776         * m4/utime.m4: Likewise.
86777         * m4/utimes-null.m4: Likewise.
86778         * m4/utimes.m4: Likewise.
86779         * m4/vararrays.m4: Likewise.
86780         * m4/vasnprintf.m4: Likewise.
86781         * m4/vfprintf-posix.m4: Likewise.
86782         * m4/vprintf-posix.m4: Likewise.
86783         * m4/wait-process.m4: Likewise.
86784         * m4/wchar_t.m4: Likewise.
86785         * m4/wint_t.m4: Likewise.
86786         * m4/write-any-file.m4: Likewise.
86787         * m4/yield.m4: Likewise.
86789 2009-01-13  Bruno Haible  <bruno@clisp.org>
86791         Avoid test-copy-file.sh failures when ACL support insufficient.
86792         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
86793         TESTS_ENVIRONMENT.
86794         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
86795         Reported by Jim Meyering.
86797 2009-01-13  Bruno Haible  <bruno@clisp.org>
86799         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
86800         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
86801         * modules/unistdio/u8-printf-parse (Files): Likewise.
86802         * modules/unistdio/u32-printf-parse (Files): Likewise.
86803         * modules/unistdio/ulc-printf-parse (Files): Likewise.
86805 2009-01-13  Simon Josefsson  <simon@josefsson.org>
86807         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
86808         and m4/inttypes_h.m4 too.
86810 2009-01-12  Eric Blake  <ebb9@byu.net>
86812         tests: IRIX 6.2 cc can't compile -0.0 into .data
86813         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
86814         rather than at compile-time.
86815         * tests/test-floorl.c (minus_zero): Likewise.
86816         * tests/test-frexpl.c (minus_zero): Likewise.
86817         * tests/test-isnan.c (minus_zerol): Likewise.
86818         * tests/test-isnanl.h (minus_zero): Likewise.
86819         * tests/test-ldexpl.c (minus_zero): Likewise.
86820         * tests/test-roundl.c (minus_zero): Likewise.
86821         * tests/test-signbit.c (minus_zerol): Likewise.
86822         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
86823         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
86824         * tests/test-truncl.c (minus_zero): Likewise.
86825         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
86826         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
86827         Reported by Tom G. Christensen and Nelson H. F. Beebe.
86829 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
86831         regex: fix glibc bug 9697
86832         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
86833         handling.
86835 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
86837         regex: fix glibc bug 697
86838         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
86839         being NULL also if there are no backreferences.
86841 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
86843         regex: merge glibc changes
86844         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
86845         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
86846         re_string_skip_chars, re_string_reconstruct): Likewise.
86847         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
86849 2009-01-07  Jim Meyering  <meyering@redhat.com>
86851         poll: filter through cppi
86852         * lib/poll.c: Indent cpp directives to reflect nesting.
86854 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
86856         poll: don't return uninitialized
86857         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
86859 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
86861         avoid compile failure on AIX 6.1
86862         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
86863         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
86865 2009-01-04  Jim Meyering  <meyering@redhat.com>
86867         remove duplicate inclusion of <stdio.h>
86868         * tests/test-fprintf-posix.c: Likewise.
86869         * tests/test-printf-posix.c: Likewise.
86870         * tests/test-snprintf-posix.c: Likewise.
86871         * tests/test-sprintf-posix.c: Likewise.
86872         * tests/test-vasprintf-posix.c: Likewise.
86873         * tests/test-vfprintf-posix.c: Likewise.
86874         * tests/test-vprintf-posix.c: Likewise.
86875         * tests/test-vsnprintf-posix.c: Likewise.
86876         * tests/test-vsprintf-posix.c: Likewise.
86878 2009-01-03  Jim Meyering  <meyering@redhat.com>
86880         gnulib-tool: fix sed-based filtering
86881         * gnulib-tool (func_filter_filelist): Remove extra backslash
86882         in sed_fff_filter definition.
86884 2009-01-02  Jim Meyering  <meyering@redhat.com>
86886         strftime: avoid compilation failure on Solaris 2.6
86887         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
86888         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
86889         Don't #define mbrlen or mbsinit, since now they're guaranteed to
86890         be available.  Reported by Tom G. Christensen.  Details in
86891         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
86893 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86894             Bruno Haible  <bruno@clisp.org>
86896         Speed up gnulib-tool by doing more string processing through shell
86897         built-ins.
86898         * gnulib-tool (fast_func_append): New variable.
86899         (func_remove_prefix, func_remove_suffix): New functions.
86900         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
86901         (func_filter_filelist): New function.
86902         (func_get_dependencies): Use func_remove_suffix instead of sed.
86903         (func_get_automake_snippet): Use func_filter_filelist instead of a
86904         subshell and sed invocation.
86906 2009-01-01  Bruno Haible  <bruno@clisp.org>
86908         Fix a security bug.
86909         * gnulib-tool (func_import, import, update): Don't allow the characters
86910         '"', '$', '`', '\' in macro arguments that become part of commands that
86911         are evaluated.
86913 2009-01-01  Bruno Haible  <bruno@clisp.org>
86915         * gnulib-tool (func_reset_sigpipe): Add more comments.
86917 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86919         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
86920         func_emit_tests_Makefile_am, func_import): Abort loops early if we
86921         already know the answer.
86923 2009-01-01  Jim Meyering  <meyering@redhat.com>
86925         * lib/version-etc.c (version_etc_va): Update copyright year.
86927 2008-12-30  Bruno Haible  <bruno@clisp.org>
86929         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
86930         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
86931         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
86933 2008-12-29  Eric Blake  <ebb9@byu.net>
86935         multiarch: avoid autoconf AC_REQUIRE bug
86936         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
86937         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
86938         2.63 and older.
86939         Reported by Bruno Haible, and analyzed in
86940         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
86942 2008-12-29  Bruno Haible  <bruno@clisp.org>
86944         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
86945         files in subdirectories correctly.
86946         Reported by Ralf Wildenhues.
86948 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86950         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
86951         rather than 'join FILE -', for Solaris join.
86953 2008-12-29  Bruno Haible  <bruno@clisp.org>
86955         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
86956         quoting.
86957         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
86958         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
86959         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
86960         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
86961         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
86962         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
86963         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
86964         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
86965         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
86966         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
86967         * m4/nls.m4 (AM_NLS): Likewise.
86968         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
86969         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
86970         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
86971         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
86972         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
86973         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
86974         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
86975         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
86976         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
86977         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
86978         * m4/xsize.m4 (gl_XSIZE): Likewise.
86979         Suggested by Jim Meyering.
86981 2008-11-17  Bruce Korb  <bkorb@gnu.org>
86983         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
86984         * lib/parse-duration.c: use a switch instead of cascading if's.
86986 2008-12-29  Eric Blake  <ebb9@byu.net>
86988         wchar.h: supply WEOF on Irix 5.3
86989         * lib/wchar.in.h (wint_t): Also supply WEOF.
86990         * lib/wctype.in.h (wint_t): Likewise.
86991         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
86992         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
86993         Reported by Tom G. Christensen.
86995 2008-12-26  Bruno Haible  <bruno@clisp.org>
86997         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
86998         i486, i586, i686.
87000 2008-12-26  Bruno Haible  <bruno@clisp.org>
87002         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
87004 2008-12-26  Bruno Haible  <bruno@clisp.org>
87006         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
87007         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
87008         not __STDC_CONSTANT_MACROS.
87009         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
87011 2008-12-25  Bruno Haible  <bruno@clisp.org>
87013         Add support for universal builds to vasnprintf.
87014         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
87015         universal builds, guess no.
87016         * modules/vasnprintf-posix (Depends-on): Add multiarch.
87017         * modules/vasprintf-posix (Depends-on): Likewise.
87018         * modules/fprintf-posix (Depends-on): Likewise.
87019         * modules/vfprintf-posix (Depends-on): Likewise.
87020         * modules/snprintf-posix (Depends-on): Likewise.
87021         * modules/vsnprintf-posix (Depends-on): Likewise.
87022         * modules/sprintf-posix (Depends-on): Likewise.
87023         * modules/vsprintf-posix (Depends-on): Likewise.
87024         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
87025         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
87026         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
87027         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
87028         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
87029         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
87030         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
87032         Add support for universal builds to <inttypes.h>.
87033         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
87034         _SCNu64_PREFIX): In Apple
87035         universal builds, define directly, using _LP64.
87036         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
87037         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
87038         * modules/inttypes (Depends-on): Add multiarch.
87039         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
87041         Add support for universal builds to <stdint.h>.
87042         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
87043         universal builds, define directly, using _LP64.
87044         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
87045         Apple universal builds, don't test for the size and suffix of ptrdiff_t
87046         and size_t.
87047         * modules/stdint (Depends-on): Add multiarch.
87048         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
87050         New module 'multiarch'.
87051         * modules/multiarch: New file.
87052         * m4/multiarch.m4: New file.
87054 2008-12-25  Bruno Haible  <bruno@clisp.org>
87056         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
87058 2008-12-25  Bruno Haible  <bruno@clisp.org>
87060         * modules/btowc (License): Relicense under LGPLv2+.
87061         * modules/mbsinit (License): Likewise.
87062         * modules/mbrtowc (License): Likewise.
87063         * modules/wcrtomb (License): Likewise.
87064         * modules/streq (License): Likewise.
87065         Reported by David Lutterkort <lutter@redhat.com>.
87067 2008-12-23  Bruno Haible  <bruno@clisp.org>
87069         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
87071 2008-12-23  Bruno Haible  <bruno@clisp.org>
87073         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
87074         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
87075         GETADDRINFO_LIB, not in LIBS.
87076         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
87077         * modules/canon-host (Link): Likewise.
87078         * NEWS: Mention the change.
87079         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
87080         GETADDRINFO_LIB.
87082 2008-12-22  Bruno Haible  <bruno@clisp.org>
87084         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
87085         * doc/posix-functions/iswalpha_l.texi: Likewise.
87086         * doc/posix-functions/iswblank_l.texi: Likewise.
87087         * doc/posix-functions/iswcntrl_l.texi: Likewise.
87088         * doc/posix-functions/iswctype_l.texi: Likewise.
87089         * doc/posix-functions/iswdigit_l.texi: Likewise.
87090         * doc/posix-functions/iswgraph_l.texi: Likewise.
87091         * doc/posix-functions/iswlower_l.texi: Likewise.
87092         * doc/posix-functions/iswprint_l.texi: Likewise.
87093         * doc/posix-functions/iswpunct_l.texi: Likewise.
87094         * doc/posix-functions/iswspace_l.texi: Likewise.
87095         * doc/posix-functions/iswupper_l.texi: Likewise.
87096         * doc/posix-functions/iswxdigit_l.texi: Likewise.
87097         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
87098         * doc/posix-functions/open_wmemstream.texi: Likewise.
87099         * doc/posix-functions/swscanf.texi: Likewise.
87100         * doc/posix-functions/towctrans_l.texi: Likewise.
87101         * doc/posix-functions/towlower.texi: Likewise.
87102         * doc/posix-functions/towlower_l.texi: Likewise.
87103         * doc/posix-functions/towupper.texi: Likewise.
87104         * doc/posix-functions/towupper_l.texi: Likewise.
87105         * doc/posix-functions/vfwprintf.texi: Likewise.
87106         * doc/posix-functions/vfwscanf.texi: Likewise.
87107         * doc/posix-functions/vswscanf.texi: Likewise.
87108         * doc/posix-functions/vwprintf.texi: Likewise.
87109         * doc/posix-functions/vwscanf.texi: Likewise.
87110         * doc/posix-functions/wcpcpy.texi: Likewise.
87111         * doc/posix-functions/wcpncpy.texi: Likewise.
87112         * doc/posix-functions/wcscasecmp.texi: Likewise.
87113         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
87114         * doc/posix-functions/wcscoll_l.texi: Likewise.
87115         * doc/posix-functions/wcsdup.texi: Likewise.
87116         * doc/posix-functions/wcsncasecmp.texi: Likewise.
87117         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
87118         * doc/posix-functions/wcsnlen.texi: Likewise.
87119         * doc/posix-functions/wcsnrtombs.texi: Likewise.
87120         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
87121         * doc/posix-functions/wctrans_l.texi: Likewise.
87122         * doc/posix-functions/wctype_l.texi: Likewise.
87123         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
87124         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
87125         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
87126         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
87127         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
87128         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
87129         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
87130         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
87131         * doc/glibc-functions/wcschrnul.texi: Likewise.
87132         * doc/glibc-functions/wcsftime_l.texi: Likewise.
87133         * doc/glibc-functions/wcstod_l.texi: Likewise.
87134         * doc/glibc-functions/wcstof_l.texi: Likewise.
87135         * doc/glibc-functions/wcstol_l.texi: Likewise.
87136         * doc/glibc-functions/wcstold_l.texi: Likewise.
87137         * doc/glibc-functions/wcstoll_l.texi: Likewise.
87138         * doc/glibc-functions/wcstoq.texi: Likewise.
87139         * doc/glibc-functions/wcstoul_l.texi: Likewise.
87140         * doc/glibc-functions/wcstoull_l.texi: Likewise.
87141         * doc/glibc-functions/wcstouq.texi: Likewise.
87142         * doc/glibc-functions/wmempcpy.texi: Likewise.
87144 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
87145             Eric Blake  <ebb9@byu.net>
87146             Paolo Bonzini  <bonzini@gnu.org>
87147             Bruno Haible  <bruno@clisp.org>
87149         Make c-stack work on Haiku.
87150         * lib/c-stack.c (SA_ONSTACK): Define fallback.
87151         (c_stack_action): Use SA_ONSTACK flag.
87153 2008-12-22  Bruno Haible  <bruno@clisp.org>
87155         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
87157 2008-12-22  Bruno Haible  <bruno@clisp.org>
87159         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
87160         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
87161         being overridden.
87162         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
87163         New macros.
87164         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
87165         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
87166         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
87167         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
87169 2008-12-22  Bruno Haible  <bruno@clisp.org>
87171         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
87172         from test code.
87174 2008-12-22  Eric Blake  <ebb9@byu.net>
87176         Avoid gcc warnings on cygwin.
87177         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
87178         Avoid unused variable.
87179         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
87180         Likewise.
87182 2008-12-22  Bruno Haible  <bruno@clisp.org>
87184         Remove HAVE_MBRTOWC conditionals.
87185         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
87186         (mbscasecmp): Assume mbrtowc function.
87187         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
87188         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
87189         * lib/mbschr.c: Include mbuiter.h unconditionally.
87190         (mbschr): Assume mbrtowc function.
87191         * lib/mbscspn.c: Include mbuiter.h unconditionally.
87192         (mbscspn): Assume mbrtowc function.
87193         * lib/mbslen.c: Include mbuiter.h unconditionally.
87194         (mbslen): Assume mbrtowc function.
87195         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
87196         (mbsncasecmp): Assume mbrtowc function.
87197         * lib/mbsnlen.c: Include mbiter.h unconditionally.
87198         (mbsnlen): Assume mbrtowc function.
87199         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
87200         (mbspbrk): Assume mbrtowc function.
87201         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
87202         (mbspcasecmp): Assume mbrtowc function.
87203         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
87204         (mbsrchr): Assume mbrtowc function.
87205         * lib/mbssep.c: Include mbuiter.h unconditionally.
87206         (mbssep): Assume mbrtowc function.
87207         * lib/mbsspn.c: Include mbuiter.h unconditionally.
87208         (mbsspn): Assume mbrtowc function.
87209         * lib/mbsstr.c: Include mbuiter.h unconditionally.
87210         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
87211         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
87212         (mbstok_r): Assume mbrtowc function.
87213         * lib/propername.c: Include mbuiter.h unconditionally.
87214         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
87215         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
87216         (trim2): Assume mbrtowc function.
87217         * lib/mbswidth.c (mbsinit): Remove fallback definition.
87218         (mbsnwidth): Assume mbrtowc function.
87219         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
87220         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
87221         fallback definitions.
87222         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
87224 2008-12-22  Bruno Haible  <bruno@clisp.org>
87226         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
87228 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
87230         * modules/regex: Request emulations for the mb*/wc* functions we need.
87231         * m4/regex.m4: Don't look for those functions here.
87232         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
87234 2008-12-22  Bruno Haible  <bruno@clisp.org>
87236         * modules/fnmatch (Depends-on): Remove duplicated dependency.
87238 2008-12-21  Bruno Haible  <bruno@clisp.org>
87240         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
87241         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
87242         (Include): Remove conditionalization.
87243         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
87244         (Include): Remove conditionalization.
87245         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
87246         (Include): Remove conditionalization.
87247         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
87248         * m4/mbfile.m4 (gl_MBFILE): Likewise.
87249         * NEWS: Mention the change.
87250         Reported by Alan Hourihane <alanh@fairlite.co.uk>
87251         via Sergey Poznyakoff <gray@gnu.org.ua>.
87253 2008-12-21  Bruno Haible  <bruno@clisp.org>
87255         * MODULES.html.sh (Extended multibyte and wide character utilities
87256         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
87257         wcrtomb, wcsrtombs.
87258         (Support for systems lacking POSIX:2008): Add accept, bind, close,
87259         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
87260         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
87261         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
87263 2008-12-21  Bruno Haible  <bruno@clisp.org>
87265         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
87267 2008-12-21  Bruno Haible  <bruno@clisp.org>
87269         * modules/wcsnrtombs-tests: New file.
87270         * tests/test-wcsnrtombs1.sh: New file.
87271         * tests/test-wcsnrtombs2.sh: New file.
87272         * tests/test-wcsnrtombs3.sh: New file.
87273         * tests/test-wcsnrtombs4.sh: New file.
87274         * tests/test-wcsnrtombs.c: New file.
87276         New module 'wcsnrtombs'.
87277         * lib/wchar.in.h (wcsnrtombs): New declaration.
87278         * lib/wcsnrtombs.c: New file.
87279         * lib/wcsrtombs-state.c: New file.
87280         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
87281         (internal_state): Remove variable.
87282         * m4/wcsnrtombs.m4: New file.
87283         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
87284         compilation units.
87285         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
87286         HAVE_WCSNRTOMBS.
87287         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
87288         HAVE_WCSNRTOMBS.
87289         * modules/wcsnrtombs: New file.
87290         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
87291         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
87293 2008-12-21  Bruno Haible  <bruno@clisp.org>
87295         * modules/wcsrtombs-tests: New file.
87296         * tests/test-wcsrtombs1.sh: New file.
87297         * tests/test-wcsrtombs2.sh: New file.
87298         * tests/test-wcsrtombs3.sh: New file.
87299         * tests/test-wcsrtombs4.sh: New file.
87300         * tests/test-wcsrtombs.c: New file.
87302         New module 'wcsrtombs'.
87303         * lib/wchar.in.h (wcsrtombs): New declaration.
87304         * lib/wcsrtombs.c: New file.
87305         * m4/wcsrtombs.m4: New file.
87306         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
87307         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
87308         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
87309         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
87310         * modules/wcsrtombs: New file.
87311         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
87312         bugs.
87314 2008-12-21  Bruno Haible  <bruno@clisp.org>
87316         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
87317         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
87318         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
87319         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
87320         if not correct.
87321         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
87322         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
87323         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
87324         m4/locale-zh.m4, m4/codeset.m4.
87325         * doc/posix-functions/wcrtomb.texi: Document the bug.
87327 2008-12-21  Bruno Haible  <bruno@clisp.org>
87329         Work around a btowc() bug on IRIX 6.5.
87330         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
87331         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
87332         REPLACE_WTOBC if not.
87333         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
87334         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
87335         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
87337 2008-12-21  Bruno Haible  <bruno@clisp.org>
87339         * modules/wcrtomb-tests: New file.
87340         * tests/test-wcrtomb.sh: New file.
87341         * tests/test-wcrtomb.c: New file.
87343         New module 'wcrtomb'.
87344         * lib/wchar.in.h (wcrtomb): New declaration.
87345         * lib/wcrtomb.c: New file.
87346         * m4/wcrtomb.m4: New file.
87347         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
87348         HAVE_WCRTOMB.
87349         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
87350         HAVE_WCRTOMB.
87351         * modules/wcrtomb: New file.
87352         * doc/posix-functions/wcrtomb.texi: Mention the new module.
87354 2008-12-21  Bruno Haible  <bruno@clisp.org>
87356         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
87357         * modules/mbsrtowcs (Files): Likewise.
87358         * modules/wctob (Files): Likewise.
87359         * modules/c-strcase-tests (Files): Likewise.
87360         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
87361         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
87362         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
87363         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
87364         * modules/vasnprintf-posix-tests (Files): Likewise.
87366 2008-12-21  William Pursell  <bill.pursell@gmail.com>
87368         gitlog-to-changelog: pass all command-line arguments to git-log
87369         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
87370         it is sometimes convenient to filter the commits in various ways.
87371         gitlog-to-changelog only allows --since to specify a start date,
87372         but git-log itself supports many other filtering mechanisms.
87373         At the moment, I want to filter by branch name.  Rather than
87374         adding a --branch option to gitlog-to-changelog, it seems more
87375         flexible to simply pass all options directly to git-log and let
87376         git do the work.  Notice that this effectively makes --since a
87377         redundant option for gitlog-to-changelog, but removing it would
87378         require current usage to change since calls would then require
87379         an additional '--'.
87381 2008-12-21  Bruno Haible  <bruno@clisp.org>
87383         * modules/mbsnrtowcs-tests: New file.
87384         * tests/test-mbsnrtowcs1.sh: New file.
87385         * tests/test-mbsnrtowcs2.sh: New file.
87386         * tests/test-mbsnrtowcs3.sh: New file.
87387         * tests/test-mbsnrtowcs4.sh: New file.
87388         * tests/test-mbsnrtowcs.c: New file.
87390         New module 'mbsnrtowcs'.
87391         * lib/wchar.in.h (mbsnrtowcs): New declaration.
87392         * lib/mbsnrtowcs.c: New file.
87393         * lib/mbsrtowcs-state.c: New file.
87394         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
87395         (internal_state): Remove variable.
87396         * m4/mbsnrtowcs.m4: New file.
87397         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
87398         compilation units.
87399         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
87400         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
87401         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
87402         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
87403         * modules/mbsnrtowcs: New file.
87404         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
87405         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
87406         portability problem.
87408 2008-12-21  Bruno Haible  <bruno@clisp.org>
87410         Work around mbsrtowcs bug.
87411         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
87412         (gl_FUNC_MBSRTOWCS): Invoke it.
87413         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
87414         m4/locale-zh.m4.
87415         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
87417 2008-12-21  Bruno Haible  <bruno@clisp.org>
87419         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
87421 2008-12-21  Bruno Haible  <bruno@clisp.org>
87423         Update doc for AIX.
87424         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
87425         16-bit wchar_t type.
87426         * doc/posix-functions/btowc.texi: Likewise.
87427         * doc/posix-functions/fgetwc.texi: Likewise.
87428         * doc/posix-functions/fgetws.texi: Likewise.
87429         * doc/posix-functions/fputwc.texi: Likewise.
87430         * doc/posix-functions/fputws.texi: Likewise.
87431         * doc/posix-functions/fwide.texi: Likewise.
87432         * doc/posix-functions/fwprintf.texi: Likewise.
87433         * doc/posix-functions/fwscanf.texi: Likewise.
87434         * doc/posix-functions/getwchar.texi: Likewise.
87435         * doc/posix-functions/getwc.texi: Likewise.
87436         * doc/posix-functions/iswalnum.texi: Likewise.
87437         * doc/posix-functions/iswalpha.texi: Likewise.
87438         * doc/posix-functions/iswblank.texi: Likewise.
87439         * doc/posix-functions/iswcntrl.texi: Likewise.
87440         * doc/posix-functions/iswctype.texi: Likewise.
87441         * doc/posix-functions/iswdigit.texi: Likewise.
87442         * doc/posix-functions/iswgraph.texi: Likewise.
87443         * doc/posix-functions/iswlower.texi: Likewise.
87444         * doc/posix-functions/iswprint.texi: Likewise.
87445         * doc/posix-functions/iswpunct.texi: Likewise.
87446         * doc/posix-functions/iswspace.texi: Likewise.
87447         * doc/posix-functions/iswupper.texi: Likewise.
87448         * doc/posix-functions/iswxdigit.texi: Likewise.
87449         * doc/posix-functions/mbrtowc.texi: Likewise.
87450         * doc/posix-functions/mbsrtowcs.texi: Likewise.
87451         * doc/posix-functions/mbstowcs.texi: Likewise.
87452         * doc/posix-functions/mbtowc.texi: Likewise.
87453         * doc/posix-functions/putwchar.texi: Likewise.
87454         * doc/posix-functions/putwc.texi: Likewise.
87455         * doc/posix-functions/swprintf.texi: Likewise.
87456         * doc/posix-functions/tolower.texi: Likewise.
87457         * doc/posix-functions/toupper.texi: Likewise.
87458         * doc/posix-functions/towctrans.texi: Likewise.
87459         * doc/posix-functions/ungetwc.texi: Likewise.
87460         * doc/posix-functions/vswprintf.texi: Likewise.
87461         * doc/posix-functions/wcrtomb.texi: Likewise.
87462         * doc/posix-functions/wcscat.texi: Likewise.
87463         * doc/posix-functions/wcschr.texi: Likewise.
87464         * doc/posix-functions/wcscmp.texi: Likewise.
87465         * doc/posix-functions/wcscoll.texi: Likewise.
87466         * doc/posix-functions/wcscpy.texi: Likewise.
87467         * doc/posix-functions/wcscspn.texi: Likewise.
87468         * doc/posix-functions/wcsftime.texi: Likewise.
87469         * doc/posix-functions/wcslen.texi: Likewise.
87470         * doc/posix-functions/wcsncat.texi: Likewise.
87471         * doc/posix-functions/wcsncmp.texi: Likewise.
87472         * doc/posix-functions/wcsncpy.texi: Likewise.
87473         * doc/posix-functions/wcspbrk.texi: Likewise.
87474         * doc/posix-functions/wcsrchr.texi: Likewise.
87475         * doc/posix-functions/wcsrtombs.texi: Likewise.
87476         * doc/posix-functions/wcsspn.texi: Likewise.
87477         * doc/posix-functions/wcsstr.texi: Likewise.
87478         * doc/posix-functions/wcstod.texi: Likewise.
87479         * doc/posix-functions/wcstof.texi: Likewise.
87480         * doc/posix-functions/wcstoimax.texi: Likewise.
87481         * doc/posix-functions/wcstok.texi: Likewise.
87482         * doc/posix-functions/wcstold.texi: Likewise.
87483         * doc/posix-functions/wcstoll.texi: Likewise.
87484         * doc/posix-functions/wcstol.texi: Likewise.
87485         * doc/posix-functions/wcstombs.texi: Likewise.
87486         * doc/posix-functions/wcstoull.texi: Likewise.
87487         * doc/posix-functions/wcstoul.texi: Likewise.
87488         * doc/posix-functions/wcstoumax.texi: Likewise.
87489         * doc/posix-functions/wcswidth.texi: Likewise.
87490         * doc/posix-functions/wcsxfrm.texi: Likewise.
87491         * doc/posix-functions/wctob.texi: Likewise.
87492         * doc/posix-functions/wctomb.texi: Likewise.
87493         * doc/posix-functions/wctrans.texi: Likewise.
87494         * doc/posix-functions/wctype.texi: Likewise.
87495         * doc/posix-functions/wcwidth.texi: Likewise.
87496         * doc/posix-functions/wmemchr.texi: Likewise.
87497         * doc/posix-functions/wmemcmp.texi: Likewise.
87498         * doc/posix-functions/wmemcpy.texi: Likewise.
87499         * doc/posix-functions/wmemmove.texi: Likewise.
87500         * doc/posix-functions/wmemset.texi: Likewise.
87501         * doc/posix-functions/wprintf.texi: Likewise.
87502         * doc/posix-functions/wscanf.texi: Likewise.
87504 2008-12-21  Bruno Haible  <bruno@clisp.org>
87506         Update doc for HP-UX 11.11.
87507         * doc/posix-functions/btowc.texi: Clarify that the function is missing
87508         in HP-UX version 11.00, not in all versions of HP-UX 11.
87509         * doc/posix-functions/fwide.texi: Likewise.
87510         * doc/posix-functions/fwprintf.texi: Likewise.
87511         * doc/posix-functions/fwscanf.texi: Likewise.
87512         * doc/posix-functions/inet_ntop.texi: Likewise.
87513         * doc/posix-functions/inet_pton.texi: Likewise.
87514         * doc/posix-functions/mbrlen.texi: Likewise.
87515         * doc/posix-functions/mbrtowc.texi: Likewise.
87516         * doc/posix-functions/mbsinit.texi: Likewise.
87517         * doc/posix-functions/mbsrtowcs.texi: Likewise.
87518         * doc/posix-functions/swprintf.texi: Likewise.
87519         * doc/posix-functions/swscanf.texi: Likewise.
87520         * doc/posix-functions/towctrans.texi: Likewise.
87521         * doc/posix-functions/vfwprintf.texi: Likewise.
87522         * doc/posix-functions/vswprintf.texi: Likewise.
87523         * doc/posix-functions/vwprintf.texi: Likewise.
87524         * doc/posix-functions/wcrtomb.texi: Likewise.
87525         * doc/posix-functions/wcsrtombs.texi: Likewise.
87526         * doc/posix-functions/wcsstr.texi: Likewise.
87527         * doc/posix-functions/wctob.texi: Likewise.
87528         * doc/posix-functions/wctrans.texi: Likewise.
87529         * doc/posix-functions/wmemchr.texi: Likewise.
87530         * doc/posix-functions/wmemcmp.texi: Likewise.
87531         * doc/posix-functions/wmemcpy.texi: Likewise.
87532         * doc/posix-functions/wmemmove.texi: Likewise.
87533         * doc/posix-functions/wmemset.texi: Likewise.
87534         * doc/posix-functions/wprintf.texi: Likewise.
87535         * doc/posix-functions/wscanf.texi: Likewise.
87537 2008-12-21  Bruno Haible  <bruno@clisp.org>
87539         Work around a portability problem.
87540         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
87541         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
87543 2008-12-20  Bruno Haible  <bruno@clisp.org>
87545         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
87546         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
87547         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
87548         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
87549         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
87551         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
87552         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
87553         set.
87554         (GNULIB_defined_mbstate_t): New macro.
87555         (mbsinit): Redefine if REPLACE_MBSINIT is set.
87556         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
87557         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
87558         reuses the system's mbrtowc function but works around the bugs.
87559         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
87560         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
87561         macros.
87562         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
87563         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
87564         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
87565         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
87566         REPLACE_MBSINIT if mbsinit needs to be overridden.
87567         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
87568         REPLACE_MBSINIT, REPLACE_MBRTOWC.
87569         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
87570         REPLACE_MBSINIT, REPLACE_MBRTOWC.
87571         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
87572         m4/locale-zh.m4.
87573         (Depends): Add mbsinit.
87574         * modules/mbsinit (Depends): Add mbrtowc.
87575         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
87577 2008-12-20  Bruno Haible  <bruno@clisp.org>
87579         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
87580         so that there are no conversion errors on AIX.
87581         * tests/test-mbsrtowcs.c (main): LIkewise.
87583 2008-12-20  Bruno Haible  <bruno@clisp.org>
87585         Work around wctob bug on Solaris <= 9.
87586         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
87587         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
87588         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
87589         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
87590         * modules/wctob (Files): Add m4/locale-fr.m4.
87591         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
87593 2008-12-20  Bruno Haible  <bruno@clisp.org>
87595         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
87596         /dev/null.
87597         * tests/test-select-in.sh: Likewise.
87598         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
87600 2008-12-20  Bruno Haible  <bruno@clisp.org>
87602         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
87603         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
87604         Cygwin 1.5.x.
87606 2008-12-20  Bruno Haible  <bruno@clisp.org>
87608         Ensure mbstate_t is defined on HP-UX 11.11.
87609         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
87610         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
87611         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
87612         AC_USE_SYSTEM_EXTENSIONS.
87613         * modules/fnmatch (Depends-on): Add extensions.
87614         * modules/mbrlen (Depends-on): Likewise.
87615         * modules/mbrtowc (Depends-on): Likewise.
87616         * modules/mbsinit (Depends-on): Likewise.
87617         * modules/mbsrtowcs (Depends-on): Likewise.
87618         * modules/mbswidth (Depends-on): Likewise.
87619         * modules/quotearg (Depends-on): Likewise.
87620         * modules/strftime (Depends-on): Likewise.
87622 2008-12-20  Bruno Haible  <bruno@clisp.org>
87624         Ensure wctob is declared on IRIX 6.5.
87625         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
87626         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
87627         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
87628         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
87629         of HAVE_WCTOB.
87630         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
87631         HAVE_WCTOB.
87632         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
87634 2008-12-19  Bruno Haible  <bruno@clisp.org>
87636         * modules/mbsrtowcs-tests: New file.
87637         * tests/test-mbsrtowcs1.sh: New file.
87638         * tests/test-mbsrtowcs2.sh: New file.
87639         * tests/test-mbsrtowcs3.sh: New file.
87640         * tests/test-mbsrtowcs4.sh: New file.
87641         * tests/test-mbsrtowcs.c: New file.
87643         New module 'mbsrtowcs'.
87644         * lib/wchar.in.h (mbsrtowcs): New declaration.
87645         * lib/mbsrtowcs.c: New file.
87646         * m4/mbsrtowcs.m4: New file.
87647         * modules/mbsrtowcs: New file.
87648         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
87649         HAVE_MBSRTOWCS.
87650         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
87651         HAVE_MBSRTOWCS.
87652         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
87654 2008-12-19  Bruno Haible  <bruno@clisp.org>
87656         New module 'mbrlen'.
87657         * lib/wchar.in.h (mbrlen): New declaration.
87658         * lib/mbrlen.c: New file.
87659         * m4/mbrlen.m4: New file.
87660         * modules/mbrlen: New file.
87661         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
87662         HAVE_MBRLEN.
87663         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
87664         HAVE_MBRLEN.
87665         * doc/posix-functions/mbrlen.texi: Document the new module.
87667 2008-12-19  Bruno Haible  <bruno@clisp.org>
87669         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
87670         * modules/mbrtowc (Depends-on): Add verify.
87671         Suggested by Paul Eggert.
87673 2008-12-18  Bruno Haible  <bruno@clisp.org>
87675         * modules/mbsinit-tests: New file.
87676         * tests/test-mbsinit.sh: New file.
87677         * tests/test-mbsinit.c: New file.
87679 2008-12-18  Bruno Haible  <bruno@clisp.org>
87681         * modules/mbrtowc-tests: New file.
87682         * tests/test-mbrtowc1.sh: New file.
87683         * tests/test-mbrtowc2.sh: New file.
87684         * tests/test-mbrtowc3.sh: New file.
87685         * tests/test-mbrtowc4.sh: New file.
87686         * tests/test-mbrtowc.c: New file.
87688         New module 'mbrtowc'.
87689         * lib/wchar.in.h (mbstate_t): Override when the system does not have
87690         mbsinit and mbrtowc.
87691         (mbrtowc): New declaration.
87692         * lib/mbrtowc.c: New file.
87693         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
87694         * modules/mbrtowc: New file.
87695         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
87696         HAVE_MBRTOWC.
87697         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
87698         HAVE_MBRTOWC.
87699         * doc/posix-functions/mbrtowc.texi: Document the new module.
87701 2008-12-18  Bruno Haible  <bruno@clisp.org>
87703         New module 'wctob'.
87704         * lib/wchar.in.h (wctob): New declaration.
87705         * lib/wctob.c: New file.
87706         * m4/wctob.m4: New file.
87707         * modules/wctob: New file.
87708         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
87709         HAVE_WCTOB.
87710         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
87711         * doc/posix-functions/wctob.texi: Document the new module.
87713 2008-12-18  Bruno Haible  <bruno@clisp.org>
87715         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
87716         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
87718 2008-12-18  Simon Josefsson  <simon@josefsson.org>
87720         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
87721         G. Christensen" <tgc@jupiterrise.com>.
87723         * lib/flock.c: Need to include errno.h.  Reported by "Tom
87724         G. Christensen" <tgc@jupiterrise.com>.
87726         * lib/flock.c: Need to include string.h.  Reported by "Tom
87727         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
87728         <ebb9@byu.net>.
87730 2008-12-18  Bruno Haible  <bruno@clisp.org>
87732         * m4/locale-ja.m4: New file, from GNU gettext.
87734 2008-12-17  Bruno Haible  <bruno@clisp.org>
87736         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
87737         Suggested by Eric Blake.
87739 2008-12-17  Bruno Haible  <bruno@clisp.org>
87741         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
87743 2008-12-17  Bruno Haible  <bruno@clisp.org>
87745         * lib/mbsinit.c: Include verify.h. Verify an assumption.
87746         * modules/mbsinit (Depends-on): Add verify.
87747         Suggested by Paul Eggert.
87749 2008-12-17  Bruno Haible  <bruno@clisp.org>
87751         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
87752         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
87753         gl_FUNC_MBRTOWC.
87754         * m4/mbiter.m4 (gl_MBITER): LIkewise.
87755         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
87756         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
87757         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
87758         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
87759         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
87760         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
87761         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
87762         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
87763         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
87764         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
87765         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
87766         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
87767         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
87768         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
87769         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
87770         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
87771         * modules/trim (configure.ac): Likewise.
87773 2008-12-17  Bruno Haible  <bruno@clisp.org>
87775         * modules/btowc-tests: New file.
87776         * tests/test-btowc1.sh: New file.
87777         * tests/test-btowc2.sh: New file.
87778         * tests/test-btowc.c: New file.
87780         New module 'btowc'.
87781         * lib/wchar.in.h (btowc): New declaration.
87782         * lib/btowc.c: New file.
87783         * m4/btowc.m4: New file.
87784         * modules/btowc: New file.
87785         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
87786         HAVE_BTOWC.
87787         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
87788         * doc/posix-functions/btowc.texi: Document the new module.
87790 2008-12-17  Bruno Haible  <bruno@clisp.org>
87792         New module 'mbsinit'.
87793         * lib/wchar.in.h (mbsinit): New declaration.
87794         * lib/mbsinit.c: New file.
87795         * m4/mbsinit.m4: New file.
87796         * modules/mbsinit: New file.
87797         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
87798         HAVE_MBSINIT.
87799         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
87800         HAVE_MBSINIT.
87801         * doc/posix-functions/mbsinit.texi: Document the new module.
87803 2008-12-16  Bruno Haible  <bruno@clisp.org>
87805         * lib/unistd.in.h: Add comment.
87806         * tests/test-environ.c: Don't include <stdlib.h>.
87808 2008-12-16  Bruno Haible  <bruno@clisp.org>
87810         * lib/parse-duration.h (parse_duration): Document return value
87811         convention.
87812         * lib/parse-duration.c: Include specification header first. Add
87813         comments.
87814         (_): Remove macro.
87815         (parse_year_month_day, parse_hour_minute_second): Move side effects
87816         outside of strchr call.
87817         (parse_non_iso8601): Move side effects outside of isspace call.
87818         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
87819         call.
87821 2008-12-16  Bruno Haible  <bruno@clisp.org>
87823         * tests/test-parse-duration.sh: Produce no output when the test
87824         succeeds.
87826 2008-12-16  Bruno Haible  <bruno@clisp.org>
87828         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
87829         expressions.
87831 2008-12-15  Bruno Haible  <bruno@clisp.org>
87833         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
87834         * doc/glibc-functions/flistxattr.texi: Likewise.
87835         * doc/glibc-functions/fopencookie.texi: Likewise.
87836         * doc/glibc-functions/fremovexattr.texi: Likewise.
87837         * doc/glibc-functions/fsetxattr.texi: Likewise.
87838         * doc/glibc-functions/getxattr.texi: Likewise.
87839         * doc/glibc-functions/lgetxattr.texi: Likewise.
87840         * doc/glibc-functions/listxattr.texi: Likewise.
87841         * doc/glibc-functions/llistxattr.texi: Likewise.
87842         * doc/glibc-functions/lremovexattr.texi: Likewise.
87843         * doc/glibc-functions/lsetxattr.texi: Likewise.
87844         * doc/glibc-functions/removexattr.texi: Likewise.
87845         * doc/glibc-functions/setxattr.texi: Likewise.
87846         * doc/posix-functions/open_memstream.texi: Likewise.
87848 2008-12-15  Eric Blake  <ebb9@byu.net>
87850         Update doc for cygwin 1.7.
87851         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
87852         functions.
87853         * doc/posix-functions/fchmodat.texi: Likewise.
87854         * doc/posix-functions/fchownat.texi: Likewise.
87855         * doc/posix-functions/fdopendir.texi: Likewise.
87856         * doc/posix-functions/fmemopen.texi: Likewise.
87857         * doc/posix-functions/freeaddrinfo.texi: Likewise.
87858         * doc/posix-functions/fstatat.texi: Likewise.
87859         * doc/posix-functions/futimens.texi: Likewise.
87860         * doc/posix-functions/gai_strerror.texi: Likewise.
87861         * doc/posix-functions/getaddrinfo.texi: Likewise.
87862         * doc/posix-functions/getnameinfo.texi: Likewise.
87863         * doc/posix-functions/if_freenameindex.texi: Likewise.
87864         * doc/posix-functions/if_indextoname.texi: Likewise.
87865         * doc/posix-functions/if_nameindex.texi: Likewise.
87866         * doc/posix-functions/if_nametoindex.texi: Likewise.
87867         * doc/posix-functions/insque.texi: Likewise.
87868         * doc/posix-functions/linkat.texi: Likewise.
87869         * doc/posix-functions/llrint.texi: Likewise.
87870         * doc/posix-functions/llrintf.texi: Likewise.
87871         * doc/posix-functions/llrintl.texi: Likewise.
87872         * doc/posix-functions/lockf.texi: Likewise.
87873         * doc/posix-functions/lrintl.texi: Likewise.
87874         * doc/posix-functions/mkdirat.texi: Likewise.
87875         * doc/posix-functions/mkfifoat.texi: Likewise.
87876         * doc/posix-functions/mknodat.texi: Likewise.
87877         * doc/posix-functions/mq_close.texi: Likewise.
87878         * doc/posix-functions/mq_getattr.texi: Likewise.
87879         * doc/posix-functions/mq_notify.texi: Likewise.
87880         * doc/posix-functions/mq_open.texi: Likewise.
87881         * doc/posix-functions/mq_receive.texi: Likewise.
87882         * doc/posix-functions/mq_send.texi: Likewise.
87883         * doc/posix-functions/mq_setattr.texi: Likewise.
87884         * doc/posix-functions/mq_timedreceive.texi: Likewise.
87885         * doc/posix-functions/mq_timedsend.texi: Likewise.
87886         * doc/posix-functions/mq_unlink.texi: Likewise.
87887         * doc/posix-functions/open_memstream.texi: Likewise.
87888         * doc/posix-functions/openat.texi: Likewise.
87889         * doc/posix-functions/posix_fadvise.texi: Likewise.
87890         * doc/posix-functions/posix_fallocate.texi: Likewise.
87891         * doc/posix-functions/posix_madvise.texi: Likewise.
87892         * doc/posix-functions/posix_memalign.texi: Likewise.
87893         * doc/posix-functions/posix_openpt.texi: Likewise.
87894         * doc/posix-functions/readlinkat.texi: Likewise.
87895         * doc/posix-functions/remque.texi: Likewise.
87896         * doc/posix-functions/renameat.texi: Likewise.
87897         * doc/posix-functions/rintl.texi: Likewise.
87898         * doc/posix-functions/sem_unlink.texi: Likewise.
87899         * doc/posix-functions/shm_open.texi: Likewise.
87900         * doc/posix-functions/shm_unlink.texi: Likewise.
87901         * doc/posix-functions/signgam.texi: Likewise.
87902         * doc/posix-functions/sigset.texi: Likewise.
87903         * doc/posix-functions/stpcpy.texi: Likewise.
87904         * doc/posix-functions/stpncpy.texi: Likewise.
87905         * doc/posix-functions/strerror.texi: Likewise.
87906         * doc/posix-functions/strtod.texi: Likewise.
87907         * doc/posix-functions/symlinkat.texi: Likewise.
87908         * doc/posix-functions/unlinkat.texi: Likewise.
87909         * doc/posix-functions/utimensat.texi: Likewise.
87910         * doc/glibc-functions/bindresvport.texi: Likewise.
87911         * doc/glibc-functions/dn_expand.texi: Likewise.
87912         * doc/glibc-functions/exp10.texi: Likewise.
87913         * doc/glibc-functions/exp10f.texi: Likewise.
87914         * doc/glibc-functions/fgetxattr.texi: Likewise.
87915         * doc/glibc-functions/flistxattr.texi: Likewise.
87916         * doc/glibc-functions/fopencookie.texi: Likewise.
87917         * doc/glibc-functions/freeifaddrs.texi: Likewise.
87918         * doc/glibc-functions/fremovexattr.texi: Likewise.
87919         * doc/glibc-functions/fsetxattr.texi: Likewise.
87920         * doc/glibc-functions/getifaddrs.texi: Likewise.
87921         * doc/glibc-functions/getxattr.texi: Likewise.
87922         * doc/glibc-functions/lgetxattr.texi: Likewise.
87923         * doc/glibc-functions/listxattr.texi: Likewise.
87924         * doc/glibc-functions/llistxattr.texi: Likewise.
87925         * doc/glibc-functions/lremovexattr.texi: Likewise.
87926         * doc/glibc-functions/lsetxattr.texi: Likewise.
87927         * doc/glibc-functions/pow10.texi: Likewise.
87928         * doc/glibc-functions/pow10f.texi: Likewise.
87929         * doc/glibc-functions/rcmd_af.texi: Likewise.
87930         * doc/glibc-functions/removexattr.texi: Likewise.
87931         * doc/glibc-functions/res_init.texi: Likewise.
87932         * doc/glibc-functions/res_mkquery.texi: Likewise.
87933         * doc/glibc-functions/res_query.texi: Likewise.
87934         * doc/glibc-functions/res_querydomain.texi: Likewise.
87935         * doc/glibc-functions/res_send.texi: Likewise.
87936         * doc/glibc-functions/rresvport_af.texi: Likewise.
87937         * doc/glibc-functions/setxattr.texi: Likewise.
87938         * doc/glibc-functions/strcasestr.texi: Likewise.
87940 2008-12-15  Bruno Haible  <bruno@clisp.org>
87942         Fix compilation error on OSF/1 4.0.
87943         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
87944         <sys/time.h>, simply delegate to the system header.
87945         Reported by Daniel Richard G. <oss@teragram.com>.
87947 2008-12-15  Bruno Haible  <bruno@clisp.org>
87949         * doc/posix-functions/openat.texi: Mention the 'openat' module.
87950         * doc/posix-functions/fchmodat.texi: Likewise.
87951         * doc/posix-functions/fchownat.texi: Likewise.
87952         * doc/posix-functions/fdopendir.texi: Likewise.
87953         * doc/posix-functions/fstatat.texi: Likewise.
87954         * doc/posix-functions/mkdirat.texi: Likewise.
87955         * doc/posix-functions/unlinkat.texi: Likewise.
87957 2008-12-14  Bruno Haible  <bruno@clisp.org>
87959         Update doc for POSIX:2008.
87960         * doc/posix-functions/faccessat.texi: New file.
87961         * doc/posix-functions/fchmodat.texi: New file.
87962         * doc/posix-functions/fchownat.texi: New file.
87963         * doc/posix-functions/fdopendir.texi: New file.
87964         * doc/posix-functions/fstatat.texi: New file.
87965         * doc/posix-functions/futimens.texi: New file.
87966         * doc/posix-functions/linkat.texi: New file.
87967         * doc/posix-functions/mkdirat.texi: New file.
87968         * doc/posix-functions/mkfifoat.texi: New file.
87969         * doc/posix-functions/mknodat.texi: New file.
87970         * doc/posix-functions/open_wmemstream.texi: New file.
87971         * doc/posix-functions/openat.texi: New file.
87972         * doc/posix-functions/psiginfo.texi: New file.
87973         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
87974         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
87975         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
87976         * doc/posix-functions/readlinkat.texi: New file.
87977         * doc/posix-functions/renameat.texi: New file.
87978         * doc/posix-functions/strerror_l.texi: New file.
87979         * doc/posix-functions/symlinkat.texi: New file.
87980         * doc/posix-functions/unlinkat.texi: New file.
87981         * doc/posix-functions/utimensat.texi: New file.
87982         * doc/gnulib.texi (Function Substitutes): Add these subsections.
87984 2008-12-14  Bruno Haible  <bruno@clisp.org>
87986         Update doc for POSIX:2008.
87987         * doc/posix-functions/alphasort.texi: Renamed from
87988         doc/glibc-functions/alphasort.texi.
87989         * doc/posix-functions/dirfd.texi: Renamed from
87990         doc/glibc-functions/dirfd.texi.
87991         * doc/posix-functions/dprintf.texi: Renamed from
87992         doc/glibc-functions/dprintf.texi.
87993         * doc/posix-functions/duplocale.texi: Renamed from
87994         doc/glibc-functions/duplocale.texi.
87995         * doc/posix-functions/fexecve.texi: Renamed from
87996         doc/glibc-functions/fexecve.texi.
87997         * doc/posix-functions/fmemopen.texi: Renamed from
87998         doc/glibc-functions/fmemopen.texi.
87999         * doc/posix-functions/freelocale.texi: Renamed from
88000         doc/glibc-functions/freelocale.texi.
88001         * doc/posix-functions/getdate_err.texi: Renamed from
88002         doc/glibc-functions/getdate_err.texi.
88003         * doc/posix-functions/isalnum_l.texi: Renamed from
88004         doc/glibc-functions/isalnum_l.texi.
88005         * doc/posix-functions/isalpha_l.texi: Renamed from
88006         doc/glibc-functions/isalpha_l.texi.
88007         * doc/posix-functions/isblank_l.texi: Renamed from
88008         doc/glibc-functions/isblank_l.texi.
88009         * doc/posix-functions/iscntrl_l.texi: Renamed from
88010         doc/glibc-functions/iscntrl_l.texi.
88011         * doc/posix-functions/isdigit_l.texi: Renamed from
88012         doc/glibc-functions/isdigit_l.texi.
88013         * doc/posix-functions/isgraph_l.texi: Renamed from
88014         doc/glibc-functions/isgraph_l.texi.
88015         * doc/posix-functions/islower_l.texi: Renamed from
88016         doc/glibc-functions/islower_l.texi.
88017         * doc/posix-functions/isprint_l.texi: Renamed from
88018         doc/glibc-functions/isprint_l.texi.
88019         * doc/posix-functions/ispunct_l.texi: Renamed from
88020         doc/glibc-functions/ispunct_l.texi.
88021         * doc/posix-functions/isspace_l.texi: Renamed from
88022         doc/glibc-functions/isspace_l.texi.
88023         * doc/posix-functions/isupper_l.texi: Renamed from
88024         doc/glibc-functions/isupper_l.texi.
88025         * doc/posix-functions/iswalnum_l.texi: Renamed from
88026         doc/glibc-functions/iswalnum_l.texi.
88027         * doc/posix-functions/iswalpha_l.texi: Renamed from
88028         doc/glibc-functions/iswalpha_l.texi.
88029         * doc/posix-functions/iswblank_l.texi: Renamed from
88030         doc/glibc-functions/iswblank_l.texi.
88031         * doc/posix-functions/iswcntrl_l.texi: Renamed from
88032         doc/glibc-functions/iswcntrl_l.texi.
88033         * doc/posix-functions/iswctype_l.texi: Renamed from
88034         doc/glibc-functions/iswctype_l.texi.
88035         * doc/posix-functions/iswdigit_l.texi: Renamed from
88036         doc/glibc-functions/iswdigit_l.texi.
88037         * doc/posix-functions/iswgraph_l.texi: Renamed from
88038         doc/glibc-functions/iswgraph_l.texi.
88039         * doc/posix-functions/iswlower_l.texi: Renamed from
88040         doc/glibc-functions/iswlower_l.texi.
88041         * doc/posix-functions/iswprint_l.texi: Renamed from
88042         doc/glibc-functions/iswprint_l.texi.
88043         * doc/posix-functions/iswpunct_l.texi: Renamed from
88044         doc/glibc-functions/iswpunct_l.texi.
88045         * doc/posix-functions/iswspace_l.texi: Renamed from
88046         doc/glibc-functions/iswspace_l.texi.
88047         * doc/posix-functions/iswupper_l.texi: Renamed from
88048         doc/glibc-functions/iswupper_l.texi.
88049         * doc/posix-functions/iswxdigit_l.texi: Renamed from
88050         doc/glibc-functions/iswxdigit_l.texi.
88051         * doc/posix-functions/isxdigit_l.texi: Renamed from
88052         doc/glibc-functions/isxdigit_l.texi.
88053         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
88054         doc/glibc-functions/mbsnrtowcs.texi.
88055         * doc/posix-functions/mkdtemp.texi: Renamed from
88056         doc/glibc-functions/mkdtemp.texi.
88057         * doc/posix-functions/newlocale.texi: Renamed from
88058         doc/glibc-functions/newlocale.texi.
88059         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
88060         doc/glibc-functions/nl_langinfo_l.texi.
88061         * doc/posix-functions/open_memstream.texi: Renamed from
88062         doc/glibc-functions/open_memstream.texi.
88063         * doc/posix-functions/opterr.texi: Renamed from
88064         doc/glibc-functions/opterr.texi.
88065         * doc/posix-functions/optind.texi: Renamed from
88066         doc/glibc-functions/optind.texi.
88067         * doc/posix-functions/optopt.texi: Renamed from
88068         doc/glibc-functions/optopt.texi.
88069         * doc/posix-functions/psignal.texi: Renamed from
88070         doc/glibc-functions/psignal.texi.
88071         * doc/posix-functions/scandir.texi: Renamed from
88072         doc/glibc-functions/scandir.texi.
88073         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
88074         doc/glibc-functions/sched_get_priority_min.texi.
88075         * doc/posix-functions/signgam.texi: Renamed from
88076         doc/glibc-functions/signgam.texi.
88077         * doc/posix-functions/stpcpy.texi: Renamed from
88078         doc/glibc-functions/stpcpy.texi.
88079         * doc/posix-functions/stpncpy.texi: Renamed from
88080         doc/glibc-functions/stpncpy.texi.
88081         * doc/posix-functions/strcasecmp_l.texi: Renamed from
88082         doc/glibc-functions/strcasecmp_l.texi.
88083         * doc/posix-functions/strcoll_l.texi: Renamed from
88084         doc/glibc-functions/strcoll_l.texi.
88085         * doc/posix-functions/strfmon_l.texi: Renamed from
88086         doc/glibc-functions/strfmon_l.texi.
88087         * doc/posix-functions/strftime_l.texi: Renamed from
88088         doc/glibc-functions/strftime_l.texi.
88089         * doc/posix-functions/strncasecmp_l.texi: Renamed from
88090         doc/glibc-functions/strncasecmp_l.texi.
88091         * doc/posix-functions/strndup.texi: Renamed from
88092         doc/glibc-functions/strndup.texi.
88093         * doc/posix-functions/strnlen.texi: Renamed from
88094         doc/glibc-functions/strnlen.texi.
88095         * doc/posix-functions/strsignal.texi: Renamed from
88096         doc/glibc-functions/strsignal.texi.
88097         * doc/posix-functions/strxfrm_l.texi: Renamed from
88098         doc/glibc-functions/strxfrm_l.texi.
88099         * doc/posix-functions/timer_gettime.texi: Renamed from
88100         doc/glibc-functions/timer_gettime.texi.
88101         * doc/posix-functions/tolower_l.texi: Renamed from
88102         doc/glibc-functions/tolower_l.texi.
88103         * doc/posix-functions/toupper_l.texi: Renamed from
88104         doc/glibc-functions/toupper_l.texi.
88105         * doc/posix-functions/towctrans_l.texi: Renamed from
88106         doc/glibc-functions/towctrans_l.texi.
88107         * doc/posix-functions/towlower_l.texi: Renamed from
88108         doc/glibc-functions/towlower_l.texi.
88109         * doc/posix-functions/towupper_l.texi: Renamed from
88110         doc/glibc-functions/towupper_l.texi.
88111         * doc/posix-functions/uselocale.texi: Renamed from
88112         doc/glibc-functions/uselocale.texi.
88113         * doc/posix-functions/vdprintf.texi: Renamed from
88114         doc/glibc-functions/vdprintf.texi.
88115         * doc/posix-functions/wcpcpy.texi:
88116         Renamed from doc/glibc-functions/wcpcpy.texi.
88117         * doc/posix-functions/wcpncpy.texi: Renamed from
88118         doc/glibc-functions/wcpncpy.texi.
88119         * doc/posix-functions/wcscasecmp.texi: Renamed from
88120         doc/glibc-functions/wcscasecmp.texi.
88121         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
88122         doc/glibc-functions/wcscasecmp_l.texi.
88123         * doc/posix-functions/wcscoll_l.texi: Renamed from
88124         doc/glibc-functions/wcscoll_l.texi.
88125         * doc/posix-functions/wcsdup.texi: Renamed from
88126         doc/glibc-functions/wcsdup.texi.
88127         * doc/posix-functions/wcsncasecmp.texi: Renamed from
88128         doc/glibc-functions/wcsncasecmp.texi.
88129         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
88130         doc/glibc-functions/wcsncasecmp_l.texi.
88131         * doc/posix-functions/wcsnlen.texi: Renamed from
88132         doc/glibc-functions/wcsnlen.texi.
88133         * doc/posix-functions/wcsnrtombs.texi: Renamed from
88134         doc/glibc-functions/wcsnrtombs.texi.
88135         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
88136         doc/glibc-functions/wcsxfrm_l.texi.
88137         * doc/posix-functions/wctrans_l.texi: Renamed from
88138         doc/glibc-functions/wctrans_l.texi.
88139         * doc/posix-functions/wctype_l.texi: Renamed from
88140         doc/glibc-functions/wctype_l.texi.
88141         * doc/gnulib.texi (Function Substitutes): Add these subsections.
88142         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
88143         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
88144         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
88145         these subsections.
88146         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
88147         Remove sections.
88149 2008-12-14  Bruno Haible  <bruno@clisp.org>
88151         Update doc for POSIX:2008.
88152         * doc/posix-functions/*.texi: Update URL of POSIX specification.
88154 2008-12-14  Bruno Haible  <bruno@clisp.org>
88156         Update doc for POSIX:2008.
88157         * doc/pastposix-functions/bcmp.texi: Renamed from
88158         doc/posix-functions/bcmp.texi.
88159         * doc/pastposix-functions/bcopy.texi: Renamed from
88160         doc/posix-functions/bcopy.texi.
88161         * doc/pastposix-functions/bsd_signal.texi: Renamed from
88162         doc/posix-functions/bsd_signal.texi.
88163         * doc/pastposix-functions/bzero.texi: Renamed from
88164         doc/posix-functions/bzero.texi.
88165         * doc/pastposix-functions/ecvt.texi: Renamed from
88166         doc/posix-functions/ecvt.texi.
88167         * doc/pastposix-functions/fcvt.texi: Renamed from
88168         doc/posix-functions/fcvt.texi.
88169         * doc/pastposix-functions/ftime.texi: Renamed from
88170         doc/posix-functions/ftime.texi.
88171         * doc/pastposix-functions/gcvt.texi: Renamed from
88172         doc/posix-functions/gcvt.texi.
88173         * doc/pastposix-functions/getcontext.texi: Renamed from
88174         doc/posix-functions/getcontext.texi.
88175         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
88176         doc/posix-functions/gethostbyaddr.texi.
88177         * doc/pastposix-functions/gethostbyname.texi: Renamed from
88178         doc/posix-functions/gethostbyname.texi.
88179         * doc/pastposix-functions/getwd.texi: Renamed from
88180         doc/posix-functions/getwd.texi.
88181         * doc/pastposix-functions/h_errno.texi: Renamed from
88182         doc/posix-functions/h_errno.texi.
88183         * doc/pastposix-functions/index.texi: Renamed from
88184         doc/posix-functions/index.texi.
88185         * doc/pastposix-functions/makecontext.texi: Renamed from
88186         doc/posix-functions/makecontext.texi.
88187         * doc/pastposix-functions/mktemp.texi: Renamed from
88188         doc/posix-functions/mktemp.texi.
88189         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
88190         doc/posix-functions/pthread_attr_getstackaddr.texi.
88191         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
88192         doc/posix-functions/pthread_attr_setstackaddr.texi.
88193         * doc/pastposix-functions/rindex.texi: Renamed from
88194         doc/posix-functions/rindex.texi.
88195         * doc/pastposix-functions/scalb.texi: Renamed from
88196         doc/posix-functions/scalb.texi.
88197         * doc/pastposix-functions/setcontext.texi: Renamed from
88198         doc/posix-functions/setcontext.texi.
88199         * doc/pastposix-functions/swapcontext.texi: Renamed from
88200         doc/posix-functions/swapcontext.texi.
88201         * doc/pastposix-functions/ualarm.texi: Renamed from
88202         doc/posix-functions/ualarm.texi.
88203         * doc/pastposix-functions/usleep.texi: Renamed from
88204         doc/posix-functions/usleep.texi.
88205         * doc/pastposix-functions/vfork.texi: Renamed from
88206         doc/posix-functions/vfork.texi.
88207         * doc/pastposix-functions/wcswcs.texi: Renamed from
88208         doc/posix-functions/wcswcs.texi.
88209         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
88210         (Function Substitutes): Update.
88212 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88214         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
88215         m4/strerror.m4.
88217 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88218             Bruno Haible  <bruno@clisp.org>
88220         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
88222 2008-12-13  Bruno Haible  <bruno@clisp.org>
88224         * modules/strtoull (Depends-on): Remove unistd.
88226 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88228         * modules/strtoull (Depends-on): Add stdlib.
88230 2008-12-11  Simon Josefsson  <simon@josefsson.org>
88232         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
88234 2008-12-10  Jim Meyering  <meyering@redhat.com>
88236         gl_ASSERT: don't say assertions are disabled when they're not
88237         * m4/assert.m4 (gl_ASSERT): Do not make configure report
88238         "checking whether to enable assertions... no", when they are in
88239         fact enabled.  This is solely a bug in the output of configure.
88240         In spite of saying "no", NDEBUG was not defined in that case.
88241         Also, as noted by Eric Blake, leave assertions enabled upon
88242         --enable-assert=INVALID.
88244 2008-12-10  Bruno Haible  <bruno@clisp.org>
88246         Change MODULES.html to refer to POSIX:2008 where possible.
88247         * MODULES.html.sh (POSIX2008_URL): New variable.
88248         (posix_headers): Remove sys/timeb, ucontext.
88249         (posix2001_headers): New variable.
88250         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
88251         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
88252         index, makecontext, mktemp, pthread_attr_getstackaddr,
88253         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
88254         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
88255         (posix2001_functions): New variable.
88256         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
88257         otherwise.
88259 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88261         add missing include to parse-duration.c
88262         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
88263         * modules/parse-duration (Depends-on): Add xalloc.
88265         fix sed script reading maint.mk
88266         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
88267         (syntax-check-rules): Use it.
88269 2008-12-09  Bruno Haible  <bruno@clisp.org>
88271         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
88272         MacOS X 10.4/PowerPC.
88273         Reported by Simon Josefsson.
88275 2008-12-08  Jim Meyering  <meyering@redhat.com>
88277         work around mingw's lack of some S_IF definitions
88278         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
88279         Reported by Simon Josefsson.
88281 2008-12-08  Bruno Haible  <bruno@clisp.org>
88283         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
88284         applied to variables. Needed on MacOS X 10.4/PowerPC.
88285         Reported by Simon Josefsson.
88287 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
88288         and Eric Blake  <ebb9@byu.net>
88290         assert: honor --enable-assert
88291         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
88292         order to honor --enable-assert, rather than treating it as a
88293         synonym for --disable-assert.
88295 2008-12-08  Jim Meyering  <meyering@redhat.com>
88297         * lib/posixtm.c: Remove now-useless declaration of mktime.
88299         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
88301 2008-12-07  Bruno Haible  <bruno@clisp.org>
88303         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
88304         test_once): Mark functions as static.
88305         * tests/test-tls.c (test_tls): Likewise.
88307 2008-12-07  Bruno Haible  <bruno@clisp.org>
88309         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
88310         iconv_register_autodetect.
88312 2008-12-07  Jim Meyering  <meyering@redhat.com>
88314         posixtm.c: avoid a warning
88315         * lib/posixtm.c (posixtime): Don't initialize tm0.
88316         It's no longer needed to placate gcc4's -Wuninitialized,
88317         and the attempt to placate would elicit a new warning.
88319         unicodeio.c: mark unused parameters
88320         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
88321         (fallback_failure_callback): Likewise.
88323 2008-12-07  Bruno Haible  <bruno@clisp.org>
88325         * gnulib-tool (func_create_testdir): When building the tests
88326         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
88327         Reported by Simon Josefsson.
88329 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88331         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
88333 2008-12-06  Bruno Haible  <bruno@clisp.org>
88335         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
88336         Suggested by Eric Blake.
88338 2008-12-06  Bruno Haible  <bruno@clisp.org>
88340         Fix a c-stack test failure on MacOS X.
88341         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
88342         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
88343         handler for SIGBUS as well.
88344         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
88345         install a signal handler for SIGBUS as well.
88346         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
88348 2008-12-06  Bruno Haible  <bruno@clisp.org>
88350         Advocacy documentation.
88351         * doc/gnulib-intro.texi (Benefits): New section.
88352         * doc/gnulib.texi: Update.
88354 2008-12-06  Bruno Haible  <bruno@clisp.org>
88356         Document the 'manywarnings' module.
88357         * doc/manywarnings.texi: New file.
88358         * doc/gnulib.texi: Include it.
88360 2008-12-05  Eric Blake  <ebb9@byu.net>
88362         tests: silence some gcc warnings
88363         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
88364         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
88365         type mismatches.
88367 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88368             Bruno Haible  <bruno@clisp.org>
88370         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
88372 2008-11-29  Jim Meyering  <meyering@redhat.com>
88374         unicodeio.c: mark unused parameters
88375         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
88376         (fallback_failure_callback): Likewise.
88378         fts: fix a thinko
88379         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
88380         (set_stat_type): Return S_IF*-valued "type" directly.
88381         Prompted by James Youngman's spotting a related bug.
88382         Confirmed by further testing through find.
88384         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
88385         * lib/fts.c (D_TYPE): Define.
88386         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
88387         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
88388         (s_ifmt_shift_bits): New function.
88389         (set_stat_type): New function.
88390         (fts_build): When not calling fts_stat, call set_stat_type
88391         to propagate dirent.d_type info to fts_read caller.
88392         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
88393         fts_statp->st_mode type information may be valid.
88395 2008-11-28  Simon Josefsson  <simon@josefsson.org>
88397         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
88398         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
88399         <sds@gnu.org>.
88401 2008-11-20  Bruno Haible  <bruno@clisp.org>
88403         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
88404         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
88405         INCLUDE_NEXT.
88406         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
88407         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
88408         * modules/math (Makefile.am): Substitute
88409         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
88410         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
88412 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
88413             Bruno Haible  <bruno@clisp.org>
88415         * lib/stdint.in.h: Define all type macros so that their expansion is
88416         a single typedef'ed token. Fixes a compilation failure in Boost which
88417         does "using ::int8_t;".
88419 2008-11-18  Simon Josefsson  <simon@josefsson.org>
88421         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
88422         gl_MANYWARN_ALL_GCC.
88423         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
88424         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
88425         * modules/manywarnings: New file.
88426         * MODULES.html.sh: Mention manywarnings module.
88428 2008-11-18  Bruno Haible  <bruno@clisp.org>
88430         * doc/gnulib-tool.texi (Unit tests): New section.
88432 2008-11-18  Simon Josefsson  <simon@josefsson.org>
88434         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
88435         paths like 'lib/po/foo.po'.
88437 2008-11-17  Simon Josefsson  <simon@josefsson.org>
88439         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
88440         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
88442 2008-11-17  Simon Josefsson  <simon@josefsson.org>
88444         * m4/warnings.m4: Use CPPFLAGS to really check whether the
88445         parameter works.
88447 2008-11-17  Simon Josefsson  <simon@josefsson.org>
88449         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
88451 2008-11-17  Bruce Korb  <bkorb@gnu.org>
88453         * modules/parse-duration-tests: New file.
88454         * tests/test-parse-duration.sh: New file.
88455         * tests/test-parse-duration.c: New file.
88457         New module 'parse-duration'.
88458         * lib/parse-duration.h: New file.
88459         * lib/parse-duration.c: New file.
88460         * modules/parse-duration: New file.
88462 2008-11-17  Bruno Haible  <bruno@clisp.org>
88464         * tests/test-select-out.sh: Comment out the first pipe test.
88465         Reported by Simon Josefsson.
88467 2008-11-17  Bruno Haible  <bruno@clisp.org>
88469         * modules/getaddrinfo (Depends-on): Add servent, hostent.
88470         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
88471         gl_HOSTENT.
88473 2008-11-17  Bruno Haible  <bruno@clisp.org>
88475         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
88476         -lnetwork and -lnet. Needed for Haiku and BeOS.
88478 2008-11-16  Bruno Haible  <bruno@clisp.org>
88480         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
88482 2008-11-16  Bruno Haible  <bruno@clisp.org>
88484         Avoid test failure on Haiku.
88485         * tests/test-fsync.c: Include <errno.h>.
88486         (main): Don't require that fsync (0) fails.
88488 2008-11-15  Bruno Haible  <bruno@clisp.org>
88490         New module 'hostent'.
88491         * modules/hostent: New file.
88492         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
88494 2008-11-15  Bruno Haible  <bruno@clisp.org>
88496         New module 'servent'.
88497         * modules/servent: New file.
88498         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
88500 2008-11-15  Bruno Haible  <bruno@clisp.org>
88502         Avoid generating same test program with two different rules.
88503         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
88504         test-frexp to test-frexp-nolibm.
88505         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
88506         test-frexpl to test-frexpl-nolibm.
88508 2008-11-15  Bruno Haible  <bruno@clisp.org>
88510         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
88511         $(FREXPL_LIBM).
88513 2008-11-15  Bruno Haible  <bruno@clisp.org>
88515         * lib/netdb.in.h: Activate the definitions also when the system's
88516         <netdb.h> has 'struct addrinfo'.
88517         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
88518         EAI_OVERFLOW or AI_NUMERICSERV.
88519         * doc/posix-headers/netdb.texi: Document the problem.
88521 2008-11-15  Bruno Haible  <bruno@clisp.org>
88523         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
88525         Make the 'sched' module work on platforms where <sched.h> exists but
88526         is incomplete (such as Haiku).
88527         * lib/sched.in.h; Include the system's <sched.h> if it exists.
88528         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
88529         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
88530         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
88531         HAVE_STRUCT_SCHED_PARAM.
88532         * modules/sched (Depends-on): Add include_next.
88533         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
88534         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
88535         * doc/posix-headers/sched.texi: Document the issue.
88537 2008-11-13  Jim Meyering  <meyering@redhat.com>
88539         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
88540         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
88541         test would fail due to the difference in the Report bugs to ...
88542         line.  The expected address is empty, "<>", while the actual
88543         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
88545 2008-11-12  Bruno Haible  <bruno@clisp.org>
88547         lstat: don't compile lstat.c on systems lacking lstat
88548         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
88549         which don't have lstat; this is handled by lib/sys_stat.in.h already.
88550         Reported by Daniel P. Berrange via Jim Meyering.
88552 2008-11-12  Jim Meyering  <meyering@redhat.com>
88554         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
88556 2008-11-12  Simon Josefsson  <simon@josefsson.org>
88558         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
88559         instead.
88561 2008-11-12  Bruno Haible  <bruno@clisp.org>
88563         * lib/unicodeio.c: Include unistr.h.
88564         (utf8_wctomb): Remove function.
88565         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
88567 2008-11-12  Simon Josefsson  <simon@josefsson.org>
88569         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
88570         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
88571         <bruno@clisp.org>.
88572         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
88574 2008-11-12  Simon Josefsson  <simon@josefsson.org>
88576         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
88577         * doc/gnulib.texi: Add section for warnings.
88579 2008-11-11  Bruno Haible  <bruno@clisp.org>
88581         * lib/sockets.h: Add a comment.
88583 2008-11-11  Karl Berry  <karl@gnu.org>
88585         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
88587 2008-11-11  Eric Blake  <ebb9@byu.net>
88589         fdl.texi: avoid git symlinks
88590         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
88592 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88594         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
88596 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88598         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
88599         (gl_WARN_ADD): Substitute $2 if literal.
88601 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88603         * m4/warning.m4: Remove.
88605 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88607         * m4/warnings.m4: Almost complete rewrite. :-)
88609 2008-11-10  Simon Josefsson  <simon@josefsson.org>
88611         * modules/warnings: New module.
88612         * m4/warnings.m4: New file.
88613         * MODULES.html.sh: Mention warnings module.
88614         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
88615         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
88617 2008-11-10  Eric Blake  <ebb9@byu.net>
88619         fdl.texi: make a symlink to the latest version
88620         * doc/standards.texi: Revert today's earlier change.
88621         * doc/fdl-1.2.texi: Rename from old fdl.texi...
88622         * doc/fdl.texi: ...and replace this with a symlink to the newer
88623         fdl-1.3.texi.
88625 2008-11-10  Bruno Haible  <bruno@clisp.org>
88627         * tests/test-select-fd.c (main): Accept the result file name as fourth
88628         argument.
88629         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
88630         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
88632 2008-11-10  Bruno Haible  <bruno@clisp.org>
88634         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
88635         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
88636         as autoconf-substituted macros.
88637         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
88638         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
88639         gl_NETDB_H_DEFAULTS. Set these variables.
88640         * modules/netdb (Makefile.am): Substitute these variables.
88642 2008-11-10  Eric Blake  <ebb9@byu.net>
88644         standards.texi: include correct file for FDL 1.3
88645         * doc/standards.texi (GNU Free Documentation License): Change
88646         include file to pull in FDL 1.3, not 1.2.
88648         fdl.texi: revert accidental change to license
88649         * doc/fdl.texi: This is FDL 1.2, not 1.3.
88651 2008-11-10  Bruno Haible  <bruno@clisp.org>
88653         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
88654         cross-compiling guesses also when the native compile gives no result.
88656 2008-11-10  Bruno Haible  <bruno@clisp.org>
88658         * lib/spawni.c (__spawni): Force variable into the stack.
88660 2008-11-10  Bruno Haible  <bruno@clisp.org>
88662         Add support for Haiku.
88663         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
88664         glibc and BeOS, but also on Haiku.
88665         * lib/fpurge.c (fpurge): Likewise.
88666         * lib/freadable.c (freadable): Likewise.
88667         * lib/freadahead.c (freadahead): Likewise.
88668         * lib/freading.c (freading): Likewise.
88669         * lib/freadptr.c (freadptr): Likewise.
88670         * lib/freadseek.c (freadptrinc): Likewise.
88671         * lib/fseeko.c (rpl_fseeko): Likewise.
88672         * lib/fseterr.c (fseterr): Likewise.
88673         * lib/fwritable.c (fwritable): Likewise.
88674         * lib/fwriting.c (fwriting): Likewise.
88675         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
88677 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
88679         * lib/config.charset: Treat Haiku like BeOS.
88681 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
88683         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
88684         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
88686 2008-11-08  Bruno Haible  <bruno@clisp.org>
88688         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
88689         AC_CACHE_CHECK.
88691 2008-11-08  Bruno Haible  <bruno@clisp.org>
88693         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
88695 2008-11-08  Bruno Haible  <bruno@clisp.org>
88697         * tests/test-select-fd.c: New file.
88698         * tests/test-select-in.sh: New file.
88699         * tests/test-select-out.sh: New file.
88700         * tests/test-select-stdin.c: New file.
88701         * modules/select-tests (Files): Add the new files.
88702         (Depends-on): Add gettimeofday.
88703         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
88704         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
88705         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
88707 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
88708             Bruno Haible  <bruno@clisp.org>
88710         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
88712 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
88714         * build-aux/pmccabe2html: Added support for C++ source files.
88716 2008-11-05  Ben Pfaff  <blp@gnu.org>
88718         Fix lib/close.c build on Windows.
88719         * modules/close (Files): Add lib/w32sock.h.
88721 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
88723         Accept Bison's NEWS format.
88724         * build-aux/announce-gen (print_news_deltas): Tweak
88725         $re_prefix.
88727 2008-11-04  Bruno Haible  <bruno@clisp.org>
88729         * modules/random_r (Maintainer): Add glibc.
88731 2008-11-04  Simon Josefsson  <simon@josefsson.org>
88733         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
88734         by karl@freefriends.org (Karl Berry).
88735         * doc/alloca.texi: Likewise.
88736         * doc/c-ctype.texi: Likewise.
88737         * doc/c-strcase.texi: Likewise.
88738         * doc/c-strcaseeq.texi: Likewise.
88739         * doc/c-strcasestr.texi: Likewise.
88740         * doc/c-strstr.texi: Likewise.
88741         * doc/c-strtod.texi: Likewise.
88742         * doc/c-strtold.texi: Likewise.
88743         * doc/ctime.texi: Likewise.
88744         * doc/error.texi: Likewise.
88745         * doc/fdl.texi: Likewise.
88746         * doc/gcd.texi: Likewise.
88747         * doc/getdate.texi: Likewise.
88748         * doc/gnulib-intro.texi: Likewise.
88749         * doc/gnulib-tool.texi: Likewise.
88750         * doc/gnulib.texi: Likewise.
88751         * doc/inet_ntoa.texi: Likewise.
88752         * doc/maintain.texi: Likewise.
88753         * doc/make-stds.texi: Likewise.
88754         * doc/quote.texi: Likewise.
88755         * doc/regexprops-generic.texi: Likewise.
88756         * doc/standards.texi: Likewise.
88757         * doc/verify.texi: Likewise.
88758         * doc/visibility.texi: Likewise.
88759         * doc/gnulib.texi (GNU Free Documentation License): Include
88760         fdl-1.3.texi instead of fdl.texi.
88762 2008-11-04  Simon Josefsson  <simon@josefsson.org>
88764         * doc/fdl-1.3.texi: New file, from
88765         <http://www.gnu.org/licenses/fdl-1.3.texi>.
88766         * modules/fdl-1.3: Add.
88767         * MODULES.html.sh: Add fdl-1.3.
88769 2008-11-03  Bruno Haible  <bruno@clisp.org>
88771         Make determination of absolute name of header file work with AIX xlc.
88772         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
88773         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
88774         preprocessing.
88775         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
88776         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
88778 2008-11-03  Simon Josefsson  <simon@josefsson.org>
88780         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
88781         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
88782         <ludo@gnu.org>.
88784 2008-11-02  Bruno Haible  <bruno@clisp.org>
88786         Mark 'strpbrk' obsolete.
88787         * modules/strpbrk (Status, Notice): New sections.
88788         * modules/strtok_r (Depends-on): Add strpbrk.
88790 2008-11-02  Bruno Haible  <bruno@clisp.org>
88792         Mark 'strdup' obsolete.
88793         * modules/strdup (Status, Notice): New sections.
88794         * modules/findprog (Depends-on): Add strdup.
88795         * modules/getaddrinfo (Depends-on): Likewise.
88796         * modules/localename (Depends-on): Likewise.
88797         * modules/relocatable-lib (Depends-on): Likewise.
88798         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
88799         * modules/relocatable-prog (Depends-on): Likewise.
88800         * modules/trim (Depends-on): Likewise.
88801         * modules/unictype/gen-ctype (Depends-on): Likewise.
88802         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
88804 2008-11-02  Bruno Haible  <bruno@clisp.org>
88806         Mark 'strcspn' obsolete.
88807         * modules/strcspn (Status, Notice): New sections.
88809 2008-11-02  Bruno Haible  <bruno@clisp.org>
88811         Mark 'rmdir' obsolete.
88812         * modules/rmdir (Status, Notice): New sections.
88813         * modules/clean-temp (Depends-on): Add rmdir.
88814         * modules/openat (Depends-on): Likewise.
88816 2008-11-02  Bruno Haible  <bruno@clisp.org>
88818         Mark 'raise' obsolete.
88819         * modules/raise (Status, Notice): New sections.
88820         (Include): Specify <signal.h>.
88821         * modules/stdio (Depends-on): Add raise.
88822         * modules/write (Depends-on): Likewise.
88824 2008-11-02  Bruno Haible  <bruno@clisp.org>
88826         Mark 'memset' obsolete.
88827         * modules/memset (Status, Notice): New sections.
88829 2008-11-02  Bruno Haible  <bruno@clisp.org>
88831         Mark 'memmove' obsolete.
88832         * modules/memmove (Status, Notice): New sections.
88833         * modules/argp (Depends-on): Add memmove.
88834         * modules/argz (Depends-on): Likewise.
88835         * modules/canonicalize (Depends-on): Likewise.
88836         * modules/canonicalize-lgpl (Depends-on): Likewise.
88837         * modules/fts (Depends-on): Likewise.
88838         * modules/getcwd (Depends-on): Likewise.
88839         * modules/human (Depends-on): Likewise.
88840         * modules/regex (Depends-on): Likewise.
88841         * modules/striconveh (Depends-on): Likewise.
88842         * modules/trim (Depends-on): Likewise.
88843         * modules/unistr/u8-move (Depends-on): Likewise.
88844         * modules/unistr/u16-move (Depends-on): Likewise.
88845         * modules/unistr/u32-move (Depends-on): Likewise.
88847 2008-11-02  Bruno Haible  <bruno@clisp.org>
88849         Mark 'memcpy' obsolete.
88850         * modules/memcpy (Status, Notice): New sections.
88852 2008-11-02  Bruno Haible  <bruno@clisp.org>
88854         Mark 'memcmp' obsolete.
88855         * modules/memcmp (Status, Notice): New sections.
88856         * modules/argmatch (Depends-on): Add memchr.
88857         * modules/backupfile (Depends-on): Likewise.
88858         * modules/c-strcasestr (Depends-on): Likewise.
88859         * modules/crypto/des (Depends-on): Likewise.
88860         * modules/csharpcomp (Depends-on): Likewise.
88861         * modules/fnmatch (Depends-on): Likewise.
88862         * modules/git-merge-changelog (Depends-on): Likewise.
88863         * modules/isnand (Depends-on): Likewise.
88864         * modules/isnand-nolibm (Depends-on): Likewise.
88865         * modules/isnanf (Depends-on): Likewise.
88866         * modules/isnanf-nolibm (Depends-on): Likewise.
88867         * modules/isnanl (Depends-on): Likewise.
88868         * modules/isnanl-nolibm (Depends-on): Likewise.
88869         * modules/mbchar (Depends-on): Likewise.
88870         * modules/memcoll (Depends-on): Likewise.
88871         * modules/quotearg (Depends-on): Likewise.
88872         * modules/regex (Depends-on): Likewise.
88873         * modules/relocatable-prog (Depends-on): Likewise.
88874         * modules/same (Depends-on): Likewise.
88875         * modules/signbit (Depends-on): Likewise.
88876         * modules/strcasestr-simple (Depends-on): Likewise.
88877         * modules/unictype/gen-ctype (Depends-on): Likewise.
88878         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
88879         * modules/uniname/uniname (Depends-on): Likewise.
88880         * modules/unistr/u8-cmp (Depends-on): Likewise.
88882 2008-11-02  Bruno Haible  <bruno@clisp.org>
88884         Mark 'memchr' obsolete.
88885         * modules/memchr (Status, Notice): New sections.
88886         * modules/argp (Depends-on): Add memchr.
88887         * modules/base64 (Depends-on): Likewise.
88888         * modules/c-strcasestr (Depends-on): Likewise.
88889         * modules/chdir-long (Depends-on): Likewise.
88890         * modules/fnmatch (Depends-on): Likewise.
88891         * modules/getsubopt (Depends-on): Likewise.
88892         * modules/git-merge-changelog (Depends-on): Likewise.
88893         * modules/glob (Depends-on): Likewise.
88894         * modules/strcasestr-simple (Depends-on): Likewise.
88895         * modules/strnlen (Depends-on): Likewise.
88897 2008-11-02  Bruno Haible  <bruno@clisp.org>
88899         Mark 'atexit' obsolete.
88900         * modules/atexit (Status, Notice): New sections.
88901         * modules/chdir-long (Depends-on): Add atexit.
88902         * modules/wait-process (Depends-on): Likewise.
88904 2008-11-02  Bruno Haible  <bruno@clisp.org>
88906         * gnulib-tool: New option --with-obsolete.
88907         (func_usage): Document it.
88908         (func_modules_transitive_closure): Drop obsolete dependencies if
88909         incobsolete is not true.
88910         (func_import): Read and save the incobsolete variable to the cache.
88912 2008-11-02  Bruno Haible  <bruno@clisp.org>
88914         * modules/TEMPLATE-EXTENDED: New field 'Status'.
88915         * gnulib-tool: New option --extract-status.
88916         (func_usage): Document it.
88917         (sed_extract_prog): Recognize it.
88918         (func_get_status): New function.
88920 2008-10-30  Simon Josefsson  <simon@josefsson.org>
88922         * modules/sockets (License): Change from LGPL to LGPLv2+.
88924 2008-10-28  Simon Josefsson  <simon@josefsson.org>
88926         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
88928 2008-10-28  Simon Josefsson  <simon@josefsson.org>
88930         * MODULES.html.sh (Support for systems lacking POSIX:2001):
88931         Mention times and sys_times.
88932         * modules/sys_times, modules/sys_times-tests: New modules.
88933         * modules/times, modules/times-tests: Likewise
88934         * m4/sys_times_h.m4: New file.
88935         * lib/sys_times.in.h: Likewise
88936         * lib/times.c: Likewise.
88937         * tests/test-sys_times.c: Likewise.
88938         * tests/test-times.c: Likewise.
88939         * doc/posix-headers/sys_times.texi: Update.
88940         * doc/posix-functions/times.texi: Update.
88942 2008-10-28  Jim Meyering  <meyering@redhat.com>
88944         * modules/tempname (Depends-on): Add lstat.
88946         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
88948 2008-10-28  Simon Josefsson  <simon@josefsson.org>
88950         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
88951         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
88952         using idiom used elsewhere in gnulib.
88954 2008-10-27  Jim Meyering  <meyering@redhat.com>
88956         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
88958 2008-10-27  Simon Josefsson  <simon@josefsson.org>
88960         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
88961         TESTS_ENVIRONMENT, for shell scripts that needs to call built
88962         programs.
88963         * tests/test-argp-2.sh: Use $EXEEXT when needed.
88965 2008-10-27  Simon Josefsson  <simon@josefsson.org>
88967         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
88969 2008-10-27  Bruno Haible  <bruno@clisp.org>
88971         * tests/test-lstat.c: Include <stdio.h>.
88973 2008-10-27  Simon Josefsson  <simon@josefsson.org>
88975         * modules/lstat-tests: New module.
88976         * tests/test-lstat.c: New file.
88978 2008-10-26  Jim Meyering  <meyering@redhat.com>
88980         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
88982 2008-10-26  Simon Josefsson  <simon@josefsson.org>
88983             Bruno Haible  <bruno@clisp.org>
88985         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
88986         * modules/configmake (Include): Add a note that the include must come
88987         after all system headers.
88988         * lib/javaversion.c: Include configmake.h after all other includes.
88990 2008-10-26  Bruno Haible  <bruno@clisp.org>
88992         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
88993         HAVE_STRUCT_RANDOM_DATA to 1.
88994         (gl_STDLIB_H): Simplify.
88996 2008-10-26  Simon Josefsson  <simon@josefsson.org>
88998         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
88999         substitute HAVE_STRUCT_RANDOM_DATA.
89000         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
89001         random_data.
89002         * modules/stdlib (Makefile.am): Substitute
89003         HAVE_STRUCT_RANDOM_DATA.
89005 2008-10-26  Simon Josefsson  <simon@josefsson.org>
89007         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
89008         * doc/gnulib-intro.texi (Copyright): Likewise.
89010 2008-10-26  Simon Josefsson  <simon@josefsson.org>
89012         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
89013         findings.
89015 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
89016             Bruno Haible  <bruno@clisp.org>
89018         * lib/unistd.in.h: Include <winsock2.h>.
89019         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
89020         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
89021         Provide dummy declarations.
89022         (gethostname): Override.
89023         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
89024         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
89025         gl_PREREQ_SYS_H_WINSOCK2.
89026         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
89027         * doc/posix-functions/gethostname.texi: More details.
89029 2008-10-25  Bruno Haible  <bruno@clisp.org>
89031         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
89032         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
89033         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
89035         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
89036         here ...
89037         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
89038         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
89039         gl_UNISTD_H_DEFAULTS.
89041 2008-10-25  Eric Blake  <ebb9@byu.net>
89043         signbit: avoid spurious compiler failure
89044         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
89045         declarations inside function.
89047 2008-10-24  Simon Josefsson  <simon@josefsson.org>
89048             Bruno Haible  <bruno@clisp.org>
89050         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
89051         * modules/random_r (Depends-on): Add stdint.
89053 2008-10-24  Bruno Haible  <bruno@clisp.org>
89055         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
89056         Eggert.
89057         * modules/strerror (License): Likewise.
89059 2008-10-24  Jim Meyering  <meyering@redhat.com>
89061         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
89062         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
89064 2008-10-24  Eric Blake  <ebb9@byu.net>
89066         getgroups: fix compilation when getgroups is available
89067         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
89068         but with <config.h> override of getgroups disabled.
89070 2008-10-24  Simon Josefsson  <simon@josefsson.org>
89072         * doc/gnulib.texi (Header files): Add note about C++ problems.
89073         Explained by Bruno Haible <bruno@clisp.org>.
89075 2008-10-23  Bruno Haible  <bruno@clisp.org>
89077         Define a dummy SA_NODEFER macro on Interix.
89078         * lib/signal.in.h (SA_NODEFER): Define fallback.
89079         Reported by Aleksey Cheusov <cheusov@tut.by> via
89080         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
89082 2008-10-23  Bruno Haible  <bruno@clisp.org>
89084         * modules/freadahead (License): Change to LGPLv2+.
89085         Suggested by Simon Josefsson.
89087 2008-10-23  Jim Meyering  <meyering@redhat.com>
89089         random_r: new module
89090         * modules/random_r: New file.
89091         * m4/random_r.m4: New file.
89092         * lib/random_r.c: New file, from glibc.
89093         * modules/random_r-tests: New file.
89094         * tests/test-random_r.c: New file.
89095         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
89096          Declare.
89097         (RAND_MAX): Define.
89098         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
89099         * modules/stdlib: Substitute them, too.
89100         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
89101         * doc/glibc-functions/initstate_r.texi: Mention the new module.
89102         * doc/glibc-functions/random_r.texi: Likewise.
89103         * doc/glibc-functions/setstate_r.texi: Likewise.
89104         * doc/glibc-functions/srandom_r.texi: Likewise.
89105         * config/srclist.txt: Mention it.
89107 2008-10-23  David Lutterkort  <lutter@redhat.com>
89109         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
89110         link requirement
89112 2008-10-23  Jim Meyering  <meyering@redhat.com>
89114         selinux-h: mark parameters of stub functions as intentionally unused
89115         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
89116         * lib/se-context.in.h: Likewise.
89118 2008-10-22  Simon Josefsson  <simon@josefsson.org>
89120         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
89122 2008-10-22  Simon Josefsson  <simon@josefsson.org>
89124         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
89126 2008-10-22  Eric Blake  <ebb9@byu.net>
89128         glthread/thread: avoid compiler warning
89129         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
89130         Add unreachable abort to silence compiler.
89132 2008-10-22  Eric Blake  <ebb9@byu.net>
89134         netdb: also supply struct addrinfo for cygwin 1.5.x
89135         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
89136         older cygwin.
89137         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
89138         cygwin.
89139         * doc/posix-headers/netdb.texi (netdb.h): Document this.
89141 2008-10-22  Bruno Haible  <bruno@clisp.org>
89143         * users.txt: Update entry about pspp.
89145 2008-10-21  Bruno Haible  <bruno@clisp.org>
89147         Simplification.
89148         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
89149         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
89151         Simplification.
89152         * lib/ioctl.c (ioctl): Don't undefine.
89153         * lib/socket.c (socket): Don't undefine.
89155         Remove unused module indicator macros.
89156         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
89157         GNULIB_$1 as a C macro.
89159         * doc/posix-functions/close.texi: Undo last change.
89160         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
89161         Windows platforms.
89163 2008-10-21  Bruno Haible  <bruno@clisp.org>
89165         Add gethostname() declaration to <unistd.h>.
89166         * lib/unistd.in.h (gethostname): New declaration.
89167         * lib/gethostname.c: Include <unistd.h>.
89168         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
89169         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
89170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
89171         and HAVE_GETHOSTNAME.
89172         * modules/gethostname (Depends-on): Add unistd.
89173         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89174         (Include): Specify <unistd.h>.
89175         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
89176         HAVE_GETHOSTNAME.
89177         * tests/test-gethostname.c: Include <unistd.h> first.
89179 2008-10-21  Bruno Haible  <bruno@clisp.org>
89181         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
89182         * modules/select-tests (Depends-on): Likewise.
89183         Reported by Simon Josefsson.
89185 2008-10-21  Simon Josefsson  <simon@josefsson.org>
89187         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
89188         * lib/accept.c: New file, based on winsock.c.
89189         * lib/bind.c: New file, based on winsock.c.
89190         * lib/connect.c: New file, based on winsock.c.
89191         * lib/getpeername.c: New file, based on winsock.c.
89192         * lib/getsockname.c: New file, based on winsock.c.
89193         * lib/getsockopt.c: New file, based on winsock.c.
89194         * lib/ioctl.c: New file, based on winsock.c.
89195         * lib/listen.c: New file, based on winsock.c.
89196         * lib/recv.c: New file, based on winsock.c.
89197         * lib/recvfrom.c: New file, based on winsock.c.
89198         * lib/send.c: New file, based on winsock.c.
89199         * lib/sendto.c: New file, based on winsock.c.
89200         * lib/setsockopt.c: New file, based on winsock.c.
89201         * lib/shutdown.c: New file, based on winsock.c.
89202         * lib/socket.c: New file, based on winsock.c.
89203         * lib/w32sock.h: New file, based on winsock.c.
89204         * lib/winsock.c: Remove file.
89205         * modules/accept: Likewise.
89206         * modules/bind: Likewise.
89207         * modules/connect: Likewise.
89208         * modules/getpeername: Likewise.
89209         * modules/getsockname: Likewise.
89210         * modules/getsockopt: Likewise.
89211         * modules/ioctl: Likewise.
89212         * modules/listen: Likewise.
89213         * modules/recv: Likewise.
89214         * modules/recvfrom: Likewise.
89215         * modules/send: Likewise.
89216         * modules/sendto: Likewise.
89217         * modules/setsockopt: Likewise.
89218         * modules/shutdown: Likewise.
89219         * modules/socket: Use socket.c instead of winsock.c.
89220         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
89221         * doc/posix-functions/accept.texi: Doc fix.
89222         * doc/posix-functions/bind.texi: Doc fix.
89223         * doc/posix-functions/close.texi: Doc fix.
89224         * doc/posix-functions/connect.texi: Doc fix.
89225         * doc/posix-functions/getpeername.texi: Doc fix.
89226         * doc/posix-functions/getsockname.texi: Doc fix.
89227         * doc/posix-functions/getsockopt.texi: Doc fix.
89228         * doc/posix-functions/ioctl.texi: Doc fix.
89229         * doc/posix-functions/listen.texi: Doc fix.
89230         * doc/posix-functions/recv.texi: Doc fix.
89231         * doc/posix-functions/recvfrom.texi: Doc fix.
89232         * doc/posix-functions/send.texi: Doc fix.
89233         * doc/posix-functions/sendto.texi: Doc fix.
89234         * doc/posix-functions/setsockopt.texi: Doc fix.
89235         * doc/posix-functions/shutdown.texi: Doc fix.
89236         * doc/posix-functions/socket.texi: Doc fix.
89238 2008-10-20  Bruno Haible  <bruno@clisp.org>
89240         Take into account the role of SIGABRT_COMPAT on Windows 2008.
89241         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
89242         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
89243         as an alias for SIGABRT.
89244         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
89245         (sigaction): Map it to SIGABRT.
89246         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
89248 2008-10-20  Bruno Haible  <bruno@clisp.org>
89250         * lib/fts.c: Don't include lstat.h.
89251         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
89253         Move the lstat() declaration to <sys/stat.h>.
89254         * lib/lstat.h: Remove file.
89255         * lib/sys_stat.in.h: Add special invocation convention.
89256         (lstat): New declaration.
89257         * lib/lstat.c (orig_lstat): New function.
89258         (rpl_lstat): Use orig_lstat instead of lstat.
89259         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
89260         AC_C_INLINE. Set REPLACE_LSTAT.
89261         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
89262         and REPLACE_LSTAT.
89263         * modules/lstat (Files): Remove lib/lstat.h.
89264         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
89265         (Include): Specify <sys/stat.h> instead of lstat.h.
89266         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
89267         REPLACE_LSTAT.
89268         * NEWS: Mention the change.
89270 2008-10-20  Bruno Haible  <bruno@clisp.org>
89272         * modules/posix_spawn-tests: New file.
89273         * tests/test-posix_spawn3.c: New file.
89275 2008-10-20  Bruno Haible  <bruno@clisp.org>
89277         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
89278         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
89279         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
89280         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
89281         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
89283 2008-10-20  Bruno Haible  <bruno@clisp.org>
89285         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
89286         of posix_spawn on AIX 5.3.
89288 2008-10-20  Bruno Haible  <bruno@clisp.org>
89290         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
89292 2008-10-20  Bruno Haible  <bruno@clisp.org>
89294         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
89295         of AC_LANG_PROGRAM.
89297 2008-10-20  Simon Josefsson  <simon@josefsson.org>
89299         * lib/netdb.in.h: Don't define GNU specific constants until they
89300         are supported or needed.  Reported by Bruno Haible
89301         <bruno@clisp.org>.
89303 2008-10-20  Simon Josefsson  <simon@josefsson.org>
89305         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
89307 2008-10-20  Simon Josefsson  <simon@josefsson.org>
89309         * lib/getaddrinfo.h: Remove file.
89310         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
89311         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
89312         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
89313         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
89314         * modules/netdb: Substitute GNULIB_GETADDRINFO.
89315         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
89316         * tests/test-getaddrinfo.c: Likewise.
89317         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
89318         * NEWS: Mention change.
89320 2008-10-19  Bruno Haible  <bruno@clisp.org>
89322         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
89324 2008-10-19  Bruno Haible  <bruno@clisp.org>
89326         * lib/wait-process.c: Include simply <sys/wait.h>.
89327         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
89328         WIFSTOPPED): Remove fallback definitions.
89329         * modules/wait-process (Depends-on): Add sys_wait.
89331         New module 'sys_wait'.
89332         * modules/sys_wait: New file.
89333         * lib/sys_wait.in.h: New file, partially copied from
89334         lib/wait-process.c.
89335         * m4/sys_wait_h.m4: New file.
89336         * doc/posix-headers/sys_wait.texi: Mention the new module.
89338 2008-10-19  Bruno Haible  <bruno@clisp.org>
89340         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
89342 2008-10-19  Bruno Haible  <bruno@clisp.org>
89344         Assume that waitpid() fills an 'int' status, not a 'union wait'.
89345         * lib/wait-process.c (WAIT_T): Remove type.
89346         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
89347         (wait_subprocess): Update.
89349 2008-10-19  Bruno Haible  <bruno@clisp.org>
89351         New module 'atoll'.
89352         * modules/atoll: New file.
89353         * lib/stdlib.in.h (atoll): New declaration.
89354         * lib/atoll.c: New file, from glibc with modifications.
89355         * m4/atoll.m4: New file.
89356         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
89357         HAVE_ATOLL.
89358         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
89359         * doc/posix-functions/atoll.texi: Mention the new module.
89361 2008-10-19  Bruno Haible  <bruno@clisp.org>
89363         Add strtoull() declaration to <stdlib.h>.
89364         * lib/stdlib.in.h (strtoull): New declaration.
89365         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
89366         Set HAVE_STRTOULL.
89367         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
89368         HAVE_STRTOULL.
89369         * modules/strtoull (Depends-on): Add stdlib.
89370         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89371         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
89372         HAVE_STRTOULL.
89374 2008-10-19  Bruno Haible  <bruno@clisp.org>
89376         Add strtoll() declaration to <stdlib.h>.
89377         * lib/stdlib.in.h (strtoll): New declaration.
89378         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
89379         Set HAVE_STRTOLL.
89380         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
89381         HAVE_STRTOLL.
89382         * modules/strtoll (Depends-on): Add stdlib.
89383         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89384         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
89386 2008-10-19  Bruno Haible  <bruno@clisp.org>
89388         * modules/bcopy (Depends-on): Add strings.
89389         (Include): Specify <strings.h>.
89391 2008-10-19  Bruno Haible  <bruno@clisp.org>
89393         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
89395 2008-10-19  Bruno Haible  <bruno@clisp.org>
89397         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
89398         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
89399         mingw.
89401 2008-10-19  Bruno Haible  <bruno@clisp.org>
89403         * lib/atanl.c: Don't include isnanl.h.
89404         * lib/cosl.c: Likewise.
89405         * lib/ldexpl.c: Likewise.
89406         * lib/logl.c: Likewise.
89407         * lib/sinl.c: Likewise.
89408         * lib/sqrtl.c: Likewise.
89409         * lib/tanl.c: Likewise.
89411         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
89412         * lib/isnanf.h: Remove file.
89413         * lib/isnand.h: Remove file.
89414         * lib/isnanl.h: Remove file.
89415         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
89416         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
89417         macros.
89418         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
89419         HAVE_ISNANF, don't define it as a C macro.
89420         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
89421         HAVE_ISNAND, don't define it as a C macro.
89422         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
89423         HAVE_ISNANL, don't define it as a C macro.
89424         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
89425         HAVE_ISNAN[FDL].
89426         * modules/isnanf (Files): Remove lib/isnanf.h.
89427         (Depends-on): Add math.
89428         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
89429         (Include): Specify <math.h> instead of isnanf.h.
89430         * modules/isnand (Files): Remove lib/isnand.h.
89431         (Depends-on): Add math.
89432         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
89433         (Include): Specify <math.h> instead of isnand.h.
89434         * modules/isnanl (Files): Remove lib/isnanl.h.
89435         (Depends-on): Add math.
89436         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
89437         (Include): Specify <math.h> instead of isnanl.h.
89438         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
89439         HAVE_ISNAN[FDL].
89440         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
89441         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
89442         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
89443         * NEWS: Mention the change.
89445 2008-10-18  Bruno Haible  <bruno@clisp.org>
89447         Add getusershell(), setusershell(), endusershell() declarations to
89448         <unistd.h>.
89449         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
89450         declarations.
89451         * lib/getusershell.c: Include unistd.h.
89452         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
89453         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
89454         HAVE_GETUSERSHELL.
89455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
89456         and HAVE_GETUSERSHELL.
89457         * modules/getusershell (Depends-on): Add unistd, extensions.
89458         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89459         (Include): Specify <unistd.h>.
89460         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
89461         HAVE_GETUSERSHELL.
89463 2008-10-18  Bruno Haible  <bruno@clisp.org>
89465         Add a getloadavg() declaration to <stdlib.h>.
89466         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
89467         getloadavg declaration.
89468         (getloadavg): New declaration.
89469         * lib/getloadavg.c: Include <stdlib.h> first.
89470         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
89471         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
89472         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
89473         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
89474         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
89475         * modules/getloadavg (Depends-on): Add stdlib, extensions.
89476         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89477         (Include): Specify <stdlib.h>.
89478         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
89479         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
89481 2008-10-18  Bruno Haible  <bruno@clisp.org>
89483         * lib/dirchownmod.c: Don't include lchmod.h.
89485         Move the lchmod() declaration to <sys/stat.h>.
89486         * lib/lchmod.h: Remove file.
89487         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
89488         (lchmod): New declaration, moved here from lib/lchown.h.
89489         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
89490         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
89491         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
89492         and HAVE_LCHMOD.
89493         * modules/lchmod (Files): Remove lib/lchmod.h.
89494         (Depends-on): Add sys_stat, extensions.
89495         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
89496         (Include): Specify <sys/stat.h> instead of lchmod.h.
89497         * modules/sys_stat (Depends-on): Add link-warning.
89498         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
89499         definition of GL_LINK_WARNING.
89500         * NEWS: Mention the change.
89502 2008-10-18  Bruno Haible  <bruno@clisp.org>
89504         * lib/fchdir.c: Don't include dirfd.h.
89505         * lib/fts.c: Likewise.
89506         * lib/getcwd.c: Likewise.
89507         * lib/glob.c: Likewise.
89509         Move the dirfd() declaration to <dirent.h>.
89510         * lib/dirfd.h: Remove file.
89511         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
89512         (dirfd): New declaration.
89513         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
89514         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
89515         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
89516         HAVE_DECL_DIRFD.
89517         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
89518         HAVE_DECL_DIRFD.
89519         * modules/dirfd (Files): Remove lib/dirfd.h.
89520         (Depends-on): Add dirent, extensions.
89521         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
89522         (Include): Specify <dirent.h> instead of dirfd.h.
89523         * modules/dirent (Depends-on): Add link-warning.
89524         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
89525         definition of GL_LINK_WARNING.
89526         * NEWS: Mention the change.
89528 2008-10-18  Bruno Haible  <bruno@clisp.org>
89530         Move the euidaccess() declaration to <unistd.h>.
89531         * lib/euidaccess.h: Remove file.
89532         * lib/unistd.in.h (euidaccess): New declaration.
89533         * lib/euidaccess.c: Don't include euidaccess.h.
89534         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
89535         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
89536         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
89537         and HAVE_EUIDACCESS.
89538         * modules/euidaccess (Files): Remove lib/euidaccess.h.
89539         (Depends-on): Add unistd.
89540         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89541         (Include): Specify <unistd.h> instead of euidaccess.h.
89542         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
89543         HAVE_EUIDACCESS.
89544         * NEWS: Mention the change.
89546 2008-10-18  Bruno Haible  <bruno@clisp.org>
89548         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
89550         Move the getdomainname() declaration to <unistd.h>.
89551         * lib/getdomainname.h: Remove file.
89552         * lib/unistd.in.h (getdomainname): New declaration.
89553         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
89554         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
89555         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
89556         HAVE_GETDOMAINNAME.
89557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
89558         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
89559         * modules/getdomainname (Files): Remove lib/getdomainname.h.
89560         (Depends-on): Add unistd, extensions.
89561         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89562         (Includes): Specify <unistd.h> instead of getdomainname.h.
89563         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
89564         HAVE_GETDOMAINNAME.
89565         * NEWS: Mention the change.
89567 2008-10-18  Bruno Haible  <bruno@clisp.org>
89569         * modules/dirent: New file.
89570         * m4/dirent_h.m4: New file.
89571         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
89572         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
89573         * modules/fchdir (Files): Remove lib/dirent.in.h.
89574         (Depends-on): Add dirent.
89575         (Makefile.am): Move rules to modules/dirent.
89576         * doc/posix-headers/dirent.texi: Mention the new module.
89578 2008-10-18  Bruno Haible  <bruno@clisp.org>
89580         Avoid -Wunused-parameter warnings in public gnulib header files.
89581         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
89582         macro.
89583         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
89585 2008-10-18  Bruno Haible  <bruno@clisp.org>
89587         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
89588         * doc/glibc-functions/error.texi: Mention the module 'error'.
89589         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
89590         * doc/glibc-functions/getdomainname.texi: Mention the module
89591         'getdomainname'.
89592         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
89593         * doc/glibc-functions/getpagesize.texi: Mention the module
89594         'getpagesize'.
89595         * doc/glibc-functions/getusershell.texi: Mention the module
89596         'getusershell'.
89597         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
89598         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
89599         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
89600         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
89601         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
89602         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
89603         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
89604         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
89605         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
89606         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
89607         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
89608         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
89609         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
89610         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
89612 2008-10-17  Bruno Haible  <bruno@clisp.org>
89614         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
89615         HP-UX and IRIX, use -0.0L.
89616         * tests/test-ceill.c (minus_zero): Likewise.
89617         * tests/test-floorl.c (minus_zero): Likewise.
89618         * tests/test-frexpl.c (minus_zero): Likewise.
89619         * tests/test-isnan.c (minus_zerol): Likewise.
89620         * tests/test-isnanl.h (minus_zero): Likewise.
89621         * tests/test-ldexpl.c (minus_zero): Likewise.
89622         * tests/test-roundl.c (minus_zero): Likewise.
89623         * tests/test-signbit.c (minus_zerol): Likewise.
89624         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
89625         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
89626         * tests/test-truncl.c (minus_zero): Likewise.
89627         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
89628         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
89629         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
89630         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
89632 2008-10-17  Bruno Haible  <bruno@clisp.org>
89634         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
89635         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
89636         that it gets activated only for gcc >= 3.0.
89637         * lib/dirent.in.h: Likewise.
89638         * lib/errno.in.h: Likewise.
89639         * lib/fcntl.in.h: Likewise.
89640         * lib/float.in.h: Likewise.
89641         * lib/iconv.in.h: Likewise.
89642         * lib/inttypes.in.h: Likewise.
89643         * lib/locale.in.h: Likewise.
89644         * lib/math.in.h: Likewise.
89645         * lib/netdb.in.h: Likewise.
89646         * lib/netinet_in.in.h: Likewise.
89647         * lib/search.in.h: Likewise.
89648         * lib/signal.in.h: Likewise.
89649         * lib/spawn.in.h: Likewise.
89650         * lib/stdarg.in.h: Likewise.
89651         * lib/stdint.in.h: Likewise.
89652         * lib/stdio.in.h: Likewise.
89653         * lib/stdlib.in.h: Likewise.
89654         * lib/string.in.h: Likewise.
89655         * lib/strings.in.h: Likewise.
89656         * lib/sys_file.in.h: Likewise.
89657         * lib/sys_ioctl.in.h: Likewise.
89658         * lib/sys_select.in.h: Likewise.
89659         * lib/sys_socket.in.h: Likewise.
89660         * lib/sys_stat.in.h: Likewise.
89661         * lib/sys_time.in.h: Likewise.
89662         * lib/sysexits.in.h: Likewise.
89663         * lib/time.in.h: Likewise.
89664         * lib/unistd.in.h: Likewise.
89665         * lib/wchar.in.h: Likewise.
89666         * lib/wctype.in.h: Likewise.
89667         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
89669 2008-10-17  Jim Meyering  <meyering@redhat.com>
89671         ignore-value: don't depend on inline module
89672         * modules/ignore-value (Depends-on): Remove 'inline'.
89673         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
89674         Suggestion from Bruno Haible.
89676 2008-10-17  Bruno Haible  <bruno@clisp.org>
89678         New implementation of condition variables for Win32.
89679         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
89680         (gl_linked_waitqueue_t): New type.
89681         (gl_cond_t): Use it.
89682         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
89683         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
89684         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
89685         (glthread_cond_init_func, glthread_cond_wait_func,
89686         glthread_cond_timedwait_func, glthread_cond_signal_func,
89687         glthread_cond_broadcast_func, glthread_cond_destroy_func):
89688         Reimplemented on the basis of gl_linked_waitqueue_t.
89689         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
89690         gl_waitqueue_t.
89691         (gl_rwlock_t): Update.
89692         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
89694 2008-10-17  Simon Josefsson  <simon@josefsson.org>
89696         * modules/recvfrom (Depends-on): Add dependency on getpeername.
89697         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
89699 2008-10-17  Jim Meyering  <meyering@redhat.com>
89701         ignore-value: new module
89702         * modules/ignore-value: New file.
89703         * lib/ignore-value.h: New file.
89704         * MODULES.html.sh (Compiler warning management): New section,
89705         just for this module.  More to come.
89707 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
89709         open-safer.c: avoid 'signed and unsigned in conditional...' warning
89710         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
89711         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
89713 2008-10-16  Jim Meyering  <meyering@redhat.com>
89715         openat-die.c: avoid 'no previous prototype' warning
89716         * lib/openat-die.c: Include "openat.h".
89717         Reported by Reuben Thomas <rrt@sc3d.org>.
89719 2008-10-16  Simon Josefsson  <simon@josefsson.org>
89721         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
89722         * lib/netdb.in.h: Fix typo.
89723         Reported by Bruno Haible  <bruno@clisp.org>
89725         * lib/netdb.in.h: Include sys/socket.h for platforms without
89726         netdb.h, to get structures like hostent on MinGW.
89727         * modules/netdb (Depends-on): Add sys_socket.
89729 2008-10-15  Simon Josefsson  <simon@josefsson.org>
89731         * modules/netdb, modules/netdb-tests: New file.
89732         * m4/netdb_h.m4: New file.
89733         * lib/netdb.in.h: Add, currently just an empty file pending
89734         definitions.
89735         * tests/test-netdb.c: New file.
89736         * doc/posix-headers/netdb.texi: Mention that we replace it if
89737         needed.
89738         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89739         netdb.
89741 2008-10-15  Simon Josefsson  <simon@josefsson.org>
89743         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
89744         with code.
89746 2008-10-13  Bruno Haible  <bruno@clisp.org>
89748         * lib/glthread/cond.c (glthread_cond_wait_func,
89749         glthread_cond_timedwait_func): Add a comment.
89751 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89753         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
89754         * tests/test-select.c: Likewise,
89756 2008-10-13  Bruno Haible  <bruno@clisp.org>
89758         * lib/glthread/cond.c (glthread_cond_wait_func,
89759         glthread_cond_timedwait_func): Fix variable name.
89760         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
89762 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
89764         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
89765         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
89766         struct sockaddr.sa_len.
89767         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
89769 2008-10-13  Simon Josefsson  <simon@josefsson.org>
89771         * build-aux/pmccabe2html: Add css and css_url parameters.
89773 2008-10-12  Bruno Haible  <bruno@clisp.org>
89775         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
89776         calling aclx_get.
89777         Reported by Rainer Tammer <tammer@tammer.net>.
89779 2008-10-12  Bruno Haible  <bruno@clisp.org>
89781         Use msvcrt aware primitives for creation/termination of Win32 threads.
89782         * lib/glthread/thread.c: Include <process.h>.
89783         (glthread_create_func): Use _beginthreadex instead of CreateThread.
89784         (wrapper_func): Update signature.
89785         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
89787 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89788             Bruno Haible  <bruno@clisp.org>
89790         Provide a Win32 implementation of the 'cond' module.
89791         * lib/glthread/cond.h [USE_WIN32]: New implementation.
89792         * lib/glthread/cond.c (glthread_cond_init_func,
89793         glthread_cond_wait_func, glthread_cond_timedwait_func,
89794         glthread_cond_signal_func, glthread_cond_broadcast_func,
89795         glthread_cond_destroy_func) [USE_WIN32]: New functions.
89796         * modules/cond (Dependencies): Add gettimeofday.
89798 2008-10-11  Bruno Haible  <bruno@clisp.org>
89800         Make sleep work on older versions of mingw.
89801         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
89802         only whether it exists.
89803         * doc/posix-functions/sleep.texi: Mention the problem with older
89804         versions of mingw.
89806 2008-10-11  Bruno Haible  <bruno@clisp.org>
89808         New module 'shutdown'.
89809         * modules/shutdown: New file.
89810         * lib/sys_socket.in.h (shutdown): New declaration.
89811         * lib/winsock.c (shutdown): New function.
89812         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
89813         GNULIB_SHUTDOWN.
89814         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
89815         * doc/posix-functions/shutdown.texi: Document the new module.
89817 2008-10-11  Jim Meyering  <meyering@redhat.com>
89819         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
89821 2008-10-11  Bruno Haible  <bruno@clisp.org>
89823         New module 'fclose'.
89824         * modules/fclose: New file.
89825         * lib/stdio.in.h (fclose): New declaration.
89826         * lib/fclose.c: New file.
89827         * m4/fclose.m4: New file.
89828         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
89829         REPLACE_FCLOSE.
89830         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
89831         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
89832         REPLACE_FCLOSE.
89833         * modules/close (Depends-on): fclose.
89834         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
89836 2008-10-11  Bruno Haible  <bruno@clisp.org>
89838         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
89839         set errno and don't call _close.
89841 2008-10-10  Bruno Haible  <bruno@clisp.org>
89843         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
89844         ACL, not afterwards. Fixes test failure on Cygwin.
89846 2008-10-09  Ben Pfaff  <blp@gnu.org>
89848         * build-aux/announce-gen: Fix gnulib version related part of usage
89849         message.  Die with a useful error message if no tarballs are
89850         found.
89852 2008-10-10  Jim Meyering  <meyering@redhat.com>
89854         bootstrap: use git's --depth=N option only if it's supported
89855         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
89856         recognize the --depth option.  Reported by Pádraig Brady.
89858 2008-10-09  Bruno Haible  <bruno@clisp.org>
89860         New module 'ioctl'.
89861         * modules/ioctl: New file.
89862         * lib/sys_socket.in.h (ioctl): Remove declaration.
89863         * lib/winsock.c: Include <sys/ioctl.h>.
89864         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
89865         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
89866         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
89867         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
89868         * doc/posix-functions/ioctl.texi: Mention the new module.
89870 2008-10-09  Bruno Haible  <bruno@clisp.org>
89872         New module 'sys_ioctl'.
89873         * lib/sys_ioctl.in.h: New file.
89874         * m4/sys_ioctl_h.m4: New file.
89875         * modules/sys_ioctl: New file.
89876         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
89878 2008-10-09  Bruno Haible  <bruno@clisp.org>
89880         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
89881         * lib/winsock.c: Include <stdarg.h>.
89882         (rpl_ioctl): Change to second argument 'int' and then varargs.
89884 2008-10-09  Bruno Haible  <bruno@clisp.org>
89886         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
89887         when the sys_socket module is present and the system has <winsock2.h>.
89889 2008-10-09  Bruno Haible  <bruno@clisp.org>
89891         * doc/posix-functions/close.texi: Mention module 'close' instead of
89892         module 'sys_socket'.
89894 2008-10-09  Bruno Haible  <bruno@clisp.org>
89896         * doc/glibc-headers/sys_ioctl.texi: New file.
89897         * doc/gnulib.texi: Include it.
89899 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89900             Bruno Haible  <bruno@clisp.org>
89902         Combine the two replacements of 'close'.
89903         * lib/sys_socket.in.h (close): Define to a reminder to include
89904         <unistd.h>.
89905         (_gl_close_fd_maybe_socket): New declaration.
89906         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
89907         * lib/winsock.c (close): Remove undefinition.
89908         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
89909         needed for the gnulib module 'close'.
89910         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
89911         define to an error symbol or to a warning, if suitable.
89912         * lib/close.c: Include <sys/socket.h>.
89913         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
89914         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
89915         UNISTD_H_HAVE_WINSOCK2_H.
89916         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
89917         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
89918         UNISTD_H_HAVE_WINSOCK2_H.
89919         * modules/sys_socket (Files): Add m4/unistd_h.m4.
89920         (configure.ac): Set a module indicator.
89921         (Makefile.am): Substitute GNULIB_CLOSE.
89922         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
89923         * modules/poll-tests (Depends-on): Add close.
89924         * modules/select-tests (Depends-on): Likewise.
89926 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89927             Bruno Haible  <bruno@clisp.org>
89929         New module 'close'.
89930         * modules/close: New file.
89931         * lib/unistd.in.h (close): Move declaration out of the
89932         FCHDIR_REPLACEMENT scope.
89933         (_gl_unregister_fd): New declaration.
89934         * lib/close.c: New file.
89935         * lib/fchdir.c (rpl_close): Remove function.
89936         * m4/close.m4: New file.
89937         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
89938         close.
89939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
89940         REPLACE_CLOSE.
89941         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
89942         REPLACE_CLOSE.
89943         * modules/fchdir (Depends-on): Add close.
89945 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89946             Bruno Haible  <bruno@clisp.org>
89948         * lib/fcntl.in.h (open): Simplify conditionals.
89949         (_gl_register_fd): New declaration.
89950         * lib/fchdir.c (rpl_open): Remove function.
89951         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
89952         also.
89953         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
89954         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
89955         open.
89957 2008-10-09  Jim Meyering  <meyering@redhat.com>
89959         GNUmakefile: use the more name-space-friendly "_version"
89960         * top/GNUmakefile (_dummy): Update.
89961         (_version): Rename from "version".
89963 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89964             Bruno Haible  <bruno@clisp.org>
89966         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
89967         rpl_close.
89968         (_gl_register_fd): New function, extracted from rpl_open.
89969         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
89970         (rpl_open, rpl_opendir): Use _gl_register_fd.
89972 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89974         Fix organization of 'open' replacement.
89975         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
89976         (gl_FUNC_OPEN): Use it.
89977         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
89979 2008-10-08  Bruno Haible  <bruno@clisp.org>
89981         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
89983 2008-10-08  Simon Josefsson  <simon@josefsson.org>
89985         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
89986         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
89987         listen).
89989 2008-10-08  Eric Blake  <ebb9@byu.net>
89991         GNUmakefile: add 'make version' target
89992         * top/GNUmakefile (_curr-ver): Split version update rules...
89993         (version): ...into a target.
89995 2008-10-07  Bruno Haible  <bruno@clisp.org>
89997         Use a more portable replacement expression for -0.0L.
89998         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
89999         instead of -0.0L. Fix m4 quotation.
90001         * tests/test-signbit.c: Include <float.h>.
90002         (minus_zero): New variable.
90003         (test_signbitl): Use minus_zero instead of -zero.
90004         * modules/signbit-tests (Depends-on): Add float.
90006         * tests/test-ceill.c: Include <float.h>.
90007         (zero): Remove variable.
90008         (minus_zero): New variable.
90009         (main): Use minus_zero instead of -zero.
90010         * modules/ceill-tests (Depends-on): Add float.
90012         * tests/test-floorl.c: Include <float.h>.
90013         (zero): Remove variable.
90014         (minus_zero): New variable.
90015         (main): Use minus_zero instead of -zero.
90016         * modules/floorl-tests (Depends-on): Add float.
90018         * tests/test-roundl.c: Include <float.h>.
90019         (zero): Remove variable.
90020         (minus_zero): New variable.
90021         (main): Use minus_zero instead of -zero.
90022         * modules/roundl-tests (Depends-on): Add float.
90024         * tests/test-truncl.c: Include <float.h>.
90025         (zero): Remove variable.
90026         (minus_zero): New variable.
90027         (main): Use minus_zero instead of -zero.
90028         * modules/truncl-tests (Depends-on): Add float.
90030         * tests/test-frexpl.c (zero): Remove variable.
90031         (minus_zero): New variable.
90032         (main): Use minus_zero instead of -zero.
90033         * modules/frexpl-tests (Depends-on): Add float.
90035         * tests/test-isnan.c (zerol): Remove variable.
90036         (minus_zerol): New variable.
90037         (test_long_double): Use minus_zerol instead of -zerol.
90038         * modules/isnan-tests (Depends-on): Add float.
90040         * tests/test-isnanl.h (zero): Remove variable.
90041         (minus_zero): New variable.
90042         (main): Use minus_zero instead of -zero.
90043         * modules/isnanl-nolibm-tests (Depends-on): Add float.
90044         * modules/isnanl-tests (Depends-on): Add float.
90046         * tests/test-ldexpl.c (zero): Remove variable.
90047         (minus_zero): New variable.
90048         (main): Use minus_zero instead of -zero.
90049         * modules/ldexpl-tests (Depends-on): Add float.
90051         * tests/test-snprintf-posix.h (zerol): Remove variable.
90052         (minus_zerol): New variable.
90053         (test_function): Use minus_zerol instead of -zerol.
90054         * modules/snprintf-posix-tests (Depends-on): Add float.
90055         * modules/vsnprintf-posix-tests (Depends-on): Add float.
90057         * tests/test-sprintf-posix.h (zerol): Remove variable.
90058         (minus_zerol): New variable.
90059         (test_function): Use minus_zerol instead of -zerol.
90060         * modules/sprintf-posix-tests (Depends-on): Add float.
90061         * modules/vsprintf-posix-tests (Depends-on): Add float.
90063         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
90064         (minus_zerol): New variable.
90065         (test_function): Use minus_zerol instead of -zerol.
90066         * modules/vasnprintf-posix-tests (Depends-on): Add float.
90068         * tests/test-vasprintf-posix.c (zerol): Remove variable.
90069         (minus_zerol): New variable.
90070         (test_function): Use minus_zerol instead of -zerol.
90071         * modules/vasprintf-posix-tests (Depends-on): Add float.
90073 2008-10-07  Simon Josefsson  <simon@josefsson.org>
90075         * MODULES.html.sh (Support for building documentation): Mention
90076         pmccabe2html.  Sort entries.
90078         Add pmccabe2html module, from gnupdf.
90079         * build-aux/pmccabe.css: New file.
90080         * build-aux/pmccabe2html: New file.
90081         * m4/pmccabe2html.m4: New file.
90082         * modules/pmccabe2html: New file.
90084 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
90086         flock: new module
90087         * MODULES.html.sh: Add to list of modules.
90088         * lib/flock.c: flock implementation for Windows and Unix systems
90089         which have fcntl.
90090         * doc/glibc-functions/flock.texi: Update documentation.
90091         * lib/sys_file.in.h: <sys/file.h> header file.
90092         * m4/flock.m4: M4 macros.
90093         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
90094         * modules/flock: flock module.
90095         * modules/flock-tests: flock tests module.
90096         * modules/sys_file: sys/file.h module.
90097         * tests/test-flock.c: test suite for flock.
90099 2008-10-06  Jim Meyering  <meyering@redhat.com>
90101         bootstrap: check for LT_INIT more portably still ;-)
90102         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
90103         Spotted by Bruno Haible.
90105 2008-10-06  Eric Blake  <ebb9@byu.net>
90107         test-signbit: avoid tripping Irix cc bug on -0.0L
90108         * tests/test-signbit.c (minus_zerol): Delete, and replace with
90109         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
90110         entire testsuite consistent and avoids an Irix 6.2 bug.
90112 2008-10-05  Bruno Haible  <bruno@clisp.org>
90113             Jim Meyering  <jim@meyering.net>
90115         Add an option for ignoring EPIPE during close_stdout.
90116         * lib/closeout.h: Include <stdbool.h>.
90117         (close_stdout_set_ignore_EPIPE): New declaration.
90118         * lib/closeout.c: Include <stdbool.h>.
90119         (ignore_EPIPE): New variable.
90120         (close_stdout_set_ignore_EPIPE): New function.
90121         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
90122         * lib/close-stream.c (close_stream): Mention the possible EPIPE
90123         failure.
90124         * modules/closeout (Depends-on): Add stdbool.
90126 2008-10-05  Bruno Haible  <bruno@clisp.org>
90128         * modules/accept: New file.
90129         * modules/bind: New file.
90130         * modules/connect: New file.
90131         * modules/getpeername: New file.
90132         * modules/getsockname: New file.
90133         * modules/getsockopt: New file.
90134         * modules/listen: New file.
90135         * modules/recv: New file.
90136         * modules/recvfrom: New file.
90137         * modules/send: New file.
90138         * modules/sendto: New file.
90139         * modules/setsockopt: New file.
90140         * modules/socket: New file.
90141         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
90142         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
90143         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
90144         the particular module is requested. Add a link warning when the
90145         particular module is not requested.
90146         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
90147         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
90148         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
90149         the particular module is requested.
90150         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
90151         gl_SYS_SOCKET_H_DEFAULTS): New macros.
90152         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
90153         * modules/sys_socket (Depends-on): Add link-warning.
90154         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
90155         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
90156         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
90157         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
90158         GL_LINK_WARNING.
90159         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
90160         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
90161         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
90162         * doc/posix-functions/getpeername.texi: Mention the new module
90163         'getpeername'.
90164         * doc/posix-functions/getsockname.texi: Mention the new module
90165         'getsockname'.
90166         * doc/posix-functions/getsockopt.texi: Mention the new module
90167         'getsockopt'.
90168         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
90169         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
90170         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
90171         * doc/posix-functions/send.texi: Mention the new module 'send'.
90172         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
90173         * doc/posix-functions/setsockopt.texi: Mention the new module
90174         'setsockopt'.
90175         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
90176         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
90177         listen, connect, accept.
90178         * modules/select-tests (Depends-on): Likewise.
90180 2008-10-05  Bruno Haible  <bruno@clisp.org>
90182         * lib/winsock.c (strerror): Remove unused #undef.
90183         (rpl_close): Remove unused local variable.
90185         * modules/sys_socket (Depends-on); Add errno.
90187 2008-10-05  Bruno Haible  <bruno@clisp.org>
90189         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
90190         (select): Add a link warning when the 'select' module is not used.
90191         * modules/sys_select (Depends-on): Add link-warning.
90192         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
90193         Suggested by Paolo Bonzini.
90195 2008-10-05  Jim Meyering  <meyering@redhat.com>
90197         bootstrap: check for LT_INIT more portably
90198         * build-aux/bootstrap: Avoid using grep -E, since it's not
90199         portable enough.  Suggestion from Bruno Haible.
90201 2008-10-05  Bruno Haible  <bruno@clisp.org>
90203         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
90204         as being fixed by gnulib.
90206 2008-10-05  Bruno Haible  <bruno@clisp.org>
90208         * modules/select-tests: New file, mostly copied from
90209         modules/sys_select-tests.
90210         * tests/test-select.c: New file, mostly copied from
90211         tests/test-sys_select.c.
90212         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
90213         * modules/sys_select-tests (Depends-on): Remove all dependencies.
90214         (Makefile.am): Remove test_sys_select_LDADD.
90216         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
90217         to an undefined symbol, for an error message.
90218         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
90219         (gl_SYS_SELECT_H_DEFAULTS): New macro.
90220         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
90221         winsock-select.c here.
90222         * modules/sys_select (Files): Remove lib/winsock-select.c.
90223         (Depends-on): Remove alloca.
90224         (Makefile.am): Substitute GNULIB_SELECT.
90225         * modules/select: New file.
90226         * doc/posix-functions/select.texi: Update.
90228 2008-10-05  Bruno Haible  <bruno@clisp.org>
90230         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
90231         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
90232         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
90233         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
90234         getdtablesize.
90235         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
90236         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
90238 2008-10-05  Bruno Haible  <bruno@clisp.org>
90240         * modules/getdtablesize-tests: New file.
90241         * tests/test-getdtablesize.c: New file.
90243         New module 'getdtablesize'.
90244         * lib/unistd.in.h (getdtablesize): New declaration.
90245         * lib/getdtablesize.c: New file.
90246         * m4/getdtablesize.m4: New file.
90247         * modules/getdtablesize: New file.
90248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
90249         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
90250         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
90251         HAVE_GETDTABLESIZE.
90252         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
90254 2008-10-05  Bruno Haible  <bruno@clisp.org>
90256         * modules/sched (Makefile.am): Fix typo.
90257         Reported by Simon Josefsson.
90259 2008-10-05  Jim Meyering  <meyering@redhat.com>
90261         bootstrap: check for LT_INIT, too
90262         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
90263         are deprecated.  Suggestion from Ralf Wildenhues.
90265 2008-10-05  Bruno Haible  <bruno@clisp.org>
90267         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
90268         overriding them by ours.
90269         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
90271 2008-10-05  Jim Meyering  <meyering@redhat.com>
90273         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
90274         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
90275         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
90277 2008-10-04  Bruno Haible  <bruno@clisp.org>
90279         * modules/dup2 (License): Change to LGPLv2+.
90280         * modules/sleep (License): Likewise.
90281         * modules/perror (License): Likewise.
90282         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
90283         Blake.
90284         * modules/signal (License): Likewise.
90285         * modules/sigprocmask (License): Likewise.
90286         * modules/raise (License): Change to LGPLv2+, with approval by Jim
90287         Meyering.
90289 2008-10-04  Bruno Haible  <bruno@clisp.org>
90291         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
90292         Reported by Rainer Tammer <tammer@tammer.net>.
90294 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
90295             Bruno Haible  <bruno@clisp.org>
90297         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
90298         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
90299         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
90301 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
90303         filevercmp: new module
90304         * lib/filevercmp.h: New function filevercmp comparing version strings.
90305         * lib/filevercmp.c: Implementation of filevercmp function.
90306         * modules/filevercmp: Module metadata.
90307         * tests/test-filevercmp.c: Unit test for new module.
90308         * modules/filevercmp-tests: Unit test metadata.
90309         * MODULES.html.sh: Add filevercmp module.
90311 2008-10-03  Bruno Haible  <bruno@clisp.org>
90313         * lib/c-ctype.h: Add comment.
90314         Reported by Jim Meyering.
90316 2008-10-02  Bruno Haible  <bruno@clisp.org>
90318         * modules/posix_spawn-internal (Depends-on): Add 'open'.
90320 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
90322         * build-aux/bootstrap: Allow renaming bootstrap, and change the
90323         name of bootstrap.conf accordingly.
90325 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
90327         * build-aux/bootstrap: Install git-merge-changelog configuration
90328         items into .gitconfig if needed.
90330 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
90332         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
90333         git repository, and initialize/update it accordingly.
90335 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
90337         * modules/fsync-tests: New file.
90338         * tests/test-fsync.c: New file.
90340         New module 'fsync'.
90341         * lib/fsync.c: New file.
90342         * m4/fsync.m4: New file.
90343         * modules/fsync: New file.
90344         * lib/unistd.in.h (fsync): New declaration.
90345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
90346         GNULIB_FSYNC and HAVE_FSYNC.
90347         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
90348         * MODULES.html.sh (posix_functions): Add fsync.
90349         * doc/posix-functions/fsync.texi: Mention the new module.
90351 2008-10-02  Jim Meyering  <meyering@redhat.com>
90353         fts.c: sync with similar code from coreutils' remove.c
90354         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
90355         Guard also with "#if defined __linux__", since for now at least,
90356         this code is Linux-kernel-specific.
90358 2008-10-02  Jim Meyering  <meyering@redhat.com>
90360         fts: bug fixes
90361         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
90362         Include <sys/vfs.h>, not <sys/statfs.h>.
90364         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
90365         Include <sys/vfs.h>, not <sys/statfs.h>.
90367 2008-10-01  Bruno Haible  <bruno@clisp.org>
90369         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
90370         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
90371         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
90372         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
90373         * doc/posix-functions/posix_spawnp.texi: Likewise.
90374         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
90375         whether posix_spawn actually works.
90376         * m4/pipe.m4 (gl_PIPE): Likewise.
90377         * modules/execute (Files): Add m4/posix_spawn.m4.
90378         * modules/pipe (Files): Add m4/posix_spawn.m4.
90379         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
90381 2008-10-01  Jim Meyering  <meyering@redhat.com>
90383         remove trailing spaces
90384         * NEWS: Likewise.
90385         * lib/poll.c (poll): Likewise.
90386         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
90387         * lib/winsock.c (rpl_close): Likewise.
90388         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
90389         * modules/yield: Likewise.
90390         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
90391         * tests/test-sys_select.c (connect_to_socket): Likewise.
90393         fts.c: adjust a new interface to be more generally useful
90394         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
90395         (fts_build): Adjust caller.
90397 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90399         * modules/cond-tests: New file.
90400         * tests/test-cond.c: New file.
90402 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90403             Bruno Haible  <bruno@clisp.org>
90405         * modules/cond (Dependencies): Add errno, time.
90406         * lib/glthread/cond.h: Include <time.h>.
90407         (gl_cond_define, gl_cond_define_initialized): Use the same definition
90408         across platforms.
90410 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90411             Bruno Haible  <bruno@clisp.org>
90413         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
90415 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90416             Bruno Haible  <bruno@clisp.org>
90418         * modules/tls-tests (Depends-on): Add thread, yield.
90419         (configure.ac): Remove all checks.
90420         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
90421         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
90422         gl_thread_self): Remove definitions. Include glthread/thread.h and
90423         glthread/yield.h instead.
90424         (test_tls): Pass an additional NULL argument to gl_thread_join.
90426 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90427             Bruno Haible  <bruno@clisp.org>
90429         * modules/lock-tests (Depends-on): Add thread, yield.
90430         (configure.ac): Remove all checks.
90431         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
90432         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
90433         gl_thread_self): Remove definitions. Include glthread/thread.h and
90434         glthread/yield.h instead.
90435         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
90436         additional NULL argument to gl_thread_join.
90438 2008-09-30  Bruno Haible  <bruno@clisp.org>
90440         Fix the Win32 implementation of the 'thread' module.
90441         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
90442         pointer type.
90443         (gl_thread_self): Invoke gl_thread_self_func.
90444         (gl_thread_self_func): New declaration.
90445         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
90446         (do_init_self_key, init_self_key): New functions.
90447         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
90448         Remove some fields.
90449         (running_threads, running_lock): Remove variables.
90450         (get_current_thread_handle): New function.
90451         (gl_thread_self_func, wrapper_func, glthread_create_func,
90452         glthread_join_func, gl_thread_exit_func): Largely rewritten and
90453         simplified.
90455 2008-09-30  Bruno Haible  <bruno@clisp.org>
90457         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
90458         files.
90460 2008-09-30  Jim Meyering  <meyering@redhat.com>
90462         fts.m4: correct the test for statfs.f_type
90463         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
90464         when checking for statfs.f_type.
90466 2008-09-15  Simon Josefsson  <simon@josefsson.org>
90468         tests: avoid some compiler warnings
90469         * tests/test-memchr.c (main): Pass NULL indirectly.
90470         * tests/test-getdate.c (main): Remove unused variable 'ret'.
90472 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
90474         getdate.y: disallow countable dayshifts like "4 yesterday ago"
90475         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
90476         exactly specified dayshifts.
90477         (dayshift): New rule.
90478         (rel): Add dayshift.
90479         (relative_time_table) [tomorrow, yesterday, today, now]:
90480         Use tDAY_SHIFT in place of tDAY_UNIT.
90481         * tests/test-getdate.c: Add tests for now-disallowed countable
90482         dayshifts, e.g., "4 yesterday ago".
90484 2008-09-29  Bruno Haible  <bruno@clisp.org>
90486         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
90487         * tests/test-posix_spawn1.in.sh: Renamed from
90488         tests/test-posix_spawn.in.sh.
90489         * tests/test-posix_spawn2.c: New file.
90490         * tests/test-posix_spawn2.in.sh: New file.
90491         * modules/posix_spawnp-tests (Files): Update.
90492         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
90494 2008-09-29  Bruno Haible  <bruno@clisp.org>
90496         Propagate effects of putenv/setenv/unsetenv to child processes.
90497         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
90498         * lib/pipe.c (create_pipe): Likewise.
90500 2008-09-29  Bruno Haible  <bruno@clisp.org>
90502         Enable use of shell scripts as executables in mingw.
90503         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
90504         run the program as a shell script.
90505         * lib/pipe.c (create_pipe): Likewise.
90506         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
90507         resulting array.
90509 2008-09-29  Eric Blake  <ebb9@byu.net>
90511         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
90513 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
90515         * doc/posix-functions/accept.texi: Update mingw problems.
90516         * doc/posix-functions/bind.texi: Update mingw problems.
90517         * doc/posix-functions/close.texi: Update mingw problems.
90518         * doc/posix-functions/connect.texi: Update mingw problems.
90519         * doc/posix-functions/getpeername.texi: Update mingw problems.
90520         * doc/posix-functions/getsockname.texi: Update mingw problems.
90521         * doc/posix-functions/getsockopt.texi: Update mingw problems.
90522         * doc/posix-functions/ioctl.texi: Update mingw problems.
90523         * doc/posix-functions/listen.texi: Update mingw problems.
90524         * doc/posix-functions/recv.texi: Update mingw problems.
90525         * doc/posix-functions/recvfrom.texi: Update mingw problems.
90526         * doc/posix-functions/select.texi: Update mingw problems.
90527         * doc/posix-functions/send.texi: Update mingw problems.
90528         * doc/posix-functions/sendto.texi: Update mingw problems.
90529         * doc/posix-functions/setsockopt.texi: Update mingw problems.
90530         * doc/posix-functions/socket.texi: Update mingw problems.
90532 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
90533             Bruno Haible  <bruno@clisp.org>
90535         * lib/sys_select.in.h: Include sys/time.h.
90536         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
90537         * modules/sys_select: Depend on sys_time.
90538         * tests/test-sys_select.c: Test that sys/select.h defines struct
90539         timeval fully.
90541 2008-09-29  Bruno Haible  <bruno@clisp.org>
90543         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
90544         * lib/sys_select.in.h: Likewise.
90546 2008-09-29  Bruno Haible  <bruno@clisp.org>
90548         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
90550 2008-09-29  Bruno Haible  <bruno@clisp.org>
90552         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
90553         Set LIBSOCKET instead of augmenting LIBS.
90554         * modules/sockets (Link): New section.
90555         * modules/sockets-tests (test_sockets_LDADD): New variable.
90556         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
90557         * modules/poll-tests (test_poll_LDADD): New variable.
90558         * NEWS: Document the change.
90560 2008-09-29  Bruno Haible  <bruno@clisp.org>
90562         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
90563         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
90564         ARPA_INET_H directly.
90565         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
90567 2008-09-28  Bruno Haible  <bruno@clisp.org>
90569         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
90570         from gl_HEADER_SYS_SOCKET.
90571         (gl_HEADER_SYS_SOCKET): Invoke it.
90572         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
90574 2008-09-28  Bruno Haible  <bruno@clisp.org>
90576         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
90577         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
90578         Needed on OSF/1 4.0.
90580 2008-09-28  Bruno Haible  <bruno@clisp.org>
90582         Override open more carefully.
90583         * lib/open.c (orig_open): New function.
90584         (rpl_open): Use orig_open instead of open.
90585         * lib/fcntl.in.h: Add special invocation convention.
90586         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
90587         (gl_FUNC_OPEN): Invoke it.
90589         Override freopen more carefully.
90590         * lib/freopen.c (orig_freopen): New function.
90591         (rpl_freopen): Use orig_freopen instead of freopen.
90592         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
90593         (gl_FUNC_FREOPEN): Invoke it.
90595         Override fopen more carefully.
90596         * lib/fopen.c (orig_fopen): New function.
90597         (rpl_fopen): Use orig_fopen instead of fopen.
90598         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
90599         (gl_FUNC_FOPEN): Invoke it.
90600         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
90602 2008-09-28  Bruno Haible  <bruno@clisp.org>
90604         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
90605         SIGPIPE.
90607 2008-09-28  Bruno Haible  <bruno@clisp.org>
90609         * tests/test-sigaction.c (handler, main): Disable the check whether
90610         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
90611         glibc systems with LinuxThreads.
90613 2008-09-28  Bruno Haible  <bruno@clisp.org>
90615         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
90617         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
90618         with AIX xlc.
90619         * lib/fcntl.in.h (open): Likewise.
90620         Reported by Rainer Tammer <tammer@tammer.net>.
90622 2008-09-28  Bruno Haible  <bruno@clisp.org>
90624         * modules/posix_spawnp-tests: New file.
90625         * tests/test-posix_spawn.c: New file.
90626         * tests/test-posix_spawn.in.sh: New file.
90628         New module 'posix_spawnp'.
90629         * modules/posix_spawnp: New file.
90630         * lib/spawnp.c: New file, from GNU libc with modifications.
90631         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
90633         New module 'posix_spawn'.
90634         * modules/posix_spawn: New file.
90635         * lib/spawn.c: New file, from GNU libc with modifications.
90636         * doc/posix-functions/posix_spawn.texi: Mention the new module.
90638         New module 'posix_spawnattr_destroy'.
90639         * modules/posix_spawnattr_destroy: New file.
90640         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
90641         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
90642         module.
90644         New module 'posix_spawnattr_setsigmask'.
90645         * modules/posix_spawnattr_setsigmask: New file.
90646         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
90647         modifications.
90648         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
90649         new module.
90651         New module 'posix_spawnattr_getsigmask'.
90652         * modules/posix_spawnattr_getsigmask: New file.
90653         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
90654         modifications.
90655         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
90656         new module.
90658         New module 'posix_spawnattr_setsigdefault'.
90659         * modules/posix_spawnattr_setsigdefault: New file.
90660         * lib/spawnattr_setdefault.c: New file, from GNU libc with
90661         modifications.
90662         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
90663         new module.
90665         New module 'posix_spawnattr_getsigdefault'.
90666         * modules/posix_spawnattr_getsigdefault: New file.
90667         * lib/spawnattr_getdefault.c: New file, from GNU libc with
90668         modifications.
90669         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
90670         new module.
90672         New module 'posix_spawnattr_setschedpolicy'.
90673         * modules/posix_spawnattr_setschedpolicy: New file.
90674         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
90675         modifications.
90676         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
90677         new module.
90679         New module 'posix_spawnattr_getschedpolicy'.
90680         * modules/posix_spawnattr_getschedpolicy: New file.
90681         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
90682         modifications.
90683         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
90684         new module.
90686         New module 'posix_spawnattr_setschedparam'.
90687         * modules/posix_spawnattr_setschedparam: New file.
90688         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
90689         modifications.
90690         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
90691         new module.
90693         New module 'posix_spawnattr_getschedparam'.
90694         * modules/posix_spawnattr_getschedparam: New file.
90695         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
90696         modifications.
90697         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
90698         new module.
90700         New module 'posix_spawnattr_setpgroup'.
90701         * modules/posix_spawnattr_setpgroup: New file.
90702         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
90703         modifications.
90704         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
90705         module.
90707         New module 'posix_spawnattr_getpgroup'.
90708         * modules/posix_spawnattr_getpgroup: New file.
90709         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
90710         modifications.
90711         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
90712         module.
90714         New module 'posix_spawnattr_setflags'.
90715         * modules/posix_spawnattr_setflags: New file.
90716         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
90717         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
90718         module.
90720         New module 'posix_spawnattr_getflags'.
90721         * modules/posix_spawnattr_getflags: New file.
90722         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
90723         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
90724         module.
90726         New module 'posix_spawnattr_init'.
90727         * modules/posix_spawnattr_init: New file.
90728         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
90729         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
90730         module.
90732         New module 'posix_spawn_file_actions_destroy'.
90733         * modules/posix_spawn_file_actions_destroy: New file.
90734         * lib/spawn_faction_destroy.c: New file, from GNU libc with
90735         modifications.
90736         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
90737         the new module.
90739         New module 'posix_spawn_file_actions_addopen'.
90740         * modules/posix_spawn_file_actions_addopen: New file.
90741         * lib/spawn_faction_addopen.c: New file, from GNU libc with
90742         modifications.
90743         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
90744         the new module.
90746         New module 'posix_spawn_file_actions_adddup2'.
90747         * modules/posix_spawn_file_actions_adddup2: New file.
90748         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
90749         modifications.
90750         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
90751         the new module.
90753         New module 'posix_spawn_file_actions_addclose'.
90754         * modules/posix_spawn_file_actions_addclose: New file.
90755         * lib/spawn_faction_addclose.c: New file, from GNU libc with
90756         modifications.
90757         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
90758         the new module.
90760         New module 'posix_spawn_file_actions_init'.
90761         * modules/posix_spawn_file_actions_init: New file.
90762         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
90763         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
90764         new module.
90766         New module 'posix_spawn-internal'.
90767         * modules/posix_spawn-internal: New file.
90768         * lib/spawn_int.h: New file, from GNU libc with modifications.
90769         * lib/spawni.c: New file, from GNU libc with modifications.
90770         * m4/posix_spawn.m4: New file.
90772         New module 'spawn'.
90773         * modules/spawn: New file.
90774         * lib/spawn.in.h: New file, from GNU libc with modifications.
90775         * m4/spawn_h.m4: New file.
90776         * doc/posix-headers/spawn.texi: Mention the new module.
90778 2008-09-28  Bruno Haible  <bruno@clisp.org>
90780         * modules/sched-tests: New file.
90781         * tests/test-sched.c: New file.
90783         New module 'sched'.
90784         * modules/sched: New file.
90785         * lib/sched.in.h: New file.
90786         * m4/sched_h.m4: New file.
90787         * doc/posix-headers/sched.texi: Mention the new module.
90789 2008-09-27  Eric Blake  <ebb9@byu.net>
90791         Fix previous patch, and tweak references to $0.
90792         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
90793         (func_version, func_gnulib_dir): Don't call this program
90794         gnulib-tool.
90795         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
90796         with using $0 in function.
90797         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
90798         (func_fatal_error): Reuse the name the user invoked us with.
90800 2008-09-27  Bruno Haible  <bruno@clisp.org>
90802         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
90803         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
90804         (gl_ICONV_H): Not here.
90805         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
90806         instead of assigning ICONV_H directly.
90808         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
90809         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
90810         WCHAR_H directly.
90812 2008-09-27  Bruno Haible  <bruno@clisp.org>
90814         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
90815         * modules/arpa_inet (Depends-on): Add link-warning.
90816         (Makefile.am): Insert the definition of GL_LINK-WARNING.
90817         * modules/unistd (Makefile.am): Likewise.
90819 2008-09-26  Bruno Haible  <bruno@clisp.org>
90821         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
90822         variables.
90823         (func_version): Essentially copied from gnulib-tool.
90824         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
90825         func_readlink): Copied from gnulib-tool.
90827 2008-09-26  Bruno Haible  <bruno@clisp.org>
90829         * gnulib-tool (func_version): Change directory to $gnulib_dir before
90830         invoking git-version-gen.
90832 2008-09-26  Bruno Haible  <bruno@clisp.org>
90834         * posix-modules: Update to directory names changed on 2008-01-19.
90835         Remove commas in output before splitting into words. No more need to
90836         avoid 'ftruncate' since 2007-02-19.
90838 2008-09-26  Bruno Haible  <bruno@clisp.org>
90840         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
90842 2008-09-26  Bruno Haible  <bruno@clisp.org>
90844         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
90845         * modules/fwriteerror (Depends-on): Add errno.
90847 2008-09-26  Bruno Haible  <bruno@clisp.org>
90849         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
90850         * tests/test-vc-list-files-cvs.sh: Likewise.
90852 2008-09-26  Bruno Haible  <bruno@clisp.org>
90854         * doc/posix-headers/sys_resource.texi: Reorder items.
90856 2008-09-26  Jim Meyering  <meyering@redhat.com>
90858         fts: tweak inode comparison function
90859         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
90860         inode numbers, as documented.
90862         fts: sort dirent entries on inode number before traversing
90863         This avoids a quadratic, seek-related performance penalty when
90864         operating on a directory containing many entries (measurable at 10k;
90865         3.5 hours at 2 million entries with a cold cache) on certain types
90866         of file systems, including ext3 and ext4, but not tmpfs.
90867         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
90868         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
90869         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
90870         (fs_handles_readdir_ordered_dirents_efficiently): New function.
90871         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
90872         (fts_build): Set the stat.st_ino member from D_INO.
90873         If it is likely to be useful, sort dirent entries on inode number.
90875         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
90876         and the struct statfs.f_type member.
90877         * modules/fts (Depends-on): Add d-ino.
90879 2008-09-26  Bruno Haible  <bruno@clisp.org>
90881         * modules/sigpipe-die (Depends-on): Add sigpipe.
90883         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
90884         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
90885         and GNULIB_STDIO_H_SIGPIPE are set.
90886         * lib/stdio-write.c: New file.
90887         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
90888         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
90889         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
90890         REPLACE_STDIO_WRITE_FUNCS.
90891         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
90892         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
90893         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
90894         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
90895         * modules/stdio (Files): Add lib/stdio-write.c.
90896         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
90897         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
90898         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
90899         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
90900         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
90901         REPLACE_FPRINTF_POSIX.
90902         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
90903         REPLACE_PRINTF_POSIX.
90904         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
90905         REPLACE_VFPRINTF_POSIX.
90906         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
90907         REPLACE_VPRINTF_POSIX.
90908         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
90909         SIGPIPE issue.
90910         * doc/posix-functions/fputc.texi: Likewise.
90911         * doc/posix-functions/fputs.texi: Likewise.
90912         * doc/posix-functions/fwrite.texi: Likewise.
90913         * doc/posix-functions/printf.texi: Likewise.
90914         * doc/posix-functions/putc.texi: Likewise.
90915         * doc/posix-functions/putchar.texi: Likewise.
90916         * doc/posix-functions/puts.texi: Likewise.
90917         * doc/posix-functions/vfprintf.texi: Likewise.
90918         * doc/posix-functions/vprintf.texi: Likewise.
90920         * modules/safe-write (Depends-on): Add write.
90922         * modules/sigpipe-tests: New file.
90923         * tests/test-sigpipe.c: New file.
90924         * tests/test-sigpipe.sh: New file.
90926         * modules/write: New file.
90927         * lib/unistd.in.h: Include <sys/types.h>.
90928         (write): New declaration.
90929         * lib/write.c: New file.
90930         * m4/write.m4: New file.
90931         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
90932         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
90933         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
90934         GNULIB_WRITE, REPLACE_WRITE.
90935         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
90936         and the SIGPIPE issue.
90938         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
90939         (raise): New declaration.
90940         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
90941         (ext_signal): New function.
90942         (rpl_raise): New function.
90943         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
90944         GNULIB_SIGNAL_H_SIGPIPE.
90945         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
90946         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
90948         * modules/sigpipe: New file.
90949         * m4/sigpipe.m4: New file.
90951 2008-09-25  Derek Price  <derek@ximbiot.com>
90952             Bruno Haible  <bruno@clisp.org>
90954         * gnulib-tool (func_import): Report all license incompatibilities, not
90955         just the first one.
90957 2008-09-25  Bruno Haible  <bruno@clisp.org>
90959         * gnulib-tool (func_import): When computing the edits, consider not
90960         only the Makefile.ams that exist but also those that will be generated.
90962 2008-09-25  Simon Josefsson  <simon@josefsson.org>
90964         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
90965         fixes gnulib-tool --test warning about duplicate dependency.
90967 2008-09-25  Bruno Haible  <bruno@clisp.org>
90969         * gnulib-tool: Don't ask the user to perform edits in the generated
90970         Makefile.ams.
90971         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
90972         apply to the Makefile.am being generated.
90973         (func_emit_tests_Makefile_am): Execute edits that apply to the
90974         Makefile.am being generated.
90975         (func_import): Setup list of Makefile.am edits before emitting the
90976         Makefile.ams, not at the end.
90977         (func_create_testdir): Update.
90978         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
90980 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90982         * gnulib-tool (func_import): Store the --tests-base option in the
90983         comment in gnulib-cache.m4.
90985 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
90987         * NEWS: Document increased portability that sys_select now provides.
90989         * lib/sys_select.in.h: Install select wrapper.
90990         * lib/sys_socket.in.h: Use more descriptive name when there is no
90991         select wrapper.
90992         * lib/winsock-select.c: New.
90993         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
90994         Require gl_HEADER_SYS_SOCKET.
90995         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
90996         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
90997         * tests/test-sys_select.c: Add functional tests.
90999 2008-09-24  Eric Blake  <ebb9@byu.net>
91001         open, fopen: close fd leak in last patch
91002         * lib/open.c (rpl_open): Close fd before returning error.
91003         * lib/fopen.c (rpl_fopen): Close fd before returning error.
91004         * doc/posix-functions/open.texi (open): Document that Irix also
91005         has the bug.
91006         * doc/posix-functions/fopen.texi (fopen): Likewise.
91007         Reported by Paolo Bonzini.
91009 2008-09-24  Bruno Haible  <bruno@clisp.org>
91011         Ensure that a filename ending in a slash cannot be used to access a
91012         non-directory.
91013         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
91014         to check whether it's really a directory.
91015         * lib/fopen.c: Include fcntl.h, unistd.h.
91016         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
91017         and fdopen().
91018         * modules/fopen (Depends-on): Add unistd.
91019         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
91020         * tests/test-fopen.c (main): Likewise.
91021         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
91022         * doc/posix-functions/fopen.texi: Likewise.
91023         Reported by Eric Blake.
91025 2008-09-23  Eric Blake  <ebb9@byu.net>
91027         c-stack: avoid compiler optimizations when provoking overflow
91028         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
91029         recursion harder to optimize, to ensure a stack overflow occurs.
91030         * tests/test-c-stack.c (recurse): Likewise.
91031         Borrowed from libsigsegv.
91033         c-stack: work around Irix sigaltstack bug
91034         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
91035         whether sigaltstack uses wrong end of stack_t (copied in part from
91036         libsigsegv).
91037         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
91038         Irix bug, without requiring an over-allocation.
91039         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
91040         bug.
91042         fopen: document mingw bug on directories
91043         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
91044         not allowing a stream visiting a directory, even though reading
91045         from such a stream is not portable.
91047 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
91049         * lib/poll.c: Rewrite.
91050         * modules/poll: Depend on alloca.
91052 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
91054         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
91055         instead define prototypes for a full set of wrappers.  Ensure
91056         that Cygwin does not use the compatibility code, which is only
91057         for MinGW.
91058         * lib/winsock.c: New.
91059         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
91060         * modules/sys_socket: Add lib/winsock.c.
91062         * modules/poll-tests: Add errno and perror.
91063         * tests/test-poll.c: Use ioctl, not ioctlsocket.
91065 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
91067         * tests/test-poll.c: Downgrade minimum needed Winsock version.
91069 2008-09-23  Bruno Haible  <bruno@clisp.org>
91071         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
91072         * doc/glibc-functions/*: Likewise.
91074 2008-09-23  Simon Josefsson  <simon@josefsson.org>
91076         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
91077         success.
91079 2008-09-22  Eric Blake  <ebb9@byu.net>
91080             Bruno Haible  <bruno@clisp.org>
91082         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
91083         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
91084         supply %A but mishandle pseudo-NaN.
91085         Reported by Simon Josefsson.
91087 2008-09-21  Bruno Haible  <bruno@clisp.org>
91089         * tests/test-lock.c (main): Tweak skip message.
91090         * tests/test-tls.c (main): Likewise.
91092 2008-09-21  Bruno Haible  <bruno@clisp.org>
91094         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
91095         whether 'struct sigaction' has sa_sigaction here...
91096         (gl_PREREQ_SIG_HANDLER_H): ... not here.
91097         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
91099 2008-09-21  Bruno Haible  <bruno@clisp.org>
91101         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
91102         section.
91103         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
91104         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
91105         the new section.
91106         (Support for obsolete systems lacking POSIX:2001): New section.
91107         (String handling <string.h>): Move strdup to the new section.
91108         Suggested by Simon Josefsson and Paolo Bonzini.
91110 2008-09-21  Bruno Haible  <bruno@clisp.org>
91112         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
91113         exponents in %e and %g results on 'long double'. Needed for mingw's
91114         improved *printf functions.
91115         * tests/test-vasprintf-posix.c (test_function): Likewise.
91116         * tests/test-snprintf-posix.h (test_function): Likewise.
91117         * tests/test-sprintf-posix.h (test_function): Likewise.
91118         Reported by Eric Blake.
91120 2008-09-21  Bruno Haible  <bruno@clisp.org>
91122         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
91123         * tests/test-sprintf-posix.h (test_function): Likewise.
91125 2008-09-21  Bruno Haible  <bruno@clisp.org>
91127         * modules/getpass (Depends-on): Add strdup-posix.
91129         New module 'strdup-posix'.
91130         * modules/strdup-posix: New file.
91131         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
91132         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
91133         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
91134         REPLACE_STRDUP.
91135         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
91136         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
91137         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
91138         strdup-posix.
91140         * modules/strdup (Depends-on): Remove malloc-posix.
91142 2008-09-20  Bruno Haible  <bruno@clisp.org>
91144         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
91145         Wildenhues.
91147 2008-09-20  Bruno Haible  <bruno@clisp.org>
91149         Ensure that wint_t gets defined on IRIX 5.3.
91150         * lib/wchar.in.h (wint_t): Define if not defined by the system.
91151         * lib/wctype.in.h (wint_t): Likewise.
91152         (__wctype_wint_t): Remove type.
91153         (isw*): Use wint_t instead of __wctype_wint_t.
91154         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
91155         * modules/wchar (Files): Add m4/wint_t.m4.
91156         (Makefile.am): Substitute HAVE_WINT_T.
91157         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
91158         * tests/test-wctype.c: Check that wint_t is defined.
91159         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
91160         * doc/posix-headers/wctype.texi: Likewise.
91161         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
91163 2008-09-18  Bruno Haible  <bruno@clisp.org>
91165         * gnulib-tool (func_exit): Update comment.
91167 2008-09-18  Simon Josefsson  <simon@josefsson.org>
91169         * modules/getaddrinfo (Depends-on): Remove strdup, this module
91170         assumes strdup exists and does not depend on strdup to return
91171         ENOMEM on out of memory conditions.
91173 2008-09-18  Bruno Haible  <bruno@clisp.org>
91175         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
91176         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
91177         digits for the exponent.
91179 2008-09-18  Jim Meyering  <meyering@redhat.com>
91180             Bruno Haible  <bruno@clisp.org>
91182         * lib/vasnprintf.c (decimal_point_char): Define also if
91183         NEED_PRINTF_INFINITE_LONG_DOUBLE.
91185 2008-09-16  Bruno Haible  <bruno@clisp.org>
91186         and Eric Blake  <ebb9@byu.net>
91188         vasnprintf: support Irix 5.3
91189         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
91190         that mishandle long double infinity.
91191         Reported by Tom G. Christensen.
91193 2008-09-16  Bruno Haible  <bruno@clisp.org>
91195         * doc/glibc-functions/scandir.texi: Mention the function is missing on
91196         Solaris 9.
91197         * doc/glibc-functions/alphasort.texi: Likewise.
91198         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
91200 2008-09-16  Jim Meyering  <meyering@redhat.com>
91202         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
91203         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
91204         a umask modification leak out of a subshell.  Otherwise, the
91205         opensolaris /bin/sh would be accepted and thus cause unwarranted
91206         failures in the coreutils test suite.
91208 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
91210         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
91211         to succeed.
91213 2008-09-16  Jim Meyering  <meyering@redhat.com>
91215         avoid spurious test failure when library is built without ACL support
91216         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
91217         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
91218         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
91219         * tests/test-copy-acl.sh: Likewise.
91221 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91223         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
91224         based on character occurrence counts.
91226 2008-09-15  Eric Blake  <ebb9@byu.net>
91228         tests: avoid some compiler warnings
91229         * tests/test-memchr.c (main): Pass NULL indirectly.
91230         * tests/test-closein.c (main): Avoid unused variable.
91232 2008-09-15  Bruno Haible  <bruno@clisp.org>
91234         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
91235         are missing on OpenBSD 4.0 individually.
91236         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
91238 2008-09-15  Bruno Haible  <bruno@clisp.org>
91240         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
91241         * doc/posix-functions/strerror.texi: Mention also Cygwin.
91242         * doc/posix-functions/perror.texi: Likewise.
91243         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
91244         is missing.
91245         Reported by Eric Blake.
91247         * lib/errno.in.h: Use replacement values >= 2000.
91248         Reported by Eric Blake.
91250 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91252         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
91253         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
91254         limit.
91255         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
91256         compareseq was aborted.
91258 2008-09-14  Bruno Haible  <bruno@clisp.org>
91260         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
91261         yvec_edit_count.
91262         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
91263         (fstrcmp_bounded): Simplify result computation accordingly.
91265 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91267         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
91268         (fstrcmp): Define in terms of fstrcmp_bounded.
91269         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
91270         lower_bound argument.
91271         Return quickly if the result is certainly < lower_bound.
91272         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
91274 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91276         * lib/diffseq.h (EARLY_ABORT): New macro.
91277         (compareseq): Change return type to bool. Return true when EARLY_ABORT
91278         evaluates to true.
91280 2008-09-14  Bruno Haible  <bruno@clisp.org>
91282         * modules/perror-tests: New file.
91283         * tests/test-perror.sh: New file.
91284         * tests/test-perror.c: New file.
91286         New module 'perror'.
91287         * lib/stdio.in.h (perror): New declaration.
91288         * lib/perror.c: New file.
91289         * m4/perror.m4: New file.
91290         * modules/perror: New file.
91291         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
91292         * doc/posix-functions/perror.texi: Mention the perror module.
91293         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
91294         REPLACE_PERROR.
91295         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
91296         REPLACE_PERROR.
91298 2008-09-14  Bruno Haible  <bruno@clisp.org>
91300         * modules/stdio (Makefile.am): Reorder to match the order in
91301         lib/stdio.in.h.
91302         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
91304 2008-09-13  Bruno Haible  <bruno@clisp.org>
91306         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
91308 2008-09-13  Bruno Haible  <bruno@clisp.org>
91310         Extend strerror to cover the added errno values.
91311         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
91312         (rpl_strerror): Provide error messages for the added errno values and
91313         for the WSA* values.
91314         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
91315         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
91316         strerror.
91317         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
91318         * modules/strerror (Depends-on): Add errno.
91319         * doc/posix-functions/strerror.texi: Document the change.
91320         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
91321         and EOVERFLOW.
91323 2008-09-13  Bruno Haible  <bruno@clisp.org>
91325         * modules/EOVERFLOW: Remove file.
91326         * m4/eoverflow.m4: Remove file.
91327         * modules/EOVERFLOW-tests: Remove file.
91328         * tests/test-EOVERFLOW.c: Remove file.
91329         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
91330         * modules/ftell (Depends-on): Likewise.
91331         * modules/getdelim (Depends-on): Likewise.
91332         * modules/getugroups (Depends-on): Likewise.
91333         * modules/poll (Depends-on): Likewise.
91334         * modules/snprintf (Depends-on): Likewise.
91335         * modules/sprintf-posix (Depends-on): Likewise.
91336         * modules/vasnprintf (Depends-on): Likewise.
91337         * modules/vasprintf (Depends-on): Likewise.
91338         * modules/vfprintf-posix (Depends-on): Likewise.
91339         * modules/vsnprintf (Depends-on): Likewise.
91340         * modules/vsprintf-posix (Depends-on): Likewise.
91341         * modules/xvasprintf (Depends-on): Likewise.
91342         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
91343         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
91344         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
91345         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
91346         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
91347         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
91348         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
91349         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
91350         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
91351         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
91352         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
91353         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
91354         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
91355         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
91356         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
91357         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
91358         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
91359         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
91360         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
91361         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
91362         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
91363         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
91364         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
91365         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
91366         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
91367         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
91368         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
91369         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
91370         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
91371         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
91372         * MODULES.html.sh: Remove EOVERFLOW.
91373         * NEWS: Mention the change.
91375 2008-09-13  Bruno Haible  <bruno@clisp.org>
91377         * modules/errno-tests: New file.
91378         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
91380         * lib/errno.in.h: New file.
91381         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
91382         * modules/errno: New file.
91383         * doc/posix-headers/errno.texi: Update documentation.
91384         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
91386 2008-09-13  Bruno Haible  <bruno@clisp.org>
91388         * tests/test-poll.c: Use #if for native Windows, rather than testing
91389         __MSVCRT__.
91391 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91392             Bruno Haible  <bruno@clisp.org>
91394         * lib/glob.c: Don't include <pwd.h> on native Windows.
91395         (WINDOWS32): New macro.
91396         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
91398 2008-09-13  Bruno Haible  <bruno@clisp.org>
91400         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
91401         (ETIMEDOUT): Remove macro.
91402         (glthread_cond_timedwait_multithreaded): New declaration.
91403         (glthread_cond_timedwait): Use it.
91404         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
91405         (glthread_cond_timedwait_multithreaded): New function.
91407 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
91409         * modules/poll-tests: Do not check for io.h.
91410         * tests/test-poll.c: Check for __MSVCRT__ instead.
91412 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
91414         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
91415         * modules/poll-tests: Add inet_pton, stdbool, sockets.
91416         * tests/test-poll.c: Use them.  Use _pipe on Windows.
91418 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
91420         * modules/poll-tests: New.
91421         * tests/test-poll.c: New.
91423 2008-09-12  Eric Blake  <ebb9@byu.net>
91425         frexp: test for NetBSD failure on -0.0
91426         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
91427         not all, bugs from NetBSD 3.0 have been fixed.
91428         * doc/posix-functions/frexp.texi (frexp): Document bug.
91429         Reported by Thomas Klausner.
91431         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
91432         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
91433         literal -0.0.
91434         Reported by Jonathan C. Patschke <jp@centtech.com>.
91436 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91438         * lib/glthread/cond.h: Use dummy implementation also if
91439         USE_WIN32_THREADS.
91441 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91443         * modules/fnmatch-posix (License): Change to LGPLv2+.
91444         * modules/fnmatch-gnu (License): Likewise.
91446 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91448         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
91450 2008-09-11  Jim Meyering  <meyering@redhat.com>
91452         * users.txt: Add gtk-vnc.
91454 2008-09-08  Simon Josefsson  <simon@josefsson.org>
91456         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
91457         rotate amounts.
91459         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
91460         required for 16-bit and 8-bit rotates.
91461         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
91462         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
91463         UINT8_MAX instead of hard-coded constants.
91464         Suggested by Paul Eggert.
91466 2008-09-07  Bruno Haible  <bruno@clisp.org>
91468         * tests/test-striconveh.c (main): Check behaviour when converting from
91469         UTF-7.
91471         Make striconveh work better with stateful encodings.
91472         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
91473         that iconv does not increment the inptr when returning -1/EINVAL.
91475 2008-09-07  Bruno Haible  <bruno@clisp.org>
91477         * build-aux/config.rpath: Update according to libtool-2.2.6.
91478         * build-aux/config.libpath: Likewise.
91480 2008-09-06  Bruno Haible  <bruno@clisp.org>
91482         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
91483         * lib/freadptr.c (freadptr): Likewise.
91484         * lib/freadseek.c (freadptrinc): Likewise.
91485         Reported by Simon Josefsson.
91487 2008-09-06  Bruno Haible  <bruno@clisp.org>
91489         * modules/freadptr (License): Change to LGPLv2+.
91490         * modules/freadseek (License): Likewise.
91491         Suggested by Eric Blake.
91493         * modules/memchr2 (License): Change to LGPLv2+.
91494         Approved by Eric Blake.
91496 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91497             Bruno Haible  <bruno@clisp.org>
91499         Make gnulib-tool work with native 'sed' on AIX.
91500         * gnulib-tool (sed_noop): New variable.
91501         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
91502         func_add_or_update, func_create_testdir): Use it to initialize sed
91503         script variables.
91504         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
91506 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
91507             Bruno Haible  <bruno@clisp.org>
91509         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
91510         also works after #include directives.
91512 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
91514         getdate.y: reject an out-of-range timezone value
91515         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
91516         the range [-24...+24].  When specified with only one or two digits,
91517         * tests/test-getdate.c: Tests for the fix.
91518         * doc/getdate.texi: Document this change.
91520 2008-09-03  Bruno Haible  <bruno@clisp.org>
91522         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
91524 2008-09-02  Simon Josefsson  <simon@josefsson.org>
91526         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
91527         <bruce.korb@gmail.com> with ideas from Ben Pfaff
91528         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
91529         Blake <ebb9@byu.net>.
91531         * tests/test-bitrotate.c: Add more test vectors.
91533 2008-09-02  Eric Blake  <ebb9@byu.net>
91535         vasnprintf-posix: handle large precision via %.*d
91536         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
91537         when handling it ourselves.
91538         * tests/test-vasnprintf-posix.c (test_function): Add test.
91539         * tests/test-snprintf-posix.h (test_function): Likewise.
91540         * tests/test-sprintf-posix.h (test_function): Likewise.
91541         * tests/test-vasprintf-posix.c (test_function): Likewise.
91542         Reported by Alain Guibert.
91544 2008-09-01  Eric Blake  <ebb9@byu.net>
91546         c-stack: make configure-time check more robust
91547         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
91548         successful sigaction call.
91549         Reported by Tom G. Christensen.
91551 2008-09-01  Bruno Haible  <bruno@clisp.org>
91553         New module 'findprog-lgpl'.
91554         * modules/findprog-lgpl: New file.
91555         * lib/findprog-lgpl.c: New file.
91556         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
91557         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
91558         to decide whether to use strdup or xstrdup, concatenated_filename or
91559         xconcatenated_filename.
91561 2008-09-01  Bruno Haible  <bruno@clisp.org>
91563         Split module 'concat-filename' into 'concat-filename' (LGPL) and
91564         'xconcat-filename' (GPL).
91565         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
91566         (License): Change to LGPLv2+.
91567         * modules/xconcat-filename: New file.
91568         * lib/concat-filename.h (concatenated_filename): Change specification.
91569         (xconcatenated_filename): New declaration.
91570         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
91571         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
91572         memory situations.
91573         * lib/xconcat-filename.c: New file.
91574         * NEWS: Mention the change.
91575         * lib/findprog.c: Include concat-filename.h, not filename.h.
91576         (find_in_path): Use xconcatenated_filename instead of
91577         concatenated_filename.
91578         * lib/javacomp.c: Include concat-filename.h, not filename.h.
91579         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
91580         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
91581         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
91582         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
91583         instead of concatenated_filename.
91584         * lib/javaexec.c: Include concat-filename.h, not filename.h.
91585         (execute_java_class): Use xconcatenated_filename instead of
91586         concatenated_filename.
91587         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
91588         * modules/javacomp (Depends-on): Likewise.
91589         * modules/javaexec (Depends-on): Likewise.
91591 2008-09-01  Bruno Haible  <bruno@clisp.org>
91593         Split module 'filename' into 'filename' and 'concat-filename'.
91594         * modules/filename: Keep only lib/filename.h.
91595         (License): Change to LGPLv2+.
91596         * modules/concat-filename: New file, extracted from modules/filename.
91597         * lib/filename.h (concatenated_filename): Remove declaration.
91598         * lib/concat-filename.h: New file, extracted from lib/filename.h.
91599         * lib/concat-filename.c: Include concat-filename.h.
91600         * NEWS: Mention the change.
91602 2008-09-01  Simon Josefsson  <simon@josefsson.org>
91604         * lib/bitrotate.h (rotl8, rotr8): Add.
91606         * modules/bitrotate (configure.ac): Need
91607         AC_REQUIRE([AC_C_INLINE]).
91608         (Description): Mention stdint.h.  Reported by Bruno Haible
91609         <bruno@clisp.org>.
91611         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
91612         Paolo Bonzini <bonzini@gnu.org>.
91614 2008-08-31  Bruno Haible  <bruno@clisp.org>
91616         Assume Solaris specific bi-arch conventions on Solaris systems.
91617         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
91618         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
91619         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
91620         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
91621         like acl_libdirstem.
91622         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
91623         acl_libdirstem.
91624         * NEWS: Mention the change.
91625         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
91627 2008-08-31  Jim Meyering  <meyering@redhat.com>
91629         * lib/strftime.h: Add comments describing the two added arguments.
91631         remove duplicate #include directives
91632         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
91633         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
91635 2008-08-31  Bruno Haible  <bruno@clisp.org>
91637         New module 'sigpipe-die'.
91638         * modules/sigpipe-die: New file.
91639         * lib/sigpipe-die.h: New file.
91640         * lib/sigpipe-die.c: New file.
91641         * MODULES.html.sh (Signal handling): Add sigpipe-die.
91643 2008-08-31  Bruno Haible  <bruno@clisp.org>
91645         Don't override previously installed signal handlers.
91646         * lib/fatal-signal.c (saved_sigactions): New variable.
91647         (uninstall_handlers): Reset the signal to the saved handler, not
91648         to SIG_DFL (except when ignored).
91649         (install_handlers): Save the previous handlers.
91651 2008-08-30  Bruno Haible  <bruno@clisp.org>
91653         * gnulib-tool (func_reset_sigpipe): New function.
91654         (func_get_automake_snippet, func_modules_transitive_closure,
91655         func_import): Invoke it before a join command that reads from stdin,
91656         to avoid "echo: write error: Broken pipe" error messages on stderr.
91657         Reported by Sam Steingold <sds@gnu.org>.
91659 2008-08-30  Bruno Haible  <bruno@clisp.org>
91661         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
91662         Code copied from m4/open.m4.
91663         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
91664         access and the filename ends in a slash. Code copied from lib/open.c.
91665         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
91666         * tests/test-fopen.c (main): Check against bug with trailing slash.
91668 2008-08-29  Bruno Haible  <bruno@clisp.org>
91670         Avoid some "gcc -pedantic" warnings.
91671         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
91672         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
91673         * lib/dirent.in.h: Likewise.
91674         * lib/fcntl.in.h: Likewise.
91675         * lib/float.in.h: Likewise.
91676         * lib/iconv.in.h: Likewise.
91677         * lib/inttypes.in.h: Likewise.
91678         * lib/locale.in.h: Likewise.
91679         * lib/math.in.h: Likewise.
91680         * lib/netinet_in.in.h: Likewise.
91681         * lib/search.in.h: Likewise.
91682         * lib/signal.in.h: Likewise.
91683         * lib/stdarg.in.h: Likewise.
91684         * lib/stdint.in.h: Likewise.
91685         * lib/stdio.in.h: Likewise.
91686         * lib/stdlib.in.h: Likewise.
91687         * lib/string.in.h: Likewise.
91688         * lib/strings.in.h: Likewise.
91689         * lib/sys_select.in.h: Likewise.
91690         * lib/sys_socket.in.h: Likewise.
91691         * lib/sys_stat.in.h: Likewise.
91692         * lib/sys_time.in.h: Likewise.
91693         * lib/sysexits.in.h: Likewise.
91694         * lib/time.in.h: Likewise.
91695         * lib/unistd.in.h: Likewise.
91696         * lib/wchar.in.h: Likewise.
91697         * lib/wctype.in.h: Likewise.
91698         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
91699         * modules/fchdir (Makefile.am): Likewise.
91700         * modules/fcntl (Makefile.am): Likewise.
91701         * modules/float (Makefile.am): Likewise.
91702         * modules/iconv_open (Makefile.am): Likewise.
91703         * modules/inttypes (Makefile.am): Likewise.
91704         * modules/locale (Makefile.am): Likewise.
91705         * modules/math (Makefile.am): Likewise.
91706         * modules/netinet_in (Makefile.am): Likewise.
91707         * modules/search (Makefile.am): Likewise.
91708         * modules/signal (Makefile.am): Likewise.
91709         * modules/stdarg (Makefile.am): Likewise.
91710         * modules/stdint (Makefile.am): Likewise.
91711         * modules/stdio (Makefile.am): Likewise.
91712         * modules/stdlib (Makefile.am): Likewise.
91713         * modules/string (Makefile.am): Likewise.
91714         * modules/strings (Makefile.am): Likewise.
91715         * modules/sys_select (Makefile.am): Likewise.
91716         * modules/sys_socket (Makefile.am): Likewise.
91717         * modules/sys_stat (Makefile.am): Likewise.
91718         * modules/sys_time (Makefile.am): Likewise.
91719         * modules/sysexits (Makefile.am): Likewise.
91720         * modules/time (Makefile.am): Likewise.
91721         * modules/unistd (Makefile.am): Likewise.
91722         * modules/wchar (Makefile.am): Likewise.
91723         * modules/wctype (Makefile.am): Likewise.
91724         Reported by Reuben Thomas <rrt@sc3d.org>.
91726 2008-08-29  Bruno Haible  <bruno@clisp.org>
91728         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
91729         any more.
91731 2008-08-29  Simon Josefsson  <simon@josefsson.org>
91733         * MODULES.html.sh (Misc): Add bitrotate.
91735         * modules/bitrotate: New file.
91737         * lib/bitrotate.h: New file.
91739         * modules/bitrotate-tests: New file.
91741         * tests/test-bitrotate.c: New file.
91743         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
91744         on the bitrotate module.
91746         * lib/arctwo.c: Use new bitrotate module.
91748 2008-08-29  Jim Meyering  <meyering@redhat.com>
91750         bootstrap: merge changes from coreutils
91751         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
91752         of copied files.  Remove a kludge, now that this is fixed.
91753         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
91754         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
91755         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
91757 2008-08-29  Bruno Haible  <bruno@clisp.org>
91759         * MODULES.html.sh: Remove --cvs-urls option.
91761 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
91763         maint.mk: adjust to file name change
91764         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
91766 2008-08-28  Jim Meyering  <meyering@redhat.com>
91768         * modules/getndelim2 (License): Relicense to LGPLv2+.
91769         Approved by Richard Stallman for the version of 1995, and by
91770         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
91772 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
91774         * lib/getdelim.c (flockfile, funlockfile): Make all of them
91775         dummy if one is not available.  Do not touch them if
91776         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
91777         (getc_maybe_unlocked): New.
91778         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
91780 2008-08-26  Eric Blake  <ebb9@byu.net>
91782         doc/INSTALL: resync from autoconf
91783         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
91784         (INSTALL_PRELUDE): Delete; this is done more efficiently by
91785         moving...
91786         * install.texi [!autoconf]: ...here.  Resync from autoconf.
91787         * INSTALL: Regenerate.
91788         * INSTALL.ISO: New file.
91789         * INSTALL.UTF-8: Likewise.
91791 2008-08-26  Jim Meyering  <meyering@redhat.com>
91793         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
91794         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
91795         these definitions conditional, so that they may be overridden, too.
91797 2008-08-26  Bruno Haible  <bruno@clisp.org>
91799         Generate INSTALL file variants with prettier quotes.
91800         * doc/Makefile (INSTALL_PRELUDE): New macro.
91801         (INSTALL): Use it.
91802         (INSTALL.ISO, INSTALL.UTF-8): New rules.
91804 2008-08-26  Bruno Haible  <bruno@clisp.org>
91806         Run makeinfo in an English locale.
91807         * doc/Makefile (MAKEINFO): New variable.
91809 2008-08-26  Bruno Haible  <bruno@clisp.org>
91811         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
91812         Suggested by Eric Blake.
91814 2008-08-25  Bruno Haible  <bruno@clisp.org>
91816         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
91818 2008-08-25  Eric Blake  <ebb9@byu.net>
91820         c-stack: test that stack overflow can be caught
91821         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
91822         that platform allows handling stack overflow; at least OS/2 EMX
91823         has sigaltstack, but crashes before transferring control to
91824         handler on stack overflow.
91825         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
91826         check for HAVE_STACK_OVERFLOW_HANDLING.
91827         Reported by Elbert Pol.
91829 2008-08-25  Bruno Haible  <bruno@clisp.org>
91831         * doc/posix-functions/strftime.texi: Fix description of strftime
91832         module.
91834 2008-08-24  Bruno Haible  <bruno@clisp.org>
91836         * tests/uniwidth/test-uc_width2.c: New file.
91837         * tests/uniwidth/test-uc_width2.sh: New file.
91838         * modules/uniwidth/width-tests (Files): Add the new files.
91839         (TESTS): Add uniwidth/test-uc_width2.sh.
91840         (TESTS_ENVIRONMENT): New variable.
91841         (check_PROGRAMS): Add test-uc_width2.
91842         (test_uc_width2_SOURCES): New variable.
91844         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
91845         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
91846         not 0x00AB.
91847         Reported by Alexander V. Lukyanov <lav@netis.ru>.
91849 2008-08-22  Eric Blake  <ebb9@byu.net>
91851         test-lock, test-tls: mention why a test is skipped
91852         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
91853         skipped.
91854         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
91856         count-one-bits: relax license
91857         * modules/count-one-bits (License): Relicense to LGPLv2+.
91858         Suggested by Ludovic Courtès, approved by Ben Pfaff.
91860 2008-08-22  Andreas Schwab  <schwab@suse.de>
91862         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
91863         Remove spurious space in assignment.
91865 2008-08-21  Simon Josefsson  <simon@josefsson.org>
91867         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
91868         Paul Eggert <eggert@CS.UCLA.EDU>.
91870 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
91872         * modules/gettext: Add m4/threadlib.m4.
91874 2008-08-19  Eric Blake  <ebb9@byu.net>
91876         test-c-stack: fix compilation failure on FreeBSD 5.0
91877         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
91878         headers before <sys/resource.h>.
91879         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
91880         the bug.
91881         Reported by Nelson H. F. Beebe.
91883         strverscmp: migrate from "strverscmp.h" to <string.h>
91884         * modules/string (Makefile.am): Add new hooks.
91885         * modules/strverscmp (Files): Remove strverscmp.h.
91886         (Depends-on): Add string.
91887         (configure.ac): Add indicator.
91888         (Include): Mention new header.
91889         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
91890         defaults.
91891         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
91892         results.
91893         * lib/strverscmp.h: Delete.
91894         * lib/string.in.h (strverscmp): Provide declaration, when needed.
91895         * tests/test-strverscmp.c (includes): Adjust client.
91896         * lib/check-version.c (includes): Likewise.
91897         * NEWS: Document the change.
91899         strverscmp: add unit test
91900         * modules/strverscmp-tests: New file.
91901         * tests/test-strverscmp.c: Likewise.
91903 2008-08-19  Simon Josefsson  <simon@josefsson.org>
91905         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
91906         regarding Windows crypto stuff, from Mono.
91908 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
91910         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
91911         if present, for intel RND.  Return error on failures.
91913 2008-08-18  Ben Pfaff  <blp@gnu.org>
91915         gitlog-to-changelog: give better diagnostic for failed pipe-open
91916         * build-aux/gitlog-to-changelog: Improve error message: suggest
91917         that the version of Git may be too old.
91919 2008-08-18  Simon Josefsson  <simon@josefsson.org>
91921         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
91922         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
91924 2008-08-18  Bruno Haible  <bruno@clisp.org>
91926         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
91927         pthread_in_use().
91929 2008-08-18  Bruno Haible  <bruno@clisp.org>
91931         * lib/glthread/threadlib.c: Include <pthread.h>.
91933 2008-08-18  Bruno Haible  <bruno@clisp.org>
91935         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
91936         glthread_recursive_lock_* macros.
91937         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
91938         Fix syntax error.
91940 2008-08-18  Bruno Haible  <bruno@clisp.org>
91942         * lib/glthread/thread.c: Avoid forcing a context switch right after
91943         thread creation.
91945 2008-08-17  Bruno Haible  <bruno@clisp.org>
91947         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
91948         * lib/glthread/thread.h: Provide Win32 specific implementation.
91949         * modules/thread (Files): Add lib/glthread/thread.c.
91950         (Depends-on): Add lock.
91951         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
91953 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91955         New module 'yield'.
91956         * modules/yield: New file.
91957         * lib/glthread/yield.h: New file.
91958         * m4/yield.m4: New file.
91959         * MODULES.html.sh (Multithreading): Add yield.
91961 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91963         New module 'thread'.
91964         * modules/thread: New file.
91965         * lib/glthread/thread.h: New file.
91966         * m4/thread.m4: New file.
91967         * MODULES.html.sh (Multithreading): Add thread.
91969 2008-08-17  Bruno Haible  <bruno@clisp.org>
91971         * lib/glthread/lock.h: Include <stdlib.h> always.
91972         * lib/glthread/tls.h: Likewise.
91973         * lib/glthread/cond.h: Likewise.
91975 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91977         New module 'cond'.
91978         * modules/cond: New file.
91979         * lib/glthread/cond.h: New file.
91980         * lib/glthread/cond.c: New file.
91981         * m4/cond.m4: New file.
91982         * MODULES.html.sh (Multithreading): Add cond.
91984 2008-08-16  Eric Blake  <ebb9@byu.net>
91986         c-stack: fix regression on Irix 5.3 from 2008-06-21
91987         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
91988         sa_sigaction...
91989         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
91990         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
91991         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
91992         * modules/signal (Makefile.am): Use the value.
91993         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
91994         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
91995         * doc/posix-headers/signal.texi (signal.h): Document this
91996         portability issue.
91997         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
91998         Reported by Tom G. Christensen.
92000 2008-08-17  Bruno Haible  <bruno@clisp.org>
92002         New module 'threadlib'.
92003         * modules/threadlib: New file.
92004         * lib/glthread/threadlib.c: New file, extracted from
92005         lib/glthread/lock.c.
92006         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
92007         functions.
92008         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
92009         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
92010         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
92011         macros.
92012         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
92013         (gl_DISABLE_THREADS): Remove macro.
92014         * modules/lock (Files): Remove build-aux/config.rpath.
92015         (Depends-on): Remove havelib. Add threadlib.
92016         (configure.ac-early): Remove section.
92017         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
92018         * modules/tls (Depends-on): Remove lock. Add threadlib.
92019         (Link): New section, copied from threadlib.
92020         * MODULES.html.sh (Multithreading): Add threadlib.
92022 2008-08-14  Bruno Haible  <bruno@clisp.org>
92024         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
92025         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
92026         glthread_rwlock_unlock, glthread_rwlock_destroy,
92027         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
92028         glthread_recursive_lock_destroy): Define as macros always.
92029         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
92030         glthread_lock_lock.
92031         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
92032         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
92033         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
92034         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
92035         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
92036         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
92037         (glthread_recursive_lock_lock_func): Renamed from
92038         glthread_recursive_lock_lock.
92039         (glthread_recursive_lock_unlock_func): Renamed from
92040         glthread_recursive_lock_unlock.
92041         (glthread_recursive_lock_destroy_func): Renamed from
92042         glthread_recursive_lock_destroy.
92044 2008-08-14  Bruno Haible  <bruno@clisp.org>
92046         * lib/glthread/lock.h: Renamed from lib/lock.h.
92047         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
92048         * lib/glthread/tls.h: Renamed from lib/tls.h.
92049         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
92050         * lib/fstrcmp.c: Update includes.
92051         * lib/strsignal.c: Update includes.
92052         * modules/lock (Files, Makefile.am): Update.
92053         (Include): Change to "glthread/lock.h".
92054         * modules/tls (Files, Makefile.am): Update.
92055         (Include): Change to "glthread/tls.h".
92056         * tests/test-lock.c: Update includes.
92057         * tests/test-tls.c: Update includes.
92058         * NEWS: Mention the renamed header files.
92060 2008-08-11  Jim Meyering  <meyering@redhat.com>
92062         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
92064 2008-08-11  Eric Blake  <ebb9@byu.net>
92066         test-c-stack: avoid C99-ism
92067         * tests/test-c-stack.c (main): Fix whitespace, move declaration
92068         before statement.
92069         Reported by Alain Guibert.
92071 2008-08-10  Jim Meyering  <meyering@redhat.com>
92073         ensure that return value of uinttostr et al are not ignored
92074         * lib/inttostr.h (__GNUC_PREREQ): Define.
92075         (__attribute_warn_unused_result__): Define.
92076         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
92078 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
92080         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
92081         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
92083 2008-08-07  Jim Meyering  <meyering@redhat.com>
92085         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
92087         * modules/mkstemp (License): Relicense under LGPLv2+.
92088         * modules/tempname (License): Likewise.
92090 2008-08-06  Bruno Haible  <bruno@clisp.org>
92092         * lib/poll.c (poll): Further micro-optimization.
92094 2008-08-06  Jim Meyering  <meyering@redhat.com>
92096         inet_pton.c: use locale-independent tolower
92097         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
92098         (inet_pton6): Use c_tolower rather than tolower.
92099         * modules/inet_pton (Depends-on): Add c-ctype.
92101 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
92103         * lib/poll.c (poll): Avoid division when timeout is 0, cache
92104         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
92106 2008-08-06  Jim Meyering  <meyering@redhat.com>
92108         * modules/inet_pton (License): Relicense under LGPLv2+.
92110 2008-08-03  Bruno Haible  <bruno@clisp.org>
92112         Additional non-aborting API for lock and tls.
92113         * lib/lock.h: Include <errno.h>.
92114         (glthread_lock_init): New macro/function.
92115         (gl_lock_init): Define as wrapper around glthread_lock_init.
92116         (glthread_lock_lock): New macro/function.
92117         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
92118         (glthread_lock_unlock): New macro/function.
92119         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
92120         (glthread_lock_destroy): New macro/function.
92121         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
92122         (glthread_rwlock_init): New macro/function.
92123         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
92124         (glthread_rwlock_rdlock): New macro/function.
92125         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
92126         (glthread_rwlock_wrlock): New macro/function.
92127         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
92128         (glthread_rwlock_unlock): New macro/function.
92129         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
92130         (glthread_rwlock_destroy): New macro/function.
92131         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
92132         (glthread_recursive_lock_init): New macro/function.
92133         (gl_recursive_lock_init): Define as wrapper around
92134         glthread_recursive_lock_init.
92135         (glthread_recursive_lock_lock): New macro/function.
92136         (gl_recursive_lock_lock): Define as wrapper around
92137         glthread_recursive_lock_lock.
92138         (glthread_recursive_lock_unlock): New macro/function.
92139         (gl_recursive_lock_unlock): Define as wrapper around
92140         glthread_recursive_lock_unlock.
92141         (glthread_recursive_lock_destroy): New macro/function.
92142         (gl_recursive_lock_destroy): Define as wrapper around
92143         glthread_recursive_lock_destroy.
92144         (glthread_once): New macro/function.
92145         (gl_once): Define as wrapper around glthread_once.
92146         Update function declarations.
92147         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
92148         glthread_rwlock_init. Return error code.
92149         (glthread_rwlock_rdlock_multithreaded): Renamed from
92150         glthread_rwlock_rdlock. Return error code.
92151         (glthread_rwlock_wrlock_multithreaded): Renamed from
92152         glthread_rwlock_wrlock. Return error code.
92153         (glthread_rwlock_unlock_multithreaded): Renamed from
92154         glthread_rwlock_unlock. Return error code.
92155         (glthread_rwlock_destroy_multithreaded): Renamed from
92156         glthread_rwlock_destroy. Return error code.
92157         (glthread_recursive_lock_init_multithreaded): Renamed from
92158         glthread_recursive_lock_init. Return error code.
92159         (glthread_recursive_lock_lock_multithreaded): Renamed from
92160         glthread_recursive_lock_lock. Return error code.
92161         (glthread_recursive_lock_unlock_multithreaded): Renamed from
92162         glthread_recursive_lock_unlock. Return error code.
92163         (glthread_recursive_lock_destroy_multithreaded): Renamed from
92164         glthread_recursive_lock_destroy. Return error code.
92165         (glthread_once_call): Make static.
92166         (glthread_once_multithreaded): Renamed from glthread_once.
92167         * lib/tls.h: Include <errno.h>.
92168         (glthread_tls_key_init): New macro/function.
92169         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
92170         (glthread_tls_set): New macro/function.
92171         (gl_tls_set): Define as wrapper around glthread_tls_set.
92172         (glthread_tls_key_destroy): New macro/function.
92173         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
92174         Update function declarations.
92175         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
92176         glthread_tls_get.
92177         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
92179 2008-08-04  Eric Blake  <ebb9@byu.net>
92181         gnumakefile: use space, not TAB, outside of targets
92182         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
92184 2008-08-02  Jim Meyering  <meyering@redhat.com>
92186         getdate.y: avoid locale-dependent date parsing failure
92187         In Turkish locales, getdate would fail to recognize keywords
92188         containing a lowercase "i".  The solution is not to rely on
92189         locale-sensitive case-conversion.
92190         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
92191         (lookup_word): Use c_toupper in place of toupper.
92192         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
92193         Reported by Vefa Bicakci <bicave@superonline.com> in
92194         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
92195         * modules/getdate (Depends-on): Add c-ctype.
92197 2008-08-02  Bruno Haible  <bruno@clisp.org>
92199         * gnulib-tool (func_import): When updating or creating a .gitignore
92200         file, prepend each added line with a slash, and ignore leading slashes
92201         from the existing lines.
92202         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
92204 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92206         Portability fix for GNU make 3.79.1.
92207         * top/GNUmakefile: Avoid 'else COND', which older GNU make
92208         versions do not understand.
92210 2008-08-01  Bruno Haible  <bruno@clisp.org>
92212         Work around bug of HP-UX 10.20 cc with -0.0 literal.
92213         * tests/test-isnanf.h (zero): New variable.
92214         (main): Avoid literal -0.0f.
92215         * tests/test-isnand.h (zero): New variable.
92216         (main): Avoid literal -0.0.
92217         * tests/test-isnanl.h (zero): New variable.
92218         (main): Avoid literal -0.0L.
92219         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
92220         (test_float, test_double, test_long_double): Avoid literals -0.0f,
92221         -0.0, -0.0L.
92222         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
92223         (test_signbitd): Avoid literal -0.0.
92224         (test_signbitl): Avoid literal -0.0L.
92225         * tests/test-ceilf1.c (zero): New variable.
92226         (main): Avoid literal -0.0f.
92227         * tests/test-ceill.c (zero): New variable.
92228         (main): Avoid literal -0.0L.
92229         * tests/test-floorf1.c (zero): New variable.
92230         (main): Avoid literal -0.0f.
92231         * tests/test-floorl.c (zero): New variable.
92232         (main): Avoid literal -0.0L.
92233         * tests/test-roundf1.c (zero): New variable.
92234         (main): Avoid literal -0.0f.
92235         * tests/test-round1.c (zero): New variable.
92236         (main): Avoid literal -0.0.
92237         * tests/test-roundl.c (zero): New variable.
92238         (main): Avoid literal -0.0L.
92239         * tests/test-truncf1.c (zero): New variable.
92240         (main): Avoid literal -0.0f.
92241         * tests/test-trunc1.c (zero): New variable.
92242         (main): Avoid literal -0.0.
92243         * tests/test-truncl.c (zero): New variable.
92244         (main): Avoid literal -0.0L.
92245         * tests/test-frexp.c (zero): New variable.
92246         (main): Avoid literal -0.0.
92247         * tests/test-frexpl.c (zero): New variable.
92248         (main): Avoid literal -0.0L.
92249         * tests/test-ldexpl.c (zero): New variable.
92250         (main): Avoid literal -0.0L.
92251         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
92252         (zerod, zerol): New variables.
92253         (test_function): Avoid literals -0.0, -0.0L.
92254         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
92255         (zerod, zerol): New variables.
92256         (test_function): Avoid literals -0.0, -0.0L.
92257         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
92258         (zerod, zerol): New variables.
92259         (test_function): Avoid literals -0.0, -0.0L.
92260         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
92261         (zerod, zerol): New variables.
92262         (test_function): Avoid literals -0.0, -0.0L.
92263         * tests/test-strtod.c (zero): New variable.
92264         (main): Avoid literal -0.0.
92265         Reported by Jonathan C. Patschke <jp@centtech.com>.
92267 2008-07-31  Jim Meyering  <meyering@redhat.com>
92269         sha256.h: correct definition of SHA224_DIGEST_SIZE
92270         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
92271         Reported by Paulie Pena IV <paulie4@gmail.com>.
92272         Define as 224 / 8, rather than as a literal.
92273         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
92274         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
92275         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
92277 2008-07-31  Bruno Haible  <bruno@clisp.org>
92279         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
92280         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
92281         Reported by Jonathan Patschke <jp@centtech.com>.
92283 2008-07-31  Bruno Haible  <bruno@clisp.org>
92285         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
92286         Reported by Paolo Bonzini <bonzini@gnu.org>.
92288 2008-07-30  Eric Blake  <ebb9@byu.net>
92290         test-strtod: allow compilation without -lm
92291         * tests/test-strtod.c (main): Avoid link dependence on fabs.
92292         Reported by Dennis Clarke <blastwave@gmail.com>.
92294 2008-07-28  Jim Meyering  <meyering@redhat.com>
92296         bootstrap: work also when there are no .po files in po/
92297         * build-aux/bootstrap (update_po_files): Complete the change
92298         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
92300 2008-07-27  Jim Meyering  <meyering@redhat.com>
92302         * users.txt: Add zile.
92304 2008-07-26  Ben Pfaff  <blp@gnu.org>
92306         Add missing dependencies on new m4/exponent[fdl].m4 files.
92307         * modules/isnanf-nolibm: Add m4/exponentf.m4.
92308         * modules/isnand-nolibm: Add m4/exponentd.m4.
92309         * modules/isnanl-nolibm: Add m4/exponentl.m4.
92310         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
92311         m4/isnan[fdl].m4, because the macros actually used moved.
92312         Reported by Jim Meyering.
92314 2008-07-14  Ben Pfaff  <blp@gnu.org>
92316         Add isinf module.
92317         * lib/isinf.c: New file.
92318         * lib/math.in.h: Define isinf macro if we have decided to replace
92319         it.
92320         * m4/isinf.m4: New file.
92321         * m4/math_h.m4: Initialize and substitute variables for isinf
92322         module.
92323         * modules/isinf: New file.
92324         * modules/isinf-tests: New file.
92325         * modules/math: Add substitutions for new module.
92326         * tests/test-isinf.c: New file.
92327         * doc/posix-functions/isinf.texi: Mention new module.
92328         * MODULES.html.sh: Mention new module.
92330 2008-07-14  Ben Pfaff  <blp@gnu.org>
92332         Factor out some macros for use by additional modules.
92333         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
92334         exponentf.m4.
92335         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
92336         exponentd.m4.
92337         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
92338         file exponentl.m4.
92339         * m4/exponentf.m4: New file.
92340         * m4/exponentd.m4: New file.
92341         * m4/exponentl.m4: New file.
92342         * modules/isnanf: Use new file m4/exponentf.m4.
92343         * modules/isnand: Use new file m4/exponentd.m4.
92344         * modules/isnanl: Use new file m4/exponentl.m4.
92346 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
92348         mktime.c: normalize tp->tm_isdst value to -1/0/1.
92349         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
92350         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
92351         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
92353         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
92354         readlink on platforms without PATH_MAX.
92356 2008-07-21  Eric Blake  <ebb9@byu.net>
92358         Warn, not fail, on stale version.
92359         * top/GNUmakefile (_curr-ver): Tone down previous patch.
92361         Don't allow installation with stale devel version number.
92362         * top/GNUmakefile (_is-install-target): New macro.
92363         (_curr-ver): Forbid installation with stale version number.
92365 2008-07-20  Bruno Haible  <bruno@clisp.org>
92367         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
92368         TESTS_ENVIRONMENT.
92369         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
92371 2008-07-20  Bruno Haible  <bruno@clisp.org>
92373         * lib/c-stack.h (c_stack_action): Add documentation.
92374         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
92376 2008-07-20  Bruno Haible  <bruno@clisp.org>
92378         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
92379         * modules/readlink (License): Likewise.
92381 2008-07-17  Eric Blake  <ebb9@byu.net>
92383         * modules/c-stack (Link): Fix typo.
92385         Make c-stack use libsigsegv, when available.
92386         * modules/c-stack (Depends-on): Add libsigsegv.
92387         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
92388         needed.
92389         * lib/c-stack.c (SIGSTKSZ): Define fallback.
92390         (segv_handler, overflow_handler, c_stack_action)
92391         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
92392         implementation when libsigsegv is available, but only when using
92393         the library is necessary.
92394         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
92395         comment, explaining why XSI check fails on Linux.
92396         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
92397         * tests/test-c-stack2.sh: Tweak skip message.
92398         * NEWS: Document new link-time requirements.
92400 2008-07-16  Eric Blake  <ebb9@byu.net>
92402         c-stack: Expose false positives when not using libsigsegv.
92403         * modules/c-stack-tests (Files): Expand test.
92404         * tests/test-c-stack.c (main): Add means to conditionally trigger
92405         non-overflow SIGSEGV.
92406         * tests/test-c-stack2.sh: New file.
92408 2008-07-14  Bruno Haible  <bruno@clisp.org>
92410         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
92411         Reported by Eric Blake.
92413 2008-07-14  Sam Steingold  <sds@gnu.org>
92414             Bruno Haible  <bruno@clisp.org>
92416         New module libsigsegv.
92417         * modules/libsigsegv: New file.
92418         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
92419         modifications.
92420         * MODULES.html.sh (Signal handling): New section.
92422 2008-07-14  Bruno Haible  <bruno@clisp.org>
92424         * modules/unictype/ctype-* (Description): Add the word "function".
92425         Improves the resulting doc in MODULES.html.
92427 2008-07-12  Ben Pfaff  <blp@gnu.org>
92429         Add longlong module.
92430         * modules/longlong: New file.
92432 2008-07-12  Bruno Haible  <bruno@clisp.org>
92434         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
92435         to empty.
92437 2008-07-10  Ben Pfaff  <blp@gnu.org>
92439         Add isnan module.
92440         * doc/posix-functions/isnan.texi: Mention new module.
92441         * lib/math.in.h: Define isnan macro if we have decided to replace
92442         it.
92443         * m4/isnan.m4: New file.
92444         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
92445         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
92446         also.
92447         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
92448         redundancy.
92449         * m4/math_h.m4: Initialize and substitute variables for isnan
92450         module.
92451         * modules/isnan: New file.
92452         * modules/isnan-tests: New file.
92453         * modules/math: Add substitutions for new module.
92454         * tests/test-isnan.c: New file.
92455         * MODULES.html.sh: Mention new module.
92457 2008-07-10  Ben Pfaff  <blp@gnu.org>
92459         Add isnanf module.
92460         * lib/isnanf.m4: New file.
92461         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
92462         (gl_HAVE_ISNANF_IN_LIBM): New macro.
92463         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
92464         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
92465         * modules/isnanf: New file.
92466         * modules/isnanf-tests: New file.
92467         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
92468         files.
92469         * tests/test-isnanf-nolibm.c: factored most of its contents into
92470         new file tests/test-isnanf.h.
92471         * tests/test-isnanf.h: New file.
92472         * tests/test-isnanf.c: New file.
92473         * MODULES.html.sh: Mention new module.
92474         * doc/glibc-functions/isnanf.texi: Mention new module.
92476 2008-07-10  Ben Pfaff  <blp@gnu.org>
92478         Add isnand module.
92479         * lib/isnand.h: New file.
92480         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
92481         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
92482         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
92483         functionality also.
92484         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
92485         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
92486         (gl_HAVE_ISNAND_IN_LIBM): New macro.
92487         * modules/isnand: New file.
92488         * modules/isnand-tests: New file.
92489         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
92490         files.
92491         * tests/test-isnand-nolibm.c: factored most of its contents into
92492         new file tests/test-isnand.h.
92493         * tests/test-isnand.h: New file.
92494         * tests/test-isnand.c: New file.
92495         * MODULES.html.sh: Mention new module.
92497 2008-07-10  Ben Pfaff  <blp@gnu.org>
92499         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
92500         * lib/isnand.h: Rename lib/isnand-nolibm.h.
92501         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
92502         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
92503         * modules/isnanf-nolibm: Update references to renamed files.
92504         * modules/isnand-nolibm: Likewise.
92505         * modules/isnanf-nolibm-tests: Likewise.
92506         * modules/isnand-nolibm-tests: Likewise.
92507         * lib/frexp.c: Likewise.
92508         * lib/isfinite.c: Likewise.
92509         * lib/signbitd.c: Likewise.
92510         * lib/signbitf.c: Likewise.
92511         * lib/vasnprintf.c: Likewise.
92512         * tests/test-ceilf1.c: Likewise.
92513         * tests/test-ceilf2.c: Likewise.
92514         * tests/test-floorf1.c: Likewise.
92515         * tests/test-floorf2.c: Likewise.
92516         * tests/test-frexp.c: Likewise.
92517         * tests/test-round1.c: Likewise.
92518         * tests/test-round2.c: Likewise.
92519         * tests/test-roundf1.c: Likewise.
92520         * tests/test-strtod.c: Likewise.
92521         * tests/test-trunc1.c: Likewise.
92522         * tests/test-trunc2.c: Likewise.
92523         * tests/test-truncf1.c: Likewise.
92524         * tests/test-truncf2.c: Likewise.
92525         * NEWS: Mention the renamed header files.
92527 2008-07-11  Jim Meyering  <meyering@redhat.com>
92529         vc-list-files: make the last-resort awk code more portable
92530         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
92531         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
92532         does not support it.
92534 2008-07-10  Eric Blake  <ebb9@byu.net>
92536         Work with tar's bootstrap.
92537         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
92538         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
92539         an m4 comment.
92541 2008-07-09  Jim Meyering  <meyering@redhat.com>
92543         posix-shell.m4: fix typo that made this test malfunction
92544         * m4/posix-shell.m4: Remove capitalization in variable name.
92546 2008-07-08  Bruno Haible  <bruno@clisp.org>
92548         * m4/onceonly.m4: Update comments.
92549         Reported by Ben Pfaff <blp@cs.stanford.edu>.
92551 2008-07-04  Jim Meyering  <meyering@redhat.com>
92553         * users.txt: Add vc-dwim.
92554         (bison, coreutils): Use the gitweb URL.
92556 2008-07-03  Jim Meyering  <meyering@redhat.com>
92558         * users.txt: Add libffcall.  From Sam Steingold.
92560 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
92562         getdate.y: do not ignore TZ with relative day, month or year offset
92563         * lib/getdate.y (get_date): Move the tz-handling block to follow the
92564         relative-date-handling, since otherwise, the latter would clobber the
92565         sole output (an updated Start value) of the tz-handling block.
92566         * tests/test-getdate.c: Tests for the fix
92568 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92570         Recognize 'foo_LIBRARIES += libgnu.a'.
92571         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
92572         makefile snippet has already specified an installation location,
92573         also using '+='.
92575 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
92577         getdate.y: factor out common actions
92578         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
92579         Use them in place of open-coded actions.
92581 2008-07-01  Simon Josefsson  <simon@josefsson.org>
92583         Add self-test for getdate module.
92584         * modules/getdate-tests: New file.
92585         * tests/test-getdate.c: New file.
92587 2008-06-29  Bruno Haible  <bruno@clisp.org>
92589         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
92590         .gitignore.
92591         Reported by Sylvain Beucler <beuc@beuc.net>.
92593 2008-06-29  Bruno Haible  <bruno@clisp.org>
92595         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
92596         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
92598 2008-06-29  Bruno Haible  <bruno@clisp.org>
92600         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
92601         EXTRA_DIST.
92602         Reported by Sylvain Beucler <beuc@beuc.net>.
92604 2008-06-26  Jim Meyering  <meyering@redhat.com>
92606         make several modules depend on the "open" module
92607         This provides slightly increased consistency when opening-for-write
92608         the name of a non-directory spelled with a trailing slash.
92609         * modules/chdir-safer: Likewise.
92610         * modules/chown: Likewise.
92611         * modules/clean-temp: Likewise.
92612         * modules/copy-file: Likewise.
92613         * modules/fchdir: Likewise.
92614         * modules/fcntl-safer: Likewise.
92615         * modules/pipe: Likewise.
92616         * modules/utime: Likewise.
92617         Prompted by Eric Blake and Bruno Haible.
92619 2008-06-24  Andreas Schwab  <schwab@suse.de>
92621         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
92622         literals can be used as initializers for global variables.
92624 2008-06-23  Eric Blake  <ebb9@byu.net>
92626         Make gnulib-cache.m4 easier to diff.
92627         * gnulib-tool (func_import): Allow newlines when reading cached
92628         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
92630 2008-06-23  Bruno Haible  <bruno@clisp.org>
92632         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
92633         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
92634         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
92635         m4/signalblocking.m4.
92636         (gl_PREREQ_SIGACTION): Don't invoke it.
92637         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
92638         gl_PREREQ_SIG_HANDLER_H.
92639         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
92640         Don't check for sigaction here.
92642 2008-06-23  Bruno Haible  <bruno@clisp.org>
92644         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
92645         (install_handlers): Don't set the SA_RESETHAND flag.
92647 2008-06-23  Bruno Haible  <bruno@clisp.org>
92649         * m4/sigaction.m4: Comment fixes.
92650         * lib/signal.in.h: Likewise.
92652 2008-06-23  Eric Blake  <ebb9@byu.net>
92654         Fix typo.
92655         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
92657         Avoid SA_ namespace.
92658         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
92659         Reported by Ralf Wildenhues.
92661         Avoid test failure due to SA_RESTORER.
92662         * tests/test-sigaction.c (SA_MASK): New macro.
92663         (main): Avoid failing due to extension flags being set.
92664         Reported by Jim Meyering.
92666         Revert use of sig-handler.h in sigprocmask.c.
92667         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
92668         it requires the existence of struct sigaction.
92669         * lib/sigprocmask.c (handler_t): Restore typedef.
92670         (rpl_signal, old_handlers): Use local type.
92672 2008-06-22  Bruno Haible  <bruno@clisp.org>
92674         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
92675         conditionally.
92676         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
92678 2008-06-22  Bruno Haible  <bruno@clisp.org>
92680         * doc/posix-functions/siginterrupt.texi: Move note.
92682         * lib/signal.in.h (SA_RESTART): New macro.
92683         * lib/sigaction.c: Update comment.
92685         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
92687         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
92688         (gl_PREREQ_SIGPROCMASK): Invoke it.
92689         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
92691         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
92693         * lib/sigprocmask.c: Update a comment.
92695 2008-06-21  Eric Blake  <ebb9@byu.net>
92697         Use sigaction module rather than signal().
92698         * modules/c-stack (Depends-on): Add sigaction.
92699         * modules/fatal-signal (Depends-on): Likewise.
92700         * modules/nanosleep (Depends-on): Likewise.
92701         * modules/sigprocmask (Files): Add sig-handler.h.
92702         * modules/sigaction (Files): Likewise.
92703         * lib/sig-handler.h (get_handler): New file, suggested by Paul
92704         Eggert.
92705         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
92706         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
92707         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
92708         (init_fatal_signals): Likewise.
92709         * lib/nanosleep.c (rpl_nanosleep): Likewise.
92710         (siginterrupt): Delete fallback.
92711         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
92712         instead.
92713         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
92714         siginterrupt.
92716         New module sigaction, for mingw.
92717         * modules/sigaction: New module...
92718         * modules/sigaction-tests: ...and its test.
92719         * m4/sigaction.m4: New file.
92720         * lib/sigaction.c: Likewise.
92721         * tests/test-sigaction.c: Likewise.
92722         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
92723         * modules/signal (Makefile.am): Likewise.
92724         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
92725         needed.
92726         * doc/posix-headers/signal.texi (signal.h): Mention provided
92727         types.
92728         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
92729         that sigaction is preferable.
92730         * doc/posix-functions/sigaction.texi (sigaction): Mention new
92731         module.
92732         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
92733         sigaction.
92735         Improve robustness of sigprocmask by overriding signal.
92736         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
92737         is in use.
92738         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
92739         (SIGKILL, SIGSTOP): Provide fallbacks.
92740         (rpl_signal): Implement.
92741         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
92742         signal can be called inside handlers.
92744         Fix nanosleep module on mingw.
92745         * modules/nanosleep (Depends-on): Add sys_select.
92746         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
92748         Fix licensing of sigprocmask.
92749         * modules/raise (License): Relicense as LGPL.
92751 2008-06-21  Bruno Haible  <bruno@clisp.org>
92753         * lib/propername.c (proper_name_utf8): Don't use the transliterated
92754         result if it contains question marks.
92755         Reported by Michael Geng <linux@michaelgeng.de>.
92757 2008-06-19  Bruno Haible  <bruno@clisp.org>
92759         Fix CVS-ism.
92760         * doc/gnulib.texi: Include updated-stamp.texi.
92761         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
92762         (updated-stamp.texi): New rule.
92763         (gnulib.info): Depend on it.
92764         * doc/.gitignore: Add updated-stamp.texi.
92765         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
92767 2008-06-19  Bruno Haible  <bruno@clisp.org>
92769         * doc/Makefile (gnulib.info): Update and simplify dependencies.
92770         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
92772 2008-06-19  Eric Blake  <ebb9@byu.net>
92774         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
92775         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
92776         Reported by Stepan Kasal.
92778 2008-06-18  Bruno Haible  <bruno@clisp.org>
92780         * lib/fatal-signal.c (init_fatal_signals): Add comment.
92781         Reported by Eric Blake.
92783 2008-06-18  Eric Blake  <ebb9@byu.net>
92785         Work around cygwin 1.5.25 strsignal bug.
92786         * tests/test-strsignal.c: Allow for const char *.
92787         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
92789 2008-06-18  Simon Josefsson  <simon@josefsson.org>
92791         * users.txt: Update URL to article and add author/date
92792         information.
92794 2008-06-17  Bruno Haible  <bruno@clisp.org>
92796         New macro gl_DISABLE_THREADS.
92797         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
92798         if the user did not pass --enable-threads or --disable-threads option.
92799         (gl_DISABLE_THREADS): New macro.
92800         Reported by Eric Blake <ebb9@byu.net>.
92802 2008-06-17  Bruno Haible  <bruno@clisp.org>
92804         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
92805         when the macro ignores it.
92806         Based on a patch by Eric Blake <ebb9@byu.net>.
92808 2008-06-17  Bruno Haible  <bruno@clisp.org>
92810         * modules/tls (License): Change to LGPLv2+.
92811         Reported by Eric Blake.
92813 2008-06-17  Eric Blake  <ebb9@byu.net>
92815         Simplify c-stack prerequisites.
92816         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
92817         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
92818         no longer requires <ucontext.h> to exist.  Optimize setrlimit
92819         check.
92820         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
92821         <sys/resource.h>.
92823         Move c-stack test into testsuite.
92824         * modules/c-stack-tests: New file.
92825         * lib/c-stack.c [DEBUG]: Move test program...
92826         * tests/test-c-stack.c: ...into this new file.  Skip rather than
92827         fail test if sigaltstack is lacking.
92828         * tests/test-c-stack.sh: New driver file.
92830 2008-06-16  Eric Blake  <ebb9@byu.net>
92832         Use raise module consistently.
92833         * modules/fatal-signal (Depends-on): Add raise.
92834         * modules/sigprocmask (Depends-on): Likewise.
92835         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
92836         * lib/sigprocmask.c (sigprocmask): Likewise.
92837         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
92838         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
92840         Fix compliance bug in sigpending.
92841         * lib/sigprocmask.c (sigpending): Return pending array via
92842         parameter, not return value.
92844 2008-06-14  Eric Blake  <ebb9@byu.net>
92846         Improve obstack-printf test code.
92847         * tests/test-obstack-printf.c (test_function): Fix comment, and
92848         simplify usage of obstack_* in macros.  Add a test for coverage.
92849         Reported by Bruno Haible.
92851 2008-06-14  Bruno Haible  <bruno@clisp.org>
92853         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
92854         array size as a constant, not as a const variable.
92855         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
92856         AC_USE_SYSTEM_EXTENSIONS.
92857         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
92858         Test whether the obstack_printf function actually exists.
92859         * modules/obstack-printf (Depends-on): Add extensions.
92860         (Include): Remove obstack.h.
92861         * modules/obstack-printf-posix (Depends-on): Add extensions.
92862         (Include): Remove obstack.h.
92864 2008-06-13  Eric Blake  <ebb9@byu.net>
92866         Add obstack-printf and obstack-printf-posix modules.
92867         * modules/obstack-printf: New file.
92868         * modules/obstack-printf-posix: Likewise.
92869         * MODULES.html.sh (Misc): Mention them.
92870         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
92871         Likewise.
92872         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
92873         Likewise.
92874         * modules/stdio (Makefile.am): Accomodate new modules.
92875         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
92876         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
92877         Declare.
92878         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
92879         functions.
92880         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
92881         (gl_REPLACE_OBSTACK_PRINTF): New macros
92882         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
92883         * tests/test-obstack-printf.c: New file.
92884         * modules/obstack-printf-tests: Likewise.
92885         * modules/obstack-printf-posix-tests: Likewise.
92887 2008-06-11  Bruno Haible  <bruno@clisp.org>
92889         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
92890         * lib/open.c: Include errno.h.
92891         (open): Fail when attempting to write to a file that has a trailing
92892         slash.
92893         * tests/test-open.c (main): Test against trailing slash bug.
92894         * doc/posix-functions/open.texi: Mention the trailing slash bug.
92896 2008-06-10  Bruno Haible  <bruno@clisp.org>
92898         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
92899         for $? to work inside the trap command, with various /bin/sh-s.
92900         * tests/test-vc-list-files-cvs.sh: Likewise.
92902 2008-06-10  Bruno Haible  <bruno@clisp.org>
92904         * lib/acl-internal.h: Don't include gettext.h here.
92905         * lib/set-mode-acl.c: Include gettext.h here.
92906         * lib/copy-acl.c: Likewise.
92908 2008-06-10  Bruno Haible  <bruno@clisp.org>
92910         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
92911         * lib/wait-process.c (wait_subprocess): Likewise.
92912         * lib/execute.h (execute): Add termsigp argument.
92913         * lib/execute.c (execute): Likewise.
92914         * lib/csharpcomp.c (compile_csharp_using_pnet,
92915         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
92916         * lib/csharpexec.c (execute_csharp_using_pnet,
92917         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
92918         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
92919         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
92920         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
92921         is_jikes_present): Update.
92922         * lib/javaexec.c (execute_java_class): Update.
92923         * lib/javaversion.c (execute_and_read_line): Update.
92924         * NEWS: Document the changes.
92925         Reported by Eric Blake.
92927 2008-06-10  Eric Blake  <ebb9@byu.net>
92929         Add missing include.
92930         * tests/test-strstr.c (includes): Add <signal.h>.
92931         * tests/test-strcasestr.c (includes): Likewise.
92932         * tests/test-memmem.c (includes): Likewise.
92934 2008-06-10  Bruno Haible  <bruno@clisp.org>
92936         * lib/wait-process.c (wait_subprocess): Add an assertion.
92938 2008-06-10  Bruno Haible  <bruno@clisp.org>
92940         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
92942 2008-06-10  Bruno Haible  <bruno@clisp.org>
92944         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
92945         using alarm().
92946         * tests/test-strcasestr.c (main): Likewise.
92947         * tests/test-strstr.c (main): Likewise.
92949 2008-06-09  Bruno Haible  <bruno@clisp.org>
92951         Work around the Solaris 10 ACE ACLs ABI change.
92952         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
92953         declare if ACL_NO_TRIVIAL is present.
92954         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
92955         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
92956         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
92957         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
92958         define if ACL_NO_TRIVIAL is present.
92959         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
92960         and use the current ABI.
92961         (file_has_acl): Use same #if condition as elsewhere.
92962         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
92963         in use, and use the current ABI.
92964         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
92965         Reported by Jim Meyering.
92967 2008-06-09  Eric Blake  <ebb9@byu.net>
92969         Work around environments that (stupidly) ignore SIGALRM.
92970         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
92971         before using alarm().
92972         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
92973         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
92974         Reported by Ian Beckwith <ianb@erislabs.net>.
92976         Produce autobuild blurb earlier in log.
92977         * modules/autobuild (configure.ac-early): Move AB_INIT here.
92979 2008-06-09  Jim Meyering  <meyering@redhat.com>
92980         and Ondřej Vašík  <ovasik@redhat.com>
92982         utimens.c: correct kernel bug work-around
92983         Ondřej Vašík found that the invalid return value of 280 indicates
92984         failure, not success, and the kernel bug we're trying to work
92985         around affects not just the utimensat call, but also the fallback
92986         futimens call.
92987         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
92988         not success.
92989         [HAVE_FUTIMENS]: Use the same work-around, here.
92991 2008-06-09  Jim Meyering  <meyering@redhat.com>
92993         add more guards around definition of ACE_-related code
92994         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
92995         ALLOW and ACE_OWNER are also defined.
92997 2008-06-08  Bruno Haible  <bruno@clisp.org>
92999         * lib/acl-internal.h: Add me as co-author.
93000         * lib/file-has-acl.c: Likewise.
93001         * lib/set-mode-acl.c: Likewise.
93002         * lib/copy-acl.c: Likewise.
93004 2008-06-08  Bruno Haible  <bruno@clisp.org>
93006         Add support for AIX ACLs.
93007         * lib/acl-internal.h (acl_nontrivial): New declaration.
93008         * lib/file-has-acl.c (acl_nontrivial): New function.
93009         (file_has_acl): Add implementation using AIX 4 ACL API.
93010         * lib/set-mode-acl.c (qset_acl): Likewise.
93011         * lib/copy-acl.c (qcopy_acl): Likewise.
93013 2008-06-08  Bruno Haible  <bruno@clisp.org>
93015         Add support for HP-UX ACLs.
93016         * lib/acl-internal.h (acl_nontrivial): New declaration.
93017         * lib/file-has-acl.c (acl_nontrivial): New function.
93018         (file_has_acl): Add implementation using HP-UX 11 ACL API.
93019         * lib/set-mode-acl.c (qset_acl): Likewise.
93020         * lib/copy-acl.c (qcopy_acl): Likewise.
93022 2008-06-08  Bruno Haible  <bruno@clisp.org>
93024         Add support for Cygwin ACLs.
93025         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
93026         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
93027         the chmod_or_fchmod call.
93028         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
93030 2008-06-08  Bruno Haible  <bruno@clisp.org>
93032         Fix bug with setuid modes in Solaris 10+ code.
93033         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
93034         succeeded, when the mode contains some special bits.
93036 2008-06-08  Bruno Haible  <bruno@clisp.org>
93038         Add support for Solaris 7..10 ACLs.
93039         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
93040         declarations.
93041         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
93042         functions.
93043         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
93044         * lib/set-mode-acl.c (qset_acl): Likewise.
93045         * lib/copy-acl.c (qcopy_acl): Likewise.
93047 2008-06-08  Bruno Haible  <bruno@clisp.org>
93049         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
93050         declaration.
93051         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
93052         (acl_access_nontrivial): Remove MacOS X case.
93053         (file_has_acl): Use acl_extended_nontrivial.
93054         * lib/copy-acl.c (qcopy_acl): Likewise.
93056 2008-06-08  Bruno Haible  <bruno@clisp.org>
93058         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
93060 2008-06-08  Jim Meyering  <meyering@redhat.com>
93062         * modules/acl (Maintainer): Add Bruno Haible.
93064 2008-06-07  Bruno Haible  <bruno@clisp.org>
93066         Improve support for Tru64 ACLs.
93067         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
93068         ACL on OSF/1.
93070 2008-06-07  Bruno Haible  <bruno@clisp.org>
93072         Add support for MacOS X ACLs.
93073         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
93074         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
93075         * lib/set-mode-acl.c (qset_acl): Likewise.
93076         * lib/copy-acl.c (qcopy_acl): Likewise.
93078 2008-06-07  Bruno Haible  <bruno@clisp.org>
93080         Fix memory leak introduced on 2008-05-22.
93081         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
93082         use.
93084 2008-06-07  Bruno Haible  <bruno@clisp.org>
93086         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
93087         to construct an empty ACL.
93089 2008-06-07  Bruno Haible  <bruno@clisp.org>
93091         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
93092         precisely.
93093         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
93095 2008-06-07  Bruno Haible  <bruno@clisp.org>
93097         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
93098         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
93100 2008-06-07  Bruno Haible  <bruno@clisp.org>
93102         * doc/posix-functions/_setjmp.texi: Explain the use of this function
93103         regardless of POSIX.
93104         * doc/posix-functions/_longjmp.texi: Likewise.
93105         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
93106         SystemV platform in this case.
93108 2008-06-06  Eric Blake  <ebb9@byu.net>
93110         Document abort() bugs.
93111         * doc/posix-functions/abort.texi (abort): Mention anomalies.
93113         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
93114         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
93115         sigsetjmp.
93116         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
93117         siglongjmp, but only as a macro.
93118         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
93119         is obsolete.
93120         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
93122         Tweak documentation to cover cygwin argz bugs.
93123         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
93124         argz bug fix; no code change needed since no cygwin releases
93125         occurred between the last fix and the bug being tested.
93126         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
93127         module and recently fixed cygwin bugs.
93128         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
93129         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
93130         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
93131         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
93132         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
93133         Likewise.
93134         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
93135         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
93136         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
93137         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
93138         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
93139         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
93140         Likewise.
93142         Avoid gcc warning on cygwin.
93143         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
93144         !ACL_NO_TRIVIAL]: Avoid unused variable.
93146 2008-06-05  Eric Blake  <ebb9@byu.net>
93148         Be tolerant of UNKNOWN version in gnulib-tool test dir.
93149         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
93150         git-version-gen fails to come up with a version.
93151         Reported by Simon Josefsson.
93153 2008-06-05  Jim Meyering  <meyering@redhat.com>
93154             Paul Eggert  <eggert@cs.ucla.edu>
93156         utimens.c: work around a probable Linux kernel bug
93157         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
93158         appears to be a kernel bug that causes utimensat to return 280
93159         instead of 0, indicating success.
93161 2008-06-04  Bruno Haible  <bruno@clisp.org>
93163         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
93164         2008-06-01 commit.
93166 2008-06-04  Bruno Haible  <bruno@clisp.org>
93168         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
93169         * lib/file-has-acl.c (acl_access_nontrivial): New function.
93170         (file_has_acl): Use it. Save errno afterwards.
93171         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
93173 2008-06-03  Bruno Haible  <bruno@clisp.org>
93175         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
93176         draft code. Simplify #ifs.
93177         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
93178         Put Solaris code after POSIX-draft code. Fix comments regarding
93179         Solaris 10, HP-UX. Mention Cygwin.
93180         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
93182 2008-06-03  Eric Blake  <ebb9@byu.net>
93184         Provide fallback for older kernels.
93185         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
93186         Provide runtime fallback if kernel lacks support.
93187         Reported by Mike Frysinger.
93189 2008-06-02  Bruno Haible  <bruno@clisp.org>
93191         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
93192         it exists.
93194 2008-06-02  Bruno Haible  <bruno@clisp.org>
93196         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
93197         * lib/copy-acl.c (qcopy_acl): Update comment.
93199 2008-06-02  Bruno Haible  <bruno@clisp.org>
93201         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
93202         like ACL APIs.
93204 2008-06-02  Bruno Haible  <bruno@clisp.org>
93206         * tests/test-file-has-acl.sh: Use different code for Cygwin.
93207         * tests/test-set-mode-acl.sh: Likewise.
93208         * tests/test-copy-acl.sh: Likewise.
93209         * tests/test-copy-file.sh: Likewise.
93211 2008-06-02  Bruno Haible  <bruno@clisp.org>
93213         * tests/test-file-has-acl.sh: Remove unused code.
93215 2008-06-01  Bruno Haible  <bruno@clisp.org>
93217         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
93218         (copy_acl): Just a wrapper around qcopy_acl that emits the error
93219         messages.
93220         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
93222 2008-06-01  Bruno Haible  <bruno@clisp.org>
93224         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
93225         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
93226         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
93227         APIs.
93228         * modules/acl-tests (configure.ac): Remove tests now contained in
93229         m4/acl.m4.
93231 2008-06-02  Jim Meyering  <meyering@redhat.com>
93233         announce-gen: use a better key-server host name
93234         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
93235         it may be more consistently reliable.  Suggested by Werner Koch
93236         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
93238 2008-06-01  Bruno Haible  <bruno@clisp.org>
93240         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
93241         Reported by Voroskoi Andras <voroskoi@gmail.com>.
93243 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
93245         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
93247 2008-06-01  Bruno Haible  <bruno@clisp.org>
93249         New ACL tests.
93250         * tests/test-file-has-acl.sh: New file.
93251         * tests/test-file-has-acl.c: New file.
93252         * tests/test-set-mode-acl.sh: New file.
93253         * tests/test-set-mode-acl.c: New file.
93254         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
93255         * tests/test-copy-acl.c: New file.
93256         * modules/acl-tests: New file, based on modules/copy-file-tests.
93257         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
93258         (Depends-on): Add acl-tests.
93259         (configure.ac): Remove checks.
93260         (Makefile.am): Don't create test-sameacls program here any more.
93262 2008-06-01  Bruno Haible  <bruno@clisp.org>
93264         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
93265         * tests/test-sameacls.c: Include progname.h.
93266         (main): Invoke set_program_name. Portability fixes for MacOS X,
93267         Solaris, HP-UX.
93269 2008-06-01  Bruno Haible  <bruno@clisp.org>
93271         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
93272         function.
93273         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
93275 2008-06-01  Bruno Haible  <bruno@clisp.org>
93277         * modules/rpmatch (Depends-on): Add strdup.
93279 2008-06-01  Bruno Haible  <bruno@clisp.org>
93281         * lib/pipe.c: Include unistd-safer.h.
93282         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
93283         * modules/pipe (Depends-on): Add unistd-safer.
93285 2008-05-30  Simon Josefsson  <simon@josefsson.org>
93287         * modules/autobuild (configure.ac): Call AB_INIT.
93289 2008-05-30  Simon Josefsson  <simon@josefsson.org>
93291         * tests/test-getaddrinfo.c: Don't print debug messages by default.
93292         Suggested by Bruno Haible <bruno@clisp.org>.
93294 2008-05-30  Simon Josefsson  <simon@josefsson.org>
93296         * tests/test-base64.c: Cast size_t to unsigned long when invoking
93297         printf.  Use %lu instead of %d.  Reported by Bruno Haible
93298         <bruno@clisp.org>.
93300 2008-05-29  Eric Blake  <ebb9@byu.net>
93302         Prefer new POSIX 200x interfaces over futimesat.
93303         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
93304         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
93305         when available.
93306         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
93308 2008-05-28  Bruno Haible  <bruno@clisp.org>
93310         * modules/stpcpy (License): Change to LGPLv2+.
93311         Requested by David Lutterkort <dlutter@redhat.com>.
93313 2008-05-27  Bruno Haible  <bruno@clisp.org>
93315         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
93316         current mingw.
93317         Reported by Jose E. Marchesi <jemarch@gnu.org>.
93319 2008-05-27  Bruno Haible  <bruno@clisp.org>
93321         * modules/iconv_open (Link): New section, from module 'iconv'.
93322         * modules/striconv (Link): Likewise.
93323         * modules/striconveh (Link): Likewise.
93324         * modules/xstriconv (Link): Likewise.
93325         * modules/unicodeio (Link): Likewise.
93326         * modules/propername (Link): Likewise.
93327         Reported by Jim Meyering.
93329 2008-05-26  Jim Meyering  <meyering@redhat.com>
93331         sha256: do not artificially restrict buffer length to be < 2^32
93332         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
93333         uint32_t to size_t.
93334         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
93335         to match.
93337         avoid unaligned access errors, e.g., on sparc
93338         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
93339         direct access through a possibly-unaligned uint64* pointer.
93340         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
93341         direct access through a possibly-unaligned uint32* pointer.
93342         Prompted by this patch from Tom "spot" Callaway:
93343         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
93345         sha512.c: fix typo in comment
93346         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
93348 2008-05-25  Bruno Haible  <bruno@clisp.org>
93350         * lib/set-mode-acl.c: Renamed from lib/acl.c.
93351         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
93352         (Makefile.am): Update lib_SOURCES.
93354 2008-05-25  Bruno Haible  <bruno@clisp.org>
93356         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
93358 2008-05-25  Jim Meyering  <meyering@redhat.com>
93360         useless-if-before-free: freed expr may have white-space differences
93361         * build-aux/useless-if-before-free: Recognize cases in which the
93362         freed expression differs from the tested one in embedded white
93363         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
93364         $1 was used, so we can't make any regexp shy.  Improved tests now
93365         detect this.
93367         useless-if-before-free: accept white space in the expression.
93368         * build-aux/useless-if-before-free: For now, any white space
93369         in the expression must be identical in the free argument.
93371         useless-if-before-free: efficiency tweak
93372         * build-aux/useless-if-before-free: Make the expression-matching
93373         regexp "shy".
93374         Make the *outer* regexp shy, not the expr-matching one.
93376         update code-in-comment to accept cast of free arg
93377         * build-aux/useless-if-before-free: Update regexp.
93379 2008-05-25  Bruno Haible  <bruno@clisp.org>
93381         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
93382         * modules/copy-file-tests (Files, Makefile.am): Update.
93383         * tests/test-copy-file.c (func_test_copy): Update.
93385 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
93387         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
93389 2008-05-23  Bruno Haible  <bruno@clisp.org>
93391         Improve support for ACLs on OSF/1.
93392         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
93393         Remove fallback for unknown flavors of ACLs.
93395 2008-05-22  Bruno Haible  <bruno@clisp.org>
93397         Add support for ACLs on OSF/1.
93398         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
93399         replacements.
93400         (acl_free_text): New macro fallback.
93401         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
93402         acl_free.
93403         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
93404         acl_free_text function. Require AC_C_INLINE.
93406 2008-05-22  Bruno Haible  <bruno@clisp.org>
93408         Make copy_acl work on MacOS X 10.5.
93409         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
93410         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
93411         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
93412         If MODE_INSIDE_ACL, don't assume that every system has the same text
93413         representation for ACLs as FreeBSD.
93414         * lib/copy-acl.c (copy_acl): Add support for platforms with
93415         !MODE_INSIDE_ACL.
93416         * lib/file-has-acl.c (file_has_acl): Likewise.
93417         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
93418         FreeBSD, MacOS X, or IRIX, respectively.
93420 2008-05-22  Bruno Haible  <bruno@clisp.org>
93422         * lib/acl.h: Don't include <sys/acl.h>.
93423         (GETACLCNT): Move fallback to lib/acl-internal.h.
93424         * lib/acl-internal.h: Include <sys/acl.h> here.
93425         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
93427 2008-05-22  Bruno Haible  <bruno@clisp.org>
93429         Split off copy_acl function to separate file.
93430         * lib/copy-acl.c: New file, extracted from lib/acl.c.
93431         * lib/acl.c (copy_acl): Moved function to separate file.
93432         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
93433         * modules/acl (Files): Add lib/copy-acl.c.
93434         (Makefiles.am): Augment lib_SOURCES.
93436 2008-05-22  Bruno Haible  <bruno@clisp.org>
93438         * modules/copy-file-tests: New file.
93439         * tests/test-copy-file.sh: New file.
93440         * tests/test-copy-file.c: New file.
93441         * tests/test-copy-file-sameacls.c: New file.
93443 2008-05-22  Eric Blake  <ebb9@byu.net>
93445         Avoid gcc warning.
93446         * tests/test-memcmp.c (main): Pass NULL indirectly.
93448 2008-05-21  Bruno Haible  <bruno@clisp.org>
93450         Add reference doc about ACLs.
93451         * doc/acl-resources.txt: New file.
93452         * doc/acl-cygwin.txt: New file.
93454 2008-05-21  Bruno Haible  <bruno@clisp.org>
93456         Avoid one more warning from gcc.
93457         * lib/vasnprintf.c (IF_LINT): Update comments.
93458         (VASNPRINTF): Use it also for the 'prefix' array initializer.
93460 2008-05-21  Jim Meyering  <meyering@redhat.com>
93462         avoid a warning from gcc
93463         * lib/vasnprintf.c (IF_LINT): Define.
93464         (scale10_round_decimal_long_double):
93465         Use it to avoid a "may be used uninitialized" warning.
93466         (scale10_round_decimal_double): Likewise.
93468 2008-05-21  Simon Josefsson  <simon@josefsson.org>
93470         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
93471         declared.
93473 2008-05-20  Bruno Haible  <bruno@clisp.org>
93475         * tests/test-memcmp.c (main): Test also the sign of the result. Test
93476         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
93478 2008-05-20  Simon Josefsson  <simon@josefsson.org>
93480         * modules/memcmp-tests: New file.
93481         * tests/test-memcmp.c: New file.
93483 2008-05-19  Bruno Haible  <bruno@clisp.org>
93485         * modules/propername (Notice, configure.ac): Put quoted "..." into
93486         --keyword option.
93487         * lib/propername.h: Update comments accordingly.
93488         Reported by Eric Blake.
93490 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
93492         * modules/getpass-gnu (Depends-on): Add fseeko.
93494 2008-05-19  Simon Josefsson  <simon@josefsson.org>
93496         * modules/base64-tests: New file.
93498 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
93500         * lib/base64.c (base64_decode_ctx): If a decode context structure
93501         was passed in use it to ignore newlines.  If a context structure
93502         was _not_ passed in, continue to treat newlines as garbage (this
93503         is the historical behavior).  Formerly base64_decode.
93504         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
93505         takes a decode context structure.
93506         * lib/base64.h (base64_decode): Macro for four-argument calls.
93507         (base64_decode_alloc): Likewise.
93508         * lib/base64.c (base64_decode_ctx): If a decode context structure
93509         was passed in use it to ignore newlines.  If a context structure
93510         was _not_ passed in, continue to treat newlines as garbage (this
93511         is the historical behavior).  Formerly base64_decode.
93512         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
93513         takes a decode context structure.
93514         * lib/base64.h (base64_decode): Macro for four-argument calls.
93515         (base64_decode_alloc): Likewise.
93517 2008-05-19  Jim Meyering  <meyering@redhat.com>
93519         avoid a warning from gcc
93520         * lib/trim.c (IF_LINT): Define.
93521         (trim2): Use it to avoid a "may be used uninitialized" warning.
93523         Fix doc typo.
93524         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
93526 2008-05-19  Bruno Haible  <bruno@clisp.org>
93528         * doc/glibc-functions/getpass.texi: Document limits of other
93529         implementations.
93531 2008-05-19  Simon Josefsson  <simon@josefsson.org>
93532             Bruno Haible <bruno@clisp.org>
93534         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
93536 2008-05-18  Bruno Haible  <bruno@clisp.org>
93538         * modules/propername: New file, from GNU gettext.
93539         * lib/propername.h: New file, from GNU gettext.
93540         * lib/propername.c: New file, from GNU gettext.
93541         * MODULES.html.sh (Internationalization functions): Add propername.
93543 2008-05-16  Jim Meyering  <meyering@redhat.com>
93544             Bruno Haible  <bruno@clisp.org>
93546         Avoid some warnings from "gcc -Wshadow".
93547         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
93549 2008-05-15  Eric Blake  <ebb9@byu.net>
93551         Extend previous patch to cygwin 1.7.0.
93552         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
93553         fast implementation in cygwin >= 1.7.0.
93554         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
93555         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93557 2008-05-15  Bruno Haible  <bruno@clisp.org>
93559         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
93560         implementation in glibc >= 2.9.
93561         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
93562         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93564 2008-05-15  Bruno Haible  <bruno@clisp.org>
93566         * MODULES.html.sh (Internationalization functions): Remove linebreak.
93567         (Unicode string functions): Add unilbrk/*.
93568         Reported by Karl Berry.
93570 2008-05-15  Eric Blake  <ebb9@byu.net>
93572         Fix violation of <stdbool.h> replacement in regex.
93573         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
93574         * lib/regexec.c (re_search_internal): Likewise.
93575         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
93577 2008-05-15  Jim Meyering  <meyering@redhat.com>
93579         avoid distracting test output when git or cvs is not found
93580         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
93581         * tests/test-vc-list-files-git.sh: Likewise.
93583 2008-05-15  Eric Blake  <ebb9@byu.net>
93585         Glibc finally accepted the memmem speedup code, bugzilla #5514.
93586         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
93587         glibc version.
93588         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
93589         * doc/posix-functions/strstr.texi (strstr): Likewise.
93590         * lib/str-two-way.h (MAX): Sychronize with glibc.
93592 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
93594         * lib/regcomp.c (optimize_utf8): Add a note on why we test
93595         opr.ctx_type.
93596         (calc_first): Initialize constraint field.
93597         (duplicate_node_closure): Use it instead of special casing ANCHORS.
93598         Fix grammar.
93599         (duplicate_node): Merge constraint field for all node types.
93600         (calc_eclosure_iter): Look at constraint field for all node types.
93601         * lib/regex_internal.c (create_cd_newstate): Don't look at
93602         opr.ctx_type.
93604 2008-05-14  Bruno Haible  <bruno@clisp.org>
93606         Help GCC to do better code generation.
93607         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
93608         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
93609         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
93610         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
93611         Declare with attribute 'malloc' if supported.
93613 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
93615         use "echo STR|wc -c" rather than unportable "expr length STR"
93616         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
93617         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
93619 2008-05-14  Jim Meyering  <meyering@redhat.com>
93621         use dd ibs=$n count=1 ... rather than less-portable head -c$n
93622         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
93623         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
93624         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
93625         via Collin Lasse.
93627 2008-05-14  Eric Blake  <ebb9@byu.net>
93629         Avoid quadratic growth in gl_LIBSOURCES.
93630         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
93631         Suggested by Bruno Haible.
93633         Test xmemdup0.
93634         * modules/xmemdup0-tests: New file.
93635         * tests/test-xmemdup0.c: Likewise.
93637 2008-05-13  Eric Blake  <ebb9@byu.net>
93639         Split xmemdup0 into its own module.
93640         * modules/xmemdup0: New file.
93641         * lib/xmemdup0.h: Likewise.
93642         * lib/xmemdup0.c: Likewise.
93643         * MODULES.html.sh (Memory management functions): Add xmemdup0.
93644         * lib/xalloc.h (xmemdup0): Remove.
93645         * lib/xmalloc.c (xmemdup0): Likewise.
93647 2008-05-13  Eric Blake  <ebb9@byu.net>
93648             Bruno Haible  <bruno@clisp.org>
93650         Reduce number of forks required during autoconf.
93651         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
93652         and gl_LIBSOURCES_DIR.
93653         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
93654         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
93655         m4_syscmd per file.
93656         <m4_foreach_w>: Move...
93657         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
93659 2008-05-13  Eric Blake  <ebb9@byu.net>
93661         * gnulib-tool: Fix various comment typos.
93663 2008-05-12  Bruno Haible  <bruno@clisp.org>
93665         Tailor the linebreaking algorithm.
93666         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
93668 2008-05-12  Bruno Haible  <bruno@clisp.org>
93670         Update to Unicode 5.0.0.
93671         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
93672         LBP_JV, LBP_JT. Redistribute values.
93673         (unilbrk_table): Change size.
93674         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
93675         Unicode TR#14 rev. 22.
93676         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
93677         LBP_JV, LBP_JT. Redistribute values.
93678         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
93679         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
93680         Update.
93681         * lib/unilbrk/lbrkprop1.h: Regenerated.
93682         * lib/unilbrk/lbrkprop2.h: Regenerated.
93683         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
93684         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
93685         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
93686         Likewise.
93687         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
93688         Likewise.
93689         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
93690         result.
93691         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
93692         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
93693         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
93694         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
93695         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
93696         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
93698 2008-05-11  Bruno Haible  <bruno@clisp.org>
93700         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
93702 2008-05-11  Bruno Haible  <bruno@clisp.org>
93704         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
93705         * modules/unilbrk/gen-lbrk: New file.
93707 2008-05-11  Bruno Haible  <bruno@clisp.org>
93709         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
93710         * m4/sha512.m4 (gl_SHA512): Likewise.
93712 2008-05-11  Jim Meyering  <meyering@redhat.com>
93714         New modules: crypto/sha256, crypto/sha512 (from coreutils)
93715         * modules/crypto/sha256: New file.
93716         * modules/crypto/sha512: Likewise.
93717         * lib/sha256.c: Likewise.
93718         * lib/sha256.h: Likewise.
93719         * lib/sha512.c: Likewise.
93720         * lib/sha512.h: Likewise.
93721         * lib/u64.h: Likewise.
93722         * m4/sha256.m4: Likewise.
93723         * m4/sha512.m4: Likewise.
93724         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
93726 2008-05-10  Bruno Haible  <bruno@clisp.org>
93728         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
93729         (Input/Output <stdio.h>): Add xprintf.
93730         (Signal handling <signal.h>): Add strsignal.
93731         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
93732         (Core language properties): Add func.
93733         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
93734         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
93735         strings.
93736         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
93737         (Input/output): New section.
93738         (File system functions): Add openat-die, stat-macros.
93739         (Networking functions): Add sockets.
93740         (Unicode string functions): Add unictype/*.
93741         (Support for building libraries and executables): Add gperf.
93742         (Support for building documentation): Add agpl-3.0.
93743         (Misc): Add nocrash.
93745 2008-05-10  Bruno Haible  <bruno@clisp.org>
93747         * modules/unictype/gen-ctype: New file.
93749 2008-05-10  Jim Meyering  <meyering@redhat.com>
93751         Make chdir-safer.c more efficient on a system with no symlinks.
93752         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
93753         also if ELOOP is zero.  Suggested by Bruno Haible.
93755         Make chdir-safer.c slightly safer.
93756         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
93757         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
93759         Avoid compile failure on systems without ELOOP (like mingw).
93760         * lib/chdir-safer.c (ELOOP): Define if not already defined.
93761         Reported by Bruno Haible.
93763 2008-05-10  Bruno Haible  <bruno@clisp.org>
93765         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
93766         (is_utf8_encoding): Use a case-insensitive comparison.
93767         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
93768         streq.
93770 2008-05-10  Bruno Haible  <bruno@clisp.org>
93772         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
93773         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
93774         * lib/unilbrk/ulc-common.h (iconv_string_length,
93775         iconv_string_keeping_offsets): Remove declarations.
93776         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
93777         Don't include <iconv.h>, streq.h, xsize.h.
93778         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
93779         conversion.
93780         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
93781         <iconv.h>, streq.h, xsize.h.
93782         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
93783         conversion.
93784         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
93785         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
93786         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
93787         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
93789 2008-05-10  Bruno Haible  <bruno@clisp.org>
93791         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
93792         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
93794         * modules/unilbrk/u32-width-linebreaks-tests: New file.
93795         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
93797         * modules/unilbrk/u16-width-linebreaks-tests: New file.
93798         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
93800         * modules/unilbrk/u8-width-linebreaks-tests: New file.
93801         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
93803         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
93804         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
93806         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
93807         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
93809         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
93810         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
93812         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
93813         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
93815 2008-05-10  Bruno Haible  <bruno@clisp.org>
93817         Split up 'linebreak' module.
93818         * lib/unilbrk.h: New file, based on lib/linebreak.h.
93819         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
93820         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
93821         modifications.
93822         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
93823         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
93824         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
93825         lib/linebreak.c.
93826         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
93827         lib/linebreak.c.
93828         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
93829         lib/linebreak.c.
93830         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
93831         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
93832         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
93833         lib/linebreak.c.
93834         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
93835         lib/linebreak.c.
93836         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
93837         lib/linebreak.c.
93838         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
93839         lib/linebreak.c.
93840         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
93841         lib/linebreak.c.
93842         * modules/unilbrk/base: New file.
93843         * modules/unilbrk/tables: New file.
93844         * modules/unilbrk/u8-possible-linebreaks: New file.
93845         * modules/unilbrk/u16-possible-linebreaks: New file.
93846         * modules/unilbrk/u32-possible-linebreaks: New file.
93847         * modules/unilbrk/ulc-common: New file.
93848         * modules/unilbrk/ulc-possible-linebreaks: New file.
93849         * modules/unilbrk/u8-width-linebreaks: New file.
93850         * modules/unilbrk/u16-width-linebreaks: New file.
93851         * modules/unilbrk/u32-width-linebreaks: New file.
93852         * modules/unilbrk/ulc-width-linebreaks: New file.
93853         * lib/linebreak.h: Remove file.
93854         * lib/linebreak.c: Remove file.
93855         * m4/linebreak.m4: Remove file.
93856         * modules/linebreak: Remove file.
93857         * NEWS: Mention the changes.
93859 2008-05-09  Eric Blake  <ebb9@byu.net>
93861         Add xmemdup0.
93862         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
93863         implementation.
93864         * lib/xmalloc.c (xmemdup0): New C implementation.
93866 2008-05-08  Bruno Haible  <bruno@clisp.org>
93868         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
93870 2008-05-07  Eric Blake  <ebb9@byu.net>
93872         Support cross-compilation of <wctype.h>.
93873         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
93874         AC_CACHE_CHECK.
93876 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
93878         * build-aux/vc-list-files: Add support for bzr.
93880 2008-05-03  Jim Meyering  <meyering@redhat.com>
93882         avoid failed assertion with tight malloc
93883         * tests/test-getndelim2.c: Correct an off-by-one assertion.
93885 2008-05-03  Simon Josefsson  <simon@josefsson.org>
93887         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
93888         are needed from arpa/inet.h.
93889         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
93890         Reported by Bruno Haible.
93892 2008-05-02  Jim Meyering  <meyering@redhat.com>
93894         avoid compilation error on FreeBSD 6
93895         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
93897 2008-05-01  Jim Meyering  <meyering@redhat.com>
93899         useless-if-before-free: correct --help's exit status description
93900         * build-aux/useless-if-before-free (usage): Like grep, exit 0
93901         for one or more matches, etc.  Reported by Bruno Haible.
93903         vc-list-files: make the stand-alone gnulib test work
93904         * modules/vc-list-files-tests (configure.ac):
93905         Define and AC_SUBST abs_aux_dir.
93906         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
93907         $(abs_top_srcdir) to each script and having each of them
93908         duplicate the work of setting PATH, set PATH here, using
93909         the new variable, abs_aux_dir instead.
93910         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
93911         * tests/test-vc-list-files-git.sh: Likewise.
93912         Reported by Bruno Haible.
93914 2008-05-01  Bruno Haible  <bruno@clisp.org>
93916         * lib/getndelim2.c (getndelim2): Fix newsize computation during
93917         reallocation. Rename 'done' to 'found_delimiter'.
93919 2008-05-01  Jim Meyering  <meyering@redhat.com>
93921         vc-list-files: accommodate /bin/sh like the one from Solaris 10
93922         * build-aux/vc-list-files: Use `...`, not $(...).
93924 2008-04-30  Jim Meyering  <meyering@redhat.com>
93926         add tests for vc-list-files
93927         * modules/vc-list-files-tests: New module.
93928         * tests/test-vc-list-files-cvs.sh: New file.
93929         * tests/test-vc-list-files-git.sh: New file.
93931         avoid a warning from gcc
93932         * lib/getndelim2.c (IF_LINT): Define.
93933         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
93935         vc-list-files: work properly with build-aux/cvsu, too
93936         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
93937         to all cvs-based clauses.
93939         vc-list-files: work properly in the CVS+awk case, too
93940         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
93942         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
93943         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
93944         take more than one file argument, so .  Add quotes, just in case $dir
93945         ever contains a shell meta-character.  Prompted by Soren Hansen in
93946         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
93948 2008-04-29  Eric Blake  <ebb9@byu.net>
93950         Optimize getndelim2 to use block operations when possible.
93951         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
93952         freadseek, and memchr2.
93953         * lib/getndelim2.c (getndelim2): Use them for block reads.
93955 2008-04-29  Bruno Haible  <bruno@clisp.org>
93957         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
93958         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
93959         * modules/inet_ntop (Depends-on): Add extensions.
93960         * modules/inet_pton (Depends-on): Likewise.
93961         Reported by Simon Josefsson.
93963 2008-04-29  Jim Meyering  <meyering@redhat.com>
93965         When the is more than one match in a block, match all of them.
93966         * build-aux/useless-if-before-free: Iterate through each block
93967         until there are no more matches.
93969         Fix broken useless-if-before-free script.
93970         * build-aux/useless-if-before-free: Fix typo: missing "?" after
93971         the expression to match cast of argument to free-like function.
93973 2008-04-29  Eric Blake  <ebb9@byu.net>
93975         Use new header.
93976         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
93978 2008-04-29  Jim Meyering  <meyering@redhat.com>
93980         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
93981         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
93982         by gnulib to exist and to declare e.g., inet_ntop.
93983         Don't include "inet_ntop.h", now removed.
93985         * m4/arpa_inet_h.m4: Remove trailing blanks.
93987 2008-04-29  Eric Blake  <ebb9@byu.net>
93989         Silence valgrind on safe reads beyond potential array bounds.
93990         * lib/rawmemchr.valgrind: New file.
93991         * lib/strchrnul.valgrind: Likewise.
93992         * modules/rawmemchr (Files): Distribute new file.
93993         * modules/strchrnul (Files): Likewise.
93994         Suggested by Bruno Haible.
93996 2008-04-29  Bruno Haible  <bruno@clisp.org>
93998         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
93999         (inet_ntop, inet_pton): Change portability warning's wording.
94000         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
94001         Invoke gl_CHECK_NEXT_HEADERS.
94002         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
94003         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
94004         set ARPA_INET_H.
94005         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
94006         * modules/arpa_inet (Description): No longer only for systems that
94007         lack it.
94008         (Depends-on): Add include_next.
94009         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
94010         HAVE_ARPA_INET_H.
94012 2008-04-29  Jim Meyering  <meyering@redhat.com>
94014         * modules/mkdir (License): Re-license as LGPLv2+.
94016 2008-04-29  Bruno Haible  <bruno@clisp.org>
94018         * modules/rawmemchr (Maintainer): Set to Eric.
94019         * modules/strchrnul (Maintainer): Likewise.
94021 2008-04-29  Simon Josefsson  <simon@josefsson.org>
94023         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
94024         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
94026         * modules/arpa_inet (arpa/inet.h): Use them.
94028 2008-04-28  Eric Blake  <ebb9@byu.net>
94030         Test getndelim2.
94031         * modules/getndelim2-tests: New file.
94032         * tests/test-getndelim2.c: Likewise.
94033         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
94034         stream.
94035         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
94037         * MODULES.html.sh: Document new module.
94039 2008-04-20  Bruno Haible  <bruno@clisp.org>
94041         * lib/c-stack.c (die): Use raise.
94042         * modules/c-stack (Depends-on): Add raise.
94044 2008-04-28  Bruno Haible  <bruno@clisp.org>
94046         Expect rpmatch to be declared.
94047         * lib/yesno.c (rpmatch): Remove declaration.
94049         Declare rpmatch.
94050         * lib/stdlib.in.h (rpmatch): New declaration.
94051         * lib/rpmatch.c: Include <stdlib.h> first.
94052         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
94053         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
94054         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
94055         HAVE_RPMATCH.
94056         * modules/rpmatch (Depends-on): Add stdlib, extensions.
94057         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
94058         (Include): Set to <stdlib.h>.
94059         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
94060         HAVE_RPMATCH.
94061         * NEWS: Document the change.
94063 2008-04-28  Bruno Haible  <bruno@clisp.org>
94065         Change rpmatch to use nl_langinfo when appropriate.
94066         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
94067         (N_): New macro.
94068         (localized_pattern): New function/macro.
94069         (try): Remove match, nomatch arguments. Copy the pattern into safe
94070         memory before caching it.
94071         (rpmatch): Use localized_pattern. Add translator comments.
94072         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
94073         Suggested by Eric Blake.
94074         * modules/rpmatch (Depends-on): Add stdbool.
94076 2008-04-28  Eric Blake  <ebb9@byu.net>
94078         Add rawmemchr module, matching glibc.
94079         * modules/string (Makefile.am): New indicator.
94080         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
94081         * lib/string.in.h (rawmemchr): Declare when appropriate.
94082         * modules/rawmemchr: New file.
94083         * m4/rawmemchr.m4: Likewise.
94084         * lib/rawmemchr.c: Likewise.
94085         * modules/rawmemchr-tests: Likewise.
94086         * tests/test-rawmemchr.c: Likewise.
94087         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
94088         module.
94089         * modules/strchrnul (Depends-on): Add rawmemchr.
94090         * lib/strchrnul.c (strchrnul): Optimize a corner case.
94092         Whitespace cleanup.
94093         * tests/test-strchrnul.c: Reindent.
94094         * lib/strchrnul.c: Likewise.
94096         Optimize and test strchrnul.
94097         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
94098         * modules/strchrnul-tests: New file.
94099         * tests/test-strchrnul.c: Likewise.
94101         Remove intprops dependency.
94102         * modules/memchr (Depends-on): Remove intprops.
94103         * modules/memrchr (Depends-on): Likewise.
94104         * modules/memchr2 (Depends-on): Likewise.
94105         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
94106         * lib/memrchr.c (__memrchr): Likewise.
94107         * lib/memrchr2.c (memchr2): Likewise.
94108         Reported by Simon Josefsson.
94110 2008-04-28  Simon Josefsson  <simon@josefsson.org>
94112         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
94113         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94115 2008-04-28  Simon Josefsson  <simon@josefsson.org>
94117         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
94119         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
94121         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
94123         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
94124         declarations.
94125         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
94127         * m4/inet_pton.m4: Don't check for header files.
94129         * m4/inet_ntop.m4: Don't check for header files.
94131 2008-04-28  Simon Josefsson  <simon@josefsson.org>
94133         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
94134         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
94135         trigger for cygwin).
94136         Reported by Bruno Haible  <bruno@clisp.org>.
94138 2008-04-28  Bruno Haible  <bruno@clisp.org>
94140         * doc/posix-functions/strdup.texi: Mention mingw problem.
94142 2008-04-27  Bruno Haible  <bruno@clisp.org>
94144         * modules/stat-time-tests (Depends-on): Add sleep.
94145         * tests/test-stat-time.c (force_unlink): New function.
94146         (cleanup): Use it.
94147         (test_mtime): Remove the ctime related tests.
94148         (test_ctime): New function, containing the ctime related tests.
94149         (main): Call test_ctime, except on native Windows platforms.
94151 2008-04-27  Bruno Haible  <bruno@clisp.org>
94153         * lib/rpmatch.c (rpmatch): Add some comments.
94154         Reported by James Youngman <jay@gnu.org>.
94156 2008-04-27  Bruno Haible  <bruno@clisp.org>
94158         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
94159         quiet NaNs.
94161 2008-04-27  Bruno Haible  <bruno@clisp.org>
94163         Make test-yesno.sh work on mingw.
94164         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
94165         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
94166         (main): Set stdin to binary mode.
94167         * modules/yesno-tests (Depends-on): Add binary-io.
94169 2008-04-27  Bruno Haible  <bruno@clisp.org>
94171         Fix 'isfinite' on x86, x86_64, ia64 platforms.
94172         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
94173         argument that lie outside the IEEE 854 domain.
94174         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
94175         (gl_ISFINITE): Use it.
94176         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
94178 2008-04-27  Bruno Haible  <bruno@clisp.org>
94180         Allow local renaming in config.h.
94181         * lib/memrchr.c (memrchr): Don't undefine outside libc.
94183 2008-04-27  Bruno Haible  <bruno@clisp.org>
94185         * lib/memchr.c (__memchr): Change type of 'i'.
94186         * lib/memchr2.c (memchr2): Likewise.
94188 2008-04-26  Eric Blake  <ebb9@byu.net>
94189         and Bruno Haible  <bruno@clisp.org>
94191         Optimize and test memrchr.
94192         * modules/memrchr (Depends-on): Add intprops.
94193         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
94194         * modules/memrchr-tests: New file.
94195         * tests/test-memrchr.c: New file.
94197 2008-04-26  Bruno Haible  <bruno@clisp.org>
94199         Add tentative support for DragonFly BSD.
94200         * lib/stdio-impl.h: Add macros for DragonFly BSD.
94201         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
94202         fp.
94203         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
94204         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
94205         * lib/fpurge.c (fpurge): Likewise.
94206         * lib/freadable.c (freaadable): Likewise.
94207         * lib/freadahead.c (freadahead): Likewise.
94208         * lib/freading.c (freading): Likewise.
94209         * lib/freadptr.c (freadptr): Likewise.
94210         * lib/freadseek.c (freadptrinc): Likewise.
94211         * lib/fseeko.c (fseeko): Likewise.
94212         * lib/fseterr.c (fseterr): Likewise.
94213         * lib/fwritable.c (fwritable): Likewise.
94214         * lib/fwriting.c (fwriting): Likewise.
94216 2008-04-26  Bruno Haible  <bruno@clisp.org>
94218         * lib/stdio-impl.h: New file.
94219         * lib/fbufmode.c: Include stdio-impl.h.
94220         (fbufmode): Use fp_, remove redundant #defines.
94221         * lib/fflush.c: Include stdio-impl.h.
94222         (clear_ungetc_buffer): Remove redundant #defines.
94223         * lib/fpurge.c: Include stdio-impl.h.
94224         (fpurge): Remove redundant #defines.
94225         * lib/freadable.c: Include stdio-impl.h.
94226         (freadable): Remove redundant #defines.
94227         * lib/freadahead.c: Include stdio-impl.h.
94228         (freadahead): Remove redundant #defines.
94229         * lib/freading.c: Include stdio-impl.h.
94230         (freading): Remove redundant #defines.
94231         * lib/freadptr.c: Include stdio-impl.h.
94232         (freadptr): Remove redundant #defines.
94233         * lib/freadseek.c: Include stdio-impl.h.
94234         (freadptrinc): Remove redundant #defines.
94235         * lib/fseeko.c: Include stdio-impl.h.
94236         (rpl_fseeko): Remove redundant #defines.
94237         * lib/fseterr.c: Include stdio-impl.h.
94238         (fseterr): Remove redundant #defines.
94239         * lib/fwritable.c: Include stdio-impl.h.
94240         (fwritable: Remove redundant #defines.
94241         * lib/fwriting.c: Include stdio-impl.h.
94242         (fwriting): Remove redundant #defines.
94243         * modules/fbufmode (Files): Add lib/stdio-impl.h.
94244         * modules/fflush (Files): Likewise.
94245         * modules/fpurge (Files): Likewise.
94246         * modules/freadable (Files): Likewise.
94247         * modules/freadahead (Files): Likewise.
94248         * modules/freading (Files): Likewise.
94249         * modules/freadptr (Files): Likewise.
94250         * modules/freadseek (Files): Likewise.
94251         * modules/fseeko (Files): Likewise.
94252         * modules/fseterr (Files): Likewise.
94253         * modules/fwritable (Files): Likewise.
94254         * modules/fwriting (Files): Likewise.
94256 2008-04-26  Bruno Haible  <bruno@clisp.org>
94258         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
94259         restore_seek_optimization, update_fpos_cache): New functions, extracted
94260         from rpl_fflush.
94261         (rpl_fflush): Use them.
94262         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
94263         (gl_REPLACE_FFLUSH): Use it.
94265 2008-04-26  Bruno Haible  <bruno@clisp.org>
94267         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
94268         on Solaris.
94269         * tests/test-xstrtoimax.sh: Likewise.
94270         * tests/test-xstrtoumax.sh: Likewise.
94271         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94273 2008-04-26  Bruno Haible  <bruno@clisp.org>
94275         * modules/memchr-tests: New file.
94276         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
94278 2008-04-26  Eric Blake  <ebb9@byu.net>
94279             Bruno Haible  <bruno@clisp.org>
94281         * lib/memchr.c: Include intprops.h.
94282         (__memchr): Optimize parallel detection of matching bytes. Rename local
94283         variables. Add explanatory comments.
94285 2008-04-26  Bruno Haible  <bruno@clisp.org>
94287         Fix module 'memchr', broken since 2000-10-28.
94288         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
94290 2008-04-26  Bruno Haible  <bruno@clisp.org>
94292         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
94293         comments.
94295 2008-04-25  Eric Blake  <ebb9@byu.net>
94297         Use native fstatat on cygwin 1.7.0.
94298         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
94299         first.
94301 2008-04-23  Eric Blake  <ebb9@byu.net>
94303         Improve memchr2 performance.
94304         * lib/memchr2.c (memchr2): Further optimize parallel detection of
94305         NUL bytes.
94306         * modules/memchr2 (Depends-on): Use intprops.h.
94308 2008-04-23  Simon Josefsson  <simon@josefsson.org>
94310         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
94311         an inline function instead of a CPP macro.  Patch by Ben Pfaff
94312         <blp@cs.stanford.edu>.
94314 2008-04-23  Simon Josefsson  <simon@josefsson.org>
94316         * lib/arpa_inet.in.h: New file.
94318         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
94319         (Makefile.am): Sed in substitute header file.
94321         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
94322         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
94324         * modules/inet_ntop (configure.ac): Use
94325         gl_ARPA_INET_MODULE_INDICATOR.
94327         * modules/inet_pton (configure.ac): Use
94328         gl_ARPA_INET_MODULE_INDICATOR.
94330 2008-04-22  Jim Meyering  <meyering@redhat.com>
94332         * modules/verify (License): Re-license as LGPLv2+.
94334 2008-04-22  Simon Josefsson  <simon@josefsson.org>
94336         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
94337         parameter to void* as per POSIX standard (MinGW uses char*).
94339 2008-04-21  Bruno Haible  <bruno@clisp.org>
94341         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
94342         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
94343         Define to replacements if REPLACE_ISWCNTRL is 1.
94344         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
94345         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
94346         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
94347         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
94348         what it fixes.
94349         * doc/posix-functions/iswalpha.texi: Likewise.
94350         * doc/posix-functions/iswblank.texi: Likewise.
94351         * doc/posix-functions/iswcntrl.texi: Likewise.
94352         * doc/posix-functions/iswdigit.texi: Likewise.
94353         * doc/posix-functions/iswgraph.texi: Likewise.
94354         * doc/posix-functions/iswlower.texi: Likewise.
94355         * doc/posix-functions/iswprint.texi: Likewise.
94356         * doc/posix-functions/iswpunct.texi: Likewise.
94357         * doc/posix-functions/iswspace.texi: Likewise.
94358         * doc/posix-functions/iswupper.texi: Likewise.
94359         * doc/posix-functions/iswxdigit.texi: Likewise.
94360         Reported by Alain Guibert.
94362 2008-04-21  Bruno Haible  <bruno@clisp.org>
94364         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
94365         Patch by Alain Guibert.
94367 2008-04-21  Bruno Haible  <bruno@clisp.org>
94369         Fix test failures on mingw.
94370         * tests/test-xstrtol.c (print_no_progname): New function.
94371         (main): Install it in error_print_progname hook.
94372         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
94373         * tests/test-xstrtoimax.sh: Likewise.
94374         * tests/test-xstrtoumax.sh: Likewise.
94376 2008-04-21  Bruno Haible  <bruno@clisp.org>
94378         Fix test failure on mingw.
94379         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
94381 2008-04-21  Bruno Haible  <bruno@clisp.org>
94383         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
94384         Actually assign a value.
94386 2008-04-20  Bruno Haible  <bruno@clisp.org>
94388         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
94389         take 2.
94390         * lib/canonicalize.c (canonicalize_file_name): Elide if the
94391         'canonicalize-lgpl' module is also used.
94392         * lib/canonicalize-lgpl.c: Undo last change.
94393         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
94395 2008-04-20  Bruno Haible  <bruno@clisp.org>
94397         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
94398         config.h. Provide _mkdir based fallback for mingw.
94399         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
94400         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
94401         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
94402         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
94403         rather than defining mkdir in config.h.
94404         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
94405         (gl_SYS_STAT_H_DEFAULTS): New macro.
94406         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
94407         HAVE_IO_H any more.
94408         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
94409         HAVE_DECL_MKDIR and HAVE_IO_H.
94411 2008-04-20  Bruno Haible  <bruno@clisp.org>
94413         * lib/isapipe.c: Port to native Windows platforms.
94415 2008-04-20  Bruno Haible  <bruno@clisp.org>
94417         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
94419 2008-04-21  Eric Blake  <ebb9@byu.net>
94421         Work around preprocessors that don't handle UINTMAX_MAX.
94422         * lib/memchr2.c (memchr2): Avoid embedded #if.
94423         Reported by Alain Guibert, fix suggested by Bruno Haible.
94425 2008-04-21  Simon Josefsson  <simon@josefsson.org>
94427         * doc/posix-functions/strftime.texi (strftime): Explain better
94428         Windows incompatibility.  Suggested by Micah Cowan
94429         <micah@cowan.name>.
94431 2008-04-20  Bruno Haible  <bruno@clisp.org>
94433         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
94434         unistr/u8-mblen.
94436 2008-04-20  Bruno Haible  <bruno@clisp.org>
94438         Fix test failure on platforms with non-GNU iconv.
94439         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
94440         (U_TO_U8): Use it, rather than u16_to_u8.
94441         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
94442         units at the end of the input string.
94443         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
94445 2008-04-20  Bruno Haible  <bruno@clisp.org>
94447         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
94448         when the resulting length is 0.
94449         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
94451 2008-04-20  Bruno Haible  <bruno@clisp.org>
94453         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
94454         works.
94455         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
94457 2008-04-20  Bruno Haible  <bruno@clisp.org>
94459         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
94460         * modules/tsearch-tests (configure.ac): Test for initstate function.
94462 2008-04-20  Bruno Haible  <bruno@clisp.org>
94464         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
94465         for nlink_t if missing.
94466         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
94468 2008-04-19  Bruno Haible  <bruno@clisp.org>
94470         Work around snprintf bug on Linux libc5.
94471         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
94472         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
94473         gl_SNPRINTF_SIZE1.
94474         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
94475         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
94476         that test failed.
94477         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
94478         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
94479         * modules/snprintf (Files): Add m4/printf.m4.
94480         * modules/vsnprintf (Files): Likewise.
94481         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
94482         * doc/posix-functions/vsnprintf.texi: Likewise.
94484 2008-04-19  Bruno Haible  <bruno@clisp.org>
94486         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
94487         from 0.0058 to less than 10^-7.
94489 2008-04-19  Bruno Haible  <bruno@clisp.org>
94491         Fix rounding when a precision is given.
94492         * lib/vasnprintf.c (is_borderline): New function.
94493         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
94494         9...9x.
94495         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
94496         %e, %g.
94497         * tests/test-vasprintf-posix.c (test_function): Likewise.
94498         * tests/test-snprintf-posix.h (test_function): Likewise.
94499         * tests/test-sprintf-posix.h (test_function): Likewise.
94500         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
94501         * tests/test-printf-posix.h (test_function): Likewise.
94502         * tests/test-printf-posix.output: Update.
94503         Reported by John Darrington <john@darrington.wattle.id.au> via
94504         Ben Pfaff <blp@cs.stanford.edu>.
94506 2008-04-18  Simon Josefsson  <simon@josefsson.org>
94508         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
94509         Suggested by Bruno Haible <bruno@clisp.org>.
94511 2008-04-17  Bruno Haible  <bruno@clisp.org>
94513         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
94514         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
94515         implementation.
94516         Patch by Bruce Merry <bmerry@gmail.com>.
94518 2008-04-17  Simon Josefsson  <simon@josefsson.org>
94520         * doc/posix-functions/strftime.texi (strftime): Mention that %e
94521         doesn't work under Windows.
94523 2008-04-16  Bruno Haible  <bruno@clisp.org>
94525         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
94526         New macros.
94527         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
94528         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
94529         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
94530         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
94531         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
94532         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
94533         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
94534         macros.
94535         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
94536         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
94537         Northern Sotho, Uighur.
94539 2008-04-16  Bruno Haible  <bruno@clisp.org>
94541         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
94542         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
94543         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
94544         Reported by Daniel Bergström <daniel@octocode.com>.
94546 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
94547             Bruno Haible  <bruno@clisp.org>
94549         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
94550         function.
94551         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
94552         New functions, mostly extracted from gl_locale_name_default.
94553         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
94555 2008-04-16  Eric Blake  <ebb9@byu.net>
94557         Adjust strtod detection to catch glibc 2.7 bug.
94558         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
94559         Reported by John Gatewood Ham.
94561 2008-04-16  Bruno Haible  <bruno@clisp.org>
94563         Add tentative support for Linux libc5.
94564         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
94565         * lib/fpurge.c (fpurge): Likewise.
94566         * lib/freadable.c (freadable): Likewise.
94567         * lib/freadahead.c (freadahead): Likewise.
94568         * lib/freading.c (freading): Likewise.
94569         * lib/freadptr.c (freadptr): Likewise.
94570         * lib/freadseek.c (freadptrinc): Likewise.
94571         * lib/fseeko.c (rpl_fseeko): Likewise.
94572         * lib/fseterr.c (fseterr): Likewise.
94573         * lib/fwritable.c (fwritable): Likewise.
94574         * lib/fwriting.c (fwriting): Likewise.
94575         Reported by Alain Guibert <alguibert+bts@free.fr>.
94577 2008-04-15  Bruno Haible  <bruno@clisp.org>
94579         * modules/mathl (configure.ac): Define module indicator.
94581 2008-04-15  Bruno Haible  <bruno@clisp.org>
94583         * lib/logl.c (logl): Remove unused variables.
94585 2008-04-15  Bruno Haible  <bruno@clisp.org>
94587         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
94588         fails.
94590 2008-04-15  Bruno Haible  <bruno@clisp.org>
94592         * lib/trim.c (trim2): Fix argument of isspace() macro.
94594 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
94596         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
94597         to 0.
94598         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
94600 2008-04-14  Bruno Haible  <bruno@clisp.org>
94602         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
94603         AC_LANG_PROGRAM argument.
94604         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
94605         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
94606         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
94607         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
94608         * m4/math_h.m4 (gl_MATH_H): Likewise.
94609         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
94610         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
94611         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
94612         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
94613         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
94614         * m4/regex.m4 (gl_REGEX): Likewise.
94615         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
94616         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
94617         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
94618         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
94619         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
94620         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
94621         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
94622         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
94624 2008-04-14  Jim Meyering  <meyering@redhat.com>
94626         test-strtod: fix typos: s/abs/fabs/
94627         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
94629 2008-04-13  Bruno Haible  <bruno@clisp.org>
94631         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
94632         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
94633         module is also used and while not building the reloc-wrapper.
94635 2008-04-13  Bruno Haible  <bruno@clisp.org>
94637         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
94639 2008-04-13  Bruno Haible  <bruno@clisp.org>
94641         Fix AIX compilation failure introduced on 2008-04-02.
94642         * tests/test-frexp.c (exp): Undefine before redefining.
94643         * tests/test-frexpl.c (exp): Likewise.
94645 2008-04-13  Bruno Haible  <bruno@clisp.org>
94647         Work around a HP-UX stdio bug.
94648         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
94649         * tests/test-ftello.c (main): Likewise.
94650         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
94651         * doc/posix-functions/ftello.texi: Likewise.
94653 2008-04-13  Bruno Haible  <bruno@clisp.org>
94655         Make test-signbit pass on HP-UX/hppa.
94656         * tests/test-signbit.c (minus_zerol): New variable.
94657         (test_signbitl): Use it.
94659 2008-04-13  Bruno Haible  <bruno@clisp.org>
94661         Make truncl work on OSF/1 4.0.
94662         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
94663         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
94664         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
94665         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
94666         HAVE_DECL_TRUNCL.
94667         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
94668         HAVE_DECL_TRUNCL.
94669         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
94671 2008-04-13  Bruno Haible  <bruno@clisp.org>
94673         * lib/unictype.h: Remove trailing comma from enumeration definitions.
94675 2008-04-13  Bruno Haible  <bruno@clisp.org>
94677         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
94678         expression, so as to avoid HP-UX 11 cc compiler bug.
94680 2008-04-13  Bruno Haible  <bruno@clisp.org>
94682         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
94684 2008-04-13  Bruno Haible  <bruno@clisp.org>
94686         * lib/git-merge-changelog.c: Remove empty declaration outside of
94687         functions.
94689 2008-04-13  Bruno Haible  <bruno@clisp.org>
94691         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
94693 2008-04-13  Bruno Haible  <bruno@clisp.org>
94695         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
94696         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
94697         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
94698         also if it exists but lacks definitions of the SHUT_* macros.
94699         * modules/sys_socket (Description): Update.
94700         Reported by Elbert Pol <e.pol@chello.nl>.
94702 2008-04-13  Bruno Haible  <bruno@clisp.org>
94704         * lib/localcharset.c (OS2): Don't redefine if already defined.
94705         Reported by Elbert Pol <e.pol@chello.nl>.
94707 2008-04-13  Bruno Haible  <bruno@clisp.org>
94709         * lib/binary-io.h [__EMX__]: Include <io.h>.
94710         Reported by Elbert Pol <e.pol@chello.nl>.
94712 2008-04-12  Bruno Haible  <bruno@clisp.org>
94714         * lib/fpucw.h: Enable the definitions also for x86_64.
94715         Needed for NetBSD/x86_64.
94716         Reported by Thomas Klausner <tk@giga.or.at>.
94718 2008-04-12  Bruno Haible  <bruno@clisp.org>
94720         * tests/test-strtod.c: Include isnand.h.
94721         (main): Use isnand instead of isnan.
94722         Reported by Jim Meyering.
94724 2008-04-12  Bruno Haible  <bruno@clisp.org>
94726         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
94727         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
94729 2008-04-12  Jim Meyering  <meyering@redhat.com>
94731         * m4/math_h.m4 (gl_MATH_H): Fix typos.
94733 2008-04-12  Bruno Haible  <bruno@clisp.org>
94735         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
94736         Reported by Elbert Pol <e.pol@chello.nl>.
94738 2008-04-12  Eric Blake  <ebb9@byu.net>
94740         Work around Solaris 10 math.h bug.
94741         * m4/math_h.m4 (gl_MATH_H): Check for bug.
94742         (gl_MATH_H_DEFAULTS): Set up default.
94743         * modules/math (Makefile.am): Replace new indicators.
94744         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
94745         * tests/test-math.c (main): Test this.
94746         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
94747         * doc/posix-headers/math.texi (math.h): Mention bug.
94748         Reported by Nelson H. F. Beebe and Jim Meyering.
94750 2008-04-11  Bruno Haible  <bruno@clisp.org>
94752         Adapt to future versions of Apple GCC.
94753         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
94754         Reported by Peter O'Gorman <peter@pogma.com>.
94756 2008-04-11  Bruno Haible  <bruno@clisp.org>
94758         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
94760 2008-04-11  Bruno Haible  <bruno@clisp.org>
94762         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
94764         * modules/getaddrinfo-tests (Makefile.am): Define
94765         test_getaddrinfo_LDADD.
94767 2008-04-11  Bruno Haible  <bruno@clisp.org>
94769         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
94770         (init): Fix syntax error.
94771         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
94772         is declared.
94774 2008-04-11  Bruno Haible  <bruno@clisp.org>
94776         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
94777         * modules/glob (Depends-on): Add stdbool.
94779 2008-04-11  Bruno Haible  <bruno@clisp.org>
94781         * lib/trim.c: Include <string.h>.
94783 2008-04-11  Eric Blake  <ebb9@byu.net>
94785         Avoid compile failure on OS/2.
94786         * lib/regex_internal.h (internal_function): Disable optimization
94787         on OS/2 (__EMX__), where it caused compiler error.
94788         Reported by Elbert Pol.
94790 2008-04-11  Bruno Haible  <bruno@clisp.org>
94792         Flush the standard error stream before aborting. Needed on mingw.
94793         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
94794         * tests/test-array_list.c (ASSERT): Likewise.
94795         * tests/test-array_oset.c (ASSERT): Likewise.
94796         * tests/test-avltree_list.c (ASSERT): Likewise.
94797         * tests/test-avltree_oset.c (ASSERT): Likewise.
94798         * tests/test-avltreehash_list.c (ASSERT): Likewise.
94799         * tests/test-binary-io.c (ASSERT): Likewise.
94800         * tests/test-byteswap.c (ASSERT): Likewise.
94801         * tests/test-c-ctype.c (ASSERT): Likewise.
94802         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
94803         * tests/test-c-strcasestr.c (ASSERT): Likewise.
94804         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
94805         * tests/test-c-strstr.c (ASSERT): Likewise.
94806         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
94807         * tests/test-canonicalize.c (ASSERT): Likewise.
94808         * tests/test-carray_list.c (ASSERT): Likewise.
94809         * tests/test-ceilf1.c (ASSERT): Likewise.
94810         * tests/test-ceilf2.c (ASSERT): Likewise.
94811         * tests/test-ceill.c (ASSERT): Likewise.
94812         * tests/test-count-one-bits.c (ASSERT): Likewise.
94813         * tests/test-fbufmode.c (ASSERT): Likewise.
94814         * tests/test-fflush2.c (ASSERT): Likewise.
94815         * tests/test-floorf1.c (ASSERT): Likewise.
94816         * tests/test-floorf2.c (ASSERT): Likewise.
94817         * tests/test-floorl.c (ASSERT): Likewise.
94818         * tests/test-fopen.c (ASSERT): Likewise.
94819         * tests/test-fpending.c (ASSERT): Likewise.
94820         * tests/test-fprintf-posix.c (ASSERT): Likewise.
94821         * tests/test-fpurge.c (ASSERT): Likewise.
94822         * tests/test-freadable.c (ASSERT): Likewise.
94823         * tests/test-freadahead.c (ASSERT): Likewise.
94824         * tests/test-freading.c (ASSERT): Likewise.
94825         * tests/test-freadptr.c (ASSERT): Likewise.
94826         * tests/test-freadptr2.c (ASSERT): Likewise.
94827         * tests/test-freadseek.c (ASSERT): Likewise.
94828         * tests/test-freopen.c (ASSERT): Likewise.
94829         * tests/test-frexp.c (ASSERT): Likewise.
94830         * tests/test-frexpl.c (ASSERT): Likewise.
94831         * tests/test-fseek.c (ASSERT): Likewise.
94832         * tests/test-fseeko.c (ASSERT): Likewise.
94833         * tests/test-fstrcmp.c (ASSERT): Likewise.
94834         * tests/test-ftell.c (ASSERT): Likewise.
94835         * tests/test-ftello.c (ASSERT): Likewise.
94836         * tests/test-func.c (ASSERT): Likewise.
94837         * tests/test-fwritable.c (ASSERT): Likewise.
94838         * tests/test-fwriting.c (ASSERT): Likewise.
94839         * tests/test-getdelim.c (ASSERT): Likewise.
94840         * tests/test-getline.c (ASSERT): Likewise.
94841         * tests/test-i-ring.c (ASSERT): Likewise.
94842         * tests/test-iconv-utf.c (ASSERT): Likewise.
94843         * tests/test-iconv.c (ASSERT): Likewise.
94844         * tests/test-isfinite.c (ASSERT): Likewise.
94845         * tests/test-isnand.c (ASSERT): Likewise.
94846         * tests/test-isnanf.c (ASSERT): Likewise.
94847         * tests/test-isnanl.h (ASSERT): Likewise.
94848         * tests/test-ldexpl.c (ASSERT): Likewise.
94849         * tests/test-linked_list.c (ASSERT): Likewise.
94850         * tests/test-linkedhash_list.c (ASSERT): Likewise.
94851         * tests/test-localename.c (ASSERT): Likewise.
94852         * tests/test-lseek.c (ASSERT): Likewise.
94853         * tests/test-mbscasecmp.c (ASSERT): Likewise.
94854         * tests/test-mbscasestr1.c (ASSERT): Likewise.
94855         * tests/test-mbscasestr2.c (ASSERT): Likewise.
94856         * tests/test-mbscasestr3.c (ASSERT): Likewise.
94857         * tests/test-mbscasestr4.c (ASSERT): Likewise.
94858         * tests/test-mbschr.c (ASSERT): Likewise.
94859         * tests/test-mbscspn.c (ASSERT): Likewise.
94860         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
94861         * tests/test-mbspbrk.c (ASSERT): Likewise.
94862         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
94863         * tests/test-mbsrchr.c (ASSERT): Likewise.
94864         * tests/test-mbsspn.c (ASSERT): Likewise.
94865         * tests/test-mbsstr1.c (ASSERT): Likewise.
94866         * tests/test-mbsstr2.c (ASSERT): Likewise.
94867         * tests/test-mbsstr3.c (ASSERT): Likewise.
94868         * tests/test-memchr2.c (ASSERT): Likewise.
94869         * tests/test-memmem.c (ASSERT): Likewise.
94870         * tests/test-open.c (ASSERT): Likewise.
94871         * tests/test-printf-frexp.c (ASSERT): Likewise.
94872         * tests/test-printf-frexpl.c (ASSERT): Likewise.
94873         * tests/test-printf-posix.c (ASSERT): Likewise.
94874         * tests/test-quotearg.c (ASSERT): Likewise.
94875         * tests/test-rbtree_list.c (ASSERT): Likewise.
94876         * tests/test-rbtree_oset.c (ASSERT): Likewise.
94877         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
94878         * tests/test-round1.c (ASSERT): Likewise.
94879         * tests/test-roundf1.c (ASSERT): Likewise.
94880         * tests/test-roundl.c (ASSERT): Likewise.
94881         * tests/test-signbit.c (ASSERT): Likewise.
94882         * tests/test-sleep.c (ASSERT): Likewise.
94883         * tests/test-snprintf-posix.c (ASSERT): Likewise.
94884         * tests/test-snprintf.c (ASSERT): Likewise.
94885         * tests/test-sprintf-posix.c (ASSERT): Likewise.
94886         * tests/test-stat-time.c (ASSERT): Likewise.
94887         * tests/test-strcasestr.c (ASSERT): Likewise.
94888         * tests/test-strerror.c (ASSERT): Likewise.
94889         * tests/test-striconv.c (ASSERT): Likewise.
94890         * tests/test-striconveh.c (ASSERT): Likewise.
94891         * tests/test-striconveha.c (ASSERT): Likewise.
94892         * tests/test-strsignal.c (ASSERT): Likewise.
94893         * tests/test-strstr.c (ASSERT): Likewise.
94894         * tests/test-strtod.c (ASSERT): Likewise.
94895         * tests/test-trunc1.c (ASSERT): Likewise.
94896         * tests/test-trunc2.c (ASSERT): Likewise.
94897         * tests/test-truncf1.c (ASSERT): Likewise.
94898         * tests/test-truncf2.c (ASSERT): Likewise.
94899         * tests/test-truncl.c (ASSERT): Likewise.
94900         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
94901         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
94902         * tests/test-vasnprintf.c (ASSERT): Likewise.
94903         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
94904         * tests/test-vasprintf.c (ASSERT): Likewise.
94905         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
94906         * tests/test-vprintf-posix.c (ASSERT): Likewise.
94907         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
94908         * tests/test-vsnprintf.c (ASSERT): Likewise.
94909         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
94910         * tests/test-wcwidth.c (ASSERT): Likewise.
94911         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
94912         * tests/test-xprintf-posix.c (ASSERT): Likewise.
94913         * tests/test-xvasprintf.c (ASSERT): Likewise.
94914         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
94915         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
94916         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
94917         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
94918         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
94919         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
94920         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
94921         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
94922         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
94923         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
94924         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
94925         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
94926         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
94927         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
94928         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
94929         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
94930         * tests/unictype/test-block_list.c (ASSERT): Likewise.
94931         * tests/unictype/test-block_of.c (ASSERT): Likewise.
94932         * tests/unictype/test-block_test.c (ASSERT): Likewise.
94933         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
94934         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
94935         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
94936         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
94937         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
94938         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
94939         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
94940         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
94941         * tests/unictype/test-combining.c (ASSERT): Likewise.
94942         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
94943         * tests/unictype/test-digit.c (ASSERT): Likewise.
94944         * tests/unictype/test-mirror.c (ASSERT): Likewise.
94945         * tests/unictype/test-numeric.c (ASSERT): Likewise.
94946         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
94947         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
94948         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
94949         * tests/unictype/test-scripts.c (ASSERT): Likewise.
94950         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
94951         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
94952         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
94953         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
94954         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
94955         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
94956         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
94957         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
94958         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
94959         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
94960         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
94961         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
94962         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
94963         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
94964         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
94965         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
94966         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
94967         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
94968         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
94969         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
94970         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
94971         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
94972         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
94973         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
94974         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
94975         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
94976         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
94977         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
94978         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
94979         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
94980         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
94981         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
94982         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
94983         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
94984         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
94985         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
94986         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
94987         Reported by Eric Blake.
94989 2008-04-11  Bruno Haible  <bruno@clisp.org>
94991         * lib/wchar.in.h: Tweak comment.
94993 2008-04-11  Bruno Haible  <bruno@clisp.org>
94995         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
94996         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
94997         gl_COMMON.
94998         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
95000 2008-04-11  Bruno Haible  <bruno@clisp.org>
95002         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
95004 2008-04-11  Simon Josefsson  <simon@josefsson.org>
95006         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
95007         of attempting to use non-existing /dev/*random.  Based on patch
95008         from Adam Strzelecki <ono@java.pl> in
95009         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
95011 2008-04-08  Bruno Haible  <bruno@clisp.org>
95013         Add tentative support for emx+gcc.
95014         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
95015         * lib/fpurge.c (fpurge): Likewise.
95016         * lib/freadable.c (freadable): Likewise.
95017         * lib/freadahead.c (freadahead): Likewise.
95018         * lib/freading.c (freading): Likewise.
95019         * lib/freadptr.c (freadptr): Likewise.
95020         * lib/freadseek.c (freadptrinc): Likewise.
95021         * lib/fseeko.c (rpl_fseeko): Likewise.
95022         * lib/fseterr.c (fseterr): Likewise.
95023         * lib/fwritable.c (fwritable): Likewise.
95024         * lib/fwriting.c (fwriting): Likewise.
95025         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
95027 2008-04-09  Eric Blake  <ebb9@byu.net>
95029         Avoid some autoconf warnings.
95030         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
95031         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
95032         * m4/afs.m4 (gl_AFS): Likewise.
95033         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
95034         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
95035         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
95036         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
95037         (gl_INTEGER_TYPE_SUFFIX): Likewise.
95038         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
95039         (AC_CHECK_DECLS_ONCE): Likewise.
95040         Rename file...
95041         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
95042         gnulib-tool requires autoconf 2.59 or better.
95043         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
95045 2008-04-08  Eric Blake  <ebb9@byu.net>
95047         Use 'git describe --match' if present (added in git 1.5.5).
95048         * build-aux/git-version-gen: Limit result to tags that match 'v*'
95049         if possible.
95051 2008-04-08  Bruno Haible  <bruno@clisp.org>
95053         Add tentative support for OpenServer.
95054         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
95055         _ptr, _cnt.
95056         * lib/fpurge.c (fpurge): Likewise.
95057         * lib/freadable.c (freadable): Likewise.
95058         * lib/freadahead.c (freadahead): Likewise.
95059         * lib/freading.c (freading): Likewise.
95060         * lib/freadptr.c (freadptr): Likewise.
95061         * lib/freadseek.c (freadptrinc): Likewise.
95062         * lib/fseeko.c (rpl_fseeko): Likewise.
95063         * lib/fseterr.c (fseterr): Likewise.
95064         * lib/fwritable.c (fwritable): Likewise.
95065         * lib/fwriting.c (fwriting): Likewise.
95066         Reported by Roger Cornelius <rac@tenzing.org> and
95067         Brian K. White <brian@aljex.com>.
95069 2008-04-06  Jim Meyering  <meyering@redhat.com>
95071         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
95073 2008-04-06  Bruno Haible  <bruno@clisp.org>
95075         Avoid possible error with non-ASCII bytes in UTF-8 locales.
95076         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
95077         * tests/test-printf-posix.sh: Likewise.
95078         * tests/test-vfprintf-posix.sh: Likewise.
95079         * tests/test-vprintf-posix.sh: Likewise.
95080         * tests/test-xprintf-posix.sh: Likewise.
95082 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95084         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
95085         hide error from 'ls', needed on OS/2.
95086         Report by Elbert Pol <elbert.pol@gmail.com>.
95088 2008-04-04  Eric Blake  <ebb9@byu.net>
95090         Make test-fseeko.c failures meaningful.
95091         * tests/test-fseeko.c: Print line number on failure.
95092         * tests/test-fseek.c: Likewise.
95093         Reported by Nelson H. F. Beebe.
95095         Improve strtod bug detection check.
95096         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
95097         required for Solaris 10.
95098         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
95100 2008-04-04  Bruno Haible  <bruno@clisp.org>
95102         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
95103         by m4/setenv.m4.
95105 2008-04-03  Eric Blake  <ebb9@byu.net>
95107         Ensure sane .version contents.
95108         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
95109         version string.
95110         * build-aux/git-version-gen: Improve documentation.
95112         Make GNU make output nicer.
95113         * top/GNUmakefile [!_have-Makefile]: Add dependency on
95114         MAKECMDGOALS to enforce message for all command line targets.  Set
95115         srcdir for use in maint.mk.
95117         Another maintainer tweak.
95118         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
95119         a target that regenerates version.
95121 2008-04-03  Jim Meyering  <meyering@redhat.com>
95123         vc-list-files: don't cause coreutils "make po-check" failure
95124         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
95126 2008-04-03  Eric Blake  <ebb9@byu.net>
95128         Allow VPATH usage of vc-list-files.
95129         * build-aux/vc-list-files (scriptversion): Add timestamp.
95130         (options): Add --help, --version, -C.
95131         (CVS): Support installed cvsu.
95133 2008-04-02  Bruno Haible  <bruno@clisp.org>
95135         Avoid some "statement with no effect" warnings from gcc.
95136         * tests/test-wctype.c (main): Explicitly ignore unused values.
95137         Reported by Jim Meyering.
95139 2008-04-02  Jim Meyering  <meyering@redhat.com>
95141         Avoid some warnings from "gcc -Wshadow".
95142         * tests/test-frexp.c (exp): Define to a different identifier.
95143         * tests/test-frexpl.c (exp): Likewise.
95145 2008-04-03  Jim Meyering  <meyering@redhat.com>
95147         bootstrap: remove dangling *.[ch] symlinks from lib
95148         * build-aux/bootstrap [dangling symlink removal]: Move find's
95149         -depth option to precede all others, to avoid a warning.
95150         Remove *.[ch] files too, and from "$source_base" (usually lib/).
95152 2008-04-02  Bruno Haible  <bruno@clisp.org>
95154         Avoid some warnings from "gcc -Wshadow".
95155         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
95156         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
95157         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
95158         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
95159         Reported by Jim Meyering.
95161 2008-04-01  Bruno Haible  <bruno@clisp.org>
95163         Fix test to work on IRIX 6.5 with cc.
95164         * tests/test-math.c (numeric_equal): New function.
95165         (main): Use it.
95167 2008-04-01  Bruno Haible  <bruno@clisp.org>
95169         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
95171 2008-04-01  Bruno Haible  <bruno@clisp.org>
95173         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
95174         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
95175         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
95176         (Depends-on): Remove math.
95178         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
95179         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
95180         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
95181         (Depends-on): Remove math.
95183         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
95184         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
95185         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
95186         (Depends-on): Remove math.
95187         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
95188         (Depends-on): Remove math.
95190         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
95191         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
95192         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
95193         (Depends-on): Remove math.
95194         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
95195         (Depends-on): Remove math.
95197         * tests/test-round1.c: Include nan.h.
95198         (main): Use NaNd instead of NAN.
95199         * modules/round-tests (Files): Add tests/nan.h.
95201         * tests/test-trunc1.c: Include nan.h.
95202         (main): Use NaNd instead of NAN.
95203         * modules/trunc-tests (Files): Add tests/nan.h.
95205         * tests/test-roundf1.c: Include nan.h.
95206         (main): Use NaNf instead of NAN.
95207         * modules/roundf-tests (Files): Add tests/nan.h.
95209         * tests/test-truncf1.c: Include nan.h.
95210         (main): Use NaNf instead of NAN.
95211         * modules/truncf-tests (Files): Add tests/nan.h.
95213         * tests/test-ceilf1.c: Include nan.h.
95214         (main): Use NaNf instead of NAN.
95215         * modules/ceilf-tests (Files): Add tests/nan.h.
95217         * tests/test-floorf1.c: Include nan.h.
95218         (main): Use NaNf instead of NAN.
95219         * modules/floorf-tests (Files): Add tests/nan.h.
95221         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
95222         (main): Use NaNf instead of NAN.
95223         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
95225         * tests/test-isnand.c: Include nan.h instead of <math.h>.
95226         (main): Use NaNd instead of NAN.
95227         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
95229         * tests/test-frexp.c: Include nan.h.
95230         (main): Use NaNd instead of NAN.
95231         * modules/frexp-tests (Files): Add tests/nan.h.
95233         * lib/isnan.c: Don't include <math.h>.
95234         (FUNC): Don't use NAN macro.
95235         * modules/isnand-nolibm (Depends-on): Remove math.
95236         * modules/isnanf-nolibm (Depends-on): Remove math.
95237         * modules/isnanl (Depends-on): Remove math.
95238         * modules/isnanl-nolibm (Depends-on): Remove math.
95240         * tests/nan.h: New file.
95242 2008-04-01  Eric Blake  <ebb9@byu.net>
95244         Fix typos.
95245         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
95246         values to be the right type.
95248         For now, cater to gnulib strtod inaccuracies.
95249         * tests/test-strtod.c (main): Allow 1-ulp error on expected
95250         fractional results.  While not as nice from a QoI perspective, it
95251         is a quicker patch than correctly implementing decimal to binary
95252         rounding.
95254 2008-03-31  Eric Blake  <ebb9@byu.net>
95256         Guarantee a definition of NAN.
95257         * lib/math.in.h (NAN): Define if missing.
95258         * tests/test-math.c (main): Test it.
95259         * doc/posix-headers/math.texi (math.h): Document this.
95260         * lib/isnan.c (rpl_isnand): Use it.
95261         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
95262         * tests/test-floorf1.c (NaN): Likewise.
95263         * tests/test-frexp.c (NaN): Likewise.
95264         * tests/test-isnand.c (NaN): Likewise.
95265         * tests/test-isnanf.c (NaN): Likewise.
95266         * tests/test-round1.c (NaN): Likewise.
95267         * tests/test-roundf1.c (NaN): Likewise.
95268         * tests/test-snprintf-posix.h (NaN): Likewise.
95269         * tests/test-sprintf-posix.h (NaN): Likewise.
95270         * tests/test-trunc1.c (NaN): Likewise.
95271         * tests/test-truncf1.c (NaN): Likewise.
95272         * tests/test-vasnprintf-posix.c (NaN): Likewise.
95273         * tests/test-vasprintf-posix.c (NaN): Likewise.
95274         * modules/isnand-nolibm (Depends-on): Add math.
95275         * modules/isnanf-nolibm (Depends-on): Likewise.
95276         * modules/isnanl (Depends-on): Likewise.
95277         * modules/isnanl-nolibm (Depends-on): Likewise.
95278         * modules/snprintf-posix-tests (Depends-on): Likewise.
95279         * modules/sprintf-posix-tests (Depends-on): Likewise.
95280         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
95281         * modules/vsprintf-posix-tests (Depends-on): Likewise.
95282         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
95283         * modules/vasprintf-posix-tests (Depends-on): Likewise.
95285 2008-03-31  Bruno Haible  <bruno@clisp.org>
95287         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
95288         * doc/posix-functions/strtod.texi: Likewise.
95290 2008-03-31  Bruno Haible  <bruno@clisp.org>
95292         * tests/test-strtod.c (main): Don't use C99 syntax.
95294 2008-03-31  Bruno Haible  <bruno@clisp.org>
95296         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
95297         Reported by Eric Blake.
95299 2008-03-31  Jim Meyering  <meyering@redhat.com>
95301         Don't compare actual signbit return values.
95302         * tests/test-strtod.c (main): Rather, compare only their
95303         zero/non-zero nature.
95305 2008-03-31  Eric Blake  <ebb9@byu.net>
95307         More strtod documentation.
95308         * doc/posix-functions/strtod.texi (strtod): Interpret more test
95309         failures as distinct bugs.
95311 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
95313         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
95314         Problem reported by Erik Benada in
95315         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
95317 2008-03-30  Bruno Haible  <bruno@clisp.org>
95319         * tests/test-strtod.c: Add comments about which assertion fails on which
95320         platform.
95321         * doc/posix-functions/strtod.texi: Add info about many more platforms.
95323 2008-03-30  Eric Blake  <ebb9@byu.net>
95325         Test signbit behavior on zeros.
95326         * tests/test-signbit.c (test_signbitf): Add tests for zero.
95327         (test_signbitd, test_signbitl): Likewise.
95329         More strtod touchups.
95330         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
95331         sign of negative underflow, for now.  Use .5, not .1.
95332         * doc/posix-functions/strtod.texi (strtod): Mention these
95333         limitations.
95334         Reported by Jim Meyering.
95336 2008-03-30  Bruno Haible  <bruno@clisp.org>
95338         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
95339         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
95341 2008-03-30  Bruno Haible  <bruno@clisp.org>
95343         Avoid failure when attempting to return empty iconv results on some
95344         platforms.
95345         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
95346         allocation, don't report ENOMEM when the resulting string is empty.
95348 2008-03-30  Bruno Haible  <bruno@clisp.org>
95350         Fix buffer overrun.
95351         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
95352         Don't consider the width for tmp_length. Check count against tmp_length
95353         before doing the padding. Ensure enough allocation during padding.
95355 2008-03-30  Eric Blake  <ebb9@byu.net>
95357         strtod touchups.
95358         * lib/strtod.c (strtod): Avoid compiler warnings.
95359         Reported by Jim Meyering.
95361 2008-03-30  Bruno Haible  <bruno@clisp.org>
95363         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
95364         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
95365         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
95366         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
95367         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
95368         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
95369         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
95370         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
95372         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
95373         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
95374         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
95375         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
95376         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
95377         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
95378         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
95379         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
95381         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
95382         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
95383         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
95384         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
95385         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
95386         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
95387         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
95388         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
95390         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
95391         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
95393         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
95394         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
95396         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
95397         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
95399         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
95400         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
95401         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
95403         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
95404         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
95405         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
95407         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
95408         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
95409         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
95411         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
95412         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
95413         * modules/vasprintf (Depends-on): Add EOVERFLOW.
95415         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
95416         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
95417         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
95418         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
95419         (Depends-on): Add EOVERFLOW.
95420         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
95421         (Depends-on): Add EOVERFLOW.
95422         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
95423         (Depends-on): Add EOVERFLOW.
95424         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
95425         (Depends-on): Add EOVERFLOW.
95426         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
95427         (Depends-on): Add EOVERFLOW.
95428         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
95429         (Depends-on): Add EOVERFLOW.
95430         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
95431         (Depends-on): Add EOVERFLOW.
95432         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
95433         (Depends-on): Add EOVERFLOW.
95435         * lib/sprintf.c (EOVERFLOW): Remove fallback.
95436         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
95437         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
95439         * lib/snprintf.c (EOVERFLOW): Remove fallback.
95440         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
95441         * modules/snprintf (Depends-on): Add EOVERFLOW.
95443         * lib/poll.c (EOVERFLOW): Remove fallback.
95444         * modules/poll (Depends-on): Add EOVERFLOW.
95446         * lib/getugroups.c (EOVERFLOW): Remove fallback.
95447         * modules/getugroups (Depends-on): Add EOVERFLOW.
95449         * lib/getdelim.c (EOVERFLOW): Remove fallback.
95450         * modules/getdelim (Depends-on): Add EOVERFLOW.
95452         * lib/ftell.c (EOVERFLOW): Remove fallback.
95453         * modules/ftell (Depends-on): Add EOVERFLOW.
95455         * lib/fprintf.c (EOVERFLOW): Remove fallback.
95456         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
95457         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
95459         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
95461         * modules/EOVERFLOW-tests: New file.
95462         * tests/test-EOVERFLOW.c: New file.
95464         * modules/EOVERFLOW: New file.
95465         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
95467 2008-03-30  Bruno Haible  <bruno@clisp.org>
95469         Fix bug introduced on 2007-06-10.
95470         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
95471         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
95473 2008-03-30  Bruno Haible  <bruno@clisp.org>
95475         Improve freadseek's efficiency after ungetc.
95476         * lib/freadseek.c: Include freadahead.h.
95477         (freadptrinc): New function, extracted from freadseek.
95478         (freadseek): Use it in a loop. Use freadahead to determine the number
95479         of loop iterations.
95480         * modules/freadseek (Depends-on): Add freadahead.
95481         (configure.ac): Require AC_C_INLINE.
95483 2008-03-30  Bruno Haible  <bruno@clisp.org>
95485         * lib/freadseek.c (freadseek): Don't ignore the return value of
95486         freadptr.
95488 2008-03-29  Eric Blake  <ebb9@byu.net>
95490         Add hex float support.
95491         * modules/strtod (Depends-on): Add c-ctype.
95492         (Link): Mention POW_LIB.
95493         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
95494         whitespace between 'e' and exponent.
95495         * tests/test-strtod.c (main): Enable hex float tests.
95496         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
95497         now provides.
95499         Document various strtod bugs, with some fixes.
95500         * doc/posix-functions/strtod.texi (strtod): Document bugs with
95501         "-0x", "inf", "nan", and hex constants.
95502         * doc/posix-functions/atof.texi (atof): Likewise.
95503         * modules/stdlib (Makefile.am): Support strtod.
95504         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
95505         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
95506         detect additional strtod bugs.
95507         * lib/stdlib.in.h (rpl_strtod): Add declarations.
95508         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
95509         bool where appropriate.  Parse 'inf' and 'nan'.
95510         * tests/test-strtod.c: New file.
95511         * modules/strtod (Depends-on): Add stdbool, stdlib.
95512         (configure.ac): Turn on module indicator.
95513         * modules/strtod-tests: New module.
95515 2008-03-29  Eric Blake  <ebb9@byu.net>
95517         Fix ftell on mingw.
95518         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
95519         * modules/ftell-tests (Depends-on): Add binary-io.
95520         * modules/ftello-tests (Depends-on): Likewise.
95521         * tests/test-ftell.c (main): Enhance test to cover behavior after
95522         ungetc.  Enforce binary mode.
95523         * tests/test-ftello.c (main): Likewise.
95525         Pass test-freadseek on cygwin.
95526         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
95527         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
95528         ungetc buffer.
95530         * tests/test-fflush2.c (main): Fix typo.
95532 2008-03-29  Bruno Haible  <bruno@clisp.org>
95534         * tests/test-fflush2.c (main): Temporarily disable the contents of
95535         this test.
95536         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
95537         Reported by Eric Blake.
95539 2008-03-28  Simon Josefsson  <simon@josefsson.org>
95541         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
95542         (GC_SHA224_DIGEST_SIZE): Add.
95544         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
95545         (gc_hash_digest_length): Likewise.
95546         (gc_hash_buffer): Likewise.
95548 2008-03-25  Bruno Haible  <bruno@clisp.org>
95550         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
95551         detail which gettext release to use.
95552         Reported by Simon Josefsson.
95554 2008-03-26  Jim Meyering  <meyering@redhat.com>
95556         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
95557         * modules/gnumakefile (clean-GNUmakefile): Also, use
95558         test ... && ... || : syntax rather than if-then ... fi.
95560         gnumakefile: Don't double-quote-expand $(VPATH) value.
95561         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
95563 2008-03-24  Eric Blake  <ebb9@byu.net>
95565         Alter GNUmakefile to install into top directory.
95566         * modules/maintainer-makefile: Split, and add dependency...
95567         * modules/gnumakefile: to this new module.
95568         * build-aux/GNUmakefile: Move...
95569         * top/GNUmakefile: ...here.
95570         * build-aux/maint.mk: Move...
95571         * top/maint.mk: ...here.
95572         * MODULES.html.sh (Support for maintaining...): Document new
95573         module.
95575 2008-03-23  Bruno Haible  <bruno@clisp.org>
95577         * gnulib-tool: New options --vc-files, --no-vc-files.
95578         (func_usage): Document them.
95579         (vc_files): New variable.
95580         (func_import): Consider vc_files.
95581         (func_create_testdir): Set vc_files to empty.
95582         Suggested by Jim Meyering and Karl Berry.
95584 2008-03-23  Bruno Haible  <bruno@clisp.org>
95586         Fix regex compilation error on HP-UX 11.
95587         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
95588         * modules/regex (Files): Add m4/mbstate_t.m4.
95589         Reported by Ton Voon <ton.voon@altinity.com>.
95591 2008-03-23  Bruno Haible  <bruno@clisp.org>
95593         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
95595 2008-03-23  Eric Blake  <ebb9@byu.net>
95596             Bruno Haible  <bruno@clisp.org>
95598         Install files from top/ in the destination directory.
95599         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
95600         augmentation also for the files from top/.
95601         (func_import, func_create_testdir): Rewrite file names:
95602         top/filename -> filename.
95604 2008-03-23  Bruno Haible  <bruno@clisp.org>
95606         Tweak "gnulib --version" output.
95607         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
95609 2008-03-23  Bruno Haible  <bruno@clisp.org>
95611         Tweak "gnulib --version" output.
95612         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
95613         rather than contents of ChangeLog, when possible.
95615 2008-03-21  Eric Blake  <ebb9@byu.net>
95617         More --version tweaks.
95618         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
95619         date of last ChangeLog entry.
95621 2008-03-21  Jim Meyering  <meyering@redhat.com>
95623         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
95625 2008-03-20  Eric Blake  <ebb9@byu.net>
95627         VPATH fix.
95628         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
95630 2008-03-20  Simon Josefsson  <simon@josefsson.org>
95632         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
95633         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
95635 2008-03-20  Eric Blake  <ebb9@byu.net>
95637         Sync GNUmakefile with coreutils.
95638         * build-aux/GNUmakefile (have-Makefile): Rename...
95639         (_have-Makefile): ...to this, for namespace consideration.
95640         (GNUmakefile.cfg): Include, if present.
95641         (_autoreconf): Define a default.
95642         (_is-dist-target): New rule for rebuilds to pick up intra-release
95643         version.
95644         (maint-cfg.mk): Rename...
95645         (cfg.mk): ...to this.
95647 2008-03-18  Jim Meyering  <meyering@redhat.com>
95649         New script and module: mktempd
95650         * MODULES.html.sh (maint+release support): Add mktempd.
95651         * build-aux/mktempd: New file.
95652         * modules/mktempd: New file.
95654 2008-03-15  Jim Meyering  <meyering@redhat.com>
95656         Undo last change.
95657         * lib/sha1.c, lib/md5.c: 63 != ~63.
95658         Reported by Andreas Schwab.
95660         sha1.c, md5.c: Hoist a redundant expression.
95661         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
95662         "ctx->buflen" only once, before calling *_process_block.
95663         * lib/md5.c (md5_process_bytes): Likewise.
95665 2008-03-14  Eric Blake  <ebb9@byu.net>
95667         Bump copyright year in files generated by gnulib-tool.
95668         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
95669         gnulib-tool, rather than hard-coding it.
95671         Fix 'gnulib-tool --version' output to work with git.
95672         * gnulib-tool (func_gnulib_dir): New function, extracted from...
95673         (startup): ...here.
95674         (func_version): Use it to invoke git-version-gen, rather than
95675         relying on CVS keyword expansion.  Modernize wording.
95676         (cvsdatestamp, last_checkin_date, version): Kill unused
95677         variables.
95679 2008-03-12  Jim Meyering  <meyering@redhat.com>
95681         Recognize optional cast of the argument to free.
95682         * build-aux/useless-if-before-free: Update regexps.
95684         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
95686 2008-03-11  Bruno Haible  <bruno@clisp.org>
95688         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
95689         by a single package.
95690         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
95691         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
95692         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
95693         Reported by Sam Steingold <sds@gnu.org>.
95695 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
95697         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
95698         repositories.
95700 2008-03-11  Bruno Haible  <bruno@clisp.org>
95702         Avoid conflicts between local macro definitions.
95703         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
95704         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
95706 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
95707             Bruno Haible  <bruno@clisp.org>
95709         Make va_copy work with some version of xlc on AIX 5.1.
95710         * lib/stdarg.in.h: New file.
95711         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
95712         On AIX, use a <stdarg.h> file substitute.
95713         * modules/stdarg (Files): Add lib/stdarg.in.h.
95714         (Depends-on): Add include_next.
95715         (Makefile.am): Build a stdarg.h substitute if requested.
95716         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
95718 2008-03-10  Bruno Haible  <bruno@clisp.org>
95720         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
95721         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
95722         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
95724 2008-03-10  Bruno Haible  <bruno@clisp.org>
95726         * modules/stdlib (Depends-on): Add include_next, remove
95727         absolute-header.
95729 2008-03-09  Bruno Haible  <bruno@clisp.org>
95731         * lib/freadahead.h (freadahead): Document more precisely.
95732         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
95733         the sum of both buffer sizes.
95734         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
95735         * NEWS: Document the change.
95737 2008-03-09  Bruno Haible  <bruno@clisp.org>
95739         Extend freadptr to return also the buffer size.
95740         * lib/freadptr.h (freadptr): Add sizep argument.
95741         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
95742         (freadptr): Add sizep argument. Determine buffer size like freadahead
95743         does.
95744         * tests/test-freadptr.c: Don't include freadahead.h.
95745         (main): Adapt for new calling convention of freadptr.
95746         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
95747         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
95748         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
95749         tests/test-freadptr2.sh.
95750         (Depends): Remove freadahead.
95751         (TESTS): Add test-freadptr2.sh.
95752         (check_PROGRAMS): Add test-freadptr2.
95754 2008-03-09  Bruno Haible  <bruno@clisp.org>
95756         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
95757         Report and solution by Simon Josefsson.
95759 2008-03-06  Bruno Haible  <bruno@clisp.org>
95761         Make fflush after ungetc work on BSD platforms.
95762         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
95763         * tests/test-fflush2.c: New file.
95764         * tests/test-fflush2.sh: New file.
95765         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
95766         tests/test-fflush2.c.
95767         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
95768         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
95770 2008-03-06  Eric Blake  <ebb9@byu.net>
95772         Likewise for ftello.
95773         * modules/ftello (Dependencies): Add extensions.
95774         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
95776 2008-03-06  Bruno Haible  <bruno@clisp.org>
95778         * modules/fseeko (Dependencies): Add extensions.
95779         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
95780         Needed on glibc systems.
95782 2008-03-06  Bruno Haible  <bruno@clisp.org>
95784         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
95785         email address.
95786         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
95788 2008-03-06  Bruno Haible  <bruno@clisp.org>
95790         * users.txt: Add libgnupdf.
95792 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
95794         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
95795         (Header File Substitutes, Function Substitutes,
95796         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
95797         (Build robot for gnulib): Fix typo.
95799 2008-03-06  Bruno Haible  <bruno@clisp.org>
95801         * doc/gnulib-tool.texi (VCS Issues): Small updates.
95802         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
95804 2008-03-06  Bruno Haible  <bruno@clisp.org>
95806         * doc/func.texi: New file, extracted from doc/gnulib.texi.
95807         * doc/gnulib.texi: Include it.
95809 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95811         * modules/func (License): Change license to unlimited; there was
95812         no LGPL parts in the module anyway.
95814 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95816         * modules/__func__: Renamed to modules/func.
95817         * modules/__func__-tests: Renamed to modules/func-tests.
95818         * tests/test-__func__.c: Renamed to tests/test-func.c.
95819         * m4/__func__.m4: Renamed to m4/func.m4.
95820         * doc/gnulib.texi (__func__): Section renamed to func.
95821         Suggested by Eric Blake <ebb9@byu.net>.
95823 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95825         * doc/gnulib.texi (__func__): Use C99 terminology when talking
95826         about __func__.  Make example self-contained.  Suggested by Eric
95827         Blake <ebb9@byu.net>.
95829         * tests/test-__func__.c (main): Avoid extraneous () around __func.
95830         Suggested by Eric Blake <ebb9@byu.net>.
95832 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95834         * modules/__func__: New file.
95835         * modules/__func__-tests: New file.
95836         * tests/test-__func__.c: New file.
95837         * m4/__func__.m4: New file.
95838         * doc/gnulib.texi (__func__): Document __func__ module.
95840 2008-03-05  Simon Josefsson  <simon@josefsson.org>
95842         * modules/byteswap (License): Re-license as LGPLv2+.
95844 2008-03-05  Simon Josefsson  <simon@josefsson.org>
95846         * doc/Makefile: Add pdf target.
95848 2008-03-05  Simon Josefsson  <simon@josefsson.org>
95850         * modules/inline (License): Use 'unlimited', since there are only
95851         *.m4 files in this module.
95853 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
95854             Bruno Haible  <bruno@clisp.org>
95856         Add support for HP C 7.1 on OpenVMS 8.3.
95857         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
95859 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
95861         Update VMS specifics.
95862         * lib/getopt.c [VMS]: Remove include of unixlib.h.
95864 2008-03-02  Jim Meyering  <meyering@redhat.com>
95866         Remove the last dependency on the "free" module.
95867         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
95868         Reported by Bob Proulx.
95870         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
95872         Remove useless "if" tests before free.  Deprecate "free" module.
95873         * doc/posix-functions/free.texi: Mention that this
95874         module is no longer useful.
95875         * modules/free (Notice): Say this module is obsolete.
95876         * modules/readutmp (Depends-on): Remove free.
95877         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
95878         * lib/putenv.c (putenv): Likewise.
95879         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
95880         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
95881         * tests/test-c-strcasestr.c (main): Likewise.
95882         * tests/test-c-strstr.c (main): Likewise.
95883         * tests/test-mbscasestr1.c (main): Likewise.
95884         * tests/test-mbscasestr2.c (main): Likewise.
95885         * tests/test-mbsstr1.c (main): Likewise.
95886         * tests/test-mbsstr2.c (main): Likewise.
95887         * tests/test-memmem.c (main): Likewise.
95888         * tests/test-strcasestr.c (main): Likewise.
95889         * tests/test-striconv.c (main): Likewise.
95890         * tests/test-striconveh.c (main): Likewise.
95891         * tests/test-striconveha.c (main): Likewise.
95892         * tests/test-strstr.c (main): Likewise.
95894         * build-aux/git-version-gen: Adjust a comment and the Usage string.
95896         bootstrap: sync from coreutils again
95897         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
95899 2008-03-01  Jim Meyering  <meyering@redhat.com>
95901         bootstrap: sync from coreutils
95902         * build-aux/bootstrap (update_po_files): Copy a .po file into place
95903         also when the target doesn't exist.
95905 2008-03-01  Eric Blake  <ebb9@byu.net>
95907         Fix bugs in last patch.
95908         * lib/memchr2.c (memchr2): Fix typo.
95909         * tests/test-memchr2.c: Test previous bug, and don't use GNU
95910         extension.
95911         Reported by Bruce Korb.
95913         New module 'memchr2'.
95914         * modules/memchr2: New file.
95915         * modules/memchr2-tests: Likewise.
95916         * lib/memchr2.h: Likewise.
95917         * lib/memchr2.c: Likewise, based on memchr.c.
95918         * tests/test-memchr2.c: New test.
95919         * MODULES.html.sh (String handling): Add memchr2.
95921 2008-02-29  Bruno Haible  <bruno@clisp.org>
95923         * modules/freadseek-tests: New file.
95924         * tests/test-freadseek.sh: New file.
95925         * tests/test-freadseek.c: New file.
95927         New module 'freadseek'.
95928         * modules/freadseek: New file.
95929         * lib/freadseek.h: New file.
95930         * lib/freadseek.c: New file.
95931         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
95933 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
95935         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
95936         wydawca.
95938         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
95939         program_invocation_name and program_invocation_short_name are
95940         present.
95942 2008-02-28  Bruno Haible  <bruno@clisp.org>
95944         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
95945         * tests/test-freadptr.sh: Also test non-seekable stdin.
95947 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
95949         * build-aux/bootstrap (source_base, m4_base)
95950         (doc_base, tests_base): New variables.
95951         (gnulib_tool_options): Do not hardcode base directories, use
95952         the above variables instead.
95954 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
95956         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
95958 2008-02-28  Bruno Haible  <bruno@clisp.org>
95960         * modules/freadptr-tests: New file.
95961         * tests/test-freadptr.sh: New file.
95962         * tests/test-freadptr.c: New file.
95964         New module 'freadptr'.
95965         * modules/freadptr: New file.
95966         * lib/freadptr.h: New file.
95967         * lib/freadptr.c: New file.
95968         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
95970 2008-02-26  Karl Berry  <karl@freefriends.org>
95972         Sync from Libtool:
95973         * libltdl/argz.c (argz_add, argz_count): New functions.
95974         * libltdl/argz.in.h: Declare them.
95975         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
95977 2008-02-22  Bruno Haible  <bruno@clisp.org>
95979         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
95980         is a pointer type.  Needed for HP-UX 10.
95981         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
95982         * doc/posix-functions/gmtime_r.texi: Likewise.
95983         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
95985 2008-02-24  Bruno Haible  <bruno@clisp.org>
95987         * modules/environ-tests: New file.
95988         * tests/test-environ.c: New file.
95990         New module 'environ'.
95991         * modules/environ: New file.
95992         * lib/unistd.in.h (environ): New declaration.
95993         * m4/environ.m4: New file.
95994         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
95995         after use.
95996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
95997         HAVE_DECL_ENVIRON.
95998         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
95999         HAVE_DECL_ENVIRON.
96000         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
96001         wrong claim that 'environ' is missing on some systems.
96002         * modules/execute (Depends-on): Add environ.
96003         * lib/execute.c (environ): Remove fallback declaration.
96004         * modules/pipe (Depends-on): Add environ.
96005         * lib/pipe.c (environ): Remove fallback declaration.
96006         * modules/setenv (Depends-on): Add environ.
96007         * lib/setenv.c (environ): Remove fallback declaration.
96008         * modules/unsetenv (Depends-on): Add environ.
96009         * lib/unsetenv.c (environ): Remove fallback declaration.
96010         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
96011         m4/environ.m4.
96012         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
96013         (gl_PREREQ_UNSETENV): Likewise.
96015 2008-02-24  Bruno Haible  <bruno@clisp.org>
96017         * doc/posix-functions/environ.texi: Document the MacOS X problem.
96019 2008-02-20  Bob Proulx  <bob@proulx.com>
96021         Enable use of older two part flavor 'git describe'.
96022         * build-aux/git-version-gen: If using the older two part flavor of
96023         git version then recreate the third part now present in the
96024         newer three part flavor of git describe.
96026 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
96028         * lib/fts.c (fts_build): Typo correction to comment.
96030 2008-02-17  Bruno Haible  <bruno@clisp.org>
96032         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
96033         generating no-op conflicts.
96035 2008-02-17  Bruno Haible  <bruno@clisp.org>
96037         Speed up by 10%.
96038         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
96039         result_entries, rather than an index-based loop.
96041 2008-02-17  Bruno Haible  <bruno@clisp.org>
96043         Speed up by 25%.
96044         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
96045         'hashcode_cached'.
96046         (entry_create): New function.
96047         (entry_hashcode): Use the cached hashcode if possible.
96048         (read_changelog_file, try_split_merged_entry): Use entry_create.
96050 2008-02-17  Bruno Haible  <bruno@clisp.org>
96052         Speed up from O(n^2) to O(n) for long ChangeLog files.
96053         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
96054         (read_changelog_file): Change implementation of entries_reversed list
96055         to rbtreehash.
96056         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
96058 2008-02-17  Bruno Haible  <bruno@clisp.org>
96060         New option --split-merged-entry.
96061         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
96062         (find_paragraph_end, try_split_merged_entry): New functions.
96063         (long_options): Add option --split-merged-entry.
96064         (usage): Document option --split-merged-entry.
96065         (main): Implement option --split-merged-entry.
96066         Reported by Eric Blake.
96068 2008-02-17  Bruno Haible  <bruno@clisp.org>
96070         * lib/git-merge-changelog.c: Include c-strstr.h.
96071         (main): Support the "git pull --rebase" situation.
96072         * modules/git-merge-changelog (Depends-on): Add c-strstr.
96073         Reported by Eric Blake.
96075 2008-02-16  Eric Blake  <ebb9@byu.net>
96077         Avoid doubling \ in common case of "c-maybe" quoting style.
96078         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
96079         eliding outer quotes.
96080         * lib/quotearg.h: Document this.
96081         * tests/test-quotearg.c (result_strings, inputs, results_g)
96082         (flag_results, locale_results): Test it by adding a new string to
96083         each test group.
96084         (compare_strings): Test new string.
96086 2008-02-13  Eric Blake  <ebb9@byu.net>
96088         Avoid trigraph quoting in default output.
96089         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
96090         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
96091         unless explicitly requested.
96092         * tests/test-quotearg.c (flag_results, main): Add additional tests.
96094 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
96096         Don't rely on signed integer overflowing to negative value.
96097         * lib/getugroups.c (getugroups): Include <limits.h>.
96098         Instead, compare against INT_MAX, and increment only if the test passes.
96100 2008-02-13  Jim Meyering  <meyering@redhat.com>
96101         and Eric Blake  <ebb9@byu.net>
96103         Avoid shadowing warning and compile errors on Linux.
96104         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
96105         forwarding macros on Linux.
96106         (dcgettext): Define a stub, for Linux.
96107         (results_g, main): Avoid warnings.
96109 2008-02-12  Eric Blake  <ebb9@byu.net>
96111         Silence warning in last patch.
96112         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
96114         Quotearg part 4: add tests, fix c-maybe colon quoting.
96115         * lib/quotearg.h: Improve documentation.
96116         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
96117         escapes when adding outer quotes.  When quoting trigraphs, use
96118         valid C notation.  When quoting NUL, omit extra characters if next
96119         character is not digit.  Alter prototype.
96120         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
96121         callers.
96122         * modules/quotearg-tests: New module.
96123         * tests/test-quotearg.c: New test.
96125 2008-02-07  Eric Blake  <ebb9@byu.net>
96127         Quotearg part 3: add flag to control outer quote elision.
96128         * lib/quotearg.h (c_maybe_quoting_style): New style.
96129         (enum quoting_flags): Better documentation of flags.
96130         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
96131         c-maybe style.
96132         (quotearg_buffer_restyled): Handle new flag to elide outer
96133         quotes.
96135         Quotearg part 2: add flag that can control NUL elision.
96136         * lib/quotearg.h (set_quoting_flags): New prototype.
96137         * lib/quotearg.c (struct quoting_options): Add flag field.
96138         (set_quoting_flags): New function.
96139         (quotearg_buffer_restyled): Add flags parameter.
96140         (quotearg_alloc_mem): Set the flag if length cannot be returned.
96141         (quotearg_n_options): Set the flag, since length cannot be
96142         returned.
96143         (quoting_options_from_style): Default flags correctly.
96145         Quotearg part 1: more wrappers, restore quotearg_char state.
96146         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
96147         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
96148         (quotearg_colon_mem): New wrappers.
96149         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
96150         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
96151         functions.
96152         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
96153         (quotearg_colon_mem): New functions.
96155 2008-02-11  Bruno Haible  <bruno@clisp.org>
96157         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
96158         library in the current directory: it does not work with parallel make.
96159         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96161 2008-02-11  Bruno Haible  <bruno@clisp.org>
96163         * .gitattributes: New file.
96165 2008-02-11  Jim Meyering  <meyering@redhat.com>
96167         useless-if-before-free: Fix reversed exit values.
96168         * build-aux/useless-if-before-free: Use correct values
96169         for EXIT_MATCH and EXIT_NO_MATCH.
96171         * build-aux/useless-if-before-free: Close stdout carefully.
96173 2008-02-10  Bruno Haible  <bruno@clisp.org>
96175         New module 'git-merge-changelog'.
96176         * modules/git-merge-changelog: New file.
96177         * lib/git-merge-changelog.c: New file.
96179 2008-02-10  Jim Meyering  <meyering@redhat.com>
96181         useless-if-before-free: New option: --list (-l).
96183         useless-if-before-free: Don't exit immediately upon open failure.
96184         * build-aux/useless-if-before-free: Exit 2 for errors.
96185         Upon failure to open a file, don't exit immediately.
96186         Rather, just warn and continue with any remaining files.
96188 2008-02-10  Bruno Haible  <bruno@clisp.org>
96190         New abstract list operation 'node_set_value'.
96191         * lib/gl_list.h (gl_list_node_set_value): New function.
96192         (struct gl_list_implementation): New field node_set_value.
96193         * lib/gl_list.c (gl_list_node_set_value): New function.
96194         * lib/gl_array_list.c (gl_array_node_set_value): New function.
96195         (gl_array_list_implementation): Update.
96196         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
96197         (gl_carray_list_implementation): Update.
96198         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
96199         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
96200         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
96201         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
96202         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
96203         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
96204         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
96205         Update.
96206         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
96207         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
96208         (gl_sublist_list_implementation): Update.
96210 2008-02-10  Bruno Haible  <bruno@clisp.org>
96212         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
96213         Needed when ELEMENT is #defined to 'some_type *'.
96215 2008-02-10  Jim Meyering  <meyering@redhat.com>
96217         New script and module: useless-if-before-free
96218         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
96219         * build-aux/useless-if-before-free: New file.
96220         * modules/useless-if-before-free: New file.
96222         * build-aux/gitlog-to-changelog: Use committer date, not author date.
96224         xstrtol_error: Fix typo.
96225         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
96226         s/exit_failure/exit_status/.
96228 2008-02-09  Jim Meyering  <meyering@redhat.com>
96230         New script and module: gitlog-to-changelog
96231         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
96232         * modules/gitlog-to-changelog: New file.
96233         * build-aux/gitlog-to-changelog: New file.
96235 2008-02-08  Jim Meyering  <meyering@redhat.com>
96237         Avoid two "parameter unused" warnings.
96238         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
96239         Mark "st" as used.
96241         Use "git COMMAND", not "git-COMMAND".
96242         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
96243         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
96244         * build-aux/git-version-gen: Use "git status", not "git-status".
96246 2008-02-07  Bruno Haible  <bruno@clisp.org>
96248         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
96249         Avoids a crash on Windows Vista.
96250         Reported by Adam Strzelecki <ono@java.pl> via
96251         Simon Josefsson <simon@josefsson.org>.
96253 2008-02-06  Bruno Haible  <bruno@clisp.org>
96255         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
96256         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
96257         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
96258         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
96259         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
96260         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
96261         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
96262         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
96263         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
96264         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
96265         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
96266         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
96267         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
96268         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96269         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
96270         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
96271         left-adjust flag.
96272         * tests/test-snprintf-posix.h (test_function): Likewise.
96273         * tests/test-sprintf-posix.h (test_function): Likewise.
96274         * tests/test-vasprintf-posix.c (test_function): Likewise.
96275         * doc/posix-functions/fprintf.texi: Update.
96276         * doc/posix-functions/printf.texi: Update.
96277         * doc/posix-functions/snprintf.texi: Update.
96278         * doc/posix-functions/sprintf.texi: Update.
96279         * doc/posix-functions/vfprintf.texi: Update.
96280         * doc/posix-functions/vprintf.texi: Update.
96281         * doc/posix-functions/vsnprintf.texi: Update.
96282         * doc/posix-functions/vsprintf.texi: Update.
96283         Reported by Peter Fales <psfales@alcatel-lucent.com>.
96285 2008-02-06  Bruno Haible  <bruno@clisp.org>
96287         Fix bug introduced on 2008-01-26.
96288         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
96290 2008-02-06  Bruno Haible  <bruno@clisp.org>
96292         Fix bug introduced on 2007-06-10.
96293         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
96294         !NEED_PRINTF_FLAG_ZERO.
96296 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
96298         getloadavg: use libperfstat on AIX5
96299         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
96301 2008-02-03  Bruno Haible  <bruno@clisp.org>
96303         * lib/diffseq.h: Add comments about required #includes.
96304         Reported by Michael Biggs <gnulib@doubleplum.net>.
96306 2008-02-01  Bruno Haible  <bruno@clisp.org>
96308         * users.txt: Add gnuit.
96310 2008-01-31  Bruno Haible  <bruno@clisp.org>
96312         * lib/md4.c (set_uint32): Mark as inline.
96313         * lib/md5.c (set_uint32): Likewise.
96314         * lib/sha1.c (set_uint32): Likewise.
96315         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
96316         * m4/md5.m4 (gl_MD5): Likewise.
96317         * m4/sha1.m4 (gl_SHA1): Likewise.
96319 2008-01-31  Jim Meyering  <meyering@redhat.com>
96321         Use "sizeof VAR", rather than a literal "4".
96322         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
96323         * lib/md4.c (md4_read_ctx): Likewise.
96324         * lib/sha1.c (sha1_read_ctx): Likewise.
96326 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96328         * tests/test-sha1.c: New file, based on test-md5.c.
96330         * modules/crypto/sha1-tests: New file.
96332 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96334         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
96336 2008-01-31  Jim Meyering  <meyering@redhat.com>
96338         Prefer "sizeof v" over the equivalent "4".
96339         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
96340         * lib/md5.c (set_uint32): Likewise.
96341         * lib/sha1.c (set_uint32): Likewise.
96343 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96345         * lib/sha1.c (set_uint32): Mark function as static.
96347 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96349         md2: clarify comments to say that alignment is not required.
96350         * lib/md2.h: Remove warning about alignment in comment.
96351         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
96352         never been required.
96354 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96356         md4: adapt alignment constraint fix from sha1.
96357         * lib/md4.c (set_uint32): New function, from sha1.c
96358         (md4_read_ctx): Use it.
96359         (md4_finish_ctx): Doc fix.
96360         * lib/md4.h: Doc fix.
96362 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96364         md5: adapt alignment constraint fix from sha1.
96365         * lib/md5.c (set_uint32): New function, from sha1.c
96366         (md5_read_ctx): Use it.
96367         (md5_finish_ctx): Doc fix.
96368         * lib/md5.h: Doc fix.
96370 2008-01-30  Peter Palfrader  <weasel@debian.org>
96372         sha1: remove the result buffer alignment constraint
96373         * lib/sha1.c (set_uint32): New function.
96374         (sha1_read_ctx): Rewrite to remove the result buffer alignment
96375         constraint.
96376         (sha1_finish_ctx): Remove comment warning about alignment constraint.
96377         * lib/sha1.h: Likewise.
96379 2008-01-30  Andreas Schwab  <schwab@suse.de>
96380             Bruno Haible  <bruno@clisp.org>
96382         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
96383         correct definition of LDBL_MIN_EXP.
96385 2008-01-30  Karl Berry  <karl@gnu.org>
96387         * config/srclist-update: try to preserve x bit on updates.
96388         * config/srclistvars.sh: update for karl.
96390 2008-01-29  Jim Meyering  <meyering@redhat.com>
96392         vasnprintf.c: Avoid warning about unused label
96393         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
96394         "overflow" label definition and associated code with the
96395         same cpp condition that guards the sole use of that label.
96397 2008-01-26  Bruno Haible  <bruno@clisp.org>
96399         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
96400         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
96401         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
96402         * lib/isnanl-nolibm.h (isnanl): Likewise.
96403         Reported by Paul Eggert <eggert@cs.ucla.edu>.
96405 2008-01-26  Bruno Haible  <bruno@clisp.org>
96407         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
96408         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
96410 2008-01-26  Bruno Haible  <bruno@clisp.org>
96412         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
96413         GCC >= 4.0 built-in.
96414         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
96416 2008-01-26  Bruno Haible  <bruno@clisp.org>
96418         Rename isnan, applicable to 'double' only, to isnand.
96419         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
96420         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
96421         (configure.ac): Update.
96422         (Include): Replace "isnan.h" with "isnand.h".
96423         * m4/isnand.m4: Renamed from m4/isnan.m4.
96424         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
96425         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
96426         instead of isnan.c.
96427         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
96428         instead of HAVE_ISNAN_IN_LIBC.
96429         (isnand): Renamed from isnan.
96430         * lib/isnand.c: New file.
96431         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
96432         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
96433         (Makefile.am): Update.
96434         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
96435         Include isnand.h instead of isnan.h.
96436         (main): Test isnand instead of isnan.
96437         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
96438         isnan-nolibm.
96439         * modules/frexp (Depends-on): Likewise.
96440         * modules/frexp-tests (Depends-on): Likewise.
96441         * modules/frexp-nolibm (Depends-on): Likewise.
96442         * modules/frexp-nolibm-tests (Depends-on): Likewise.
96443         * modules/isfinite (Depends-on): Likewise.
96444         * modules/round-tests (Depends-on): Likewise.
96445         * modules/signbit (Depends-on): Likewise.
96446         * modules/signbit-tests (Depends-on): Likewise.
96447         * modules/snprintf-posix (Depends-on): Likewise.
96448         * modules/sprintf-posix (Depends-on): Likewise.
96449         * modules/trunc-tests (Depends-on): Likewise.
96450         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
96451         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
96452         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
96453         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
96454         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
96455         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
96456         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
96457         * modules/vasnprintf-posix (Depends-on): Likewise.
96458         * modules/vasprintf-posix (Depends-on): Likewise.
96459         * modules/vfprintf-posix (Depends-on): Likewise.
96460         * modules/vsnprintf-posix (Depends-on): Likewise.
96461         * modules/vsprintf-posix (Depends-on): Likewise.
96462         * lib/frexp.c: Include isnand.h instead of isnan.h.
96463         (ISNAN): Set to isnand instead of isnan.
96464         * lib/isfinite.c: Include isnand.h instead of isnan.h.
96465         (gl_isfinited): Use isnand instead of isnan.
96466         * lib/signbitd.c: Include isnand.h instead of isnan.h.
96467         (gl_signbitd): Use isnand instead of isnan.
96468         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
96469         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
96470         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
96471         (main): Use isnand instead of isnan.
96472         * tests/test-round1.c: Include isnand.h.
96473         (main): Use isnand instead of isnan.
96474         * tests/test-round2.c: Include isnand.h instead of isnan.h.
96475         (ISNAN): Set to isnand instead of isnan.
96476         * tests/test-trunc1.c: Include isnand.h.
96477         (main): Use isnand instead of isnan.
96478         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
96479         (equal): Use isnand instead of isnan.
96480         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
96481         isnand-nolibm.
96482         * NEWS: Mention the change.
96484 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
96485             Bruno Haible  <bruno@clisp.org>
96487         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
96488         the GCC builtins for signbits are present and set
96489         REPLACE_SIGNBIT_USING_GCC if so.
96490         * lib/math.in.h (signbit): Define using GCC builtins if
96491         REPLACE_SIGNBIT_USING_GCC is set.
96492         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
96493         REPLACE_SIGNBIT_USING_GCC.
96494         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
96496 2008-01-25  Jim Meyering  <meyering@redhat.com>
96498         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
96499         * lib/poll.c: Include <config.h>, not "config.h".
96500         * tests/test-getaddrinfo.c: Likewise.
96502 2008-01-25  Simon Josefsson  <simon@josefsson.org>
96504         * modules/sockets-tests: New file.
96506 2008-01-24  Simon Josefsson  <simon@josefsson.org>
96508         * modules/sockets: New module, can be used to call WSA_Startup and
96509         WSA_Cleanup when needed.
96511         * lib/sockets.h, lib/sockets.c: New files.
96513         * m4/sockets.m4: New file.
96515         * tests/test-sockets.c: New file.
96517 2008-01-19  Bruno Haible  <bruno@clisp.org>
96519         * doc/posix-headers: Renamed from doc/headers.
96520         * doc/posix-functions: Renamed from doc/functions.
96521         * doc/gnulib.texi: Update.
96523 2008-01-19  Bruno Haible  <bruno@clisp.org>
96525         * doc/glibc-functions/strcasestr.texi: Include contents of
96526         doc/functions/strcasestr.texi, fixing the list of platforms.
96527         * doc/functions/strcasestr.texi: Remove file.
96529 2008-01-19  Bruno Haible  <bruno@clisp.org>
96531         * doc/glibc-functions/memmem.texi: Include contents of
96532         doc/functions/memmem.texi.
96533         * doc/functions/memmem.texi: Remove file.
96535 2008-01-18  Bruno Haible  <bruno@clisp.org>
96537         * doc/glibc-functions/*.texi: New files.
96538         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
96539         to use the new files.
96541 2008-01-17  Bruno Haible  <bruno@clisp.org>
96543         * tests/test-gethostname.c (main): Fix printf statement.
96545 2008-01-17  Simon Josefsson  <simon@josefsson.org>
96547         * modules/gethostname-tests: New file.
96549         * tests/test-gethostname.c: New file.
96551 2008-01-17  Simon Josefsson  <simon@josefsson.org>
96553         * lib/gethostname.c: Include string.h unconditionally, strncpy is
96554         used by the UNAME case.  Reported by Bruno Haible
96555         <bruno@clisp.org>.
96557 2008-01-17  Eric Blake  <ebb9@byu.net>
96559         Convert c-strcasestr to be more efficient.
96560         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
96561         (Depends-on): Add c-strcase, remove malloca, strnlen.
96562         * tests/test-c-strcasestr.c (main): Enhance test.
96563         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
96565 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
96567         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
96568         Use it in creating po/Makevars.
96570 2008-01-15  Simon Josefsson  <simon@josefsson.org>
96572         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
96573         Applications that requires it should initialize libgcrypt
96574         manually.
96576 2008-01-16  Simon Josefsson  <simon@josefsson.org>
96578         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
96580 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
96582         Fix problem with getdate on mingw32 reported by Simon Josefsson
96583         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
96584         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
96585         tzname", when deciding whether to declare tzname.
96586         * lib/strftime.c (tzname): Likewise.
96588 2008-01-15  Bruno Haible  <bruno@clisp.org>
96590         Work around a MacOS X 10.5 bug in frexpl().
96591         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
96592         * doc/functions/frexpl.texi: Document the bug.
96593         Reported by Elias Pipping <pipping@gentoo.org>.
96595 2008-01-14  Eric Blake  <ebb9@byu.net>
96597         Touch up previous patch.
96598         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
96599         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
96601         Convert strcasestr module to use Two-Way algorithm.
96602         * modules/strcasestr-simple: New module, based on the old
96603         strcasestr, but with Two-Way rather than KMP.
96604         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
96605         * lib/string.in.h (rpl_strcasestr): Declare.
96606         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
96607         performance.
96608         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
96609         * modules/string (Makefile.am): Support strcasestr.
96610         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
96611         * modules/strcasestr-tests (Depends-on): Check for alarm.
96612         * tests/test-strcasestr.c: Augment test.
96613         * lib/str-two-way.h: Clean up stray macro.
96614         * NEWS: Document new module.
96615         * MODULES.html.sh (string handling): Likewise.
96616         * doc/functions/strcasestr.texi: New file.
96617         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
96618         here, since it is not a POSIX function.
96620 2008-01-14  Colin Watson  <cjwatson@debian.org>
96621             Bruno Haible  <bruno@clisp.org>
96623         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
96624         works fine; if not, set REPLACE_STRSIGNAL.
96625         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
96626         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
96627         REPLACE_STRSIGNAL.
96628         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
96629         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
96630         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
96632 2008-01-14  Bruno Haible  <bruno@clisp.org>
96634         * modules/strsignal (Include): Change to <string.h>.
96636 2008-01-14  Colin Watson  <cjwatson@debian.org>
96638         * modules/argp (Notice): Add a notice recommending to change
96639         XGETTEXT_OPTIONS.
96640         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
96642 2008-01-13  Colin Watson  <cjwatson@debian.org>
96644         * modules/strsignal-tests: New file.
96645         * tests/test-strsignal.c: New file.
96647         * lib/strsignal.c: New file, from glibc with modifications.
96648         * lib/siglist.h: New file, from glibc with modifications.
96649         * lib/string.in.h (strsignal): New declaration.
96650         * m4/strsignal.m4: New file.
96651         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
96652         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
96653         * modules/strsignal: New file.
96654         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
96655         HAVE_DECL_STRSIGNAL.
96657 2008-01-13  Bruno Haible  <bruno@clisp.org>
96659         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
96660         locale encoding is not ASCII. Needed for OpenBSD 4.0.
96661         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
96662         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
96664 2008-01-13  Bruno Haible  <bruno@clisp.org>
96666         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
96667         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
96668         * lib/argp.h (__attribute__): Likewise.
96669         * lib/c-stack.c (__attribute__): Likewise.
96670         * lib/error.h (__attribute__): Likewise.
96671         * lib/fts.c (__attribute__): Likewise.
96672         * lib/openat.h (__attribute__): Likewise.
96673         * lib/stdio.in.h (__attribute__): Likewise.
96674         * lib/string.in.h (__attribute__): Likewise.
96675         * lib/utimens.c (__attribute__): Likewise.
96676         * lib/vasnprintf.h (__attribute__): Likewise.
96677         * lib/xalloc.h (__attribute__): Likewise.
96678         * lib/xprintf.h (__attribute__): Likewise.
96679         * lib/xstrtol.h (__attribute__): Likewise.
96680         * lib/xvasprintf.h (__attribute__): Likewise.
96682 2008-01-12  Bruno Haible  <bruno@clisp.org>
96684         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
96685         * doc/glibc-headers/a.out.texi: New file.
96686         * doc/glibc-headers/aliases.texi: New file.
96687         * doc/glibc-headers/alloca.texi: New file.
96688         * doc/glibc-headers/ar.texi: New file.
96689         * doc/glibc-headers/argp.texi: New file.
96690         * doc/glibc-headers/argz.texi: New file.
96691         * doc/glibc-headers/byteswap.texi: New file.
96692         * doc/glibc-headers/crypt.texi: New file.
96693         * doc/glibc-headers/endian.texi: New file.
96694         * doc/glibc-headers/envz.texi: New file.
96695         * doc/glibc-headers/err.texi: New file.
96696         * doc/glibc-headers/error.texi: New file.
96697         * doc/glibc-headers/execinfo.texi: New file.
96698         * doc/glibc-headers/fpu_control.texi: New file.
96699         * doc/glibc-headers/fstab.texi: New file.
96700         * doc/glibc-headers/fts.texi: New file.
96701         * doc/glibc-headers/getopt.texi: New file.
96702         * doc/glibc-headers/ieee754.texi: New file.
96703         * doc/glibc-headers/ifaddrs.texi: New file.
96704         * doc/glibc-headers/libintl.texi: New file.
96705         * doc/glibc-headers/mcheck.texi: New file.
96706         * doc/glibc-headers/mntent.texi: New file.
96707         * doc/glibc-headers/obstack.texi: New file.
96708         * doc/glibc-headers/paths.texi: New file.
96709         * doc/glibc-headers/printf.texi: New file.
96710         * doc/glibc-headers/pty.texi: New file.
96711         * doc/glibc-headers/resolv.texi: New file.
96712         * doc/glibc-headers/shadow.texi: New file.
96713         * doc/glibc-headers/sysexits.texi: New file.
96714         * doc/glibc-headers/ttyent.texi: New file.
96716 2008-01-12  Jim Meyering  <meyering@redhat.com>
96718         announce-gen: emit Gnulib's git-based version string.
96719         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
96720         New option --gnulib-version=V, where V is expected to be
96721         the output of running git describe in the gnulib directory.
96722         (get_tool_versions): Request feedback on xdelta.  I suspect it's
96723         not useful, and plan to stop publishing an xdelta file with each
96724         coreutils release.
96726         * build-aux/announce-gen: Also check for lzma-compressed files.
96728 2008-01-11  Bruno Haible  <bruno@clisp.org>
96730         * tests/test-memmem.c (main): Increase maximum allowed time.
96731         * tests/test-strstr.c (main): Likewise.
96733 2008-01-11  Bruno Haible  <bruno@clisp.org>
96735         * doc/functions/memmem.texi: Add more precisions about platforms.
96736         * doc/functions/strstr.texi: Likewise.
96738 2008-01-10  Eric Blake  <ebb9@byu.net>
96740         * m4/strstr.m4: Delete cruft from copy-n-paste.
96741         Reported by Bruno Haible.
96743 2008-01-10  Bruno Haible  <bruno@clisp.org>
96745         Make c-strstr rely on strstr.
96746         * lib/c-strstr.c: Don't include str-kmp.h.
96747         (c_strstr): Define in terms of strstr.
96748         * modules/c-strstr (Files): Remove lib/str-kmp.h.
96749         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
96751 2008-01-10  Bruno Haible  <bruno@clisp.org>
96753         * doc/gnulib.texi (String Functions in C Locale): New section.
96754         * doc/c-ctype.texi: New file.
96755         * doc/c-strcase.texi: New file.
96756         * doc/c-strcaseeq.texi: New file.
96757         * doc/c-strcasestr.texi: New file.
96758         * doc/c-strstr.texi: New file.
96759         * doc/c-strtod.texi: New file.
96760         * doc/c-strtold.texi: New file.
96762 2008-01-10  Eric Blake  <ebb9@byu.net>
96764         * lib/relocatable.h: Fix a comment.
96766 2008-01-10  Eric Blake  <ebb9@byu.net>
96768         Share two-way algorithm.
96769         * lib/str-two-way.h: New file, merged from...
96770         * lib/memmem.c: ...here...
96771         * lib/strstr.c: ...and here.
96772         * modules/memmem (Files): Use it.
96773         * modules/strstr (Files): Likewise.
96775         Avoid quadratic strstr implementations.
96776         * lib/strstr.c: New file.
96777         * m4/strstr.m4: Likewise.
96778         * modules/strstr: Likewise.
96779         * modules/strstr-tests: Likewise.
96780         * tests/test-strstr.c: Likewise.
96781         * lib/string.in.h (rpl_strstr): Declare.
96782         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
96783         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
96784         * modules/string (Makefile.am): Likewise.
96785         * MODULES.html.sh (string handling): Mention new module.
96786         * doc/functions/strstr.texi (strstr): Document the bug.
96788 2008-01-10  Bruno Haible  <bruno@clisp.org>
96790         * lib/relocatable.h (relocate): State whether result is freshly
96791         allocated or not.
96792         * lib/relocatable.c (relocate): Return a freshly allocated string
96793         instead of a pointer to a privately held string.
96794         Reported by Sylvain Beucler <beuc@gnu.org>.
96796 2008-01-10  Colin Watson  <cjwatson@debian.org>
96798         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
96799         s/S_ISNLK/S_ISLNK/.
96801 2008-01-09  Bruno Haible  <bruno@clisp.org>
96803         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
96804         and other files.
96805         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
96806         if it's only a guess.
96807         * modules/memmem: Simplify by depending on memmem-simple.
96809 2008-01-09  Bruno Haible  <bruno@clisp.org>
96811         Work around OpenBSD 4.0 tdelete() bug.
96812         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
96813         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
96814         macros and don't redefine the enum values.
96815         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
96816         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
96817         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
96819 2008-01-09  Bruno Haible  <bruno@clisp.org>
96821         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
96822         (main): Don't perform the tests if setlocale did not install a UTF-8
96823         locale. Needed on OpenBSD 4.0.
96824         * modules/wcwidth-tests (Depends-on): Add localcharset.
96826 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
96828         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
96829         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
96830         * NEWS: announce this.
96831         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
96833 2008-01-09  Simon Josefsson  <simon@josefsson.org>
96834         and Eric Blake  <ebb9@byu.net>
96836         Add memmem-simple module.
96837         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
96838         (gl_FUNC_MEMMEM): Separate performance from presence checks.
96839         * modules/memmem-simple: New file.
96840         * modules/memmem (Description): Tweak.
96841         * MODULES.html.sh (string handling): Mention new module.
96842         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
96843         addressed by memmem-simple.
96844         * NEWS: Document the difference.
96846 2008-01-09  Eric Blake  <ebb9@byu.net>
96848         Give gcc some memmem optimization hints.
96849         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
96850         (strcasestr): Declare as pure.
96851         * modules/memmem (Maintainer): Claim my implementation.
96853 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96855         Support AIX 6.1 and higher.
96856         * build-aux/config.libpath: Likewise.
96857         * build-aux/config.rpath: Likewise.
96859 2008-01-08  Jim Meyering  <meyering@redhat.com>
96860             Bruno Haible  <bruno@clisp.org>
96862         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
96863         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
96864         Reported by Peter Fales in
96865         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
96867 2008-01-08  Bruno Haible  <bruno@clisp.org>
96869         * modules/unictype/category-of (Depends-on): Add
96870         unictype/category-none.
96871         * modules/unictype/category-and-tests (Depends-on): Add
96872         unictype/category-{L,N,Lu,Nd}.
96873         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
96874         * modules/unictype/category-or-tests (Depends-on): Add
96875         unictype/category-{L,N}.
96876         * modules/unictype/category-name-tests (Depends-on): Add
96877         unictype/category-{Z,Nl}.
96878         Reported by Simon Josefsson.
96880 2008-01-08  Bruno Haible  <bruno@clisp.org>
96882         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
96883         convention better.
96884         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
96885         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
96886         Reported by Peter Miller <millerp@canb.auug.org.au>.
96888 2008-01-08  Eric Blake  <ebb9@byu.net>
96890         Rewrite memmem to guarantee linear complexity without malloc.
96891         * lib/memmem.c (memmem): Use Two-Way rather than
96892         Knuth-Morris-Pratt, to allow O(1) space usage.
96893         (critical_factorization, two_way_short_needle)
96894         (two_way_long_needle): New functions.
96895         (knuth_morris_pratt): Delete.
96896         * modules/memmem (Depends-on): No longer need malloca or stdbool.
96897         Add stdint.
96898         * tests/test-memmem.c (main): Add tests for periodic needle and
96899         sublinear performance.
96900         * doc/functions/memmem.texi (memmem): Document other deficiencies
96901         in cygwin and older glibc.
96903 2008-01-08  Bruno Haible  <bruno@clisp.org>
96905         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
96906         augmentation.
96908 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
96910         Add a configure time option: --disable-acl.
96911         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
96912         AC_ARG_ENABLE(acl).
96914 2008-01-06  Simon Josefsson  <simon@josefsson.org>
96916         * tests/test-localename.c: Don't include obsolete "setenv.h".
96918         * modules/localename-tests (Depends-on): Need unsetenv.
96920 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96922         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
96924 2008-01-06  Colin Watson  <cjwatson@debian.org>
96926         * users.txt: Add man-db.
96928 2008-01-07  Bruno Haible  <bruno@clisp.org>
96930         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
96931         previous section name.
96933 2008-01-07  Bruno Haible  <bruno@clisp.org>
96935         * lib/progname.c (set_program_name): Don't strip off a leading
96936         "lt-" prefix outside a .libs directory.
96937         Suggested by Paul Eggert.
96939 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
96940             Bruno Haible  <bruno@clisp.org>
96942         Improve memory cleanup in 'relocatable' module.
96943         * lib/relocatable.h (compute_curr_prefix): Change return type to
96944         'char *'.
96945         * lib/relocatable.c (compute_curr_prefix): Change return type to
96946         'char *'. Free curr_installdir after use.
96947         (relocate): Free curr_prefix_better after use.
96948         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
96950 2008-01-01  Bruno Haible  <bruno@clisp.org>
96952         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
96953         failure on older glibc systems.
96954         Reported by Peter Fales <psfales@alcatel-lucent.com>.
96956 2008-01-05  Eric Blake  <ebb9@byu.net>
96958         Avoid quadratic system memmem.
96959         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
96960         Reported by Ralf Wildenhues.
96962         Fix memmem test for mingw.
96963         * modules/memmem-tests (configure.ac): Check for alarm.
96964         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
96965         it.
96966         * doc/functions/memmem.texi: New file.
96967         * doc/gnulib.texi (Function Substitutes): Add memmem.
96968         Reported by Bruno Haible.
96970 2008-01-04  Bruno Haible  <bruno@clisp.org>
96972         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
96973         Require gl_HEADER_STRINGS_H_DEFAULTS, not
96974         gl_HEADER_STRING_H_DEFAULTS.
96976 2008-01-04  Eric Blake  <ebb9@byu.net>
96978         Shorten duration of memmem test.
96979         * tests/test-memmem.c (main): Use alarm to declare failure if test
96980         is taking too long.
96981         Reported by Ralf Wildenhues.
96983 2007-12-21  Simon Josefsson  <simon@josefsson.org>
96985         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
96986         string, needed by strerror.
96988 2008-01-03  Colin Watson  <cjwatson@debian.org>
96989             Bruno Haible  <bruno@clisp.org>
96991         * doc/gnulib-tool.texi (Localization): New section.
96993 2008-01-02  Bruno Haible  <bruno@clisp.org>
96995         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
96996         variables to 'unsigned char *' type.
96997         Reported by Paul Eggert.
96999 2008-01-02  Jim Meyering  <jim@meyering.net>
97001         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
97003 2007-12-31  Jim Meyering  <jim@meyering.net>
97005         Avoid use of private FTS type name.
97006         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
97008 2007-12-30  Karl Berry  <karl@gnu.org>
97010         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
97011         work around defect in Texinfo and/or the standalone Info browser.
97013 2007-12-30  Bruno Haible  <bruno@clisp.org>
97015         Unify 5 copies of the KMP code.
97016         * lib/str-kmp.h: New file.
97017         * lib/c-strcasestr.c: Include str-kmp.h.
97018         (knuth_morris_pratt): Remove function.
97019         (c_strcasestr): Update.
97020         * lib/c-strstr.c: Include str-kmp.h.
97021         (knuth_morris_pratt): Remove function.
97022         (c_strcasestr): Update.
97023         * lib/mbscasestr.c: Include str-kmp.h.
97024         (knuth_morris_pratt_unibyte): Remove function.
97025         * lib/mbsstr.c: Include str-kmp.h.
97026         (knuth_morris_pratt_unibyte): Remove function.
97027         * lib/strcasestr.c: Include str-kmp.h.
97028         (knuth_morris_pratt): Remove function.
97029         (strcasestr): Update.
97030         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
97031         * modules/c-strstr (Files): Likewise.
97032         * modules/mbscasestr (Files): Likewise.
97033         * modules/mbsstr (Files): Likewise.
97034         * modules/strcasestr (Files): Likewise.
97035         Suggested by Paul Eggert.
97037 2007-12-30  Bruno Haible  <bruno@clisp.org>
97039         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
97040         defined.
97042 2007-12-30  Bruno Haible  <bruno@clisp.org>
97044         * lib/xmalloca.h: Include xalloc.h.
97045         (xnmalloca): New macro.
97047 2007-12-30  Bruno Haible  <bruno@clisp.org>
97049         * lib/malloca.h (nmalloca): New macro.
97050         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
97051         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
97052         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
97053         knuth_morris_pratt_multibyte): Likewise.
97054         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
97055         knuth_morris_pratt_multibyte): Likewise.
97056         * lib/memmem.c (knuth_morris_pratt): Likewise.
97057         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
97059 2007-12-25  Bruno Haible  <bruno@clisp.org>
97061         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
97062         * lib/glob.c: Don't include openat.h.
97063         (link_exists2_p): Add back the code that deals with the
97064         !GLOB_ALTDIRFUNC case.
97065         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
97066         let it do the filename concatenation.
97067         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
97068         * modules/glob (Depends-on): Remove openat.
97070 2007-12-31  Bruno Haible  <bruno@clisp.org>
97072         * modules/dirfd (License): Change to LGPLv2+.
97073         Approved by Jim Meyering.
97075 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
97077         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
97078         when multiplying M by sizeof (size_t).
97080 2007-12-10  Martin Lambers  <marlam@marlam.de>
97082         Override getpagesize on mingw.
97083         * lib/getpagesize.c: New file.
97084         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
97085         * modules/getpagesize (Files): Add lib/getpagesize.c.
97086         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
97087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
97088         REPLACE_GETPAGESIZE.
97089         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
97091 2007-12-25  Bruno Haible  <bruno@clisp.org>
97093         * modules/localcharset (Notice): New field.
97094         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
97095         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
97097 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
97098             Bruno Haible  <bruno@clisp.org>
97100         Avoid using the syntax symbol() in formatted documentation.
97101         * MODULES.html.sh (func_module): When replacing symbol() with a
97102         hyperlink, remove the parentheses. Show an error if some remain.
97103         Recognize and render the '...' syntax.
97104         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
97105         Rework. Add paragraph about GCC's inlining.
97106         * doc/alloca.texi: Likewise.
97107         * doc/error.texi: Remove parentheses from symbol reference.
97108         * doc/gnulib-intro.texi: Likewise.
97109         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
97110         * modules/fnmatch (Description): Reword to say "the ... function".
97111         * modules/full-read (Description): Likewise.
97112         * modules/full-write (Description): Likewise.
97113         * modules/safe-read (Description): Likewise.
97114         * modules/safe-write (Description): Likewise.
97115         * modules/strchrnul (Description): Likewise.
97116         * modules/trim (Description): Likewise.
97117         * modules/error (Description): Remove parentheses from symbol
97118         references.
97119         * modules/verror (Description): Likewise.
97120         Reported by Karl Berry.
97122 2007-12-25  Bruno Haible  <bruno@clisp.org>
97124         Fixup after 2007-10-16 commit.
97125         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
97127 2007-12-24  Bruno Haible  <bruno@clisp.org>
97129         Make --enable-relocatable work with DESTDIR.
97130         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
97131         to compute installdir from destprog.
97132         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
97133         also set the RELOC_DESTDIR variable.
97134         Reported by Левашев Иван <octagram@bluebottle.com>.
97136 2007-12-24  Bruno Haible  <bruno@clisp.org>
97138         Fix link error due to xalloc_die().
97139         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
97140         of xreadlink.
97141         * lib/relocwrapper.c: Update comments.
97142         * build-aux/install-reloc: Remove xreadlink.c from file list.
97143         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
97144         xreadlink.c.
97145         Reported by Левашев Иван <octagram@bluebottle.com>.
97147 2007-12-24  Bruno Haible  <bruno@clisp.org>
97149         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
97150         * lib/setenv.h: Remove file.
97151         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
97152         lib/setenv.h.
97153         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
97154         (Depends-on): Add stdlib.
97155         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
97156         gl_FUNC_UNSETENV.
97157         (Include): Replace setenv.h with <stdlib.h>.
97158         * modules/unsetenv: New file.
97159         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
97160         * lib/unsetenv.c: Include <stdlib.h> first.
97161         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
97162         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
97163         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
97164         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
97165         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
97166         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
97167         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
97168         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
97169         * doc/functions/unsetenv.texi: Update.
97170         * modules/xsetenv (Depends-on): Add unsetenv.
97171         * modules/getdate (Depends-on): Likewise.
97172         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
97173         * lib/xsetenv.c: Don't include setenv.h.
97174         * lib/getdate.y: Likewise.
97175         * lib/relocwrapper.c: Likewise.
97176         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
97177         (Depends-on): Add stdlib.
97178         * NEWS: Mention the changes.
97179         Reported by Левашев Иван <octagram@bluebottle.com>.
97181 2007-12-23  Bruno Haible  <bruno@clisp.org>
97183         * lib/memmem.c (memmem): Use lowercase variable names. Tab
97184         indentation.
97186 2007-12-23  Bruno Haible  <bruno@clisp.org>
97188         * lib/c-strcasestr.c: Add more comments.
97189         * lib/c-strstr.c: Likewise.
97190         * lib/mbscasestr.c: Likewise.
97191         * lib/mbsstr.c: Likewise.
97192         * lib/strcasestr.c: Likewise.
97193         * lib/memmem.c: Likewise.
97195 2007-12-23  Bruno Haible  <bruno@clisp.org>
97197         * tests/test-memmem.c: Include <string.h> first.
97199 2007-12-22  Bruno Haible  <bruno@clisp.org>
97201         * gnulib-tool (func_create_testdir): Change $auxdir while generating
97202         the contents of $testsbase.
97203         Reported by Ralf Wildenhues.
97205 2007-12-22  Bruno Haible  <bruno@clisp.org>
97207         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
97208         two variables local_ldadd_before, local_ldadd_last.
97210 2007-12-20  Eric Blake  <ebb9@byu.net>
97212         Work around circular library issue when cross-compiling.
97213         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
97214         that progname.o does not need to pull in rpl_memcmp.
97216 2007-12-19  Eric Blake  <ebb9@byu.net>
97218         Fix memmem to avoid O(n^2) worst-case complexity.
97219         * lib/memmem.c (knuth_morris_pratt): New function.
97220         (memmem): Use it if first few naive iterations fail.
97221         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
97222         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
97223         * modules/memchr (License): Likewise.
97224         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
97225         malloca.
97226         * tests/test-memmem.c: Rewrite, borrowing ideas from
97227         test-mbsstr1.c; the old version wouldn't even compile!
97228         * modules/memmem-tests: New file.
97229         * lib/string.in.h (rpl_memmem): Add declaration.
97230         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
97231         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
97232         REPLACE_MEMMEM.
97234 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
97236         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
97237         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
97238         before any system include files, and undef after them all.  This
97239         should fix a problem on VMS reported by John E. Malmberg in
97240         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
97242 2007-12-17  Eric Blake  <ebb9@byu.net>
97244         Revert addition of verify, for BSD/OS.
97245         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
97246         can't handle large files, for the sake of obsolete platforms.
97247         * modules/fseeko (Depends-on): Remove verify.
97248         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
97249         * doc/functions/ftello.texi (ftello): Likewise.
97250         * doc/functions/fgetpos.texi (fgetpos): Likewise.
97251         Reported by Larry Jones.
97253 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
97255         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
97256         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
97258 2007-12-17  Jim Meyering  <meyering@redhat.com>
97260         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
97261         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
97262         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
97263         * modules/getcwd (Depends-on): Add openat.
97264         Reported by Petr Salinger.
97266 2007-12-17  Bruno Haible  <bruno@clisp.org>
97268         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
97269         avoid a segmentation fault of the configure test on x86_64 systems.
97271 2007-12-15  Jim Meyering  <meyering@redhat.com>
97273         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
97275 2007-12-13  Eric Blake  <ebb9@byu.net>
97277         Another fseek test.
97278         * tests/test-fseek.c (main): Also test ungetc handling.
97279         * tests/test-fseeko.c (main): Likewise.
97280         * modules/fseeko (Depends-on): Add verify.
97281         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
97282         large.
97283         Reported by Larry Jones.
97285         Fix fseeko on mingw.
97286         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
97287         seek.
97289         Beef up fseek tests.
97290         * tests/test-fseek.c (main): Also test eof handling.
97291         * tests/test-fseeko.c (main): Likewise.
97292         Reported by Larry Jones.
97294 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
97296         Fix fseeko on BSD-based platforms.
97297         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
97298         successful seek.
97300 2007-12-12  Eric Blake  <ebb9@byu.net>
97302         Allow circular dependency of separate libtests.a
97303         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
97304         when use_libtests.
97306 2007-12-11  Eric Blake  <ebb9@byu.net>
97308         Fix bug with -0.0L in previous patch.
97309         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
97310         * tests/test-isnan.c (main): Also test on zeroes.
97311         * tests/test-isnanf.c (main): Likewise.
97312         * tests/test-isnanl.h (main): Likewise.
97314         Detect pseudo-denormals on x86 even when cross-compiling.
97315         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
97316         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
97317         invalid bit patterns that happen to satisfy ==.
97319         Avoid link failures with separate libtests.a.
97320         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
97321         last, to satisfy circular dependencies.
97323 2007-12-11  Eric Blake  <ebb9@byu.net>
97324         and Bruno Haible  <bruno@clisp.org>
97326         Fix OpenBSD 4.0 <float.h> handling of long double.
97327         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
97328         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
97329         * doc/headers/float.texi (float.h): Document OpenBSD bug.
97331 2007-12-11  Jim Meyering  <meyering@redhat.com>
97333         * users.txt: Add libvirt.
97335         Support versions of autoconf prior to 2.59c.
97336         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
97337         if it is not already defined.
97339 2007-12-09  Bruno Haible  <bruno@clisp.org>
97341         Let 'gnulib-tool --import' collect sources needed for the tests in
97342         tests/ rather than in lib/.
97343         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
97344         argument. If true, add rules to generate libtests.a, and put libtests.a
97345         into $(LDADD). Consider source files in subdirectories and set
97346         uses_subdirs.
97347         (func_emit_initmacro_start, func_emit_initmacro_end,
97348         func_emit_initmacro_done): Pass all arguments explicitly.
97349         (func_import): Determine two module lists main_modules,
97350         testsrelated_modules. Determine use_libtests. Determine two variables
97351         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
97352         instead of just sed_transform_lib_file. Determine two variables
97353         main_files and testsrelated_files. Compute 'files' as the union of
97354         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
97355         func_add_or_update. In the generated gnulib-comp.m4, collect the
97356         object files for tests/ in different variables than those for lib/.
97357         Substitute LIBTESTS_LIBDEPS.
97358         (func_create_testdir): Combine the uses_subdirs results from
97359         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
97361 2007-12-09  Bruno Haible  <bruno@clisp.org>
97363         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
97364         the build-aux directory.
97366 2007-12-09  Bruno Haible  <bruno@clisp.org>
97368         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
97369         introduced on 2006-09-09.
97371 2007-12-07  Jim Meyering  <meyering@redhat.com>
97373         Let these macros work also with autoconf-2.59.
97374         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
97375         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
97376         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
97378 2007-12-06  Jim Meyering  <meyering@redhat.com>
97380         Avoid a configure-time syntax error in gl_FUNC_ACL.
97381         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
97382         function in each branch, before testing the cache variable.
97384 2007-12-04  Eric Blake  <ebb9@byu.net>
97386         Make scripts executable.
97387         * build-aux/config.guess: Add execute permissions.
97388         * build-aux/config.sub: Likewise.
97389         * build-aux/gendocs.sh: Likewise.
97391         Fix frexp on mingw.
97392         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
97393         cross-compiling.
97394         * doc/functions/frexp.texi (frexp): Document the bug.
97396         Make cygwin fseeko check more reliable.
97397         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
97398         version numbers, rather than unrelated feature check.
97399         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
97400         * doc/functions/ftello.texi (ftello): Likewise.
97401         Reported by Bruno Haible.
97403         * m4/strerror.m4: Bump version number.
97405 2007-12-03  Bruno Haible  <bruno@clisp.org>
97407         * doc/functions/mprotect.texi: Mention the mingw problem.
97409 2007-12-03  Eric Blake  <ebb9@byu.net>
97411         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
97412         REPLACE_STRERROR is initialized before this macro.
97414 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
97416         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
97417         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
97418         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
97419         put -lsec in even for programs other than 'ls'.  This fixes a problem
97420         for gettext reported by Bruno Haible in
97421         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
97422         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
97423         Add support for Solaris 10.  This isn't efficient, but should get the
97424         job done for now.
97426 2007-12-03  James Youngman  <jay@gnu.org>
97428         * doc/regexprops-generic.texi: change "an close-group" to "a
97429         close-group" and "illegal" to "not allowed".
97431 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97433         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
97434         pr_byname.h. Needed for the rare case when the maintainer has done
97435         "make maintainer-clean" in the source directory and then attempts a
97436         build outside the source directory.
97437         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
97438         scripts_byname.h.
97440 2007-12-02  Martin Lambers  <marlam@marlam.de>
97441             Bruno Haible  <bruno@clisp.org>
97443         * lib/getpagesize.h: Remove file.
97444         * lib/unistd.in.h: Include declaration of getpagesize here.
97445         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
97446         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
97447         HAVE_SYS_PARAM_H.
97448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
97449         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
97450         * modules/getpagesize (Files): Remove lib/getpagesize.h.
97451         (Depends-on): Add unistd.
97452         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
97453         (Include): Use <unistd.h> instead of getpagesize.h.
97454         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
97455         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
97456         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
97457         gl_GETPAGESIZE invocation, already handled by module dependency.
97458         * lib/pagealign_alloc.c: Don't include getpagesize.h.
97460 2007-12-02  Bruno Haible  <bruno@clisp.org>
97462         * modules/strings-tests: New file.
97463         * tests/test-strings.c: New file.
97465         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
97466         * lib/strings.in.h: New file.
97467         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
97468         * m4/strings_h.m4: New file.
97469         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
97470         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
97471         * modules/strings: New file.
97472         * modules/string (Makefile.am): Update.
97473         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
97474         Reported by Karl Berry.
97476 2007-12-01  Eric Blake  <ebb9@byu.net>
97478         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
97479         accommodate fix in cygwin 1.5.25.
97481 2007-12-01  Jim Meyering  <meyering@redhat.com>
97483         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
97484         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
97485         that would inhibit utf8-optimization of a regexp containing line-
97486         or buffer-anchors, e.g., `^', `$'.
97488 2007-11-30  Bruno Haible  <bruno@clisp.org>
97490         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
97491         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
97492         glthread_recursive_lock_init.
97493         * lib/lock.c (glthread_recursive_lock_init)
97494         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
97495         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
97497 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
97499         New function qset_acl, like set_acl but with syscall semantics.
97500         * lib/acl.h (qset_acl): New decl.
97501         * lib/acl.c (qset_acl): New function.
97502         (set_acl): Use new function.  Use more-consistent diagnostics.
97504 2007-11-28  Jim Meyering  <meyering@redhat.com>
97506         * modules/physmem (License): Change from GPL to LGPLv2+.
97508 2007-11-26  Bruno Haible  <bruno@clisp.org>
97510         * lib/vasnprintf.c (decode_long_double): Don't abort if the
97511         'long double' type has excess precision.
97512         Reported by Jim Meyering in
97513         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
97515 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97517         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
97518         Sync from <http://gnu.org/licenses>.
97519         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
97520         with license text from same location.
97521         * doc/maintain.texi, doc/standards.texi:  Sync from
97522         <http://savannah.gnu.org/projects/gnustandards>.
97524 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
97525         and Jim Meyering  <meyering@redhat.com>
97527         Adjust getdate' grammar to accept a slightly more regular language.
97528         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
97529         Before, the former was rejected.
97530         * lib/getdate.y (digits_to_date_time): New function, factored
97531         out of ...
97532         (number): ...here.  Just call digits_to_date_time.
97533         (hybrid): New non-terminal to handle an <unsigned number,
97534         signed relative offset> sequence consistently.
97536 2007-11-18  Jim Meyering  <meyering@redhat.com>
97538         Pull my changes from coreutils:
97539         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
97540         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
97541         use of $gnulib_tool_option_extras, so that it's separated from the
97542         preceding argument.
97544         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
97545         * build-aux/bootstrap (cp_mark_as_generated): Create any required
97546         parent destination directories before copying a file into place.
97548 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
97550         bootstrap: work also with 4-argument variant of AC_INIT
97551         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
97553 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
97555         Port test-getaddrinfo to Solaris.
97556         Problem reported by Bruno Haible in
97557         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
97558         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
97559         explanation of setting 'hints'.
97560         Don't reject an implementation merely because it returns EAI_SERVICE.
97561         (EAI_SERVICE): Define to 0 if not defined.
97563 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
97565         The license of gnu-make and posix-shell is now "GPLed build tool".
97566         * modules/gnu-make (License): Likewise.
97567         * modules/posix-shell (License): Likewise.
97569         New module posix-shell, for determining a POSIX shell
97570         or perhaps something that is close enough to a POSIX shell.
97571         * m4/posix-shell.m4: New file.
97572         * modules/posix-shell: New file.
97574         * MODULES.html.sh: Mention new module.
97576         New module gnu-make, for determining whether we're using GNU Make.
97577         * m4/gnu-make.m4: New file.
97578         * modules/gnu-make: New file.
97579         * MODULES.html.sh: Mention new module.
97581 2007-11-14  Jim Meyering  <meyering@redhat.com>
97583         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
97584         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
97585         use this macro to create a function _definition_.
97586         Remove useless "#undef ARGMATCH_DIE".
97588 2007-11-14  Bruno Haible  <bruno@clisp.org>
97590         * lib/config.charset: Update for OpenBSD 4.1.
97591         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
97593 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
97595         Document 64-bit #if problems in stdint.texi.
97596         * doc/headers/stdint.texi (stdint.h): Mention problems with
97597         64-bit-#if, and how to work around them.
97599         Don't insist on 'long long int' support in the preprocessor.  It
97600         breaks too many things.  For example, PRIdMAX still uses a 'long
97601         long int' format with the latest Sun compiler, even though
97602         HAVE_LONG_LONG_INT isn't defined due to that compiler's
97603         preprocessor problem.  This causes the latest coreutils to dump
97604         core on Solaris 10 sparc with the Sun C compiler.
97605         Instead, fix the 2007-10-16 problem in a different way, by evaluating
97606         the troublesome expressions at configure-time, not at #if-time.
97607         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
97608         preprocessor.
97609         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
97610         compile-time C checks, done at 'configure'-time.
97611         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
97612         * modules/inttypes (Makefile): Substitute the new symbols that
97613         gl_INTTYPES_H now generates.
97614         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
97616 2007-11-12  Bruno Haible  <bruno@clisp.org>
97618         Tests for Unicode character classification functions.
97620         * modules/unictype/bidicategory-byname-tests: New file.
97621         * modules/unictype/bidicategory-name-tests: New file.
97622         * modules/unictype/bidicategory-of-tests: New file.
97623         * modules/unictype/bidicategory-test-tests: New file.
97624         * modules/unictype/block-list-tests: New file.
97625         * modules/unictype/block-of-tests: New file.
97626         * modules/unictype/block-test-tests: New file.
97627         * modules/unictype/category-C-tests: New file.
97628         * modules/unictype/category-Cc-tests: New file.
97629         * modules/unictype/category-Cf-tests: New file.
97630         * modules/unictype/category-Cn-tests: New file.
97631         * modules/unictype/category-Co-tests: New file.
97632         * modules/unictype/category-Cs-tests: New file.
97633         * modules/unictype/category-L-tests: New file.
97634         * modules/unictype/category-Ll-tests: New file.
97635         * modules/unictype/category-Lm-tests: New file.
97636         * modules/unictype/category-Lo-tests: New file.
97637         * modules/unictype/category-Lt-tests: New file.
97638         * modules/unictype/category-Lu-tests: New file.
97639         * modules/unictype/category-M-tests: New file.
97640         * modules/unictype/category-Mc-tests: New file.
97641         * modules/unictype/category-Me-tests: New file.
97642         * modules/unictype/category-Mn-tests: New file.
97643         * modules/unictype/category-N-tests: New file.
97644         * modules/unictype/category-Nd-tests: New file.
97645         * modules/unictype/category-Nl-tests: New file.
97646         * modules/unictype/category-No-tests: New file.
97647         * modules/unictype/category-P-tests: New file.
97648         * modules/unictype/category-Pc-tests: New file.
97649         * modules/unictype/category-Pd-tests: New file.
97650         * modules/unictype/category-Pe-tests: New file.
97651         * modules/unictype/category-Pf-tests: New file.
97652         * modules/unictype/category-Pi-tests: New file.
97653         * modules/unictype/category-Po-tests: New file.
97654         * modules/unictype/category-Ps-tests: New file.
97655         * modules/unictype/category-S-tests: New file.
97656         * modules/unictype/category-Sc-tests: New file.
97657         * modules/unictype/category-Sk-tests: New file.
97658         * modules/unictype/category-Sm-tests: New file.
97659         * modules/unictype/category-So-tests: New file.
97660         * modules/unictype/category-Z-tests: New file.
97661         * modules/unictype/category-Zl-tests: New file.
97662         * modules/unictype/category-Zp-tests: New file.
97663         * modules/unictype/category-Zs-tests: New file.
97664         * modules/unictype/category-and-not-tests: New file.
97665         * modules/unictype/category-and-tests: New file.
97666         * modules/unictype/category-byname-tests: New file.
97667         * modules/unictype/category-name-tests: New file.
97668         * modules/unictype/category-none-tests: New file.
97669         * modules/unictype/category-of-tests: New file.
97670         * modules/unictype/category-or-tests: New file.
97671         * modules/unictype/category-test-withtable-tests: New file.
97672         * modules/unictype/combining-class-tests: New file.
97673         * modules/unictype/ctype-alnum-tests: New file.
97674         * modules/unictype/ctype-alpha-tests: New file.
97675         * modules/unictype/ctype-blank-tests: New file.
97676         * modules/unictype/ctype-cntrl-tests: New file.
97677         * modules/unictype/ctype-digit-tests: New file.
97678         * modules/unictype/ctype-graph-tests: New file.
97679         * modules/unictype/ctype-lower-tests: New file.
97680         * modules/unictype/ctype-print-tests: New file.
97681         * modules/unictype/ctype-punct-tests: New file.
97682         * modules/unictype/ctype-space-tests: New file.
97683         * modules/unictype/ctype-upper-tests: New file.
97684         * modules/unictype/ctype-xdigit-tests: New file.
97685         * modules/unictype/decimal-digit-tests: New file.
97686         * modules/unictype/digit-tests: New file.
97687         * modules/unictype/mirror-tests: New file.
97688         * modules/unictype/numeric-tests: New file.
97689         * modules/unictype/property-alphabetic-tests: New file.
97690         * modules/unictype/property-ascii-hex-digit-tests: New file.
97691         * modules/unictype/property-bidi-arabic-digit-tests: New file.
97692         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
97693         * modules/unictype/property-bidi-block-separator-tests: New file.
97694         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
97695         * modules/unictype/property-bidi-common-separator-tests: New file.
97696         * modules/unictype/property-bidi-control-tests: New file.
97697         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
97698         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
97699         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
97700         * modules/unictype/property-bidi-european-digit-tests: New file.
97701         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
97702         * modules/unictype/property-bidi-left-to-right-tests: New file.
97703         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
97704         * modules/unictype/property-bidi-other-neutral-tests: New file.
97705         * modules/unictype/property-bidi-pdf-tests: New file.
97706         * modules/unictype/property-bidi-segment-separator-tests: New file.
97707         * modules/unictype/property-bidi-whitespace-tests: New file.
97708         * modules/unictype/property-byname-tests: New file.
97709         * modules/unictype/property-combining-tests: New file.
97710         * modules/unictype/property-composite-tests: New file.
97711         * modules/unictype/property-currency-symbol-tests: New file.
97712         * modules/unictype/property-dash-tests: New file.
97713         * modules/unictype/property-decimal-digit-tests: New file.
97714         * modules/unictype/property-default-ignorable-code-point-tests: New file.
97715         * modules/unictype/property-deprecated-tests: New file.
97716         * modules/unictype/property-diacritic-tests: New file.
97717         * modules/unictype/property-extender-tests: New file.
97718         * modules/unictype/property-format-control-tests: New file.
97719         * modules/unictype/property-grapheme-base-tests: New file.
97720         * modules/unictype/property-grapheme-extend-tests: New file.
97721         * modules/unictype/property-grapheme-link-tests: New file.
97722         * modules/unictype/property-hex-digit-tests: New file.
97723         * modules/unictype/property-hyphen-tests: New file.
97724         * modules/unictype/property-id-continue-tests: New file.
97725         * modules/unictype/property-id-start-tests: New file.
97726         * modules/unictype/property-ideographic-tests: New file.
97727         * modules/unictype/property-ids-binary-operator-tests: New file.
97728         * modules/unictype/property-ids-trinary-operator-tests: New file.
97729         * modules/unictype/property-ignorable-control-tests: New file.
97730         * modules/unictype/property-iso-control-tests: New file.
97731         * modules/unictype/property-join-control-tests: New file.
97732         * modules/unictype/property-left-of-pair-tests: New file.
97733         * modules/unictype/property-line-separator-tests: New file.
97734         * modules/unictype/property-logical-order-exception-tests: New file.
97735         * modules/unictype/property-lowercase-tests: New file.
97736         * modules/unictype/property-math-tests: New file.
97737         * modules/unictype/property-non-break-tests: New file.
97738         * modules/unictype/property-not-a-character-tests: New file.
97739         * modules/unictype/property-numeric-tests: New file.
97740         * modules/unictype/property-other-alphabetic-tests: New file.
97741         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
97742         * modules/unictype/property-other-grapheme-extend-tests: New file.
97743         * modules/unictype/property-other-id-continue-tests: New file.
97744         * modules/unictype/property-other-id-start-tests: New file.
97745         * modules/unictype/property-other-lowercase-tests: New file.
97746         * modules/unictype/property-other-math-tests: New file.
97747         * modules/unictype/property-other-uppercase-tests: New file.
97748         * modules/unictype/property-paired-punctuation-tests: New file.
97749         * modules/unictype/property-paragraph-separator-tests: New file.
97750         * modules/unictype/property-pattern-syntax-tests: New file.
97751         * modules/unictype/property-pattern-white-space-tests: New file.
97752         * modules/unictype/property-private-use-tests: New file.
97753         * modules/unictype/property-punctuation-tests: New file.
97754         * modules/unictype/property-quotation-mark-tests: New file.
97755         * modules/unictype/property-radical-tests: New file.
97756         * modules/unictype/property-sentence-terminal-tests: New file.
97757         * modules/unictype/property-soft-dotted-tests: New file.
97758         * modules/unictype/property-space-tests: New file.
97759         * modules/unictype/property-terminal-punctuation-tests: New file.
97760         * modules/unictype/property-test-tests: New file.
97761         * modules/unictype/property-titlecase-tests: New file.
97762         * modules/unictype/property-unassigned-code-value-tests: New file.
97763         * modules/unictype/property-unified-ideograph-tests: New file.
97764         * modules/unictype/property-uppercase-tests: New file.
97765         * modules/unictype/property-variation-selector-tests: New file.
97766         * modules/unictype/property-white-space-tests: New file.
97767         * modules/unictype/property-xid-continue-tests: New file.
97768         * modules/unictype/property-xid-start-tests: New file.
97769         * modules/unictype/property-zero-width-tests: New file.
97770         * modules/unictype/scripts-tests: New file.
97771         * modules/unictype/syntax-c-ident-tests: New file.
97772         * modules/unictype/syntax-c-whitespace-tests: New file.
97773         * modules/unictype/syntax-java-ident-tests: New file.
97774         * modules/unictype/syntax-java-whitespace-tests: New file.
97775         * tests/unictype/test-bidi_byname.c: New file.
97776         * tests/unictype/test-bidi_name.c: New file.
97777         * tests/unictype/test-bidi_of.c: New file.
97778         * tests/unictype/test-bidi_test.c: New file.
97779         * tests/unictype/test-block_list.c: New file.
97780         * tests/unictype/test-block_of.c: New file.
97781         * tests/unictype/test-block_test.c: New file.
97782         * tests/unictype/test-categ_and.c: New file.
97783         * tests/unictype/test-categ_and_not.c: New file.
97784         * tests/unictype/test-categ_byname.c: New file.
97785         * tests/unictype/test-categ_name.c: New file.
97786         * tests/unictype/test-categ_none.c: New file.
97787         * tests/unictype/test-categ_of.c: New file.
97788         * tests/unictype/test-categ_or.c: New file.
97789         * tests/unictype/test-categ_test_withtable.c: New file.
97790         * tests/unictype/test-combining.c: New file.
97791         * tests/unictype/test-decdigit.c: New file.
97792         * tests/unictype/test-digit.c: New file.
97793         * tests/unictype/test-mirror.c: New file.
97794         * tests/unictype/test-numeric.c: New file.
97795         * tests/unictype/test-pr_byname.c: New file.
97796         * tests/unictype/test-pr_test.c: New file.
97797         * tests/unictype/test-predicate-part1.h: New file.
97798         * tests/unictype/test-predicate-part2.h: New file.
97799         * tests/unictype/test-scripts.c: New file.
97800         * tests/unictype/test-sy_c_ident.c: New file.
97801         * tests/unictype/test-sy_java_ident.c: New file.
97803         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
97804         for Unicode 5.0.0.
97805         * tests/unictype/test-categ_Cc.c: Likewise.
97806         * tests/unictype/test-categ_Cf.c: Likewise.
97807         * tests/unictype/test-categ_Cn.c: Likewise.
97808         * tests/unictype/test-categ_Co.c: Likewise.
97809         * tests/unictype/test-categ_Cs.c: Likewise.
97810         * tests/unictype/test-categ_L.c: Likewise.
97811         * tests/unictype/test-categ_Ll.c: Likewise.
97812         * tests/unictype/test-categ_Lm.c: Likewise.
97813         * tests/unictype/test-categ_Lo.c: Likewise.
97814         * tests/unictype/test-categ_Lt.c: Likewise.
97815         * tests/unictype/test-categ_Lu.c: Likewise.
97816         * tests/unictype/test-categ_M.c: Likewise.
97817         * tests/unictype/test-categ_Mc.c: Likewise.
97818         * tests/unictype/test-categ_Me.c: Likewise.
97819         * tests/unictype/test-categ_Mn.c: Likewise.
97820         * tests/unictype/test-categ_N.c: Likewise.
97821         * tests/unictype/test-categ_Nd.c: Likewise.
97822         * tests/unictype/test-categ_Nl.c: Likewise.
97823         * tests/unictype/test-categ_No.c: Likewise.
97824         * tests/unictype/test-categ_P.c: Likewise.
97825         * tests/unictype/test-categ_Pc.c: Likewise.
97826         * tests/unictype/test-categ_Pd.c: Likewise.
97827         * tests/unictype/test-categ_Pe.c: Likewise.
97828         * tests/unictype/test-categ_Pf.c: Likewise.
97829         * tests/unictype/test-categ_Pi.c: Likewise.
97830         * tests/unictype/test-categ_Po.c: Likewise.
97831         * tests/unictype/test-categ_Ps.c: Likewise.
97832         * tests/unictype/test-categ_S.c: Likewise.
97833         * tests/unictype/test-categ_Sc.c: Likewise.
97834         * tests/unictype/test-categ_Sk.c: Likewise.
97835         * tests/unictype/test-categ_Sm.c: Likewise.
97836         * tests/unictype/test-categ_So.c: Likewise.
97837         * tests/unictype/test-categ_Z.c: Likewise.
97838         * tests/unictype/test-categ_Zl.c: Likewise.
97839         * tests/unictype/test-categ_Zp.c: Likewise.
97840         * tests/unictype/test-categ_Zs.c: Likewise.
97841         * tests/unictype/test-ctype_alnum.c: Likewise.
97842         * tests/unictype/test-ctype_alpha.c: Likewise.
97843         * tests/unictype/test-ctype_blank.c: Likewise.
97844         * tests/unictype/test-ctype_cntrl.c: Likewise.
97845         * tests/unictype/test-ctype_digit.c: Likewise.
97846         * tests/unictype/test-ctype_graph.c: Likewise.
97847         * tests/unictype/test-ctype_lower.c: Likewise.
97848         * tests/unictype/test-ctype_print.c: Likewise.
97849         * tests/unictype/test-ctype_punct.c: Likewise.
97850         * tests/unictype/test-ctype_space.c: Likewise.
97851         * tests/unictype/test-ctype_upper.c: Likewise.
97852         * tests/unictype/test-ctype_xdigit.c: Likewise.
97853         * tests/unictype/test-decdigit.h: Likewise.
97854         * tests/unictype/test-digit.h: Likewise.
97855         * tests/unictype/test-numeric.h: Likewise.
97856         * tests/unictype/test-pr_alphabetic.c: Likewise.
97857         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
97858         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
97859         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
97860         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
97861         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
97862         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
97863         * tests/unictype/test-pr_bidi_control.c: Likewise.
97864         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
97865         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
97866         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
97867         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
97868         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
97869         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
97870         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
97871         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
97872         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
97873         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
97874         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
97875         * tests/unictype/test-pr_combining.c: Likewise.
97876         * tests/unictype/test-pr_composite.c: Likewise.
97877         * tests/unictype/test-pr_currency_symbol.c: Likewise.
97878         * tests/unictype/test-pr_dash.c: Likewise.
97879         * tests/unictype/test-pr_decimal_digit.c: Likewise.
97880         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
97881         * tests/unictype/test-pr_deprecated.c: Likewise.
97882         * tests/unictype/test-pr_diacritic.c: Likewise.
97883         * tests/unictype/test-pr_extender.c: Likewise.
97884         * tests/unictype/test-pr_format_control.c: Likewise.
97885         * tests/unictype/test-pr_grapheme_base.c: Likewise.
97886         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
97887         * tests/unictype/test-pr_grapheme_link.c: Likewise.
97888         * tests/unictype/test-pr_hex_digit.c: Likewise.
97889         * tests/unictype/test-pr_hyphen.c: Likewise.
97890         * tests/unictype/test-pr_id_continue.c: Likewise.
97891         * tests/unictype/test-pr_id_start.c: Likewise.
97892         * tests/unictype/test-pr_ideographic.c: Likewise.
97893         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
97894         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
97895         * tests/unictype/test-pr_ignorable_control.c: Likewise.
97896         * tests/unictype/test-pr_iso_control.c: Likewise.
97897         * tests/unictype/test-pr_join_control.c: Likewise.
97898         * tests/unictype/test-pr_left_of_pair.c: Likewise.
97899         * tests/unictype/test-pr_line_separator.c: Likewise.
97900         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
97901         * tests/unictype/test-pr_lowercase.c: Likewise.
97902         * tests/unictype/test-pr_math.c: Likewise.
97903         * tests/unictype/test-pr_non_break.c: Likewise.
97904         * tests/unictype/test-pr_not_a_character.c: Likewise.
97905         * tests/unictype/test-pr_numeric.c: Likewise.
97906         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
97907         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
97908         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
97909         * tests/unictype/test-pr_other_id_continue.c: Likewise.
97910         * tests/unictype/test-pr_other_id_start.c: Likewise.
97911         * tests/unictype/test-pr_other_lowercase.c: Likewise.
97912         * tests/unictype/test-pr_other_math.c: Likewise.
97913         * tests/unictype/test-pr_other_uppercase.c: Likewise.
97914         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
97915         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
97916         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
97917         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
97918         * tests/unictype/test-pr_private_use.c: Likewise.
97919         * tests/unictype/test-pr_punctuation.c: Likewise.
97920         * tests/unictype/test-pr_quotation_mark.c: Likewise.
97921         * tests/unictype/test-pr_radical.c: Likewise.
97922         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
97923         * tests/unictype/test-pr_soft_dotted.c: Likewise.
97924         * tests/unictype/test-pr_space.c: Likewise.
97925         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
97926         * tests/unictype/test-pr_titlecase.c: Likewise.
97927         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
97928         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
97929         * tests/unictype/test-pr_uppercase.c: Likewise.
97930         * tests/unictype/test-pr_variation_selector.c: Likewise.
97931         * tests/unictype/test-pr_white_space.c: Likewise.
97932         * tests/unictype/test-pr_xid_continue.c: Likewise.
97933         * tests/unictype/test-pr_xid_start.c: Likewise.
97934         * tests/unictype/test-pr_zero_width.c: Likewise.
97935         * tests/unictype/test-sy_c_whitespace.c: Likewise.
97936         * tests/unictype/test-sy_java_whitespace.c: Likewise.
97938 2007-11-12  Bruno Haible  <bruno@clisp.org>
97940         Unicode character classification functions.
97941         * lib/unictype.h: New file.
97942         * modules/unictype/base: New file.
97943         * modules/unictype/category-L: New file.
97944         * modules/unictype/category-Lu: New file.
97945         * modules/unictype/category-Ll: New file.
97946         * modules/unictype/category-Lt: New file.
97947         * modules/unictype/category-Lm: New file.
97948         * modules/unictype/category-Lo: New file.
97949         * modules/unictype/category-M: New file.
97950         * modules/unictype/category-Mn: New file.
97951         * modules/unictype/category-Mc: New file.
97952         * modules/unictype/category-Me: New file.
97953         * modules/unictype/category-N: New file.
97954         * modules/unictype/category-Nd: New file.
97955         * modules/unictype/category-Nl: New file.
97956         * modules/unictype/category-No: New file.
97957         * modules/unictype/category-P: New file.
97958         * modules/unictype/category-Pc: New file.
97959         * modules/unictype/category-Pd: New file.
97960         * modules/unictype/category-Ps: New file.
97961         * modules/unictype/category-Pe: New file.
97962         * modules/unictype/category-Pi: New file.
97963         * modules/unictype/category-Pf: New file.
97964         * modules/unictype/category-Po: New file.
97965         * modules/unictype/category-S: New file.
97966         * modules/unictype/category-Sm: New file.
97967         * modules/unictype/category-Sc: New file.
97968         * modules/unictype/category-Sk: New file.
97969         * modules/unictype/category-So: New file.
97970         * modules/unictype/category-Z: New file.
97971         * modules/unictype/category-Zs: New file.
97972         * modules/unictype/category-Zl: New file.
97973         * modules/unictype/category-Zp: New file.
97974         * modules/unictype/category-C: New file.
97975         * modules/unictype/category-Cc: New file.
97976         * modules/unictype/category-Cf: New file.
97977         * modules/unictype/category-Cs: New file.
97978         * modules/unictype/category-Co: New file.
97979         * modules/unictype/category-Cn: New file.
97980         * modules/unictype/category-or: New file.
97981         * modules/unictype/category-of: New file.
97982         * modules/unictype/category-test: New file.
97983         * modules/unictype/category-test-withtable: New file.
97984         * modules/unictype/category-byname: New file.
97985         * modules/unictype/category-none: New file.
97986         * modules/unictype/category-and: New file.
97987         * modules/unictype/category-and-not: New file.
97988         * modules/unictype/category-name: New file.
97989         * modules/unictype/combining-class: New file.
97990         * modules/unictype/category-all: New file.
97991         * modules/unictype/bidicategory-all: New file.
97992         * modules/unictype/bidicategory-byname: New file.
97993         * modules/unictype/bidicategory-name: New file.
97994         * modules/unictype/bidicategory-of: New file.
97995         * modules/unictype/bidicategory-test: New file.
97996         * modules/unictype/decimal-digit: New file.
97997         * modules/unictype/digit: New file.
97998         * modules/unictype/numeric: New file.
97999         * modules/unictype/mirror: New file.
98000         * modules/unictype/property-white-space: New file.
98001         * modules/unictype/property-alphabetic: New file.
98002         * modules/unictype/property-other-alphabetic: New file.
98003         * modules/unictype/property-not-a-character: New file.
98004         * modules/unictype/property-default-ignorable-code-point: New file.
98005         * modules/unictype/property-other-default-ignorable-code-point: New
98006         file.
98007         * modules/unictype/property-deprecated: New file.
98008         * modules/unictype/property-logical-order-exception: New file.
98009         * modules/unictype/property-variation-selector: New file.
98010         * modules/unictype/property-private-use: New file.
98011         * modules/unictype/property-unassigned-code-value: New file.
98012         * modules/unictype/property-uppercase: New file.
98013         * modules/unictype/property-other-uppercase: New file.
98014         * modules/unictype/property-lowercase: New file.
98015         * modules/unictype/property-other-lowercase: New file.
98016         * modules/unictype/property-titlecase: New file.
98017         * modules/unictype/property-soft-dotted: New file.
98018         * modules/unictype/property-id-start: New file.
98019         * modules/unictype/property-other-id-start: New file.
98020         * modules/unictype/property-id-continue: New file.
98021         * modules/unictype/property-other-id-continue: New file.
98022         * modules/unictype/property-xid-start: New file.
98023         * modules/unictype/property-xid-continue: New file.
98024         * modules/unictype/property-pattern-white-space: New file.
98025         * modules/unictype/property-pattern-syntax: New file.
98026         * modules/unictype/property-join-control: New file.
98027         * modules/unictype/property-grapheme-base: New file.
98028         * modules/unictype/property-grapheme-extend: New file.
98029         * modules/unictype/property-other-grapheme-extend: New file.
98030         * modules/unictype/property-grapheme-link: New file.
98031         * modules/unictype/property-bidi-control: New file.
98032         * modules/unictype/property-bidi-left-to-right: New file.
98033         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
98034         * modules/unictype/property-bidi-arabic-right-to-left: New file.
98035         * modules/unictype/property-bidi-european-digit: New file.
98036         * modules/unictype/property-bidi-eur-num-separator: New file.
98037         * modules/unictype/property-bidi-eur-num-terminator: New file.
98038         * modules/unictype/property-bidi-arabic-digit: New file.
98039         * modules/unictype/property-bidi-common-separator: New file.
98040         * modules/unictype/property-bidi-block-separator: New file.
98041         * modules/unictype/property-bidi-segment-separator: New file.
98042         * modules/unictype/property-bidi-whitespace: New file.
98043         * modules/unictype/property-bidi-non-spacing-mark: New file.
98044         * modules/unictype/property-bidi-boundary-neutral: New file.
98045         * modules/unictype/property-bidi-pdf: New file.
98046         * modules/unictype/property-bidi-embedding-or-override: New file.
98047         * modules/unictype/property-bidi-other-neutral: New file.
98048         * modules/unictype/property-hex-digit: New file.
98049         * modules/unictype/property-ascii-hex-digit: New file.
98050         * modules/unictype/property-ideographic: New file.
98051         * modules/unictype/property-unified-ideograph: New file.
98052         * modules/unictype/property-radical: New file.
98053         * modules/unictype/property-ids-binary-operator: New file.
98054         * modules/unictype/property-ids-trinary-operator: New file.
98055         * modules/unictype/property-zero-width: New file.
98056         * modules/unictype/property-space: New file.
98057         * modules/unictype/property-non-break: New file.
98058         * modules/unictype/property-iso-control: New file.
98059         * modules/unictype/property-format-control: New file.
98060         * modules/unictype/property-dash: New file.
98061         * modules/unictype/property-hyphen: New file.
98062         * modules/unictype/property-punctuation: New file.
98063         * modules/unictype/property-line-separator: New file.
98064         * modules/unictype/property-paragraph-separator: New file.
98065         * modules/unictype/property-quotation-mark: New file.
98066         * modules/unictype/property-sentence-terminal: New file.
98067         * modules/unictype/property-terminal-punctuation: New file.
98068         * modules/unictype/property-currency-symbol: New file.
98069         * modules/unictype/property-math: New file.
98070         * modules/unictype/property-other-math: New file.
98071         * modules/unictype/property-paired-punctuation: New file.
98072         * modules/unictype/property-left-of-pair: New file.
98073         * modules/unictype/property-combining: New file.
98074         * modules/unictype/property-composite: New file.
98075         * modules/unictype/property-decimal-digit: New file.
98076         * modules/unictype/property-numeric: New file.
98077         * modules/unictype/property-diacritic: New file.
98078         * modules/unictype/property-extender: New file.
98079         * modules/unictype/property-ignorable-control: New file.
98080         * modules/unictype/property-test: New file.
98081         * modules/unictype/property-byname: New file.
98082         * modules/unictype/property-all: New file.
98083         * modules/unictype/scripts: New file.
98084         * modules/unictype/scripts-all: New file.
98085         * modules/unictype/block-of: New file.
98086         * modules/unictype/block-test: New file.
98087         * modules/unictype/block-list: New file.
98088         * modules/unictype/block-all: New file.
98089         * modules/unictype/syntax-c-whitespace: New file.
98090         * modules/unictype/syntax-java-whitespace: New file.
98091         * modules/unictype/syntax-c-ident: New file.
98092         * modules/unictype/syntax-java-ident: New file.
98093         * modules/unictype/ctype-alnum: New file.
98094         * modules/unictype/ctype-alpha: New file.
98095         * modules/unictype/ctype-cntrl: New file.
98096         * modules/unictype/ctype-digit: New file.
98097         * modules/unictype/ctype-graph: New file.
98098         * modules/unictype/ctype-lower: New file.
98099         * modules/unictype/ctype-print: New file.
98100         * modules/unictype/ctype-punct: New file.
98101         * modules/unictype/ctype-space: New file.
98102         * modules/unictype/ctype-upper: New file.
98103         * modules/unictype/ctype-xdigit: New file.
98104         * modules/unictype/ctype-blank: New file.
98105         * lib/unictype/bidi_byname.c: New file.
98106         * lib/unictype/bidi_name.c: New file.
98107         * lib/unictype/bidi_of.c: New file.
98108         * lib/unictype/bidi_test.c: New file.
98109         * lib/unictype/bitmap.h: New file.
98110         * lib/unictype/block_test.c: New file.
98111         * lib/unictype/blocks.c: New file.
98112         * lib/unictype/categ_C.c: New file.
98113         * lib/unictype/categ_Cc.c: New file.
98114         * lib/unictype/categ_Cf.c: New file.
98115         * lib/unictype/categ_Cn.c: New file.
98116         * lib/unictype/categ_Co.c: New file.
98117         * lib/unictype/categ_Cs.c: New file.
98118         * lib/unictype/categ_L.c: New file.
98119         * lib/unictype/categ_Ll.c: New file.
98120         * lib/unictype/categ_Lm.c: New file.
98121         * lib/unictype/categ_Lo.c: New file.
98122         * lib/unictype/categ_Lt.c: New file.
98123         * lib/unictype/categ_Lu.c: New file.
98124         * lib/unictype/categ_M.c: New file.
98125         * lib/unictype/categ_Mc.c: New file.
98126         * lib/unictype/categ_Me.c: New file.
98127         * lib/unictype/categ_Mn.c: New file.
98128         * lib/unictype/categ_N.c: New file.
98129         * lib/unictype/categ_Nd.c: New file.
98130         * lib/unictype/categ_Nl.c: New file.
98131         * lib/unictype/categ_No.c: New file.
98132         * lib/unictype/categ_P.c: New file.
98133         * lib/unictype/categ_Pc.c: New file.
98134         * lib/unictype/categ_Pd.c: New file.
98135         * lib/unictype/categ_Pe.c: New file.
98136         * lib/unictype/categ_Pf.c: New file.
98137         * lib/unictype/categ_Pi.c: New file.
98138         * lib/unictype/categ_Po.c: New file.
98139         * lib/unictype/categ_Ps.c: New file.
98140         * lib/unictype/categ_S.c: New file.
98141         * lib/unictype/categ_Sc.c: New file.
98142         * lib/unictype/categ_Sk.c: New file.
98143         * lib/unictype/categ_Sm.c: New file.
98144         * lib/unictype/categ_So.c: New file.
98145         * lib/unictype/categ_Z.c: New file.
98146         * lib/unictype/categ_Zl.c: New file.
98147         * lib/unictype/categ_Zp.c: New file.
98148         * lib/unictype/categ_Zs.c: New file.
98149         * lib/unictype/categ_and.c: New file.
98150         * lib/unictype/categ_and_not.c: New file.
98151         * lib/unictype/categ_byname.c: New file.
98152         * lib/unictype/categ_name.c: New file.
98153         * lib/unictype/categ_none.c: New file.
98154         * lib/unictype/categ_of.c: New file.
98155         * lib/unictype/categ_or.c: New file.
98156         * lib/unictype/categ_test.c: New file.
98157         * lib/unictype/combining.c: New file.
98158         * lib/unictype/ctype_alnum.c: New file.
98159         * lib/unictype/ctype_alpha.c: New file.
98160         * lib/unictype/ctype_blank.c: New file.
98161         * lib/unictype/ctype_cntrl.c: New file.
98162         * lib/unictype/ctype_digit.c: New file.
98163         * lib/unictype/ctype_graph.c: New file.
98164         * lib/unictype/ctype_lower.c: New file.
98165         * lib/unictype/ctype_print.c: New file.
98166         * lib/unictype/ctype_punct.c: New file.
98167         * lib/unictype/ctype_space.c: New file.
98168         * lib/unictype/ctype_upper.c: New file.
98169         * lib/unictype/ctype_xdigit.c: New file.
98170         * lib/unictype/decdigit.c: New file.
98171         * lib/unictype/digit.c: New file.
98172         * lib/unictype/identsyntaxmap.h: New file.
98173         * lib/unictype/mirror.c: New file.
98174         * lib/unictype/numeric.c: New file.
98175         * lib/unictype/pr_alphabetic.c: New file.
98176         * lib/unictype/pr_ascii_hex_digit.c: New file.
98177         * lib/unictype/pr_bidi_arabic_digit.c: New file.
98178         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
98179         * lib/unictype/pr_bidi_block_separator.c: New file.
98180         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
98181         * lib/unictype/pr_bidi_common_separator.c: New file.
98182         * lib/unictype/pr_bidi_control.c: New file.
98183         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
98184         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
98185         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
98186         * lib/unictype/pr_bidi_european_digit.c: New file.
98187         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
98188         * lib/unictype/pr_bidi_left_to_right.c: New file.
98189         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
98190         * lib/unictype/pr_bidi_other_neutral.c: New file.
98191         * lib/unictype/pr_bidi_pdf.c: New file.
98192         * lib/unictype/pr_bidi_segment_separator.c: New file.
98193         * lib/unictype/pr_bidi_whitespace.c: New file.
98194         * lib/unictype/pr_byname.c: New file.
98195         * lib/unictype/pr_byname.gperf: New file.
98196         * lib/unictype/pr_combining.c: New file.
98197         * lib/unictype/pr_composite.c: New file.
98198         * lib/unictype/pr_currency_symbol.c: New file.
98199         * lib/unictype/pr_dash.c: New file.
98200         * lib/unictype/pr_decimal_digit.c: New file.
98201         * lib/unictype/pr_default_ignorable_code_point.c: New file.
98202         * lib/unictype/pr_deprecated.c: New file.
98203         * lib/unictype/pr_diacritic.c: New file.
98204         * lib/unictype/pr_extender.c: New file.
98205         * lib/unictype/pr_format_control.c: New file.
98206         * lib/unictype/pr_grapheme_base.c: New file.
98207         * lib/unictype/pr_grapheme_extend.c: New file.
98208         * lib/unictype/pr_grapheme_link.c: New file.
98209         * lib/unictype/pr_hex_digit.c: New file.
98210         * lib/unictype/pr_hyphen.c: New file.
98211         * lib/unictype/pr_id_continue.c: New file.
98212         * lib/unictype/pr_id_start.c: New file.
98213         * lib/unictype/pr_ideographic.c: New file.
98214         * lib/unictype/pr_ids_binary_operator.c: New file.
98215         * lib/unictype/pr_ids_trinary_operator.c: New file.
98216         * lib/unictype/pr_ignorable_control.c: New file.
98217         * lib/unictype/pr_iso_control.c: New file.
98218         * lib/unictype/pr_join_control.c: New file.
98219         * lib/unictype/pr_left_of_pair.c: New file.
98220         * lib/unictype/pr_line_separator.c: New file.
98221         * lib/unictype/pr_logical_order_exception.c: New file.
98222         * lib/unictype/pr_lowercase.c: New file.
98223         * lib/unictype/pr_math.c: New file.
98224         * lib/unictype/pr_non_break.c: New file.
98225         * lib/unictype/pr_not_a_character.c: New file.
98226         * lib/unictype/pr_numeric.c: New file.
98227         * lib/unictype/pr_other_alphabetic.c: New file.
98228         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
98229         * lib/unictype/pr_other_grapheme_extend.c: New file.
98230         * lib/unictype/pr_other_id_continue.c: New file.
98231         * lib/unictype/pr_other_id_start.c: New file.
98232         * lib/unictype/pr_other_lowercase.c: New file.
98233         * lib/unictype/pr_other_math.c: New file.
98234         * lib/unictype/pr_other_uppercase.c: New file.
98235         * lib/unictype/pr_paired_punctuation.c: New file.
98236         * lib/unictype/pr_paragraph_separator.c: New file.
98237         * lib/unictype/pr_pattern_syntax.c: New file.
98238         * lib/unictype/pr_pattern_white_space.c: New file.
98239         * lib/unictype/pr_private_use.c: New file.
98240         * lib/unictype/pr_punctuation.c: New file.
98241         * lib/unictype/pr_quotation_mark.c: New file.
98242         * lib/unictype/pr_radical.c: New file.
98243         * lib/unictype/pr_sentence_terminal.c: New file.
98244         * lib/unictype/pr_soft_dotted.c: New file.
98245         * lib/unictype/pr_space.c: New file.
98246         * lib/unictype/pr_terminal_punctuation.c: New file.
98247         * lib/unictype/pr_test.c: New file.
98248         * lib/unictype/pr_titlecase.c: New file.
98249         * lib/unictype/pr_unassigned_code_value.c: New file.
98250         * lib/unictype/pr_unified_ideograph.c: New file.
98251         * lib/unictype/pr_uppercase.c: New file.
98252         * lib/unictype/pr_variation_selector.c: New file.
98253         * lib/unictype/pr_white_space.c: New file.
98254         * lib/unictype/pr_xid_continue.c: New file.
98255         * lib/unictype/pr_xid_start.c: New file.
98256         * lib/unictype/pr_zero_width.c: New file.
98257         * lib/unictype/scripts.c: New file.
98258         * lib/unictype/sy_c_ident.c: New file.
98259         * lib/unictype/sy_c_whitespace.c: New file.
98260         * lib/unictype/sy_java_ident.c: New file.
98261         * lib/unictype/sy_java_whitespace.c: New file.
98263         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
98264         Unicode 5.0.0.
98265         * lib/unictype/blocks.h: Likewise.
98266         * lib/unictype/categ_C.h: Likewise.
98267         * lib/unictype/categ_Cc.h: Likewise.
98268         * lib/unictype/categ_Cf.h: Likewise.
98269         * lib/unictype/categ_Cn.h: Likewise.
98270         * lib/unictype/categ_Co.h: Likewise.
98271         * lib/unictype/categ_Cs.h: Likewise.
98272         * lib/unictype/categ_L.h: Likewise.
98273         * lib/unictype/categ_Ll.h: Likewise.
98274         * lib/unictype/categ_Lm.h: Likewise.
98275         * lib/unictype/categ_Lo.h: Likewise.
98276         * lib/unictype/categ_Lt.h: Likewise.
98277         * lib/unictype/categ_Lu.h: Likewise.
98278         * lib/unictype/categ_M.h: Likewise.
98279         * lib/unictype/categ_Mc.h: Likewise.
98280         * lib/unictype/categ_Me.h: Likewise.
98281         * lib/unictype/categ_Mn.h: Likewise.
98282         * lib/unictype/categ_N.h: Likewise.
98283         * lib/unictype/categ_Nd.h: Likewise.
98284         * lib/unictype/categ_Nl.h: Likewise.
98285         * lib/unictype/categ_No.h: Likewise.
98286         * lib/unictype/categ_P.h: Likewise.
98287         * lib/unictype/categ_Pc.h: Likewise.
98288         * lib/unictype/categ_Pd.h: Likewise.
98289         * lib/unictype/categ_Pe.h: Likewise.
98290         * lib/unictype/categ_Pf.h: Likewise.
98291         * lib/unictype/categ_Pi.h: Likewise.
98292         * lib/unictype/categ_Po.h: Likewise.
98293         * lib/unictype/categ_Ps.h: Likewise.
98294         * lib/unictype/categ_S.h: Likewise.
98295         * lib/unictype/categ_Sc.h: Likewise.
98296         * lib/unictype/categ_Sk.h: Likewise.
98297         * lib/unictype/categ_Sm.h: Likewise.
98298         * lib/unictype/categ_So.h: Likewise.
98299         * lib/unictype/categ_Z.h: Likewise.
98300         * lib/unictype/categ_Zl.h: Likewise.
98301         * lib/unictype/categ_Zp.h: Likewise.
98302         * lib/unictype/categ_Zs.h: Likewise.
98303         * lib/unictype/categ_of.h: Likewise.
98304         * lib/unictype/combining.h: Likewise.
98305         * lib/unictype/ctype_alnum.h: Likewise.
98306         * lib/unictype/ctype_alpha.h: Likewise.
98307         * lib/unictype/ctype_blank.h: Likewise.
98308         * lib/unictype/ctype_cntrl.h: Likewise.
98309         * lib/unictype/ctype_digit.h: Likewise.
98310         * lib/unictype/ctype_graph.h: Likewise.
98311         * lib/unictype/ctype_lower.h: Likewise.
98312         * lib/unictype/ctype_print.h: Likewise.
98313         * lib/unictype/ctype_punct.h: Likewise.
98314         * lib/unictype/ctype_space.h: Likewise.
98315         * lib/unictype/ctype_upper.h: Likewise.
98316         * lib/unictype/ctype_xdigit.h: Likewise.
98317         * lib/unictype/decdigit.h: Likewise.
98318         * lib/unictype/digit.h: Likewise.
98319         * lib/unictype/mirror.h: Likewise.
98320         * lib/unictype/numeric.h: Likewise.
98321         * lib/unictype/pr_alphabetic.h: Likewise.
98322         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
98323         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
98324         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
98325         * lib/unictype/pr_bidi_block_separator.h: Likewise.
98326         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
98327         * lib/unictype/pr_bidi_common_separator.h: Likewise.
98328         * lib/unictype/pr_bidi_control.h: Likewise.
98329         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
98330         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
98331         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
98332         * lib/unictype/pr_bidi_european_digit.h: Likewise.
98333         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
98334         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
98335         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
98336         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
98337         * lib/unictype/pr_bidi_pdf.h: Likewise.
98338         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
98339         * lib/unictype/pr_bidi_whitespace.h: Likewise.
98340         * lib/unictype/pr_combining.h: Likewise.
98341         * lib/unictype/pr_composite.h: Likewise.
98342         * lib/unictype/pr_currency_symbol.h: Likewise.
98343         * lib/unictype/pr_dash.h: Likewise.
98344         * lib/unictype/pr_decimal_digit.h: Likewise.
98345         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
98346         * lib/unictype/pr_deprecated.h: Likewise.
98347         * lib/unictype/pr_diacritic.h: Likewise.
98348         * lib/unictype/pr_extender.h: Likewise.
98349         * lib/unictype/pr_format_control.h: Likewise.
98350         * lib/unictype/pr_grapheme_base.h: Likewise.
98351         * lib/unictype/pr_grapheme_extend.h: Likewise.
98352         * lib/unictype/pr_grapheme_link.h: Likewise.
98353         * lib/unictype/pr_hex_digit.h: Likewise.
98354         * lib/unictype/pr_hyphen.h: Likewise.
98355         * lib/unictype/pr_id_continue.h: Likewise.
98356         * lib/unictype/pr_id_start.h: Likewise.
98357         * lib/unictype/pr_ideographic.h: Likewise.
98358         * lib/unictype/pr_ids_binary_operator.h: Likewise.
98359         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
98360         * lib/unictype/pr_ignorable_control.h: Likewise.
98361         * lib/unictype/pr_iso_control.h: Likewise.
98362         * lib/unictype/pr_join_control.h: Likewise.
98363         * lib/unictype/pr_left_of_pair.h: Likewise.
98364         * lib/unictype/pr_line_separator.h: Likewise.
98365         * lib/unictype/pr_logical_order_exception.h: Likewise.
98366         * lib/unictype/pr_lowercase.h: Likewise.
98367         * lib/unictype/pr_math.h: Likewise.
98368         * lib/unictype/pr_non_break.h: Likewise.
98369         * lib/unictype/pr_not_a_character.h: Likewise.
98370         * lib/unictype/pr_numeric.h: Likewise.
98371         * lib/unictype/pr_other_alphabetic.h: Likewise.
98372         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
98373         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
98374         * lib/unictype/pr_other_id_continue.h: Likewise.
98375         * lib/unictype/pr_other_id_start.h: Likewise.
98376         * lib/unictype/pr_other_lowercase.h: Likewise.
98377         * lib/unictype/pr_other_math.h: Likewise.
98378         * lib/unictype/pr_other_uppercase.h: Likewise.
98379         * lib/unictype/pr_paired_punctuation.h: Likewise.
98380         * lib/unictype/pr_paragraph_separator.h: Likewise.
98381         * lib/unictype/pr_pattern_syntax.h: Likewise.
98382         * lib/unictype/pr_pattern_white_space.h: Likewise.
98383         * lib/unictype/pr_private_use.h: Likewise.
98384         * lib/unictype/pr_punctuation.h: Likewise.
98385         * lib/unictype/pr_quotation_mark.h: Likewise.
98386         * lib/unictype/pr_radical.h: Likewise.
98387         * lib/unictype/pr_sentence_terminal.h: Likewise.
98388         * lib/unictype/pr_soft_dotted.h: Likewise.
98389         * lib/unictype/pr_space.h: Likewise.
98390         * lib/unictype/pr_terminal_punctuation.h: Likewise.
98391         * lib/unictype/pr_titlecase.h: Likewise.
98392         * lib/unictype/pr_unassigned_code_value.h: Likewise.
98393         * lib/unictype/pr_unified_ideograph.h: Likewise.
98394         * lib/unictype/pr_uppercase.h: Likewise.
98395         * lib/unictype/pr_variation_selector.h: Likewise.
98396         * lib/unictype/pr_white_space.h: Likewise.
98397         * lib/unictype/pr_xid_continue.h: Likewise.
98398         * lib/unictype/pr_xid_start.h: Likewise.
98399         * lib/unictype/pr_zero_width.h: Likewise.
98400         * lib/unictype/scripts.h: Likewise.
98401         * lib/unictype/scripts_byname.gperf: Likewise.
98402         * lib/unictype/sy_c_ident.h: Likewise.
98403         * lib/unictype/sy_c_whitespace.h: Likewise.
98404         * lib/unictype/sy_java_ident.h: Likewise.
98405         * lib/unictype/sy_java_whitespace.h: Likewise.
98407         * lib/unictype/Makefile: New file.
98408         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
98409         glibc.
98410         * lib/unictype/3level.h: New file, copied from glibc.
98411         * lib/unictype/3levelbit.h: New file.
98413 2007-11-11  Bruno Haible  <bruno@clisp.org>
98415         * modules/gperf: New file.
98416         * modules/iconv_open (Depends-on): Add it.
98417         (Makefile.am): Remove the GPERF definition.
98419 2007-11-11  Bruno Haible  <bruno@clisp.org>
98421         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
98422         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
98424 2007-11-11  Bruno Haible  <bruno@clisp.org>
98426         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
98427         (usage): Remove function.
98429 2007-11-11  Bruno Haible  <bruno@clisp.org>
98431         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
98432         gl_FUNC_CEILF_LIBS.
98433         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
98434         gl_FUNC_CEIL_LIBS.
98435         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
98436         gl_FUNC_CEILL_LIBS.
98437         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
98438         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
98439         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
98441 2007-11-11  Bruno Haible  <bruno@clisp.org>
98443         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
98444         roundf were declared but do not exist on functions.
98445         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
98446         roundl were declared but do not exist on functions.
98447         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
98448         HAVE_FLOORL_AND_CEILL, respectively.
98449         Needed for Sun C on Solaris 10.
98451 2007-11-11  Bruno Haible  <bruno@clisp.org>
98453         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
98454         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
98455         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
98456         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
98457         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
98458         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
98459         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
98460         HAVE_DECL_ROUNDF.
98461         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
98462         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
98463         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
98464         of HAVE_DECL_ROUND*.
98465         * modules/math (Makefile.am): Update.
98467 2007-11-10  Bruno Haible  <bruno@clisp.org>
98469         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
98470         ptrdiff_t as m4/intl.m4.
98472 2007-11-10  Jim Meyering  <meyering@redhat.com>
98474         Avoid link failure for the argmatch test.
98475         * tests/test-argmatch.c (usage): Define function to avoid a link
98476         failure: argmatch_die requires a usage function.
98478 2007-11-09  Bruno Haible  <bruno@clisp.org>
98480         * doc/functions/snprintf.texi: Mention BeOS deficiency.
98481         * doc/functions/vsnprintf.texi: Likewise.
98482         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
98483         with a size argument < 2.
98485 2007-11-09  Bruno Haible  <bruno@clisp.org>
98487         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
98488         buffer. Fixes an inefficiency introduced on 2007-11-03.
98490 2007-11-09  Bruno Haible  <bruno@clisp.org>
98492         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
98493         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
98495 2007-11-08  Jim Meyering  <meyering@redhat.com>
98497         Change cache variable name prefix "jm_" to "gl_" everywhere.
98498         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
98499         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
98500         * m4/uptime.m4: s/gl_/jm_/
98502 2007-11-07  Bruno Haible  <bruno@clisp.org>
98504         Update to GNU gettext 0.17.
98505         * m4/intl.m4: Update to GNU gettext 0.17.
98506         * m4/po.m4: Likewise.
98507         * modules/gettext (Files): Remove m4/ulonglong.m4.
98508         (configure.ac): Require gettext infrastructure from version 0.17.
98510 2007-11-06  Bruno Haible  <bruno@clisp.org>
98512         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
98513         symbolic values are not defined in a public header.
98514         * lib/freadable.c (freadable) [QNX]: Likewise.
98515         * lib/freadahead.c (freadahead) [QNX]: Likewise.
98516         * lib/freading.c (freading) [QNX]: Likewise.
98517         * lib/fseterr.c (fseterr) [QNX]: Likewise.
98518         * lib/fwritable.c (fwritable) [QNX]: Likewise.
98519         * lib/fwriting.c (fwriting) [QNX]: Likewise.
98520         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
98521         Reported by Alain Magloire.
98523         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
98525 2007-11-05  Bruno Haible  <bruno@clisp.org>
98527         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
98528         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
98529         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
98530         Reported by Eric Blake.
98532 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98533             Bruno Haible  <bruno@clisp.org>
98535         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
98536         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
98537         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
98538         (malloc): Undefine also before including <stdlib.h>.
98539         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
98540         Needed on OSF/1 4.0.
98542 2007-11-05  Jim Meyering  <meyering@redhat.com>
98544         git-version-gen: sync from coreutils.
98545         * build-aux/git-version-gen: Add comments.
98546         Change the first '-' to '.' in the snapshot version string,
98547         e.g., 6.9-377-08144 -> 6.9.377-08144
98548         Remove first parameter.
98549         Don't declare a version "-dirty" merely because a time
98550         stamp has changed.
98552 2007-11-04  Bruno Haible  <bruno@clisp.org>
98554         * lib/lock.h: Protect all macro definitions containing an 'if'
98555         statement through a "do { ... } while (0)".
98556         * lib/tls.h: Likewise.
98558 2007-11-04  Bruno Haible  <bruno@clisp.org>
98560         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
98562 2007-11-04  Bruno Haible  <bruno@clisp.org>
98564         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
98565         * modules/fprintf-posix (Depends-on): Add nocrash.
98566         * modules/snprintf-posix (Depends-on): Likewise.
98567         * modules/sprintf-posix (Depends-on): Likewise.
98568         * modules/vasnprintf-posix (Depends-on): Likewise.
98569         * modules/vasprintf-posix (Depends-on): Likewise.
98570         * modules/vfprintf-posix (Depends-on): Likewise.
98571         * modules/vsnprintf-posix (Depends-on): Likewise.
98572         * modules/vsprintf-posix (Depends-on): Likewise.
98573         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
98574         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
98575         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
98576         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
98577         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
98578         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
98579         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
98581 2007-11-04  Bruno Haible  <bruno@clisp.org>
98583         * modules/nocrash: New file.
98584         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
98585         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
98587 2007-11-04  Bruno Haible  <bruno@clisp.org>
98589         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
98590         precision handling.
98591         * tests/test-vasprintf-posix.c (test_function): Likewise.
98592         * tests/test-snprintf-posix.h (test_function): Likewise.
98593         * tests/test-sprintf-posix.h (test_function): Likewise.
98595         Fix *printf behaviour for large precisions on mingw and BeOS.
98596         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
98597         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
98598         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
98599         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
98600         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
98601         gl_PRINTF_PRECISION and test its result. Invoke
98602         gl_PREREQ_VASNPRINTF_PRECISION.
98603         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
98604         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
98605         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
98606         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
98607         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
98608         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
98609         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
98610         * doc/functions/fprintf.texi: Update.
98611         * doc/functions/printf.texi: Update.
98612         * doc/functions/snprintf.texi: Update.
98613         * doc/functions/sprintf.texi: Update.
98614         * doc/functions/vfprintf.texi: Update.
98615         * doc/functions/vprintf.texi: Update.
98616         * doc/functions/vsnprintf.texi: Update.
98617         * doc/functions/vsprintf.texi: Update.
98619 2007-11-04  Bruno Haible  <bruno@clisp.org>
98621         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
98623 2007-11-04  Bruno Haible  <bruno@clisp.org>
98625         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
98626         Reported by Sylvain Beucler <beuc@gnu.org>.
98628 2007-11-03  Bruno Haible  <bruno@clisp.org>
98630         * tests/test-fprintf-posix2.sh: New file.
98631         * tests/test-fprintf-posix2.c: New file.
98632         * modules/fprintf-posix-tests (Files): Add them.
98633         (TESTS): Add test-fprintf-posix2.sh.
98634         (configure.ac): Check for getrlimit and setrlimit.
98635         (check_PROGRAMS): Add test-fprintf-posix2.
98637         * tests/test-printf-posix2.sh: New file.
98638         * tests/test-printf-posix2.c: New file.
98639         * modules/printf-posix-tests (Files): Add them.
98640         (TESTS): Add test-printf-posix2.sh.
98641         (configure.ac): Check for getrlimit and setrlimit.
98642         (check_PROGRAMS): Add test-printf-posix2.
98644         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
98645         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
98646         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
98647         (decode_double): New function, copied from decode_long_double.
98648         (scale10_round_decimal_decoded): New function, extracted from
98649         scale10_round_decimal_long_double.
98650         (scale10_round_decimal_long_double): Use it.
98651         (scale10_round_decimal_double): New function.
98652         (floorlog10): New function.
98653         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
98654         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
98655         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
98656         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
98657         gl_PRINTF_ENOMEM and test its result. Invoke
98658         gl_PREREQ_VASNPRINTF_ENOMEM.
98659         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
98660         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
98661         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
98662         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
98663         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
98664         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
98665         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
98666         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
98667         * modules/snprintf-posix (Depends-on): Likewise.
98668         * modules/sprintf-posix (Depends-on): Likewise.
98669         * modules/vasnprintf-posix (Depends-on): Likewise.
98670         * modules/vasprintf-posix (Depends-on): Likewise.
98671         * modules/vfprintf-posix (Depends-on): Likewise.
98672         * modules/vsnprintf-posix (Depends-on): Likewise.
98673         * modules/vsprintf-posix (Depends-on): Likewise.
98674         * doc/functions/fprintf.texi: Update.
98675         * doc/functions/printf.texi: Update.
98676         * doc/functions/snprintf.texi: Update.
98677         * doc/functions/sprintf.texi: Update.
98678         * doc/functions/vfprintf.texi: Update.
98679         * doc/functions/vprintf.texi: Update.
98680         * doc/functions/vsnprintf.texi: Update.
98681         * doc/functions/vsprintf.texi: Update.
98683 2007-11-03  Bruno Haible  <bruno@clisp.org>
98685         * modules/frexp-nolibm-tests: New file.
98687         * modules/frexp-nolibm: New file.
98688         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
98690 2007-11-03  Bruno Haible  <bruno@clisp.org>
98692         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
98693         value is C99 compliant.
98694         Needed for OSF/1 5.1.
98696 2007-11-03  Bruno Haible  <bruno@clisp.org>
98698         Fix out-of-memory handling of vasnprintf.
98699         * lib/printf-parse.c: Include <errno.h>.
98700         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
98701         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
98702         is already set.
98704 2007-11-02  Eric Blake  <ebb9@byu.net>
98706         Fix tests on cygwin.
98707         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
98709 2007-11-01  Bruno Haible  <bruno@clisp.org>
98711         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
98712         warning.
98713         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
98714         needed for POSIX compatibility.
98716 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
98718         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
98719         for compatibility with GNU.
98721 2007-11-01  Bruno Haible  <bruno@clisp.org>
98723         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
98724         (putenv): Renamed from rpl_putenv. Change argument type from
98725         'const char *' to 'char *'.
98726         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
98727         of defining putenv in config.h, just set REPLACE_PUTENV.
98728         * modules/putenv (Depends-on): Add stdlib.
98729         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
98730         (Include): Use <stdlib.h>.
98731         * lib/stdlib.in.h (putenv): New declaration.
98732         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
98733         REPLACE_PUTENV.
98734         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
98735         REPLACE_PUTENV.
98736         Needed for MacOS X 10.5.0.
98737         Reported by Peter O'Gorman <peter@pogma.com>.
98739 2007-11-01  Jim Meyering  <meyering@redhat.com>
98741         Treat an empty date string exactly like "0".
98742         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
98743         if the remaining date string (to be parsed) is empty, use "0".
98744         Reported by Mischa Molhoek and discussed in this thread:
98745         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
98747 2007-10-31  Bruno Haible  <bruno@clisp.org>
98749         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
98750         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
98751         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
98752         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
98753         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
98754         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
98756 2007-10-31  Bruno Haible  <bruno@clisp.org>
98758         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
98759         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
98760         (AC_TYPE_LONG_LONG_INT): Use it.
98761         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
98762         it as well.
98763         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
98764         to m4/longlong.m4.
98765         * modules/stdint (Files): Remove m4/ulonglong.m4.
98766         * modules/strtoull (Files): Use m4/longlong.m4 instead of
98767         m4/ulonglong.m4.
98768         * modules/strtoumax (Files): Likewise.
98770 2007-10-30  Bruno Haible  <bruno@clisp.org>
98772         * modules/xvasprintf-posix: New file.
98773         Suggested by Eric Blake.
98775 2007-10-30  Bruno Haible  <bruno@clisp.org>
98777         * modules/xprintf-posix-tests: New file.
98778         * tests/test-xprintf-posix.sh: New file.
98779         * tests/test-xprintf-posix.c: New file.
98780         * tests/test-xfprintf-posix.c: New file.
98782         * modules/xprintf-posix: New file.
98784 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98786         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
98787         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
98788         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
98790 2007-10-29  Bruno Haible  <bruno@clisp.org>
98792         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
98793         contain the special marker '_cv_'.
98794         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
98795         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
98796         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
98797         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
98798         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
98799         Reported by Ralf Wildenhues.
98801 2007-10-29  Bruno Haible  <bruno@clisp.org>
98803         * gnulib-tool (func_import): When --lgpl is not specified, set
98804         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
98805         GPLv3.
98806         Reported by Simon Josefsson.
98808 2007-10-28  Bruno Haible  <bruno@clisp.org>
98810         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
98811         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
98812         HAVE_DECL_ISFINITE.
98813         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
98814         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
98815         HAVE_DECL_ISFINITE.
98817 2007-10-28  Bruno Haible  <bruno@clisp.org>
98819         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
98820         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
98822 2007-10-28  Bruno Haible  <bruno@clisp.org>
98824         Fix link errors with Sun C 5.0 on Solaris 10.
98825         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
98826         function is declared but not present in the compiler's libm.
98827         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
98828         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
98829         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
98830         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
98831         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
98832         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
98833         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
98834         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
98835         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
98836         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
98837         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
98838         HAVE_DECL_FLOORL.
98840 2007-10-28  Bruno Haible  <bruno@clisp.org>
98842         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
98843         gl_FUNC_FLOORL. Cache the result.
98844         (gl_FUNC_FLOORL): Use it.
98845         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
98846         gl_FUNC_CEILL. Cache the result.
98847         (gl_FUNC_CEILL): Use it.
98849         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
98850         gl_FUNC_FLOOR. Cache the result.
98851         (gl_FUNC_FLOOR): Use it.
98852         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
98853         gl_FUNC_CEIL. Cache the result.
98854         (gl_FUNC_CEIL): Use it.
98856         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
98857         gl_FUNC_FLOORF. Cache the result.
98858         (gl_FUNC_FLOORF): Use it.
98859         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
98860         gl_FUNC_CEILF. Cache the result.
98861         (gl_FUNC_CEILF): Use it.
98863 2007-10-28  Bruno Haible  <bruno@clisp.org>
98865         * gnulib-tool: Allow specifying the LGPL version number through
98866         --lgpl=2 or --lgpl=3.
98867         (func_usage): Document --lgpl with argument.
98868         Handle --lgpl=... arguments.
98869         (func_import): Recognize also gl_LGPL calls with an argument. When
98870         --lgpl=2 is used and the module's license is just LGPL, report an
98871         error. Set sed_transform_lib_file according to the lgpl variable. In
98872         the generated files, use --lgpl or gl_LGPL invocations with argument,
98873         if necessary.
98874         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
98875         an LGPv2+ license.
98876         * doc/gnulib-tool.texi (Modified imports): Update explanation of
98877         gl_LGPL macro.
98879 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98880             Bruno Haible  <bruno@clisp.org>
98882         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
98883         (u16_uctomb_aux): Likewise.
98884         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
98885         !HAVE_INLINE.
98886         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
98888 2007-10-28  Bruno Haible  <bruno@clisp.org>
98890         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
98891         Invoke AM_GETTEXT_OPTION if it exists.
98892         * modules/vasprintf: Likewise.
98893         * modules/verror: Likewise.
98894         * modules/xprintf: Likewise.
98895         * modules/xvasprintf: Likewise.
98897 2007-10-27  Ben Pfaff  <blp@gnu.org>
98899         * lib/math.in.h: Define isfinite macro and prototypes for
98900         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
98901         implementations.
98902         * m4/math_h.m4: New substitutions for isfinite module.
98903         * lib/isfinite.c: New file.
98904         * m4/isfinite.m4: New file.
98905         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
98906         * modules/isfinite: New file.
98907         * modules/isfinite-tests: New file.
98908         * tests/tests-isfinite.c: New file.
98909         * doc/functions/isfinite.texi: Mention isfinite module.
98910         * MODULES.html.sh: Mention new module.
98912 2007-10-27  Ben Pfaff  <blp@gnu.org>
98914         Ralf Wildenhues reported that Tru64 4.0D declares the round
98915         functions but does not have definitions.
98916         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
98917         cannot be found in any library, set the output variable to
98918         "missing" instead of "".
98919         * m4/round.m4: Also use our substitute if we cannot find round in
98920         any library, even if it is declared.
98921         * m4/roundf.m4: Likewise for roundf.
98922         * m4/roundl.m4: Likewise for roundl.
98923         * lib/math.in.h: Undefine roundf, round, roundl before defining
98924         their replacements, to allow for hypothetical systems where these
98925         may be defined as macros but not available in libraries.
98927 2007-10-27  Bruno Haible  <bruno@clisp.org>
98929         * doc/gnulib.texi: Invoke @firstparagraphindent.
98930         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
98931         changes in gnulib.
98932         (Source changes): New section.
98934 2007-10-26  Bruno Haible  <bruno@clisp.org>
98936         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
98937         borrowed from autoconf.
98939 2007-10-26  Bruno Haible  <bruno@clisp.org>
98941         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
98942         strerror returned the empty string. Needed on HP-UX 11.00.
98944 2007-10-24  Micah Cowan  <micah@cowan.name>
98946         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
98947         * build-aux/bootstrap: Remove support for now-unnecessary option,
98948         --cvs-user, and envvars CVS_USER, CVS_RSH.
98950 2007-10-24  Jim Meyering  <meyering@redhat.com>
98952         Avoid diagnostics from sha1sum when there is no cached checksum.
98953         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
98954         if the po.s1 file hasn't been created yet.
98956         * build-aux/bootstrap: Sync from coreutils:
98957         2007-10-24  Jim Meyering  <meyering@redhat.com>
98958         Get gnulib from the git repository, not from an obsolete cvs one.
98959         * build-aux/bootstrap: Suggestion from Micah Cowan.
98960         2007-10-04  Jim Meyering  <jim@meyering.net>
98961         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
98962         (update_po_files): Work also when there are no .po files in po/.
98964 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
98966         * README: Append ".git" to git and cg examples.
98967         Problem reported by Benoit Sigoure.
98969 2007-10-23  Micah Cowan  <micah@cowan.name>
98971         * users.txt: Add wget.
98973 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98975         Fix linking of some unistdio tests on FreeBSD.
98976         * modules/unistdio/u16-vsnprintf-tests
98977         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
98978         * modules/unistdio/u16-vsprintf-tests
98979         (test_u16_vsnprintf1_LDADD): Likewise.
98980         * modules/unistdio/u32-vsnprintf-tests
98981         (test_u32_vsnprintf1_LDADD): Likewise.
98982         * modules/unistdio/u32-vsprintf-tests
98983         (test_u32_vsprintf1_LDADD): Likewise.
98984         * modules/unistdio/u8-vsnprintf-tests
98985         (test_u8_vsnprintf1_LDADD): Likewise.
98986         * modules/unistdio/u8-vsprintf-tests
98987         (test_u8_vsprintf1_LDADD): Likewise.
98988         * modules/unistdio/ulc-vsnprintf-tests
98989         (test_ulc_vsnprintf1_LDADD): Likewise.
98990         * modules/unistdio/ulc-vsprintf-tests
98991         (test_ulc_vsprintf1_LDADD): Likewise.
98993         Fix linking of some uniconv tests on FreeBSD.
98994         * modules/uniconv/u16-conv-from-enc-tests
98995         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
98996         * modules/uniconv/u16-conv-to-enc-tests
98997         (test_u16_conv_to_enc_LDADD): Likewise.
98998         * modules/uniconv/u16-strconv-from-enc-tests
98999         (test_u16_strconv_from_enc_LDADD): Likewise.
99000         * modules/uniconv/u16-strconv-to-enc-tests
99001         (test_u16_strconv_to_enc_LDADD): Likewise.
99002         * modules/uniconv/u32-conv-from-enc-tests
99003         (test_u32_conv_from_enc_LDADD): Likewise.
99004         * modules/uniconv/u32-conv-to-enc-tests
99005         (test_u32_conv_to_enc_LDADD): Likewise.
99006         * modules/uniconv/u32-strconv-from-enc-tests
99007         (test_u32_strconv_from_enc_LDADD): Likewise.
99008         * modules/uniconv/u32-strconv-to-enc-tests
99009         (test_u32_strconv_to_enc_LDADD): Likewise.
99010         * modules/uniconv/u8-conv-from-enc-tests
99011         (test_u8_conv_from_enc_LDADD): Likewise.
99012         * modules/uniconv/u8-conv-to-enc-tests
99013         (test_u8_conv_to_enc_LDADD): Likewise.
99014         * modules/uniconv/u8-strconv-from-enc-tests
99015         (test_u8_strconv_from_enc_LDADD): Likewise.
99016         * modules/uniconv/u8-strconv-to-enc-tests
99017         (test_u8_strconv_to_enc_LDADD): Likewise.
99019 2007-10-22  Bruno Haible  <bruno@clisp.org>
99021         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
99022         size.
99024 2007-10-22  Eric Blake  <ebb9@byu.net>
99026         Tweak x*printf documentation.
99027         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
99028         variable name and comments.
99029         Suggested by Bruno Haible.
99031 2007-10-22  Bruno Haible  <bruno@clisp.org>
99033         * lib/acl.c (copy_acl): Fix file name in comment.
99035 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
99037         Fix Tru64 problem with stdbool.h.
99038         * lib/stdbool.in.h (false, true):
99039         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
99040         Don't declare as an enum in this situation; it runs afoul of Tru64.
99041         Problem reported by Steven M. Schweda in
99042         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
99044 2007-10-22  Eric Blake  <ebb9@byu.net>
99046         Also wrap vf?printf.
99047         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
99048         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
99049         (xvprintf, xvfprintf): New functions.
99051 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99053         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
99054         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
99056         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
99057         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
99059 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
99061         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
99062         by Bruno Haible.
99064 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99066         * lib/getloadavg.c
99067         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
99068         Undef `sys' after including sys/table.h, for Tru64 4.0D.
99070         * tests/test-i-ring.c: Work for C89.
99072 2007-10-22  Bruno Haible  <bruno@clisp.org>
99074         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
99075         -1u, in preprocessor expression, so that we don't test for the bug
99076         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
99077         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
99079 2007-10-22  Eric Blake  <ebb9@byu.net>
99081         * tests/test-yesno.sh: Silence stderr during test.
99083 2007-10-22  Simon Josefsson  <simon@josefsson.org>
99085         * modules/crypto/gc-camellia: New file.
99087         * m4/gc-camellia.m4: New file.
99089         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
99091         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
99093 2007-10-22  Simon Josefsson  <simon@josefsson.org>
99095         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
99096         --help to stdout.  Reported by sms@antinode.org (Steven
99097         M. Schweda).
99099 2007-10-22  Simon Josefsson  <simon@josefsson.org>
99101         * users.txt: Fix link to libksba.
99103 2007-10-21  Ben Pfaff  <blp@gnu.org>
99105         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
99106         round.c roundf implementation that depends on floorf and ceilf to
99107         be tested unconditionally.
99109 2007-10-21  Ben Pfaff  <blp@gnu.org>
99111         * m4/check-libm-func.m4: Removed.
99112         * m4/check-math-lib.m4: New file.
99113         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
99114         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
99115         definition and lack of AC_LIBOBJ([roundf]).
99116         * m4/roundl.m4: Ditto, and similarly for roundl.
99117         * modules/round: Reference new m4 file.
99118         * modules/roundf: Ditto.
99119         * modules/roundl: Ditto.
99120         * tests/test-round2.c (main): Use ROUND instead of round.
99121         Bug report from Bruno Haible.
99123 2007-10-21  Bruno Haible  <bruno@clisp.org>
99125         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
99126         context.
99128 2007-10-21  Bruno Haible  <bruno@clisp.org>
99130         * tests/test-wcwidth.c (main): Allow negative result for some control
99131         characters.
99133         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
99134         Needed on OSF/1 5.1.
99136 2007-10-21  Bruno Haible  <bruno@clisp.org>
99138         * tests/test-floorf1.c: Include isnanf.h.
99139         (main): Use isnanf() instead of isnan().
99140         * tests/test-ceilf1.c: Include isnanf.h.
99141         (main): Use isnanf() instead of isnan().
99142         * tests/test-truncf1.c: Include isnanf.h.
99143         (main): Use isnanf() instead of isnan().
99144         * tests/test-roundf1.c: Include isnanf.h.
99145         (main): Use isnanf() instead of isnan().
99147 2007-10-21  Eric Blake  <ebb9@byu.net>
99149         * users.txt: Update URL for m4.
99151 2007-10-21  Bruno Haible  <bruno@clisp.org>
99153         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
99155 2007-10-21  Bruno Haible  <bruno@clisp.org>
99157         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
99158         Git's management files if the CVS files are not present.
99160 2007-10-20  Bruno Haible  <bruno@clisp.org>
99162         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
99163         gcc-3.4.x.
99165 2007-10-20  Ben Pfaff  <blp@gnu.org>
99167         * lib/math.in.h: Declare round, roundf, roundl if we are providing
99168         implementations.
99169         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
99170         * lib/round.c: New file.
99171         * lib/roundf.c: New file.
99172         * lib/roundl.c: New file.
99173         * m4/round.m4: New file.
99174         * m4/roundf.m4: New file.
99175         * m4/roundl.m4: New file.
99176         * m4/check-libm-func-m4: New file.
99177         * modules/math: Replace round, roundf, roundl related @VARS@ in
99178         math.in.h.
99179         * modules/round: New file.
99180         * modules/round-tests: New file.
99181         * modules/roundf: New file.
99182         * modules/roundf-tests: New file.
99183         * modules/roundl: New file.
99184         * modules/roundl-tests: New file.
99185         * tests/test-round1.c: New file.
99186         * tests/test-round2.c: New file.
99187         * tests/test-roundf1.c: New file.
99188         * tests/test-roundf2.c: New file.
99189         * tests/test-roundl.c: New file.
99190         * doc/functions/round.texi: Mention round module.
99191         * doc/functions/roundf.texi: Mention roundf module.
99192         * doc/functions/roundl.texi: Mention roundl module.
99193         * MODULES.html.sh: Mention new modules.
99194         Thanks to Bruno Haible for suggestions.
99196 2007-10-20  Jim Meyering  <meyering@redhat.com>
99198         * lib/xprintf.c: Include <config.h> unconditionally.
99200         Change xprintf's license to GPL.
99201         * modules/xprintf (License): s/LGPL/GPL/, since this module
99202         depends on modules (exit and exitfail) which are GPL.
99203         Suggestion from Bruno Haible.
99205         xprintf fixes.
99206         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
99207         Use a clearer diagnostic.
99208         Patch from Bruno Haible.
99210 2007-10-20  Bruno Haible  <bruno@clisp.org>
99212         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
99213         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
99214         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99216 2007-10-20  Bruno Haible  <bruno@clisp.org>
99218         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
99219         precision in the comparison result > x - 1 or similar.
99220         * tests/test-ceilf2.c (correct_result_p): Likewise.
99221         * tests/test-truncf2.c (correct_result_p): Likewise.
99222         * tests/test-trunc2.c (correct_result_p): Likewise.
99223         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99225 2007-10-20  Bruno Haible  <bruno@clisp.org>
99227         * modules/ceil: New file.
99228         * m4/ceil.m4: New file.
99229         * doc/functions/ceil.texi: Mention the 'ceil' module.
99231 2007-10-20  Bruno Haible  <bruno@clisp.org>
99233         * modules/floor: New file.
99234         * m4/floor.m4: New file.
99235         * doc/functions/floor.texi: Mention the 'floor' module.
99237 2007-10-20  Bruno Haible  <bruno@clisp.org>
99239         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
99240         of %a.
99241         * modules/floorf-tests (Depends-on): Likewise.
99242         * modules/truncf-tests (Depends-on): Likewise.
99243         * modules/trunc-tests (Depends-on): Likewise.
99244         Reported by Ben Pfaff.
99246 2007-10-19  Jim Meyering  <meyering@redhat.com>
99248         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
99249         Don't bother testing specific errno values.  Just test ferror.
99251         New module: xprintf
99252         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
99254 2007-10-19  Bruno Haible  <bruno@clisp.org>
99256         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
99257         syntax.
99258         * modules/javaexec (Makefile.am): Likewise.
99259         * modules/relocatable-prog (Makefile.am): Likewise.
99260         Suggested by Jim Meyering.
99262 2007-10-18  Bruno Haible  <bruno@clisp.org>
99264         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
99265         Reported by Jim Meyering.
99267 2007-10-18  Eric Blake  <ebb9@byu.net>
99269         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
99271 2007-10-18  Bruno Haible  <bruno@clisp.org>
99273         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
99274         the format string into writable memory. Needed in Fortify conditions.
99276 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
99277             Bruno Haible  <bruno@clisp.org>
99279         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
99280         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
99281         * modules/trim (Depends-on): Add mbchar.
99282         (configure.ac): Add gl_FUNC_MBRTOWC.
99283         (Makefile.am): Augment lib_SOURCES.
99285 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
99287         Modify glob.c to use fstatat and dirfd, to simplify it.
99288         Suggested by Eric Blake.
99289         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
99290         Don't include <stdbool.h>; not used.
99291         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
99292         (link_exists_p): Simplify implementation, since we can now assume
99293         dirfd and fstatat.
99294         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
99296 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99298         * gnulib-tool (func_get_dependencies): Fix sed script to
99299         match only tests.
99301 2007-10-17  Bruno Haible  <bruno@clisp.org>
99303         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
99304         allow locale names without encoding suffix.
99305         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
99306         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
99308 2007-10-16  Bruno Haible  <bruno@clisp.org>
99310         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
99311         * lib/getgroups.c (getgroups): Likewise.
99312         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
99314 2007-10-16  Bruno Haible  <bruno@clisp.org>
99316         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
99317         * modules/malloc-posix (License): Likewise.
99318         * modules/realloc-posix (License): Likewise.
99319         * modules/calloc-posix (License): Likewise.
99320         * modules/intprops (License): Change from GPL to LGPL, with
99321         Paul Eggert's approval.
99323 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
99325         Merge glibc changes into lib/glob.c.
99327         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
99328         2007-10-15 04:59:03 UTC.  Here are the changes:
99330         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
99332         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
99334         * lib/glob.c: Add some branch prediction throughout.
99336         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
99338         [BZ #5103]
99339         * lib/glob.c (glob): Recognize patterns starting \/.
99341         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
99343         [BZ #3996]
99344         * lib/glob.c (attribute_hidden): Define if not defined.
99345         (glob): Unescape dirname, filename or username when needed and not
99346         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
99347         is NULL.  Handle unescaped [ in pattern without closing ].
99348         Don't pass GLOB_CHECK down to recursive glob for directories.
99349         (__glob_pattern_type): New function.
99350         (__glob_pattern_p): Implement using __glob_pattern_type.
99351         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
99352         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
99353         Remove unreachable code.
99355         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
99357         * lib/glob.c (glob_in_dir): Add some comments and asserts to
99358         explain why there are no leaks.
99360         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
99362         [BZ #3253]
99363         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
99364         time, rather allocate increasingly bigger arrays of pointers, if
99365         possible with alloca, if too large with malloc.
99367 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
99369         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
99370         Problem reported by H.Merijn Brand in
99371         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
99372         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
99373         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
99375 2007-10-15  Bruno Haible  <bruno@clisp.org>
99377         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
99378         with explicit rpl_ prefix.
99379         * lib/fopen.c (fopen): Likewise.
99380         * lib/freopen.c (freopen): Likewise.
99381         * lib/iconv.c (iconv): Likewise.
99382         * lib/iconv_close.c (iconv_close): Likewise.
99384 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99386         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
99388 2007-10-15  Bruno Haible  <bruno@clisp.org>
99390         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
99391         <stddef.h> instead of <stdlib.h> since we only need NULL.
99392         Reported by Ben Pfaff <blp@cs.stanford.edu>.
99394 2007-10-15  Bruno Haible  <bruno@clisp.org>
99396         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
99397         Replace paragraph talking about LIBOBJS.
99398         Reported by Colin Watson <cjwatson@debian.org>.
99400 2007-10-15  Bruno Haible  <bruno@clisp.org>
99402         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
99403         <stdlib.h> before using NULL.
99405 2007-10-15  Simon Josefsson  <simon@josefsson.org>
99407         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
99408         Reported by Albert Chin <china@thewrittenword.com>.
99410 2007-10-14  Bruno Haible  <bruno@clisp.org>
99412         * modules/iconv_open-utf-tests: New file.
99413         * tests/test-iconv-utf.c: New file.
99415         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
99416         * modules/iconv_open-utf: New file.
99417         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
99418         (iconv, iconv_close): New declarations.
99419         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
99420         be defined.
99421         (iconv_open): Add special handling of conversion between UTF-8 and
99422         UTF-{16,32}{BE,LE}.
99423         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
99424         * lib/iconv_close.c: New file.
99425         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
99426         gl_FUNC_ICONV_OPEN.
99427         (gl_FUNC_ICONV_OPEN): Use it.
99428         (gl_FUNC_ICONV_OPEN_UTF): New macro.
99429         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
99430         and REPLACE_ICONV_UTF.
99431         * modules/iconv_open (Depends-on): Add c-strcase.
99432         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
99433         ICONV_CONST.
99434         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
99436 2007-10-13  Albert Chin  <china@thewrittenword.com>
99437             Bruno Haible  <bruno@clisp.org>
99439         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
99440         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
99442 2007-10-13  Bruno Haible  <bruno@clisp.org>
99444         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
99445         defined, use the ISO C99 inline semantics.
99446         * lib/argp.h (ARGP_EI): Likewise.
99448 2007-10-13  Bruno Haible  <bruno@clisp.org>
99450         Handle 'inline' change in gcc 4.3.0.
99451         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
99452         argp_fmtstream_write, argp_fmtstream_set_lmargin,
99453         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
99454         argp_fmtstream_point): Disable 'extern' declaration if the function
99455         definition is going to be provided inline.
99456         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
99457         semantics, not the ISO C99 inline semantics.
99458         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
99459         'extern' declaration if the function definition is going to be provided
99460         inline.
99461         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
99462         the GNU C inline semantics, not the ISO C99 inline semantics. With
99463         GCC 4.2, avoid a warning.
99465 2007-10-13  Bruno Haible  <bruno@clisp.org>
99467         * lib/freading.h (freading): Enable the use of __freading for
99468         glibc >= 2.7.
99469         * lib/freading.c (freading): Likewise.
99471 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
99473         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
99474         "warning: C99 inline functions are not supported; using GNU89".
99476 2007-10-12  Bruno Haible  <bruno@clisp.org>
99478         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
99479         of 2.
99480         * tests/test-ceilf2.c: New file.
99481         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
99483         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
99484         * modules/ceilf-tests: Update.
99486 2007-10-12  Bruno Haible  <bruno@clisp.org>
99488         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
99489         of 2.
99490         * tests/test-floorf2.c: New file.
99491         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
99493         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
99494         * modules/floorf-tests: Update.
99496 2007-10-12  Bruno Haible  <bruno@clisp.org>
99498         * tests/test-trunc2.c: New file.
99499         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
99501         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
99502         * modules/trunc-tests: Update.
99504 2007-10-12  Bruno Haible  <bruno@clisp.org>
99506         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
99507         of 2.
99508         * tests/test-truncf2.c: New file.
99509         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
99511         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
99512         * modules/truncf-tests: Update.
99514 2007-10-11  Eric Blake  <ebb9@byu.net>
99516         Don't claim strerror is broken on Interix.
99517         * doc/functions/strerror.texi (strerror): Known broken systems are
99518         now Solaris 8, and not Interix.
99519         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
99520         Interix on cross-compile.
99521         Reported by Martin Koeppe in
99522         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
99524 2007-10-11  Bruno Haible  <bruno@clisp.org>
99526         * modules/i-ring-tests: New file.
99527         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
99528         instead of assert.
99530 2007-10-11  Bruno Haible  <bruno@clisp.org>
99532         * modules/filenamecat-tests: New file.
99533         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
99534         * lib/filenamecat.c: Remove test code.
99536 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
99538         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
99540         * lib/strerror.c: Include <string.h> always, to test interface,
99541         and to remove the need for the dummy.
99542         Include intprops.h to compute width instead of doing it ourselves
99543         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
99544         (strerror): Define it to return NULL if there's no system strerror.
99545         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
99546         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
99547         ancient pre-strerror Unix systems well any more.  Saying "unknown
99548         system error" is enough.
99549         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
99550         simpler strerror.c implementation.
99551         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
99552         Simplify the tests to reflect the simpler strerror implementation.
99553         * modules/strerror (Depends-on): Add intprops.
99555 2007-10-09  Eric Blake  <ebb9@byu.net>
99557         Silence test-fpending.
99558         * modules/fpending-tests (Files): Add wrapper script.
99559         * tests/test-fpending.sh: New file.
99561 2007-10-09  Bruno Haible  <bruno@clisp.org>
99563         * MODULES.html.sh (func_module): Don't create a hyperlink for
99564         function names like 'printf_frexp'.
99565         (Misc): Add crc, memxor.
99566         (Characteristics of floating types): New section.
99567         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
99568         isnanf-nolibm, signbit, trunc, truncf, truncl.
99569         (Enhancements for ISO C 99 functions): New subsection Input/output.
99570         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
99571         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
99572         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
99573         (Compatibility checks for POSIX:2001 functions): Add clock-time.
99574         (Enhancements for POSIX:2001 functions): Add chdir-long.
99575         (File system functions): Add areadlink, chdir-safer, read-file.
99576         Remove cycle-check.
99577         (File system as inode set): New section.
99578         (Date and time): Add gethrxtime.
99579         (Multithreading): Add openmp.
99580         (Internationalization functions): Add localename.
99581         (Unicode string functions): Add unistr/u*-mbsnlen.
99582         (Support for maintaining and releasing projects): Add git-version-gen.
99583         (Lone files): Remove directories.
99585 2007-10-08  Ben Pfaff  <blp@gnu.org>
99587         * lib/xmalloca.h: Fix typo in comment.
99589 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
99591         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
99592         when avoiding problems with integer overflow.  Use a portable test
99593         instead.
99595 2007-10-08  Simon Josefsson  <simon@josefsson.org>
99597         * modules/dummy (License): Change to LGPLv2+.
99598         * modules/float (License): Likewise
99599         * modules/realloc (License): Likewise
99600         * modules/stdlib (License): Likewise
99602 2007-10-07  Bruno Haible  <bruno@clisp.org>
99604         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
99605         * floor.c (TWO_MANT_DIG): Likewise.
99606         * ceil.c (TWO_MANT_DIG): Likewise.
99607         Reported by Ben Pfaff.
99609 2007-10-07  Bruno Haible  <bruno@clisp.org>
99611         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
99612         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
99613         * lib/frexp.c (FUNC): Likewise.
99614         * lib/printf-frexp.h (printf_frexp): Likewise.
99615         * lib/printf-frexpl.h (printf_frexpl): Likewise.
99616         * lib/printf-frexp.c (FUNC): Likewise.
99617         Suggested by Jim Meyering.
99619 2007-10-07  Jim Meyering  <meyering@redhat.com>
99621         Make xnanosleep's integer overflow test more robust.
99622         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
99623         so that gcc-4.3.0 doesn't optimize away this test for overflow.
99625 2007-10-07  Bruno Haible  <bruno@clisp.org>
99627         * NEWS: Mention the license change.
99629         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
99630         abbreviations in the modules files.
99632         Change copyright notice from GPLv2+ to GPLv3+.
99633         * README: Change copyright notice.
99634         * MODULES.html.sh: Likewise.
99635         * build-aux/bootstrap.conf: Likewise.
99636         * build-aux/config.libpath: Likewise.
99637         * build-aux/csharpcomp.sh.in: Likewise.
99638         * build-aux/csharpexec.sh.in: Likewise.
99639         * build-aux/install-reloc: Likewise.
99640         * build-aux/javacomp.sh.in: Likewise.
99641         * build-aux/javaexec.sh.in: Likewise.
99642         * build-aux/ldd.sh.in: Likewise.
99643         * build-aux/reloc-ldflags: Likewise.
99644         * build-aux/relocatable.sh.in: Likewise.
99645         * build-aux/x-to-1.in: Likewise.
99646         * check-module: Likewise.
99647         * config/srclistvars.sh: Likewise.
99648         * gnulib-tool: Likewise.
99649         * lib/acl-internal.h: Likewise.
99650         * lib/acl.c: Likewise.
99651         * lib/acl.h: Likewise.
99652         * lib/acl_entries.c: Likewise.
99653         * lib/areadlink-with-size.c: Likewise.
99654         * lib/areadlink.c: Likewise.
99655         * lib/areadlink.h: Likewise.
99656         * lib/argmatch.c: Likewise.
99657         * lib/argmatch.h: Likewise.
99658         * lib/argp-ba.c: Likewise.
99659         * lib/argp-eexst.c: Likewise.
99660         * lib/argp-fmtstream.c: Likewise.
99661         * lib/argp-fmtstream.h: Likewise.
99662         * lib/argp-fs-xinl.c: Likewise.
99663         * lib/argp-help.c: Likewise.
99664         * lib/argp-namefrob.h: Likewise.
99665         * lib/argp-parse.c: Likewise.
99666         * lib/argp-pin.c: Likewise.
99667         * lib/argp-pv.c: Likewise.
99668         * lib/argp-pvh.c: Likewise.
99669         * lib/argp-xinl.c: Likewise.
99670         * lib/argp.h: Likewise.
99671         * lib/at-func.c: Likewise.
99672         * lib/atanl.c: Likewise.
99673         * lib/backupfile.c: Likewise.
99674         * lib/backupfile.h: Likewise.
99675         * lib/basename.c: Likewise.
99676         * lib/binary-io.h: Likewise.
99677         * lib/byteswap.in.h: Likewise.
99678         * lib/c-stack.c: Likewise.
99679         * lib/c-stack.h: Likewise.
99680         * lib/c-strcasestr.c: Likewise.
99681         * lib/c-strcasestr.h: Likewise.
99682         * lib/c-strstr.c: Likewise.
99683         * lib/c-strstr.h: Likewise.
99684         * lib/c-strtod.c: Likewise.
99685         * lib/calloc.c: Likewise.
99686         * lib/canon-host.c: Likewise.
99687         * lib/canon-host.h: Likewise.
99688         * lib/canonicalize-lgpl.c: Likewise.
99689         * lib/canonicalize.c: Likewise.
99690         * lib/canonicalize.h: Likewise.
99691         * lib/ceil.c: Likewise.
99692         * lib/ceilf.c: Likewise.
99693         * lib/ceill.c: Likewise.
99694         * lib/chdir-long.c: Likewise.
99695         * lib/chdir-long.h: Likewise.
99696         * lib/chdir-safer.c: Likewise.
99697         * lib/chdir-safer.h: Likewise.
99698         * lib/chown.c: Likewise.
99699         * lib/classpath.c: Likewise.
99700         * lib/classpath.h: Likewise.
99701         * lib/clean-temp.c: Likewise.
99702         * lib/clean-temp.h: Likewise.
99703         * lib/cloexec.c: Likewise.
99704         * lib/close-stream.c: Likewise.
99705         * lib/closein.c: Likewise.
99706         * lib/closein.h: Likewise.
99707         * lib/closeout.c: Likewise.
99708         * lib/closeout.h: Likewise.
99709         * lib/concat-filename.c: Likewise.
99710         * lib/copy-file.c: Likewise.
99711         * lib/copy-file.h: Likewise.
99712         * lib/count-one-bits.h: Likewise.
99713         * lib/crc.c: Likewise.
99714         * lib/crc.h: Likewise.
99715         * lib/creat-safer.c: Likewise.
99716         * lib/csharpcomp.c: Likewise.
99717         * lib/csharpcomp.h: Likewise.
99718         * lib/csharpexec.c: Likewise.
99719         * lib/csharpexec.h: Likewise.
99720         * lib/cycle-check.c: Likewise.
99721         * lib/cycle-check.h: Likewise.
99722         * lib/diacrit.c: Likewise.
99723         * lib/diacrit.h: Likewise.
99724         * lib/diffseq.h: Likewise.
99725         * lib/dirchownmod.c: Likewise.
99726         * lib/dirent.in.h: Likewise.
99727         * lib/dirfd.c: Likewise.
99728         * lib/dirfd.h: Likewise.
99729         * lib/dirname.c: Likewise.
99730         * lib/dirname.h: Likewise.
99731         * lib/dummy.c: Likewise.
99732         * lib/dup-safer.c: Likewise.
99733         * lib/dup2.c: Likewise.
99734         * lib/eealloc.h: Likewise.
99735         * lib/error.c: Likewise.
99736         * lib/error.h: Likewise.
99737         * lib/euidaccess.c: Likewise.
99738         * lib/exclude.c: Likewise.
99739         * lib/exclude.h: Likewise.
99740         * lib/execute.c: Likewise.
99741         * lib/execute.h: Likewise.
99742         * lib/exitfail.c: Likewise.
99743         * lib/exitfail.h: Likewise.
99744         * lib/expl.c: Likewise.
99745         * lib/fatal-signal.c: Likewise.
99746         * lib/fatal-signal.h: Likewise.
99747         * lib/fbufmode.c: Likewise.
99748         * lib/fbufmode.h: Likewise.
99749         * lib/fchdir.c: Likewise.
99750         * lib/fchmodat.c: Likewise.
99751         * lib/fchownat.c: Likewise.
99752         * lib/fcntl--.h: Likewise.
99753         * lib/fcntl-safer.h: Likewise.
99754         * lib/fcntl.in.h: Likewise.
99755         * lib/fd-safer.c: Likewise.
99756         * lib/fflush.c: Likewise.
99757         * lib/file-has-acl.c: Likewise.
99758         * lib/file-set.c: Likewise.
99759         * lib/file-type.c: Likewise.
99760         * lib/file-type.h: Likewise.
99761         * lib/fileblocks.c: Likewise.
99762         * lib/filemode.c: Likewise.
99763         * lib/filemode.h: Likewise.
99764         * lib/filename.h: Likewise.
99765         * lib/filenamecat.c: Likewise.
99766         * lib/filenamecat.h: Likewise.
99767         * lib/findprog.c: Likewise.
99768         * lib/findprog.h: Likewise.
99769         * lib/float.in.h: Likewise.
99770         * lib/floor.c: Likewise.
99771         * lib/floorf.c: Likewise.
99772         * lib/floorl.c: Likewise.
99773         * lib/fopen-safer.c: Likewise.
99774         * lib/fopen.c: Likewise.
99775         * lib/fpending.c: Likewise.
99776         * lib/fpending.h: Likewise.
99777         * lib/fprintf.c: Likewise.
99778         * lib/fprintftime.h: Likewise.
99779         * lib/fpucw.h: Likewise.
99780         * lib/fpurge.c: Likewise.
99781         * lib/fpurge.h: Likewise.
99782         * lib/freadable.c: Likewise.
99783         * lib/freadable.h: Likewise.
99784         * lib/freadahead.c: Likewise.
99785         * lib/freadahead.h: Likewise.
99786         * lib/freading.c: Likewise.
99787         * lib/freading.h: Likewise.
99788         * lib/free.c: Likewise.
99789         * lib/freopen.c: Likewise.
99790         * lib/frexp.c: Likewise.
99791         * lib/frexpl.c: Likewise.
99792         * lib/fseek.c: Likewise.
99793         * lib/fseterr.c: Likewise.
99794         * lib/fseterr.h: Likewise.
99795         * lib/fstatat.c: Likewise.
99796         * lib/fstrcmp.c: Likewise.
99797         * lib/fstrcmp.h: Likewise.
99798         * lib/fsusage.c: Likewise.
99799         * lib/fsusage.h: Likewise.
99800         * lib/ftell.c: Likewise.
99801         * lib/ftello.c: Likewise.
99802         * lib/fts-cycle.c: Likewise.
99803         * lib/fts.c: Likewise.
99804         * lib/fts_.h: Likewise.
99805         * lib/full-read.c: Likewise.
99806         * lib/full-read.h: Likewise.
99807         * lib/full-write.c: Likewise.
99808         * lib/full-write.h: Likewise.
99809         * lib/fwritable.c: Likewise.
99810         * lib/fwritable.h: Likewise.
99811         * lib/fwriteerror.c: Likewise.
99812         * lib/fwriteerror.h: Likewise.
99813         * lib/fwriting.c: Likewise.
99814         * lib/fwriting.h: Likewise.
99815         * lib/gcd.c: Likewise.
99816         * lib/gcd.h: Likewise.
99817         * lib/getcwd.c: Likewise.
99818         * lib/getdate.h: Likewise.
99819         * lib/getdate.y: Likewise.
99820         * lib/getdomainname.c: Likewise.
99821         * lib/getdomainname.h: Likewise.
99822         * lib/getgroups.c: Likewise.
99823         * lib/gethostname.c: Likewise.
99824         * lib/gethrxtime.c: Likewise.
99825         * lib/gethrxtime.h: Likewise.
99826         * lib/getloadavg.c: Likewise.
99827         * lib/getndelim2.c: Likewise.
99828         * lib/getndelim2.h: Likewise.
99829         * lib/getnline.c: Likewise.
99830         * lib/getnline.h: Likewise.
99831         * lib/getopt.c: Likewise.
99832         * lib/getopt.in.h: Likewise.
99833         * lib/getopt1.c: Likewise.
99834         * lib/getopt_int.h: Likewise.
99835         * lib/getpagesize.h: Likewise.
99836         * lib/getsubopt.c: Likewise.
99837         * lib/gettime.c: Likewise.
99838         * lib/getugroups.c: Likewise.
99839         * lib/getugroups.h: Likewise.
99840         * lib/getusershell.c: Likewise.
99841         * lib/gl_anyavltree_list1.h: Likewise.
99842         * lib/gl_anyavltree_list2.h: Likewise.
99843         * lib/gl_anyhash_list1.h: Likewise.
99844         * lib/gl_anyhash_list2.h: Likewise.
99845         * lib/gl_anylinked_list1.h: Likewise.
99846         * lib/gl_anylinked_list2.h: Likewise.
99847         * lib/gl_anyrbtree_list1.h: Likewise.
99848         * lib/gl_anyrbtree_list2.h: Likewise.
99849         * lib/gl_anytree_list1.h: Likewise.
99850         * lib/gl_anytree_list2.h: Likewise.
99851         * lib/gl_anytree_oset.h: Likewise.
99852         * lib/gl_anytreehash_list1.h: Likewise.
99853         * lib/gl_anytreehash_list2.h: Likewise.
99854         * lib/gl_array_list.c: Likewise.
99855         * lib/gl_array_list.h: Likewise.
99856         * lib/gl_array_oset.c: Likewise.
99857         * lib/gl_array_oset.h: Likewise.
99858         * lib/gl_avltree_list.c: Likewise.
99859         * lib/gl_avltree_list.h: Likewise.
99860         * lib/gl_avltree_oset.c: Likewise.
99861         * lib/gl_avltree_oset.h: Likewise.
99862         * lib/gl_avltreehash_list.c: Likewise.
99863         * lib/gl_avltreehash_list.h: Likewise.
99864         * lib/gl_carray_list.c: Likewise.
99865         * lib/gl_carray_list.h: Likewise.
99866         * lib/gl_linked_list.c: Likewise.
99867         * lib/gl_linked_list.h: Likewise.
99868         * lib/gl_linkedhash_list.c: Likewise.
99869         * lib/gl_linkedhash_list.h: Likewise.
99870         * lib/gl_list.c: Likewise.
99871         * lib/gl_list.h: Likewise.
99872         * lib/gl_oset.c: Likewise.
99873         * lib/gl_oset.h: Likewise.
99874         * lib/gl_rbtree_list.c: Likewise.
99875         * lib/gl_rbtree_list.h: Likewise.
99876         * lib/gl_rbtree_oset.c: Likewise.
99877         * lib/gl_rbtree_oset.h: Likewise.
99878         * lib/gl_rbtreehash_list.c: Likewise.
99879         * lib/gl_rbtreehash_list.h: Likewise.
99880         * lib/gl_sublist.c: Likewise.
99881         * lib/gl_sublist.h: Likewise.
99882         * lib/group-member.c: Likewise.
99883         * lib/group-member.h: Likewise.
99884         * lib/hard-locale.c: Likewise.
99885         * lib/hard-locale.h: Likewise.
99886         * lib/hash-pjw.c: Likewise.
99887         * lib/hash-pjw.h: Likewise.
99888         * lib/hash-triple.c: Likewise.
99889         * lib/hash.c: Likewise.
99890         * lib/hash.h: Likewise.
99891         * lib/human.c: Likewise.
99892         * lib/human.h: Likewise.
99893         * lib/i-ring.c: Likewise.
99894         * lib/i-ring.h: Likewise.
99895         * lib/idcache.c: Likewise.
99896         * lib/imaxabs.c: Likewise.
99897         * lib/imaxdiv.c: Likewise.
99898         * lib/inet_pton.c: Likewise.
99899         * lib/inet_pton.h: Likewise.
99900         * lib/intprops.h: Likewise.
99901         * lib/inttostr.c: Likewise.
99902         * lib/inttostr.h: Likewise.
99903         * lib/inttypes.in.h: Likewise.
99904         * lib/isapipe.c: Likewise.
99905         * lib/isdir.c: Likewise.
99906         * lib/isnan.c: Likewise.
99907         * lib/isnan.h: Likewise.
99908         * lib/isnanf.c: Likewise.
99909         * lib/isnanf.h: Likewise.
99910         * lib/isnanl-nolibm.h: Likewise.
99911         * lib/isnanl.c: Likewise.
99912         * lib/isnanl.h: Likewise.
99913         * lib/javacomp.c: Likewise.
99914         * lib/javacomp.h: Likewise.
99915         * lib/javaexec.c: Likewise.
99916         * lib/javaexec.h: Likewise.
99917         * lib/javaversion.c: Likewise.
99918         * lib/javaversion.h: Likewise.
99919         * lib/javaversion.java: Likewise.
99920         * lib/lbrkprop.h: Likewise.
99921         * lib/lchmod.h: Likewise.
99922         * lib/lchown.c: Likewise.
99923         * lib/ldexpl.c: Likewise.
99924         * lib/linebreak.c: Likewise.
99925         * lib/linebreak.h: Likewise.
99926         * lib/linebuffer.c: Likewise.
99927         * lib/linebuffer.h: Likewise.
99928         * lib/locale.in.h: Likewise.
99929         * lib/logl.c: Likewise.
99930         * lib/long-options.c: Likewise.
99931         * lib/long-options.h: Likewise.
99932         * lib/lstat.c: Likewise.
99933         * lib/lstat.h: Likewise.
99934         * lib/math.in.h: Likewise.
99935         * lib/mbchar.c: Likewise.
99936         * lib/mbchar.h: Likewise.
99937         * lib/mbfile.h: Likewise.
99938         * lib/mbiter.h: Likewise.
99939         * lib/mbscasecmp.c: Likewise.
99940         * lib/mbscasestr.c: Likewise.
99941         * lib/mbschr.c: Likewise.
99942         * lib/mbscspn.c: Likewise.
99943         * lib/mbslen.c: Likewise.
99944         * lib/mbsncasecmp.c: Likewise.
99945         * lib/mbsnlen.c: Likewise.
99946         * lib/mbspbrk.c: Likewise.
99947         * lib/mbspcasecmp.c: Likewise.
99948         * lib/mbsrchr.c: Likewise.
99949         * lib/mbssep.c: Likewise.
99950         * lib/mbsspn.c: Likewise.
99951         * lib/mbsstr.c: Likewise.
99952         * lib/mbstok_r.c: Likewise.
99953         * lib/mbswidth.c: Likewise.
99954         * lib/mbswidth.h: Likewise.
99955         * lib/mbuiter.h: Likewise.
99956         * lib/memcasecmp.c: Likewise.
99957         * lib/memcasecmp.h: Likewise.
99958         * lib/memchr.c: Likewise.
99959         * lib/memcmp.c: Likewise.
99960         * lib/memcoll.c: Likewise.
99961         * lib/memcoll.h: Likewise.
99962         * lib/memcpy.c: Likewise.
99963         * lib/memrchr.c: Likewise.
99964         * lib/mkancesdirs.c: Likewise.
99965         * lib/mkdir-p.c: Likewise.
99966         * lib/mkdir-p.h: Likewise.
99967         * lib/mkdir.c: Likewise.
99968         * lib/mkdirat.c: Likewise.
99969         * lib/mkdtemp.c: Likewise.
99970         * lib/mkstemp-safer.c: Likewise.
99971         * lib/mkstemp.c: Likewise.
99972         * lib/modechange.c: Likewise.
99973         * lib/modechange.h: Likewise.
99974         * lib/mountlist.c: Likewise.
99975         * lib/mountlist.h: Likewise.
99976         * lib/mpsort.c: Likewise.
99977         * lib/nanosleep.c: Likewise.
99978         * lib/obstack.c: Likewise.
99979         * lib/obstack.h: Likewise.
99980         * lib/open-safer.c: Likewise.
99981         * lib/open.c: Likewise.
99982         * lib/openat-die.c: Likewise.
99983         * lib/openat-priv.h: Likewise.
99984         * lib/openat-proc.c: Likewise.
99985         * lib/openat.c: Likewise.
99986         * lib/openat.h: Likewise.
99987         * lib/pagealign_alloc.c: Likewise.
99988         * lib/pagealign_alloc.h: Likewise.
99989         * lib/physmem.c: Likewise.
99990         * lib/physmem.h: Likewise.
99991         * lib/pipe-safer.c: Likewise.
99992         * lib/pipe.c: Likewise.
99993         * lib/pipe.h: Likewise.
99994         * lib/posixtm.c: Likewise.
99995         * lib/posixtm.h: Likewise.
99996         * lib/posixver.c: Likewise.
99997         * lib/printf-frexp.c: Likewise.
99998         * lib/printf-frexp.h: Likewise.
99999         * lib/printf-frexpl.c: Likewise.
100000         * lib/printf-frexpl.h: Likewise.
100001         * lib/printf.c: Likewise.
100002         * lib/progname.c: Likewise.
100003         * lib/progname.h: Likewise.
100004         * lib/progreloc.c: Likewise.
100005         * lib/putenv.c: Likewise.
100006         * lib/quote.c: Likewise.
100007         * lib/quote.h: Likewise.
100008         * lib/quotearg.c: Likewise.
100009         * lib/quotearg.h: Likewise.
100010         * lib/raise.c: Likewise.
100011         * lib/readline.c: Likewise.
100012         * lib/readline.h: Likewise.
100013         * lib/readlink.c: Likewise.
100014         * lib/readtokens.c: Likewise.
100015         * lib/readtokens.h: Likewise.
100016         * lib/readtokens0.c: Likewise.
100017         * lib/readtokens0.h: Likewise.
100018         * lib/readutmp.c: Likewise.
100019         * lib/readutmp.h: Likewise.
100020         * lib/realloc.c: Likewise.
100021         * lib/relocwrapper.c: Likewise.
100022         * lib/rename-dest-slash.c: Likewise.
100023         * lib/rename.c: Likewise.
100024         * lib/rmdir.c: Likewise.
100025         * lib/rpmatch.c: Likewise.
100026         * lib/safe-read.c: Likewise.
100027         * lib/safe-read.h: Likewise.
100028         * lib/safe-write.c: Likewise.
100029         * lib/safe-write.h: Likewise.
100030         * lib/same-inode.h: Likewise.
100031         * lib/same.c: Likewise.
100032         * lib/same.h: Likewise.
100033         * lib/save-cwd.c: Likewise.
100034         * lib/save-cwd.h: Likewise.
100035         * lib/savedir.c: Likewise.
100036         * lib/savedir.h: Likewise.
100037         * lib/savewd.c: Likewise.
100038         * lib/savewd.h: Likewise.
100039         * lib/search.in.h: Likewise.
100040         * lib/setenv.c: Likewise.
100041         * lib/setenv.h: Likewise.
100042         * lib/settime.c: Likewise.
100043         * lib/sh-quote.c: Likewise.
100044         * lib/sh-quote.h: Likewise.
100045         * lib/sig2str.c: Likewise.
100046         * lib/sig2str.h: Likewise.
100047         * lib/signal.in.h: Likewise.
100048         * lib/signbitd.c: Likewise.
100049         * lib/signbitf.c: Likewise.
100050         * lib/signbitl.c: Likewise.
100051         * lib/sigprocmask.c: Likewise.
100052         * lib/sincosl.c: Likewise.
100053         * lib/sleep.c: Likewise.
100054         * lib/sprintf.c: Likewise.
100055         * lib/sqrtl.c: Likewise.
100056         * lib/stat-time.h: Likewise.
100057         * lib/stdio--.h: Likewise.
100058         * lib/stdio-safer.h: Likewise.
100059         * lib/stdlib--.h: Likewise.
100060         * lib/stdlib-safer.h: Likewise.
100061         * lib/stdlib.in.h: Likewise.
100062         * lib/stpcpy.c: Likewise.
100063         * lib/stpncpy.c: Likewise.
100064         * lib/strchrnul.c: Likewise.
100065         * lib/strcspn.c: Likewise.
100066         * lib/strerror.c: Likewise.
100067         * lib/strftime.c: Likewise.
100068         * lib/strftime.h: Likewise.
100069         * lib/striconveh.c: Likewise.
100070         * lib/striconveh.h: Likewise.
100071         * lib/striconveha.c: Likewise.
100072         * lib/striconveha.h: Likewise.
100073         * lib/stripslash.c: Likewise.
100074         * lib/strnlen1.c: Likewise.
100075         * lib/strnlen1.h: Likewise.
100076         * lib/strtod.c: Likewise.
100077         * lib/strtoimax.c: Likewise.
100078         * lib/strtok_r.c: Likewise.
100079         * lib/strtol.c: Likewise.
100080         * lib/strtoll.c: Likewise.
100081         * lib/strtoul.c: Likewise.
100082         * lib/strtoull.c: Likewise.
100083         * lib/sysexits.in.h: Likewise.
100084         * lib/tempname.c: Likewise.
100085         * lib/tempname.h: Likewise.
100086         * lib/timespec.h: Likewise.
100087         * lib/tls.c: Likewise.
100088         * lib/tls.h: Likewise.
100089         * lib/tmpdir.c: Likewise.
100090         * lib/tmpdir.h: Likewise.
100091         * lib/tmpfile-safer.c: Likewise.
100092         * lib/tmpfile.c: Likewise.
100093         * lib/trigl.c: Likewise.
100094         * lib/trigl.h: Likewise.
100095         * lib/trim.c: Likewise.
100096         * lib/trim.h: Likewise.
100097         * lib/trunc.c: Likewise.
100098         * lib/truncf.c: Likewise.
100099         * lib/truncl.c: Likewise.
100100         * lib/tsearch.c: Likewise.
100101         * lib/unicodeio.c: Likewise.
100102         * lib/unicodeio.h: Likewise.
100103         * lib/unistd--.h: Likewise.
100104         * lib/unistd-safer.h: Likewise.
100105         * lib/unistdio/ulc-fprintf.c: Likewise.
100106         * lib/unistdio/ulc-vfprintf.c: Likewise.
100107         * lib/unlinkdir.c: Likewise.
100108         * lib/unlinkdir.h: Likewise.
100109         * lib/unlocked-io.h: Likewise.
100110         * lib/unsetenv.c: Likewise.
100111         * lib/userspec.c: Likewise.
100112         * lib/utime.c: Likewise.
100113         * lib/utimecmp.c: Likewise.
100114         * lib/utimecmp.h: Likewise.
100115         * lib/utimens.c: Likewise.
100116         * lib/verify.h: Likewise.
100117         * lib/verror.c: Likewise.
100118         * lib/verror.h: Likewise.
100119         * lib/version-etc-fsf.c: Likewise.
100120         * lib/version-etc.c: Likewise.
100121         * lib/version-etc.h: Likewise.
100122         * lib/vfprintf.c: Likewise.
100123         * lib/vprintf.c: Likewise.
100124         * lib/vsprintf.c: Likewise.
100125         * lib/w32spawn.h: Likewise.
100126         * lib/wait-process.c: Likewise.
100127         * lib/wait-process.h: Likewise.
100128         * lib/wcwidth.c: Likewise.
100129         * lib/write-any-file.c: Likewise.
100130         * lib/xalloc-die.c: Likewise.
100131         * lib/xalloc.h: Likewise.
100132         * lib/xasprintf.c: Likewise.
100133         * lib/xgetcwd.c: Likewise.
100134         * lib/xgetcwd.h: Likewise.
100135         * lib/xgetdomainname.c: Likewise.
100136         * lib/xgetdomainname.h: Likewise.
100137         * lib/xgethostname.c: Likewise.
100138         * lib/xmalloc.c: Likewise.
100139         * lib/xmalloca.c: Likewise.
100140         * lib/xmalloca.h: Likewise.
100141         * lib/xmemcoll.c: Likewise.
100142         * lib/xnanosleep.c: Likewise.
100143         * lib/xreadlink.c: Likewise.
100144         * lib/xreadlink.h: Likewise.
100145         * lib/xsetenv.c: Likewise.
100146         * lib/xsetenv.h: Likewise.
100147         * lib/xstriconv.c: Likewise.
100148         * lib/xstriconv.h: Likewise.
100149         * lib/xstrndup.c: Likewise.
100150         * lib/xstrndup.h: Likewise.
100151         * lib/xstrtod.c: Likewise.
100152         * lib/xstrtod.h: Likewise.
100153         * lib/xstrtol-error.c: Likewise.
100154         * lib/xstrtol.c: Likewise.
100155         * lib/xstrtol.h: Likewise.
100156         * lib/xtime.h: Likewise.
100157         * lib/xvasprintf.c: Likewise.
100158         * lib/xvasprintf.h: Likewise.
100159         * lib/yesno.c: Likewise.
100160         * lib/yesno.h: Likewise.
100161         * posix-modules: Likewise.
100162         * tests/test-alloca-opt.c: Likewise.
100163         * tests/test-arcfour.c: Likewise.
100164         * tests/test-arctwo.c: Likewise.
100165         * tests/test-argmatch.c: Likewise.
100166         * tests/test-argp-2.sh: Likewise.
100167         * tests/test-argp.c: Likewise.
100168         * tests/test-arpa_inet.c: Likewise.
100169         * tests/test-array_list.c: Likewise.
100170         * tests/test-array_oset.c: Likewise.
100171         * tests/test-atexit.c: Likewise.
100172         * tests/test-avltree_list.c: Likewise.
100173         * tests/test-avltree_oset.c: Likewise.
100174         * tests/test-avltreehash_list.c: Likewise.
100175         * tests/test-base64.c: Likewise.
100176         * tests/test-binary-io.c: Likewise.
100177         * tests/test-byteswap.c: Likewise.
100178         * tests/test-c-ctype.c: Likewise.
100179         * tests/test-c-strcasecmp.c: Likewise.
100180         * tests/test-c-strcasestr.c: Likewise.
100181         * tests/test-c-strncasecmp.c: Likewise.
100182         * tests/test-c-strstr.c: Likewise.
100183         * tests/test-canonicalize-lgpl.c: Likewise.
100184         * tests/test-canonicalize.c: Likewise.
100185         * tests/test-carray_list.c: Likewise.
100186         * tests/test-ceilf.c: Likewise.
100187         * tests/test-ceill.c: Likewise.
100188         * tests/test-count-one-bits.c: Likewise.
100189         * tests/test-crc.c: Likewise.
100190         * tests/test-dirname.c: Likewise.
100191         * tests/test-fbufmode.c: Likewise.
100192         * tests/test-fcntl.c: Likewise.
100193         * tests/test-fflush.c: Likewise.
100194         * tests/test-floorf.c: Likewise.
100195         * tests/test-floorl.c: Likewise.
100196         * tests/test-fopen.c: Likewise.
100197         * tests/test-fprintf-posix.c: Likewise.
100198         * tests/test-fprintf-posix.h: Likewise.
100199         * tests/test-fpurge.c: Likewise.
100200         * tests/test-freadable.c: Likewise.
100201         * tests/test-freadahead.c: Likewise.
100202         * tests/test-freading.c: Likewise.
100203         * tests/test-freopen.c: Likewise.
100204         * tests/test-frexp.c: Likewise.
100205         * tests/test-frexpl.c: Likewise.
100206         * tests/test-fseek.c: Likewise.
100207         * tests/test-fseeko.c: Likewise.
100208         * tests/test-fseterr.c: Likewise.
100209         * tests/test-fstrcmp.c: Likewise.
100210         * tests/test-ftell.c: Likewise.
100211         * tests/test-ftello.c: Likewise.
100212         * tests/test-fwritable.c: Likewise.
100213         * tests/test-fwriting.c: Likewise.
100214         * tests/test-getaddrinfo.c: Likewise.
100215         * tests/test-getpass.c: Likewise.
100216         * tests/test-gettimeofday.c: Likewise.
100217         * tests/test-hmac-md5.c: Likewise.
100218         * tests/test-hmac-sha1.c: Likewise.
100219         * tests/test-iconv.c: Likewise.
100220         * tests/test-iconvme.c: Likewise.
100221         * tests/test-inttypes.c: Likewise.
100222         * tests/test-isnan.c: Likewise.
100223         * tests/test-isnanf.c: Likewise.
100224         * tests/test-isnanl-nolibm.c: Likewise.
100225         * tests/test-isnanl.c: Likewise.
100226         * tests/test-isnanl.h: Likewise.
100227         * tests/test-ldexpl.c: Likewise.
100228         * tests/test-linked_list.c: Likewise.
100229         * tests/test-linkedhash_list.c: Likewise.
100230         * tests/test-locale.c: Likewise.
100231         * tests/test-localename.c: Likewise.
100232         * tests/test-lock.c: Likewise.
100233         * tests/test-lseek.c: Likewise.
100234         * tests/test-malloca.c: Likewise.
100235         * tests/test-math.c: Likewise.
100236         * tests/test-mbscasecmp.c: Likewise.
100237         * tests/test-mbscasestr1.c: Likewise.
100238         * tests/test-mbscasestr2.c: Likewise.
100239         * tests/test-mbscasestr3.c: Likewise.
100240         * tests/test-mbscasestr4.c: Likewise.
100241         * tests/test-mbschr.c: Likewise.
100242         * tests/test-mbscspn.c: Likewise.
100243         * tests/test-mbsncasecmp.c: Likewise.
100244         * tests/test-mbspbrk.c: Likewise.
100245         * tests/test-mbspcasecmp.c: Likewise.
100246         * tests/test-mbsrchr.c: Likewise.
100247         * tests/test-mbsspn.c: Likewise.
100248         * tests/test-mbsstr1.c: Likewise.
100249         * tests/test-mbsstr2.c: Likewise.
100250         * tests/test-mbsstr3.c: Likewise.
100251         * tests/test-md5.c: Likewise.
100252         * tests/test-memmem.c: Likewise.
100253         * tests/test-netinet_in.c: Likewise.
100254         * tests/test-open.c: Likewise.
100255         * tests/test-printf-frexp.c: Likewise.
100256         * tests/test-printf-frexpl.c: Likewise.
100257         * tests/test-printf-posix.c: Likewise.
100258         * tests/test-printf-posix.h: Likewise.
100259         * tests/test-rbtree_list.c: Likewise.
100260         * tests/test-rbtree_oset.c: Likewise.
100261         * tests/test-rbtreehash_list.c: Likewise.
100262         * tests/test-read-file.c: Likewise.
100263         * tests/test-rijndael.c: Likewise.
100264         * tests/test-search.c: Likewise.
100265         * tests/test-signbit.c: Likewise.
100266         * tests/test-sleep.c: Likewise.
100267         * tests/test-snprintf-posix.c: Likewise.
100268         * tests/test-snprintf-posix.h: Likewise.
100269         * tests/test-snprintf.c: Likewise.
100270         * tests/test-sprintf-posix.c: Likewise.
100271         * tests/test-sprintf-posix.h: Likewise.
100272         * tests/test-stat-time.c: Likewise.
100273         * tests/test-stdbool.c: Likewise.
100274         * tests/test-stdint.c: Likewise.
100275         * tests/test-stdio.c: Likewise.
100276         * tests/test-stdlib.c: Likewise.
100277         * tests/test-stpncpy.c: Likewise.
100278         * tests/test-strcasestr.c: Likewise.
100279         * tests/test-striconv.c: Likewise.
100280         * tests/test-striconveh.c: Likewise.
100281         * tests/test-striconveha.c: Likewise.
100282         * tests/test-string.c: Likewise.
100283         * tests/test-sys_select.c: Likewise.
100284         * tests/test-sys_socket.c: Likewise.
100285         * tests/test-sys_stat.c: Likewise.
100286         * tests/test-sys_time.c: Likewise.
100287         * tests/test-sysexits.c: Likewise.
100288         * tests/test-time.c: Likewise.
100289         * tests/test-tls.c: Likewise.
100290         * tests/test-trunc.c: Likewise.
100291         * tests/test-truncf.c: Likewise.
100292         * tests/test-truncl.c: Likewise.
100293         * tests/test-unistd.c: Likewise.
100294         * tests/test-vasnprintf-posix.c: Likewise.
100295         * tests/test-vasnprintf-posix2.c: Likewise.
100296         * tests/test-vasnprintf.c: Likewise.
100297         * tests/test-vasprintf-posix.c: Likewise.
100298         * tests/test-vasprintf.c: Likewise.
100299         * tests/test-verify.c: Likewise.
100300         * tests/test-vfprintf-posix.c: Likewise.
100301         * tests/test-vprintf-posix.c: Likewise.
100302         * tests/test-vsnprintf-posix.c: Likewise.
100303         * tests/test-vsnprintf.c: Likewise.
100304         * tests/test-vsprintf-posix.c: Likewise.
100305         * tests/test-wchar.c: Likewise.
100306         * tests/test-wctype.c: Likewise.
100307         * tests/test-wcwidth.c: Likewise.
100308         * tests/test-xstrtol.c: Likewise.
100309         * tests/test-xvasprintf.c: Likewise.
100310         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
100311         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
100312         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
100313         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
100314         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
100315         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
100316         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
100317         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
100318         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
100319         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
100320         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
100321         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
100322         * tests/uniname/test-uninames.c: Likewise.
100323         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
100324         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
100325         * tests/unistdio/test-u16-printf1.h: Likewise.
100326         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
100327         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
100328         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
100329         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
100330         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
100331         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
100332         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
100333         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
100334         * tests/unistdio/test-u32-printf1.h: Likewise.
100335         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
100336         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
100337         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
100338         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
100339         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
100340         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
100341         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
100342         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
100343         * tests/unistdio/test-u8-printf1.h: Likewise.
100344         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
100345         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
100346         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
100347         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
100348         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
100349         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
100350         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
100351         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
100352         * tests/unistdio/test-ulc-printf1.h: Likewise.
100353         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
100354         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
100355         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
100356         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
100357         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
100358         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
100359         * tests/uniwidth/test-u16-strwidth.c: Likewise.
100360         * tests/uniwidth/test-u16-width.c: Likewise.
100361         * tests/uniwidth/test-u32-strwidth.c: Likewise.
100362         * tests/uniwidth/test-u32-width.c: Likewise.
100363         * tests/uniwidth/test-u8-strwidth.c: Likewise.
100364         * tests/uniwidth/test-u8-width.c: Likewise.
100365         * tests/uniwidth/test-uc_width.c: Likewise.
100366         * config/srclist-update: Likewise.
100367         (fixlicense): Update to GPLv3+.
100369         Change copyright notice from LGPLv2.1+ to LGPLv3+.
100370         * tests/test-tsearch.c: Change copyright notice.
100372         Change copyright notice from LGPLv2.0+ to LGPLv3+.
100373         * lib/c-strcaseeq.h: Change copyright notice.
100374         * lib/streq.h: Likewise.
100375         * lib/uniconv.h: Likewise.
100376         * lib/uniconv/u-conv-from-enc.h: Likewise.
100377         * lib/uniconv/u-conv-to-enc.h: Likewise.
100378         * lib/uniconv/u-strconv-from-enc.h: Likewise.
100379         * lib/uniconv/u-strconv-to-enc.h: Likewise.
100380         * lib/uniconv/u16-conv-from-enc.c: Likewise.
100381         * lib/uniconv/u16-conv-to-enc.c: Likewise.
100382         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
100383         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
100384         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
100385         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
100386         * lib/uniconv/u32-conv-from-enc.c: Likewise.
100387         * lib/uniconv/u32-conv-to-enc.c: Likewise.
100388         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
100389         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
100390         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
100391         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
100392         * lib/uniconv/u8-conv-from-enc.c: Likewise.
100393         * lib/uniconv/u8-conv-to-enc.c: Likewise.
100394         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
100395         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
100396         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
100397         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
100398         * lib/uniname.h: Likewise.
100399         * lib/uniname/uniname.c: Likewise.
100400         * lib/unistdio.h: Likewise.
100401         * lib/unistdio/u-asnprintf.h: Likewise.
100402         * lib/unistdio/u-asprintf.h: Likewise.
100403         * lib/unistdio/u-printf-args.c: Likewise.
100404         * lib/unistdio/u-printf-args.h: Likewise.
100405         * lib/unistdio/u-printf-parse.h: Likewise.
100406         * lib/unistdio/u-snprintf.h: Likewise.
100407         * lib/unistdio/u-sprintf.h: Likewise.
100408         * lib/unistdio/u-vasprintf.h: Likewise.
100409         * lib/unistdio/u-vsnprintf.h: Likewise.
100410         * lib/unistdio/u-vsprintf.h: Likewise.
100411         * lib/unistdio/u16-asnprintf.c: Likewise.
100412         * lib/unistdio/u16-asprintf.c: Likewise.
100413         * lib/unistdio/u16-printf-parse.c: Likewise.
100414         * lib/unistdio/u16-snprintf.c: Likewise.
100415         * lib/unistdio/u16-sprintf.c: Likewise.
100416         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
100417         * lib/unistdio/u16-u16-asprintf.c: Likewise.
100418         * lib/unistdio/u16-u16-snprintf.c: Likewise.
100419         * lib/unistdio/u16-u16-sprintf.c: Likewise.
100420         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
100421         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
100422         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
100423         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
100424         * lib/unistdio/u16-vasnprintf.c: Likewise.
100425         * lib/unistdio/u16-vasprintf.c: Likewise.
100426         * lib/unistdio/u16-vsnprintf.c: Likewise.
100427         * lib/unistdio/u16-vsprintf.c: Likewise.
100428         * lib/unistdio/u32-asnprintf.c: Likewise.
100429         * lib/unistdio/u32-asprintf.c: Likewise.
100430         * lib/unistdio/u32-printf-parse.c: Likewise.
100431         * lib/unistdio/u32-snprintf.c: Likewise.
100432         * lib/unistdio/u32-sprintf.c: Likewise.
100433         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
100434         * lib/unistdio/u32-u32-asprintf.c: Likewise.
100435         * lib/unistdio/u32-u32-snprintf.c: Likewise.
100436         * lib/unistdio/u32-u32-sprintf.c: Likewise.
100437         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
100438         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
100439         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
100440         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
100441         * lib/unistdio/u32-vasnprintf.c: Likewise.
100442         * lib/unistdio/u32-vasprintf.c: Likewise.
100443         * lib/unistdio/u32-vsnprintf.c: Likewise.
100444         * lib/unistdio/u32-vsprintf.c: Likewise.
100445         * lib/unistdio/u8-asnprintf.c: Likewise.
100446         * lib/unistdio/u8-asprintf.c: Likewise.
100447         * lib/unistdio/u8-printf-parse.c: Likewise.
100448         * lib/unistdio/u8-snprintf.c: Likewise.
100449         * lib/unistdio/u8-sprintf.c: Likewise.
100450         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
100451         * lib/unistdio/u8-u8-asprintf.c: Likewise.
100452         * lib/unistdio/u8-u8-snprintf.c: Likewise.
100453         * lib/unistdio/u8-u8-sprintf.c: Likewise.
100454         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
100455         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
100456         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
100457         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
100458         * lib/unistdio/u8-vasnprintf.c: Likewise.
100459         * lib/unistdio/u8-vasprintf.c: Likewise.
100460         * lib/unistdio/u8-vsnprintf.c: Likewise.
100461         * lib/unistdio/u8-vsprintf.c: Likewise.
100462         * lib/unistdio/ulc-asnprintf.c: Likewise.
100463         * lib/unistdio/ulc-asprintf.c: Likewise.
100464         * lib/unistdio/ulc-printf-parse.c: Likewise.
100465         * lib/unistdio/ulc-snprintf.c: Likewise.
100466         * lib/unistdio/ulc-sprintf.c: Likewise.
100467         * lib/unistdio/ulc-vasnprintf.c: Likewise.
100468         * lib/unistdio/ulc-vasprintf.c: Likewise.
100469         * lib/unistdio/ulc-vsnprintf.c: Likewise.
100470         * lib/unistdio/ulc-vsprintf.c: Likewise.
100471         * lib/unistr.h: Likewise.
100472         * lib/unistr/u-cpy-alloc.h: Likewise.
100473         * lib/unistr/u-cpy.h: Likewise.
100474         * lib/unistr/u-endswith.h: Likewise.
100475         * lib/unistr/u-move.h: Likewise.
100476         * lib/unistr/u-set.h: Likewise.
100477         * lib/unistr/u-startswith.h: Likewise.
100478         * lib/unistr/u-stpcpy.h: Likewise.
100479         * lib/unistr/u-stpncpy.h: Likewise.
100480         * lib/unistr/u-strcat.h: Likewise.
100481         * lib/unistr/u-strcpy.h: Likewise.
100482         * lib/unistr/u-strcspn.h: Likewise.
100483         * lib/unistr/u-strdup.h: Likewise.
100484         * lib/unistr/u-strlen.h: Likewise.
100485         * lib/unistr/u-strncat.h: Likewise.
100486         * lib/unistr/u-strncpy.h: Likewise.
100487         * lib/unistr/u-strnlen.h: Likewise.
100488         * lib/unistr/u-strpbrk.h: Likewise.
100489         * lib/unistr/u-strspn.h: Likewise.
100490         * lib/unistr/u-strstr.h: Likewise.
100491         * lib/unistr/u-strtok.h: Likewise.
100492         * lib/unistr/u16-check.c: Likewise.
100493         * lib/unistr/u16-chr.c: Likewise.
100494         * lib/unistr/u16-cmp.c: Likewise.
100495         * lib/unistr/u16-cpy-alloc.c: Likewise.
100496         * lib/unistr/u16-cpy.c: Likewise.
100497         * lib/unistr/u16-endswith.c: Likewise.
100498         * lib/unistr/u16-mblen.c: Likewise.
100499         * lib/unistr/u16-mbsnlen.c: Likewise.
100500         * lib/unistr/u16-mbtouc-aux.c: Likewise.
100501         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
100502         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
100503         * lib/unistr/u16-mbtouc.c: Likewise.
100504         * lib/unistr/u16-mbtoucr.c: Likewise.
100505         * lib/unistr/u16-move.c: Likewise.
100506         * lib/unistr/u16-next.c: Likewise.
100507         * lib/unistr/u16-prev.c: Likewise.
100508         * lib/unistr/u16-set.c: Likewise.
100509         * lib/unistr/u16-startswith.c: Likewise.
100510         * lib/unistr/u16-stpcpy.c: Likewise.
100511         * lib/unistr/u16-stpncpy.c: Likewise.
100512         * lib/unistr/u16-strcat.c: Likewise.
100513         * lib/unistr/u16-strchr.c: Likewise.
100514         * lib/unistr/u16-strcmp.c: Likewise.
100515         * lib/unistr/u16-strcpy.c: Likewise.
100516         * lib/unistr/u16-strcspn.c: Likewise.
100517         * lib/unistr/u16-strdup.c: Likewise.
100518         * lib/unistr/u16-strlen.c: Likewise.
100519         * lib/unistr/u16-strmblen.c: Likewise.
100520         * lib/unistr/u16-strmbtouc.c: Likewise.
100521         * lib/unistr/u16-strncat.c: Likewise.
100522         * lib/unistr/u16-strncmp.c: Likewise.
100523         * lib/unistr/u16-strncpy.c: Likewise.
100524         * lib/unistr/u16-strnlen.c: Likewise.
100525         * lib/unistr/u16-strpbrk.c: Likewise.
100526         * lib/unistr/u16-strrchr.c: Likewise.
100527         * lib/unistr/u16-strspn.c: Likewise.
100528         * lib/unistr/u16-strstr.c: Likewise.
100529         * lib/unistr/u16-strtok.c: Likewise.
100530         * lib/unistr/u16-to-u32.c: Likewise.
100531         * lib/unistr/u16-to-u8.c: Likewise.
100532         * lib/unistr/u16-uctomb-aux.c: Likewise.
100533         * lib/unistr/u16-uctomb.c: Likewise.
100534         * lib/unistr/u32-check.c: Likewise.
100535         * lib/unistr/u32-chr.c: Likewise.
100536         * lib/unistr/u32-cmp.c: Likewise.
100537         * lib/unistr/u32-cpy-alloc.c: Likewise.
100538         * lib/unistr/u32-cpy.c: Likewise.
100539         * lib/unistr/u32-endswith.c: Likewise.
100540         * lib/unistr/u32-mblen.c: Likewise.
100541         * lib/unistr/u32-mbsnlen.c: Likewise.
100542         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
100543         * lib/unistr/u32-mbtouc.c: Likewise.
100544         * lib/unistr/u32-mbtoucr.c: Likewise.
100545         * lib/unistr/u32-move.c: Likewise.
100546         * lib/unistr/u32-next.c: Likewise.
100547         * lib/unistr/u32-prev.c: Likewise.
100548         * lib/unistr/u32-set.c: Likewise.
100549         * lib/unistr/u32-startswith.c: Likewise.
100550         * lib/unistr/u32-stpcpy.c: Likewise.
100551         * lib/unistr/u32-stpncpy.c: Likewise.
100552         * lib/unistr/u32-strcat.c: Likewise.
100553         * lib/unistr/u32-strchr.c: Likewise.
100554         * lib/unistr/u32-strcmp.c: Likewise.
100555         * lib/unistr/u32-strcpy.c: Likewise.
100556         * lib/unistr/u32-strcspn.c: Likewise.
100557         * lib/unistr/u32-strdup.c: Likewise.
100558         * lib/unistr/u32-strlen.c: Likewise.
100559         * lib/unistr/u32-strmblen.c: Likewise.
100560         * lib/unistr/u32-strmbtouc.c: Likewise.
100561         * lib/unistr/u32-strncat.c: Likewise.
100562         * lib/unistr/u32-strncmp.c: Likewise.
100563         * lib/unistr/u32-strncpy.c: Likewise.
100564         * lib/unistr/u32-strnlen.c: Likewise.
100565         * lib/unistr/u32-strpbrk.c: Likewise.
100566         * lib/unistr/u32-strrchr.c: Likewise.
100567         * lib/unistr/u32-strspn.c: Likewise.
100568         * lib/unistr/u32-strstr.c: Likewise.
100569         * lib/unistr/u32-strtok.c: Likewise.
100570         * lib/unistr/u32-to-u16.c: Likewise.
100571         * lib/unistr/u32-to-u8.c: Likewise.
100572         * lib/unistr/u32-uctomb.c: Likewise.
100573         * lib/unistr/u8-check.c: Likewise.
100574         * lib/unistr/u8-chr.c: Likewise.
100575         * lib/unistr/u8-cmp.c: Likewise.
100576         * lib/unistr/u8-cpy-alloc.c: Likewise.
100577         * lib/unistr/u8-cpy.c: Likewise.
100578         * lib/unistr/u8-endswith.c: Likewise.
100579         * lib/unistr/u8-mblen.c: Likewise.
100580         * lib/unistr/u8-mbsnlen.c: Likewise.
100581         * lib/unistr/u8-mbtouc-aux.c: Likewise.
100582         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
100583         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
100584         * lib/unistr/u8-mbtouc.c: Likewise.
100585         * lib/unistr/u8-mbtoucr.c: Likewise.
100586         * lib/unistr/u8-move.c: Likewise.
100587         * lib/unistr/u8-next.c: Likewise.
100588         * lib/unistr/u8-prev.c: Likewise.
100589         * lib/unistr/u8-set.c: Likewise.
100590         * lib/unistr/u8-startswith.c: Likewise.
100591         * lib/unistr/u8-stpcpy.c: Likewise.
100592         * lib/unistr/u8-stpncpy.c: Likewise.
100593         * lib/unistr/u8-strcat.c: Likewise.
100594         * lib/unistr/u8-strchr.c: Likewise.
100595         * lib/unistr/u8-strcmp.c: Likewise.
100596         * lib/unistr/u8-strcpy.c: Likewise.
100597         * lib/unistr/u8-strcspn.c: Likewise.
100598         * lib/unistr/u8-strdup.c: Likewise.
100599         * lib/unistr/u8-strlen.c: Likewise.
100600         * lib/unistr/u8-strmblen.c: Likewise.
100601         * lib/unistr/u8-strmbtouc.c: Likewise.
100602         * lib/unistr/u8-strncat.c: Likewise.
100603         * lib/unistr/u8-strncmp.c: Likewise.
100604         * lib/unistr/u8-strncpy.c: Likewise.
100605         * lib/unistr/u8-strnlen.c: Likewise.
100606         * lib/unistr/u8-strpbrk.c: Likewise.
100607         * lib/unistr/u8-strrchr.c: Likewise.
100608         * lib/unistr/u8-strspn.c: Likewise.
100609         * lib/unistr/u8-strstr.c: Likewise.
100610         * lib/unistr/u8-strtok.c: Likewise.
100611         * lib/unistr/u8-to-u16.c: Likewise.
100612         * lib/unistr/u8-to-u32.c: Likewise.
100613         * lib/unistr/u8-uctomb-aux.c: Likewise.
100614         * lib/unistr/u8-uctomb.c: Likewise.
100615         * lib/unitypes.h: Likewise.
100616         * lib/uniwidth.h: Likewise.
100617         * lib/uniwidth/cjk.h: Likewise.
100618         * lib/uniwidth/u16-strwidth.c: Likewise.
100619         * lib/uniwidth/u16-width.c: Likewise.
100620         * lib/uniwidth/u32-strwidth.c: Likewise.
100621         * lib/uniwidth/u32-width.c: Likewise.
100622         * lib/uniwidth/u8-strwidth.c: Likewise.
100623         * lib/uniwidth/u8-width.c: Likewise.
100624         * lib/uniwidth/width.c: Likewise.
100626 2007-10-07  Bruno Haible  <bruno@clisp.org>
100628         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
100629         The file is still under LGPL (see modules/inttypes).
100631 2007-10-06  Bruno Haible  <bruno@clisp.org>
100633         * modules/trunc (Dependencies): Add 'extensions'.
100634         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
100635         Reported by Ben Pfaff <blp@gnu.org>.
100637 2007-10-06  Bruno Haible  <bruno@clisp.org>
100639         * modules/freopen-tests: New file.
100640         * tests/test-freopen.c: New file.
100642         * modules/fopen-tests: New file.
100643         * tests/test-fopen.c: New file.
100645         * modules/fopen: New file.
100646         * lib/fopen.c: New file.
100647         * m4/fopen.m4: New file.
100648         * modules/freopen: New file.
100649         * lib/freopen.c: New file.
100650         * m4/freopen.m4: New file.
100651         * lib/stdio.in.h (fopen, freopen): New declarations.
100652         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
100653         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
100654         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
100655         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
100656         * doc/functions/fopen.texi: Mention the 'fopen' module.
100657         * doc/functions/freopen.texi: Mention the 'freopen' module.
100659 2007-10-06  Bruno Haible  <bruno@clisp.org>
100661         * modules/open-tests: New file.
100662         * tests/test-open.c: New file.
100664         * modules/open: New file.
100665         * lib/open.c: New file.
100666         * m4/open.m4: New file.
100667         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
100668         lib/open.c does.
100669         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
100670         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
100671         macros.
100672         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
100673         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
100674         REPLACE_OPEN.
100675         * doc/functions/open.texi: Mention the 'open' module.
100677 2007-10-04  Bruno Haible  <bruno@clisp.org>
100679         * modules/ceill-tests: New file.
100680         * tests/test-ceill.c: New file.
100682         * modules/ceill: New file.
100683         * lib/ceill.c: Replace entire file.
100684         * m4/ceill.m4: New file.
100685         * lib/math.in.h (ceill): Replace declaration.
100686         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
100687         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
100688         * doc/functions/ceill.texi: Mention the 'ceill' module.
100689         * modules/mathl (Files): Remove lib/ceill.c.
100690         (Depends-on): Add ceill.
100692 2007-10-04  Bruno Haible  <bruno@clisp.org>
100694         * modules/ceilf-tests: New file.
100695         * tests/test-ceilf.c: New file.
100697         * modules/ceilf: New file.
100698         * lib/ceil.c: New file.
100699         * lib/ceilf.c: New file.
100700         * m4/ceilf.m4: New file.
100701         * lib/math.in.h (ceilf): New declaration.
100702         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
100703         HAVE_DECL_CEILF.
100704         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
100705         HAVE_DECL_CEILF.
100706         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
100708 2007-10-04  Bruno Haible  <bruno@clisp.org>
100710         * modules/floorl-tests: New file.
100711         * tests/test-floorl.c: New file.
100713         * modules/floorl: New file.
100714         * lib/floorl.c: Replace entire file.
100715         * m4/floorl.m4: New file.
100716         * lib/math.in.h (floorl): Replace declaration.
100717         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
100718         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
100719         * doc/functions/floorl.texi: Mention the 'floorl' module.
100720         * modules/mathl (Files): Remove lib/floorl.c.
100721         (Depends-on): Add floorl.
100723 2007-10-04  Bruno Haible  <bruno@clisp.org>
100725         * modules/floorf-tests: New file.
100726         * tests/test-floorf.c: New file.
100728         * modules/floorf: New file.
100729         * lib/floor.c: New file.
100730         * lib/floorf.c: New file.
100731         * m4/floorf.m4: New file.
100732         * lib/math.in.h (floorf): New declaration.
100733         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
100734         HAVE_DECL_FLOORF.
100735         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
100736         HAVE_DECL_FLOORF.
100737         * doc/functions/floorf.texi: Mention the 'floorf' module.
100739 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
100740             Bruno Haible  <bruno@clisp.org>
100742         Advertise for the Git server instead of the CVS server.
100743         * doc/gnulib-intro.texi (Steady Development): Mention the Git
100744         repository instead of the CVS one.
100745         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
100746         about all VCS systems generically.
100747         * doc/gnulib.texi (Introduction): Capitalize `Git'.
100749 2007-10-04  Bruno Haible  <bruno@clisp.org>
100751         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
100752         means.
100753         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
100755 2007-10-04  Bruno Haible  <bruno@clisp.org>
100757         * modules/truncl-tests: New file.
100758         * tests/test-truncl.c: New file.
100760         * modules/truncl: New file.
100761         * lib/truncl.c: New file.
100762         * m4/truncl.m4: New file.
100763         * lib/math.in.h (truncl): New declaration.
100764         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
100765         HAVE_DECL_TRUNCL.
100766         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
100767         HAVE_DECL_TRUNCL.
100768         * doc/functions/truncl.texi: Mention the 'truncl' module.
100770 2007-10-04  Bruno Haible  <bruno@clisp.org>
100772         * modules/truncf-tests: New file.
100773         * tests/test-truncf.c: New file.
100775         * modules/truncf: New file.
100776         * lib/trunc.c: Make paramerizable through USE_* macros.
100777         * lib/truncf.c: New file.
100778         * m4/truncf.m4: New file.
100779         * lib/math.in.h (truncf): New declaration.
100780         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
100781         HAVE_DECL_TRUNCF.
100782         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
100783         HAVE_DECL_TRUNCF.
100784         * doc/functions/truncf.texi: Mention the 'truncf' module.
100786 2007-10-03  Bruno Haible  <bruno@clisp.org>
100788         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
100789         augmentation also for tests modules.
100790         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
100791         * modules/atexit-tests (Makefile.am): Likewise.
100792         * modules/binary-io-tests (Makefile.am): Likewise.
100793         * modules/c-strcase-tests (Makefile.am): Likewise.
100794         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
100795         * modules/canonicalize-tests (Makefile.am): Likewise.
100796         * modules/closein-tests (Makefile.am): Likewise.
100797         * modules/fprintf-posix-tests (Makefile.am): Likewise.
100798         * modules/freadahead-tests (Makefile.am): Likewise.
100799         * modules/fseek-tests (Makefile.am): Likewise.
100800         * modules/fseeko-tests (Makefile.am): Likewise.
100801         * modules/ftell-tests (Makefile.am): Likewise.
100802         * modules/ftello-tests (Makefile.am): Likewise.
100803         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
100804         * modules/isnanl-tests (Makefile.am): Likewise.
100805         * modules/lseek-tests (Makefile.am): Likewise.
100806         * modules/mbscasecmp-tests (Makefile.am): Likewise.
100807         * modules/mbscasestr-tests (Makefile.am): Likewise.
100808         * modules/mbschr-tests (Makefile.am): Likewise.
100809         * modules/mbscspn-tests (Makefile.am): Likewise.
100810         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
100811         * modules/mbspbrk-tests (Makefile.am): Likewise.
100812         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
100813         * modules/mbsrchr-tests (Makefile.am): Likewise.
100814         * modules/mbsspn-tests (Makefile.am): Likewise.
100815         * modules/mbsstr-tests (Makefile.am): Likewise.
100816         * modules/printf-posix-tests (Makefile.am): Likewise.
100817         * modules/snprintf-posix-tests (Makefile.am): Likewise.
100818         * modules/sprintf-posix-tests (Makefile.am): Likewise.
100819         * modules/tsearch-tests (Makefile.am): Likewise.
100820         * modules/uniname/uniname-tests (Makefile.am): Likewise.
100821         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
100822         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
100823         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
100824         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
100825         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
100826         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
100827         * modules/vprintf-posix-tests (Makefile.am): Likewise.
100828         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
100829         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
100830         * modules/xstrtoimax-tests (Makefile.am): Likewise.
100831         * modules/xstrtol-tests (Makefile.am): Likewise.
100832         * modules/xstrtoumax-tests (Makefile.am): Likewise.
100833         * modules/yesno-tests (Makefile.am): Likewise.
100835 2007-10-03  Bruno Haible  <bruno@clisp.org>
100837         * modules/trunc-tests: New file.
100838         * tests/test-trunc.c: New file.
100840         * modules/trunc: New file.
100841         * lib/trunc.c: New file.
100842         * m4/trunc.m4: New file.
100843         * lib/math.in.h (trunc): New declaration.
100844         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
100845         HAVE_DECL_TRUNC.
100846         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
100847         HAVE_DECL_TRUNC.
100848         * doc/functions/trunc.texi: Mention the 'trunc' module.
100850 2007-10-03  Bruno Haible  <bruno@clisp.org>
100852         * tests/test-fpending.c: New file, mostly copied
100853         from coreutils/lib/t-fpending.c.
100854         * modules/fpending-tests: New file.
100856 2007-10-03  Bruno Haible  <bruno@clisp.org>
100858         Port the stdio extensions to QNX (untested).
100859         * lib/fseterr.c (fseterr): Add support for QNX.
100860         * lib/fbufmode.c (fbufmode): Likewise.
100861         * lib/freadable.c (freadable): Likewise.
100862         * lib/fwritable.c (fwritable): Likewise.
100863         * lib/freading.c (freading): Likewise.
100864         * lib/fwriting.c (fwriting): Likewise.
100865         * lib/freadahead.c (freadahed): Likewise.
100866         * lib/fpurge.c (fpurge): Likewise.
100867         * lib/fseeko.c (rpl_fseeko): Likewise.
100869 2007-10-03  Bruno Haible  <bruno@clisp.org>
100870             Jim Meyering  <jim@meyering.net>
100871             Eric Blake  <ebb9@byu.net>
100873         * doc/relocatable.texi: Use @command instead of @program.
100875 2007-10-02  Jim Meyering  <jim@meyering.net>
100877         Perform one more "_.h" -> ".in.h" substitution.
100878         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
100879         instead of unistd_.h here, too.
100881 2007-10-01  Bruno Haible  <bruno@clisp.org>
100883         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
100884         Needed for the alloca-opt module.
100886 2007-09-30  Bruno Haible  <bruno@clisp.org>
100888         * lib/alloca.in.h: Renamed from lib/alloca_.h.
100889         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
100890         alloca_.h.
100891         * lib/argz.in.h: Renamed from lib/argz_.h.
100892         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
100893         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
100894         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
100895         byteswap_.h.
100896         * lib/dirent.in.h: Renamed from lib/dirent_.h.
100897         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
100898         dirent_.h.
100899         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
100900         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
100901         fcntl_.h.
100902         * lib/float.in.h: Renamed from lib/float_.h.
100903         * modules/float (Files, Makefile.am): Use float.in.h instead of
100904         float_.h.
100905         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
100906         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
100907         fnmatch_.h.
100908         * lib/getopt.in.h: Renamed from lib/getopt_.h.
100909         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
100910         getopt_.h.
100911         * lib/glob.in.h: Renamed from lib/glob_.h.
100912         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
100913         * lib/iconv.in.h: Renamed from lib/iconv_.h.
100914         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
100915         iconv_.h.
100916         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
100917         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
100918         inttypes_.h.
100919         * lib/locale.in.h: Renamed from lib/locale_.h.
100920         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
100921         locale_.h.
100922         * lib/math.in.h: Renamed from lib/math_.h.
100923         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
100924         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
100925         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
100926         of netinet_in_.h. Add dependency.
100927         * lib/poll.in.h: Renamed from lib/poll_.h.
100928         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
100929         * lib/search.in.h: Renamed from lib/search_.h.
100930         * modules/search (Files, Makefile.am): Use search.in.h instead of
100931         search_.h.
100932         * lib/signal.in.h: Renamed from lib/signal_.h.
100933         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
100934         _signal.h.
100935         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
100936         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
100937         stdbool_.h.
100938         * lib/stdint.in.h: Renamed from lib/stdint_.h.
100939         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
100940         stdint_.h.
100941         * lib/stdio.in.h: Renamed from lib/stdio_.h.
100942         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
100943         stdio_.h.
100944         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
100945         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
100946         stdlib_.h.
100947         * lib/string.in.h: Renamed from lib/string_.h.
100948         * modules/string (Files, Makefile.am): Use string.in.h instead of
100949         string_.h.
100950         * doc/gnulib-tool.texi (Initial import): Update.
100951         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
100952         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
100953         of sys_select_.h. Add dependency.
100954         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
100955         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
100956         of sys_socket_.h.
100957         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
100958         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
100959         sys_stat_.h.
100960         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
100961         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
100962         sys_time_.h.
100963         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
100964         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
100965         sysexits_.h.
100966         * lib/time.in.h: Renamed from lib/time_.h.
100967         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
100968         * lib/unistd.in.h: Renamed from lib/unistd_.h.
100969         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
100970         unistd_.h.
100971         * lib/wchar.in.h: Renamed from lib/wchar_.h.
100972         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
100973         wchar_.h.
100974         * lib/wctype.in.h: Renamed from lib/wctype_.h.
100975         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
100976         wctype_.h.
100977         * build-aux/bootstrap (slurp): Update.
100978         * lib/.cppi-disable: Update.
100980 2007-09-30  Bruno Haible  <bruno@clisp.org>
100982         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
100983         Needed on BeOS.
100985 2007-09-30  Bruno Haible  <bruno@clisp.org>
100987         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
100989 2007-09-29  Bruno Haible  <bruno@clisp.org>
100991         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
100993 2007-09-29  Bruno Haible  <bruno@clisp.org>
100995         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
100996         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
100997         * build-aux/install-reloc: Compile also areadlink.c.
100998         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
101000 2007-09-29  Bruno Haible  <bruno@clisp.org>
101002         * gnulib-tool (func_emit_initmacro_done): Indentation.
101004 2007-09-29  Bruno Haible  <bruno@clisp.org>
101006         * README: Add CVS checkout update instructions.
101007         Info from Bob Proulx <bob@proulx.com>.
101009 2007-09-28  Eric Blake  <ebb9@byu.net>
101011         Provide move-if-change.
101012         * build-aux/move-if-change: New file, based on best practice
101013         rather than any canonical upstream location.
101015 2007-09-28  Jim Meyering  <jim@meyering.net>
101017         Fix canonicalize loop-detection corner case.
101018         Do not attempt to stat the symlink values stored via seen_triple.
101019         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
101020         on linux-2.6.18, (but not 2.6.22).
101021         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
101022         triple_compare.  The former compares dev,ino,filename, while the latter
101023         would actually stat dirname(filename) when dev and ino were equal.
101024         * lib/hash-triple.c: Install <string.h>.
101025         (STREQ): Define.
101026         (triple_compare_ino_str): New function.
101027         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
101029 2007-09-28  Eric Blake  <ebb9@byu.net>
101031         Enforce that AC_REPLACE_FUNCS files exist.
101032         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
101033         override check for typos.
101035         Fix test-closein on Solaris 10.
101036         * tests/test-closein.c (main): Don't assume stdin can be inherited
101037         closed on all systems.
101038         * tests/test-closein.sh: Likewise.
101039         Reported by Piotr Tarnowski.
101041 2007-09-28  Jim Meyering  <jim@meyering.net>
101043         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
101045 2007-09-27  Jim Meyering  <jim@meyering.net>
101047         canonicalize: Avoid a false-positive cycle failure.
101048         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
101049         Sort.  Remove cycle-check.
101050         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
101051         not cycle-check.h.
101052         (seen_triple): New function.
101053         (canonicalize_filename_mode): Use it instead of cycle-check.
101054         * tests/test-canonicalize.c: Add a test for this bug.
101055         * tests/test-canonicalize.sh: Set up and run the test.
101057         New module, file-set, from coreutils.
101058         * modules/file-set: Define it.
101059         * lib/file-set.c, lib/file-set.h: Implement.
101061         New module, hash-triple, from coreutils.
101062         * modules/hash-triple: Define it.
101063         * lib/hash-triple.c, lib/hash-triple.h: Implement.
101065 2007-09-25  Eric Blake  <ebb9@byu.net>
101067         Fix strerror on Interix.
101068         * lib/string_.h (strerror): Declare replacement.
101069         * doc/functions/strerror.texi (strerror): Document the Interix
101070         shortcoming.
101071         * modules/string (Makefile.am): Support new hooks.
101072         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
101073         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
101074         gl_FUNC_STRERROR_SEPARATE.
101075         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
101076         * lib/strerror.c (rpl_strerror): Provide replacement.
101077         * modules/strerror (Depends-on): Add string.
101078         (configure.ac): Detect use of module.
101079         * tests/test-strerror.c: New file.
101080         * modules/strerror-tests: New test module.
101081         * modules/argp (Depends-on): Add strerror.
101082         * modules/error (Depends-on): Likewise.
101083         Reported by Martin Koeppe.
101085 2007-09-24  Bruno Haible  <bruno@clisp.org>
101087         * README: Update git instructions.
101089 2007-09-24  Eric Blake  <ebb9@byu.net>
101091         Revert fpending breakage from 2007-09-08.
101092         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
101093         __fpending.c.
101095 2007-09-24  Jim Meyering  <jim@meyering.net>
101097         filenamecat.c: Add a test.
101098         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
101099         showing how the function works when DIR is the empty string.
101101 2007-09-21  Simon Josefsson  <simon@josefsson.org>
101103         * tests/test-canonicalize.sh: Turn on executable bit.
101105 2007-09-19  Eric Blake  <ebb9@byu.net>
101107         * README: Update CVS instructions.
101109 2007-09-18  Bruno Haible  <bruno@clisp.org>
101111         * modules/areadlink: New file.
101112         * lib/areadlink.h (areadlink): New declaration.
101113         * lib/areadlink.c: New file, based on lib/xreadlink.c.
101115 2007-09-17  Jim Meyering  <jim@meyering.net>
101117         * lib/savewd.c (ESTALE) [!defined]: Define.
101118         Reported to be required on Interix by Martin Koeppe.
101120 2007-09-17  Bruno Haible  <bruno@clisp.org>
101122         * gnulib-tool (func_version): Use $version.
101124 2007-09-16  Bruno Haible  <bruno@clisp.org>
101126         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
101127         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
101128         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
101129         Reported by Greg Schafer <gschafer@zip.com.au>.
101131 2007-09-15  Bruno Haible  <bruno@clisp.org>
101133         * gnulib-tool (sed): Try a little harder to make bash understand the
101134         alias.
101135         Reported by Bruce Korb <bruce.korb@gmail.com>.
101137 2007-09-13  Eric Blake  <ebb9@byu.net>
101139         * ChangeLog: Remove conflict markers.
101141 2007-09-13  Simon Josefsson  <simon@josefsson.org>
101143         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
101144         Reported by Bruno Haible <bruno@clisp.org>.
101146 2007-09-12  Bruno Haible  <bruno@clisp.org>
101148         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
101149         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
101150         is not defined.
101152 2007-09-12  Eric Blake  <ebb9@byu.net>
101154         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
101155         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
101156         Autoconf definition.
101157         * modules/euidaccess (Depends-on): Add extensions, for
101158         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
101159         * modules/fnmatch (Depends-on): Likewise.
101160         * modules/getaddrinfo (Depends-on): Likewise.
101161         * modules/getdelim (Depends-on): Likewise.
101162         * modules/getline (Depends-on): Likewise.
101163         * modules/getsubopt (Depends-on): Likewise.
101164         * modules/gettext (Depends-on): Likewise.
101165         * modules/group-member (Depends-on): Likewise.
101166         * modules/mbchar (Depends-on): Likewise.
101167         * modules/memmem (Depends-on): Likewise.
101168         * modules/mempcpy (Depends-on): Likewise.
101169         * modules/memrchr (Depends-on): Likewise.
101170         * modules/pagealign_alloc (Depends-on): Likewise.
101171         * modules/readutmp (Depends-on): Likewise.
101172         * modules/stpcpy (Depends-on): Likewise.
101173         * modules/stpncpy (Depends-on): Likewise.
101174         * modules/strchrnul (Depends-on): Likewise.
101175         * modules/strndup (Depends-on): Likewise.
101176         * modules/strsep (Depends-on): Likewise.
101177         * modules/strverscmp (Depends-on): Likewise.
101178         * modules/vasprintf (Depends-on): Likewise.
101179         * modules/wcwidth (Depends-on): Likewise.
101180         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
101181         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
101182         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
101183         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
101184         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
101185         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
101186         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
101187         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
101188         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
101189         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
101190         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
101191         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
101192         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
101193         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
101194         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
101195         * m4/readutmp.m4 (gl_READUTMP): Likewise.
101196         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
101197         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
101198         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
101199         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
101200         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
101201         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
101202         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
101203         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
101204         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
101205         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
101206         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
101207         so that lock.m4 can be used in gettext without extensions module.
101209 2007-09-11  Bruno Haible  <bruno@clisp.org>
101211         * m4/isc-posix.m4: Remove file.
101212         Suggested by Eric Blake.
101214 2007-09-11  Eric Blake  <ebb9@byu.net>
101216         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
101218 2007-09-10  Bruno Haible  <bruno@clisp.org>
101220         * posix-modules: Fix typo in error message.
101221         Reported by Matt <mkraai@beckman.com>.
101223 2007-09-09  Bruno Haible  <bruno@clisp.org>
101225         * doc/functions/getdelim.texi: Update list of platforms lacking the
101226         function.
101227         * doc/functions/getline.texi: Likewise.
101229 2007-09-09  Jim Meyering  <jim@meyering.net>
101231         * lib/hash.c (hash_initialize): Detect calloc failure.
101232         Reported by Bruno Haible.
101234 2007-09-09  Bruno Haible  <bruno@clisp.org>
101236         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
101237         malloc or realloc fails.
101239 2007-09-09  Bruno Haible  <bruno@clisp.org>
101241         * modules/getcwd (Depends-on): Add malloc-posix.
101242         * modules/glob (Depends-on): Likewise.
101243         * modules/putenv (Depends-on): Likewise.
101244         * modules/strdup (Depends-on): Likewise.
101245         * modules/getdelim (Depends-on): Add realloc-posix.
101246         * modules/read-file (Depends-on): Likewise.
101248 2007-09-09  Bruno Haible  <bruno@clisp.org>
101250         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
101251         (gl_FUNC_MALLOC_POSIX): Require it.
101252         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
101253         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
101254         * modules/realloc (Files): Add m4/malloc.m4.
101255         * modules/calloc (Files): Likewise.
101257 2007-09-09  Bruno Haible  <bruno@clisp.org>
101259         * modules/malloc-posix: New file.
101260         * modules/malloc (Depends-on): Add malloc-posix.
101261         * lib/malloc.c: Include errno.h.
101262         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
101263         and a POSIX-compatible malloc into a single function. Set ENOMEM
101264         when returning NULL.
101265         * m4/malloc.m4: New file.
101266         * doc/functions/malloc.texi: Mention the malloc-posix module.
101267         * lib/stdlib_.h (malloc): New declaration.
101268         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
101269         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
101270         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
101271         and HAVE_MALLOC_POSIX.
101273 2007-09-09  Bruno Haible  <bruno@clisp.org>
101275         * modules/realloc-posix: New file.
101276         * modules/realloc (Depends-on): Add realloc-posix.
101277         * lib/realloc.c: Include errno.h.
101278         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
101279         and a POSIX-compatible realloc into a single function. Set ENOMEM
101280         when returning NULL.
101281         * m4/realloc.m4: New file.
101282         * doc/functions/realloc.texi: Mention the realloc-posix module.
101283         * lib/stdlib_.h (realloc): New declaration.
101284         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
101285         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
101286         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
101287         and HAVE_REALLOC_POSIX.
101289 2007-09-09  Bruno Haible  <bruno@clisp.org>
101291         * modules/calloc-posix: New file.
101292         * modules/calloc (Depends-on): Add calloc-posix.
101293         * lib/calloc.c: Include errno.h.
101294         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
101295         and a POSIX-compatible calloc into a single function. Set ENOMEM
101296         when returning NULL.
101297         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
101298         * doc/functions/calloc.texi: Mention the calloc-posix module.
101299         * lib/stdlib_.h (calloc): New declaration.
101300         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
101301         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
101302         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
101303         and HAVE_CALLOC_POSIX.
101305 2007-09-09  Bruno Haible  <bruno@clisp.org>
101307         Allow for modules to show an arbitrary notice.
101308         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
101309         * gnulib-tool: New option --extract-notice.
101310         (func_usage): Document it.
101311         (sed_extract_prog): Update.
101312         (func_get_notice): New function.
101313         (func_modules_notice): New function.
101314         (func_import, func_create_testdir): Invoke it.
101315         Suggested by Jim Meyering.
101317 2007-09-09  Bruno Haible  <bruno@clisp.org>
101319         * gnulib-tool: New options --verbose, --quiet.
101320         (func_usage): Document them.
101321         (verbose): New variable.
101322         (func_execute_command): New function.
101323         (func_import): Don't show the module list and the file list if
101324         $verbose < 0.
101325         (func_create_testdir): Likewise. Use func_execute_command.
101326         (func_create_megatestdir): Use func_execute_command.
101328 2007-09-08  Bruno Haible  <bruno@clisp.org>
101330         * gnulib-tool (func_import): Prefer rsync over wget when available,
101331         for fetching the PO files.
101333 2007-09-08  Bruno Haible  <bruno@clisp.org>
101335         * posix-modules: New file. Portions copied from gnulib-tool.
101336         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
101338 2007-09-08  Jim Meyering  <jim@meyering.net>
101340         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
101341         * lib/fpending.h: Rename from __fpending.h.
101342         * lib/fpending.c: Rename from __fpending.c.
101343         Include "fpending.h", not "__fpending.h".
101344         * lib/__fpending.h, lib/__fpending.c: Remove files.
101345         * modules/fpending (Files): Reflect new file names.
101346         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
101348 2007-09-08  Bruno Haible  <bruno@clisp.org>
101350         * m4/inttypes-h.m4: Remove stub file.
101352 2007-09-07  Simon Josefsson  <simon@josefsson.org>
101354         * doc/headers/stdint.texi: Discuss #include_next issue.
101356 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
101358         * build-aux/bootstrap: Remove obsolete comment about wget --help.
101360 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
101362         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
101363         in variable name.
101365 2007-09-03  Jim Meyering  <jim@meyering.net>
101367         New module: git-version-gen.
101368         * modules/git-version-gen: New file.
101370         Import changes from coreutils for bootstrap script.
101372         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
101374         bootstrap: uses rsync to download the .po files
101375         * build-aux/bootstrap (po_download_command_format): New global.
101376         (download_po_files): Use rsync.
101377         (update_po_files): Don't remove .po files after download,
101378         so future rsync runs can take advantage of the copies.
101380         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
101382         Solve the unnecessary-.po-file-regeneration problem once and for all.
101383         * build-aux/bootstrap (download_po_files): New function, renamed from
101384         get_translations.  Now, downloads, but doesn't update LINGUAS.
101385         (update_po_files): New function.
101387         bootstrap: Ignore more.
101388         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
101389         uniwidth to e.g., lib/.gitignore.
101390         (slurp): Handle the sys_stat_.h -> sys mapping, too.
101392         * build-aux/bootstrap: New setting: vc_ignore.
101393         (insert_sorted_if_absent): Create $file if absent.
101394         Adapt to new, possibly empty, list: $vc_ignore.
101396         bootstrap: generate more ignorable names
101397         * build-aux/bootstrap (slurp): When generating ignorable names,
101398         also map .sin to .sed, .gperf to .c, and .y to .c.
101400 2007-09-03  Jim Meyering  <jim@meyering.net>
101402         * build-aux/git-version-gen: New file, from coreutils.  For details, see
101403         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
101405 2007-09-02  Bruno Haible  <bruno@clisp.org>
101407         Fix mis-recognition of 'mcs' on QNX 6.
101408         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
101409         output contains the string "Mono".
101410         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
101411         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
101413 2007-09-01  Bruno Haible  <bruno@clisp.org>
101415         Fix collision between uniwidth/* and linebreak modules.
101416         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
101417         u32_width): Remove declarations.
101418         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
101419         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
101420         streq3, streq2, streq1, streq0): Remove functions.
101421         (STREQ): Remove macro.
101422         (is_cjk_encoding): Remove function.
101423         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
101424         (uc_width, u8_width, u16_width, u32_width): Remove functions.
101425         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
101426         * NEWS: Document the change.
101428 2007-09-01  Bruno Haible  <bruno@clisp.org>
101430         * lib/streq.h: Add double-inclusion guard.
101432 2007-09-01  Karl Berry  <karl@gnu.org>
101434         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
101436 2007-08-28  Jim Meyering  <jim@meyering.net>
101438         Rename mreadlink_with_size to areadlink_with_size.
101439         * NEWS: Document the change.
101440         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
101441         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
101442         * lib/mreadlink.h: Rename this to...
101443         * lib/areadlink.h: ...this.
101444         * modules/mreadlink-with-size: Rename this to...
101445         * modules/areadlink-with-size: ...this.
101446         * lib/canonicalize.c: Reflect the renaming.
101447         * modules/canonicalize: Likewise.
101449 2007-08-26  Bruno Haible  <bruno@clisp.org>
101451         * gnulib-tool (func_import): When deciding which files to remove,
101452         consider also dangling symbolic links.
101453         Reported by Eric Blake.
101455 2007-08-26  Bruno Haible  <bruno@clisp.org>
101457         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
101459 2007-08-23  Simon Josefsson  <simon@josefsson.org>
101461         * lib/readline.c: Don't include getline.h, the prototype is now
101462         found in stdio.h.
101464 2007-08-23  Jim Meyering  <jim@meyering.net>
101466         Getdelim touchup.
101467         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
101468         around the funlockfile call, since funlockfile never sets errno.
101469         Don't set errno upon failed realloc.
101471 2007-08-22  Eric Blake  <ebb9@byu.net>
101473         Getline touchups.
101474         * lib/getdelim.c (getdelim): Revert regression that required *n to
101475         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
101476         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
101477         getdelim, rather than whether implementation is missing.
101478         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
101479         * lib/stdio_.h (getline): Also declare if replacement is
101480         required.
101481         * doc/functions/getdelim.texi: New file.
101482         * doc/functions/getline.texi: Likewise.
101483         * doc/gnulib.texi (Function Substitutes): Add new files.
101484         Reported by Bruno Haible.
101486 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
101488         * users.txt: Add Guile.
101490 2007-08-22  Eric Blake  <ebb9@byu.net>
101492         * tests/test-getdelim.c (main): Use remove, not unlink.
101493         * tests/test-getline.c (main): Likewise.
101495         Move getline and getdelim into stdio.h, per POSIX 200x.
101496         * modules/getline (Files): Remove getline.h.
101497         (Depends-on): Add stdio.
101498         (configure.ac): Add module indicator.
101499         * modules/getdelim (Files): Remove getdelim.h.
101500         (Depends-on): Add stdio.
101501         (configure.ac): Add module indicator.
101502         * modules/stdio (Makefile.am): Work with new indicators.
101503         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
101504         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
101505         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
101506         * lib/getdelim.h: Delete.
101507         * lib/getline.h: Delete.
101508         * lib/stdio_.h (getdelim, getline): Declare.
101509         * modules/getdelim-tests: New module.
101510         * modules/getline-tests: Likewise.
101511         * tests/test-getdelim.c: New file.
101512         * tests/test-getline.c: Likewise.
101513         * NEWS: Document the change.
101514         * lib/getline.c: Update choice of header.
101515         * lib/csharpcomp.c: Likewise.
101516         * lib/getpass.c: Likewise.
101517         * lib/javacomp.c: Likewise.
101518         * lib/javaversion.c: Likewise.
101519         * lib/yesno.c: Likewise.
101520         * lib/getdelim.c: Likewise.
101521         (getdelim): Set errno on failure, and avoid memory leak.
101523 2007-08-19  Bruno Haible  <bruno@clisp.org>
101525         * modules/closein (Depends-on): Add freadahead.
101526         * lib/closein.c: Include freadahead.h.
101527         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
101528         is zero.
101530 2007-08-19  Bruno Haible  <bruno@clisp.org>
101532         * modules/freadahead-tests: New file.
101533         * tests/test-freadahead.sh: New file.
101534         * tests/test-freadahead.c: New file.
101536         * modules/freadahead: New file.
101537         * lib/freadahead.h: New file.
101538         * lib/freadahead.c: New file.
101539         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
101540         fbufmode, fpurge, freadable, fwritable.
101542 2007-08-19  Eric Blake  <ebb9@byu.net>
101544         Test yesno in combination with closein.
101545         * lib/yesno.c (yesno): Document use of stdin.
101546         * modules/yesno-tests (Files): New module.
101547         * tests/test-yesno.c (main): New file.
101548         * tests/test-yesno.sh: Likewise.
101550 2007-08-19  Bruno Haible  <bruno@clisp.org>
101552         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
101553         * lib/fseeko.c (rpl_fseeko): Likewise.
101554         * lib/fseterr.c (fseterr): Likewise.
101556 2007-08-19  Bruno Haible  <bruno@clisp.org>
101558         * tests/test-lseek.c (main): Disable a test for BeOS.
101559         * doc/functions/lseek.texi: Document the BeOS bug.
101561 2007-08-19  Bruno Haible  <bruno@clisp.org>
101562             Eric Blake  <ebb9@byu.net>
101564         * lib/lseek.c: Include <sys/stat.h>.
101565         (rpl_lseek): Add workaround code also for Unix platforms.
101566         Needed for BeOS.
101567         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
101568         * doc/functions/lseek.texi: Document BeOS definiency.
101570 2007-08-18  Bruno Haible  <bruno@clisp.org>
101572         * modules/fstrcmp-tests: New file.
101573         * tests/test-fstrcmp.c: New file.
101575 2007-08-18  Bruno Haible  <bruno@clisp.org>
101577         * modules/fstrcmp: New file, from GNU gettext with modifications.
101578         * lib/fstrcmp.h: New file, from GNU gettext.
101579         * lib/fstrcmp.c: New file, from GNU gettext.
101580         * MODULES.html.sh (String handling): Add fstrcmp.
101582 2007-08-18  Bruno Haible  <bruno@clisp.org>
101584         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
101585         'bool'.
101586         (diag, compareseq): Remove const from the ctxt argument.
101587         (USE_HEURISTIC): Undefine at the end.
101589 2007-08-18  Jim Meyering  <jim@meyering.net>
101591         New file: lib/idcache.h
101592         * NEWS: Mention the addition.
101593         * modules/idcache (Files): Add lib/idcache.h
101594         * lib/idcache.c: Include "idcache.h".
101595         Don't include <sys/types.h>.
101596         Add a FIXME comment.
101597         Move file-scoped "static" declarations to the top.
101598         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
101600 2007-08-17  Bruno Haible  <bruno@clisp.org>
101601         and Paul Eggert  <eggert@cs.ucla.edu>
101603         * MODULES.html.sh: Add diffseq.
101604         * modules/diffseq: New file.
101605         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
101606         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
101608 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
101610         Import changes from coreutils for bootstrap script.
101612         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
101614         * build-aux/bootstrap (slurp): Work even in environments where
101615         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
101616         current code does not slurp files whose names start with ".", and
101617         this looks like it might be a troublesome area.
101619         2007-07-11  Jim Meyering  <jim@meyering.net>
101621         If there's a GPL vN copyright comment, require that N == 3.
101623         2007-07-08  Jim Meyering  <jim@meyering.net>
101625         Run the coreutils-specific code only if tests/Makefile.am.in exists.
101626         * build-aux/bootstrap (mam_template): Move definition out of loop.
101628         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
101630         * build-aux/bootstrap (symlink_to_dir): Rename function from
101631         symlink_to_gnulib.  Add a directory parameter.  Update all
101632         callers.
101633         (cp_mark_as_generated): Also check for -- and link to -- files in
101634         gl/.
101636         2007-07-08  Jim Meyering  <jim@meyering.net>
101638         Adapt to deeper hierarchy in gnulib.
101639         * build-aux/bootstrap (symlink_to_dir): If the destination
101640         directory doesn't exist, create it. This is required at least for
101641         "lib/uniwidth/cjk.h".
101643         2007-05-15  Jim Meyering  <jim@meyering.net>
101645         * build-aux/bootstrap: Now that generated Makefile.am files
101646         are no longer under version control, they must be created at
101647         bootstrap time.
101649 2007-08-14  Ben Pfaff  <blp@gnu.org>
101651         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
101653 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
101655         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
101656         given the changes below.
101657         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
101658         even on hosts that have padding bits beyond the supported 64.
101660 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
101662         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
101663         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
101664         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
101665         depends on it.
101666         (xstrtol_error): Remove.
101667         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
101668         but with a different signature.
101669         (ATTRIBUTE_NORETURN, __attribute__): New macros.
101670         * lib/xstrtol-error.c: Include exitfail.h.
101671         (xstrtol_fatal): New function, with a different signature from the
101672         old xstrtol_error, so that the caller need not worry about passing
101673         in an exit status, or about storage management of the option argument.
101674         (xstrtol_error): Now a static function.  Redo signature to
101675         implement xstrtol_fatal.  Output the correct number of hyphens in
101676         front of the option so that the caller need not worry about
101677         storage management.
101678         (N_): New macro.
101679         (_): Remove; not used now.
101680         * modules/xstrtol: Depend on getopt.
101681         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
101682         of old STRTOL_FATAL_ERROR macro.
101683         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
101684         of test program.
101685         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
101686         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
101688 2007-08-08  Eric Blake  <ebb9@byu.net>
101690         * lib/xstrtol-error.c: Add missing include.
101692         Move xstrtol messages into gnulib domain, when --pobase is used.
101693         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
101694         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
101695         * modules/xstrtol (Files): Distribute new file.
101696         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
101697         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
101698         * tests/test-xstrtol.c: ...into new file.
101699         * tests/test-xstrtoul.c: Also test xstrtoul.
101700         * tests/test-xstrtoimax.c: Also test xstrtoimax.
101701         * tests/test-xstrtoumax.c: Also test xstrtoumax.
101702         * tests/test-xstrtol.sh: Drive the tests.
101703         * tests/test-xstrtoimax.sh: Likewise.
101704         * tests/test-xstrtoumax.sh: Likewise.
101705         * modules/xstrtol-tests: New module.
101706         * modules/xstrtoimax-tests: Likewise.
101707         * modules/xstrtoumax-tests: Likewise.
101709 2007-08-08  Jim Meyering  <jim@meyering.net>
101711         New function: mfile_name_concat.
101712         * lib/filenamecat.c (mfile_name_concat): New function, just like
101713         file_name_concat, but return NULL upon failure rather than exiting
101714         with a diagnostic.
101715         * lib/filenamecat.h: Declare it.
101717 2007-08-07  Bruno Haible  <bruno@clisp.org>
101719         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
101720         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
101721         warning from gcc.
101722         Reported by Eric Blake.
101724 2007-08-07  Simon Josefsson  <simon@josefsson.org>
101726         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
101727         * modules/crypto/arcfour (License): Likewise.
101728         * modules/crypto/des-tests (License): Likewise.
101729         * modules/crypto/gc-arctwo-tests (License): Likewise.
101730         * modules/crypto/gc-des-tests (License): Likewise.
101731         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
101732         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
101733         * modules/crypto/gc-md2-tests (License): Likewise.
101734         * modules/crypto/gc-md4-tests (License): Likewise.
101735         * modules/crypto/gc-md5-tests (License): Likewise.
101736         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
101737         * modules/crypto/gc-rijndael-tests (License): Likewise.
101738         * modules/crypto/gc-sha1-tests (License): Likewise.
101739         * modules/crypto/gc-tests (License): Likewise.
101740         * modules/crypto/hmac-md5 (License): Likewise.
101741         * modules/crypto/hmac-sha1 (License): Likewise.
101742         * modules/crypto/md2-tests (License): Likewise.
101743         * modules/crypto/md4-tests (License): Likewise.
101744         * modules/crypto/md5 (License): Likewise.
101745         * modules/crypto/rijndael (License): Likewise.
101746         * modules/crypto/sha1 (License): Likewise.
101747         * modules/memxor (License): Likewise.
101749 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
101750         and Bruno Haible  <bruno@clisp.org>
101752         * NEWS: Describe interface changes to human, xstrtol.
101753         * lib/human.h: Include <xstrtol.h>.
101754         (human_options): Return enum strtol_error, not int.  Remove
101755         bool arg; take int * instead.
101756         * lib/human.c: Don't include "gettext.h".
101757         (_): Remove; no longer used.
101758         Don't include <xstrtol.h>, since human.h does it.
101759         (human_options): Adjust to abovementioned interface changes.
101760         Do not report error to stderr; that's now the caller's
101761         responsibility.
101762         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
101763         interface change.
101764         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
101765         Str, Argument_type_string.  All uses changed.  Put " argument"
101766         in diagnostics to make them clearer.  Change wording of suffix
101767         message for clarity.
101768         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
101769         Argument_type_string.
101770         (STRTOL_FATAL_WARN): Remove; no longer used.
101771         * modules/human (Depends-on): Remove gettext-h.
101773 2007-08-06  Simon Josefsson  <simon@josefsson.org>
101775         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
101777 2007-07-31  Bruno Haible  <bruno@clisp.org>
101779         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
101780         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
101781         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
101783 2007-07-31  Bruno Haible  <bruno@clisp.org>
101785         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
101786         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
101788 2007-07-30  Bruno Haible  <bruno@clisp.org>
101790         * modules/base64 (License): Use the synonymous term "LGPLv2+".
101791         * modules/c-ctype (License): Likewise.
101792         * modules/c-strcase (License): Likewise.
101793         * modules/check-version (License): Likewise.
101794         * modules/iconv (License): Likewise.
101795         * modules/iconv_open (License): Likewise.
101796         * modules/read-file (License): Likewise.
101797         * modules/striconv (License): Likewise.
101798         * modules/strverscmp (License): Likewise.
101799         * modules/vasprintf (License): Likewise.
101800         * modules/crypto/des (License): Likewise.
101801         * modules/crypto/gc (License): Likewise.
101802         * modules/crypto/gc-arcfour (License): Likewise.
101803         * modules/crypto/gc-arctwo (License): Likewise.
101804         * modules/crypto/gc-des (License): Likewise.
101805         * modules/crypto/gc-hmac-md5 (License): Likewise.
101806         * modules/crypto/gc-hmac-sha1 (License): Likewise.
101807         * modules/crypto/gc-md2 (License): Likewise.
101808         * modules/crypto/gc-md4 (License): Likewise.
101809         * modules/crypto/gc-md5 (License): Likewise.
101810         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
101811         * modules/crypto/gc-random (License): Likewise.
101812         * modules/crypto/gc-rijndael (License): Likewise.
101813         * modules/crypto/gc-sha1 (License): Likewise.
101814         * modules/crypto/md2 (License): Likewise.
101815         * modules/crypto/md4 (License): Likewise.
101817 2007-07-30  Jim Meyering  <jim@meyering.net>
101819         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
101820         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
101821         it has valid stat data.  This bug would cause du not to count the
101822         sizes of inaccessible directories.
101823         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
101824         in <http://bugzilla.redhat.com/250077>.
101826 2007-07-25  Peter O'Gorman  <peter@pogma.com>
101827             Bruno Haible  <bruno@clisp.org>
101829         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
101830         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
101831         #include_next, gives a diagnostic about it, but reports no error in
101832         the exit code.
101833         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
101835 2007-07-24  Ben Pfaff  <blp@gnu.org>
101837         Improve name: "count-one-bits" is better than "popcount".
101838         * MODULES.html.sh: Update name.
101839         * lib/popcount.h: Renamed lib/count-one-bits.h.
101840         (popcount): Renamed count_one_bits.
101841         (popcountl): Renamed count_one_bits_l.
101842         (popcountll): Renamed count_one_bits_ll.
101843         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
101844         * modules/popcount: Renamed module/count-one-bits.
101845         * modules/popcount-tests: Renamed module/count-one-bits-tests.
101846         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
101848 2007-07-23  Ben Pfaff  <blp@gnu.org>
101850         * lib/popcount.h (popcount32): Reduce size of constants, to allow
101851         better code generation, and add U to large constants to avoid
101852         warnings, in non-GCC case.
101853         Suggested by Bruno Haible.
101855 2007-07-23  Ben Pfaff  <blp@gnu.org>
101857         * lib/popcount.h: Use verify_true instead of if...abort.
101858         * modules/popcount: Depend on verify module.
101859         Suggested by Jim Meyering.
101861 2007-07-23  Bruno Haible  <bruno@clisp.org>
101863         * gnulib-tool (func_import): Create a .cvsignore file also when the
101864         directory is not yet in CVS but the toplevel directory is. When
101865         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
101866         Reported by Karl Berry.
101868 2007-07-22  Ben Pfaff  <blp@gnu.org>
101870         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
101871         case.
101872         Suggested by Eric Blake.
101874 2007-07-22  Ben Pfaff  <blp@gnu.org>
101876         New module: popcount.
101877         * MODULES.html.sh: Add popcount.
101878         * modules/popcount: New file.
101879         * modules/popcount-tests: New file.
101880         * tests/test-popcount.c: New file.
101881         * lib/popcount.h: New file.
101882         * m4/popcount.m4: New file.
101884 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
101886         * build-aux/announce-gen: Update to GPLv3.
101888         * build-aux/config.guess: Update from config.
101890 2007-07-21  Bruno Haible  <bruno@clisp.org>
101892         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
101893         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
101895 2007-07-20  Jim Meyering  <jim@meyering.net>
101897         * check-module: Diagnose a self-dependency.
101899 2007-07-19  Bruno Haible  <bruno@clisp.org>
101901         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
101902         empty.
101903         Reported by Eric Blake.
101905 2007-07-18  Bruno Haible  <bruno@clisp.org>
101907         * gnulib-tool: New options --po-base, --po-domain.
101908         (func_usage): Document them.
101909         (pobase, po_domain): New variables.
101910         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
101911         DEFAULT_TEXT_DOMAIN.
101912         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
101913         (func_import): Consider pobase and po_domain. Create a po/ directory.
101914         (func_create_testdir): Set pobase and po_domain to empty.
101915         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
101916         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
101918 2007-07-18  Bruno Haible  <bruno@clisp.org>
101920         * gnulib-tool (func_get_automake_snippet): Synthesize also an
101921         EXTRA_DIST augmentation for files in build-aux/.
101923 2007-07-16  Bruno Haible  <bruno@clisp.org>
101925         * modules/lseek (License): Use the synonymous term "LGPLv2+".
101926         * modules/getdelim (License): Likewise.
101928 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
101930         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
101931         * modules/d-type (License): Likewise.
101932         * modules/extensions (License): Likewise.
101933         * modules/fnmatch (License): Likewise.
101934         * modules/fseeko (License): Likewise.
101935         * modules/getaddrinfo (License): Likewise.
101936         * modules/getline (License): Likewise.
101937         * modules/getlogin_r (License): Likewise.
101938         * modules/getpass (License): Likewise.
101939         * modules/gettimeofday (License): Likewise.
101940         * modules/glob (License): Likewise.
101941         * modules/inet_ntop (License): Likewise.
101942         * modules/malloc (License): Likewise.
101943         * modules/malloca (License): Likewise.
101944         * modules/memmem (License): Likewise.
101945         * modules/mempcpy (License): Likewise.
101946         * modules/memset (License): Likewise.
101947         * modules/minmax (License): Likewise.
101948         * modules/mktime (License): Likewise.
101949         * modules/netinet_in (License): Likewise.
101950         * modules/pathmax (License): Likewise.
101951         * modules/poll (License): Likewise.
101952         * modules/regex (License): Likewise.
101953         * modules/snprintf (License): Likewise.
101954         * modules/stdbool (License): Likewise.
101955         * modules/stdint (License): Likewise.
101956         * modules/stdio (License): Likewise.
101957         * modules/strcase (License): Likewise.
101958         * modules/strcasestr (License): Likewise.
101959         * modules/strdup (License): Likewise.
101960         * modules/string (License): Likewise.
101961         * modules/strndup (License): Likewise.
101962         * modules/strnlen (License): Likewise.
101963         * modules/strpbrk (License): Likewise.
101964         * modules/strptime (License): Likewise.
101965         * modules/strsep (License): Likewise.
101966         * modules/sys_select (License): Likewise.
101967         * modules/sys_socket (License): Likewise.
101968         * modules/sys_stat (License): Likewise.
101969         * modules/sys_time (License): Likewise.
101970         * modules/time (License): Likewise.
101971         * modules/time_r (License): Likewise.
101972         * modules/timegm (License): Likewise.
101973         * modules/unistd (License): Likewise.
101974         * modules/vsnprintf (License): Likewise.
101975         * modules/wctype (License): Likewise.
101977 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101979         * modules/argz (License): LGPLv2+.
101981 2007-07-15  Karl Berry  <karl@gnu.org>
101983         * doc/gnulib.texi: revise node structure per new fdl.texi.
101985 2007-07-14  Bruno Haible  <bruno@clisp.org>
101987         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
101988         the output file.
101989         * lib/uniname/uninames.h: Regenerated.
101991 2007-07-14  Karl Berry  <karl@gnu.org>
101993         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
101994         omitting sectioning and index commands.
101996 2007-07-13  Bruno Haible  <bruno@clisp.org>
101998         New gnulib-tool option --more-symlinks.
101999         * gnulib-tool (func_usage): Document --more-symlinks.
102000         (do_copyrights): New variable.
102001         Recognize option --more-symlinks.
102002         (func_import): Don't add a copyright notice transform to
102003         sed_transform_lib_file if do_copyrights is empty.
102005 2007-07-13  Bruno Haible  <bruno@clisp.org>
102007         * lib/vasnprintf.c (decimal_point_char): Define also if
102008         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
102009         && !NEED_PRINTF_DIRECTIVE_A.
102010         Reported by Clemens Koller <clemens.koller@anagramm.de> via
102011         Gary V. Vaughan <gary@gnu.org>.
102013 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
102015         * lib/inttypes_.h: Undo previous change, since it was fixed
102016         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
102018 2007-07-13  Bruno Haible  <bruno@clisp.org>
102020         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
102021         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
102023 2007-07-13  Jim Meyering  <jim@meyering.net>
102025         df: Don't fail for Tru64's "file-on-file mount".
102026         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
102027         so we fall through and use statfs instead.  Details here:
102028         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
102029         Reported by Albert Chin.
102031 2007-07-13  Bruno Haible  <bruno@clisp.org>
102033         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
102034         * modules/configmake (License): Likewise.
102035         * modules/gettext (License): Likewise.
102036         * modules/gettext-h (License): Likewise.
102037         * modules/include_next (License): Likewise.
102038         * modules/link-warning (License): Likewise.
102039         * modules/localcharset (License): Likewise.
102040         * modules/localename (License): Likewise.
102041         * modules/lock (License): Likewise.
102042         * modules/relocatable-lib-lgpl (License): Likewise.
102043         * modules/size_max (License): Likewise.
102044         * modules/vasnprintf (License): Likewise.
102045         * modules/wchar (License): Likewise.
102046         * modules/xsize (License): Likewise.
102048 2007-07-13  Bruno Haible  <bruno@clisp.org>
102050         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
102051         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
102053 2007-07-12  Bruno Haible  <bruno@clisp.org>
102055         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
102056         in the modules files.
102058 2007-07-11  Karl Berry  <karl@gnu.org>
102060         * MODULES.html.sh (func_module): use
102061          sed -e '\|^'"${includefile}"'$|d'
102062          instead of /.../d, to avoid errors on $includefile's containing /.
102064 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
102066         * gnulib-tool (func_import): Avoid duplication of --avoid
102067         statements
102068         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
102069         names to `_' in variable names.
102071 2007-07-10  Eric Blake  <ebb9@byu.net>
102073         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
102074         * NEWS: Document this change.
102076 2007-07-08  Bruno Haible  <bruno@clisp.org>
102078         Update to Unicode 5.0.
102079         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
102080         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
102081         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
102082         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
102083         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
102084         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
102085         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
102086         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
102087         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
102088         U+10A3F, U+1D242..U+1D244.
102089         (nonspacing_table_ind): Update.
102090         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
102091         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
102093 2007-07-08  Bruno Haible  <bruno@clisp.org>
102095         Update to Unicode 5.0.
102096         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
102097         code transform. Extend the name index field of unicode_name_to_code and
102098         unicode_code_to_name from 16 to 24 bits.
102099         * lib/uniname/uniname.c (unicode_character_name,
102100         unicode_name_character): Add the range 0x12xxx to the code transform.
102101         * lib/uniname/uninames.h: Regenerated.
102102         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
102104 2007-07-07  Bruno Haible  <bruno@clisp.org>
102106         * modules/wcwidth-tests: New file.
102107         * tests/test-wcwidth.c: New file.
102109         Work around MacOS X wcwidth() bug.
102110         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
102111         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
102112         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
102113         original wcwidth in non-UTF-8 locales.
102114         * modules/wcwidth (Depends-on): Add localcharset, streq,
102115         uniwidth/width.
102116         * doc/functions/wcwidth.texi: Update.
102118 2007-07-07  Bruno Haible  <bruno@clisp.org>
102120         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
102121         (wcwidth): New declaration.
102122         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
102123         macros.
102124         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
102125         here. Prepare for creating <wchar.h> unconditionally.
102126         * modules/wchar (Depends-on): Add link-warning.
102127         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
102128         REPLACE_WCWIDTH, and GL_LINK_WARNING.
102129         * lib/wcwidth.h: Remove file.
102130         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
102131         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
102132         * modules/wcwidth (Files): Remove lib/wcwidth.h.
102133         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
102134         (Include): Replace wcwidth.h with <wchar.h>.
102135         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
102136         * lib/mbchar.h: Don't include wcwidth.h.
102137         * lib/mbswidth.c: Likewise.
102138         * NEWS: Mention the change.
102140 2007-07-07  Bruno Haible  <bruno@clisp.org>
102142         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
102143         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
102144         definition with an external declaration.
102145         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
102146         defined as a function. Remove AC_C_INLINE requirement.
102147         * modules/wcwidth (Files): Add lib/wcwidth.c.
102148         (Makefile.am): Remove redundant statement.
102150 2007-07-07  Bruno Haible  <bruno@clisp.org>
102152         * MODULES.html.sh (Unicode string functions): Add the new modules.
102154         * tests/uniwidth/test-u32-strwidth.c: New file.
102155         * modules/uniwidth/u32-strwidth-tests: New file.
102157         * lib/uniwidth/u32-strwidth.c: New file.
102158         * modules/uniwidth/u32-strwidth: New file.
102160         * tests/uniwidth/test-u16-strwidth.c: New file.
102161         * modules/uniwidth/u16-strwidth-tests: New file.
102163         * lib/uniwidth/u16-strwidth.c: New file.
102164         * modules/uniwidth/u16-strwidth: New file.
102166         * tests/uniwidth/test-u8-strwidth.c: New file.
102167         * modules/uniwidth/u8-strwidth-tests: New file.
102169         * lib/uniwidth/u8-strwidth.c: New file.
102170         * modules/uniwidth/u8-strwidth: New file.
102172         * tests/uniwidth/test-u32-width.c: New file.
102173         * modules/uniwidth/u32-width-tests: New file.
102175         * lib/uniwidth/u32-width.c: New file.
102176         * modules/uniwidth/u32-width: New file.
102178         * tests/uniwidth/test-u16-width.c: New file.
102179         * modules/uniwidth/u16-width-tests: New file.
102181         * lib/uniwidth/u16-width.c: New file.
102182         * modules/uniwidth/u16-width: New file.
102184         * tests/uniwidth/test-u8-width.c: New file.
102185         * modules/uniwidth/u8-width-tests: New file.
102187         * lib/uniwidth/u8-width.c: New file.
102188         * modules/uniwidth/u8-width: New file.
102190         * tests/uniwidth/test-uc_width.c: New file.
102191         * modules/uniwidth/width-tests: New file.
102193         * lib/uniwidth/width.c: New file, from GNU libiconv.
102194         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
102195         * modules/uniwidth/width: New file.
102197         * lib/uniwidth.h: New file, from GNU libiconv.
102198         * modules/uniwidth/base: New file.
102200 2007-07-07  Bruno Haible  <bruno@clisp.org>
102202         * lib/uniname.h: New file, from GNU gettext.
102203         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
102204         * lib/uniname/uninames.h: New file, from GNU gettext.
102205         * lib/uniname/uniname.c: New file, from GNU gettext.
102206         * tests/uniname/test-uninames.sh: New file.
102207         * tests/uniname/test-uninames.c: New file, from GNU gettext.
102208         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
102209         * modules/uniname/base: New file.
102210         * modules/uniname/uniname: New file.
102211         * modules/uniname/uniname-tests: New file.
102212         * MODULES.html.sh (Unicode string functions): Add the new modules.
102214 2007-07-06  Bruno Haible  <bruno@clisp.org>
102216         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
102218 2007-07-06  Bruno Haible  <bruno@clisp.org>
102220         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
102221         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
102222         includes <cygwin/sys_time.h> which includes <sys/select.h> which
102223         include <sys/time.h>.
102224         Reported by Eric Blake.
102226 2007-07-06  Eric Blake  <ebb9@byu.net>
102228         Fix testing canonicalize on cygwin.
102229         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
102230         Revert patch from 2007-06-19.
102231         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
102232         canonicalize module is also in use.
102233         * tests/test-canonicalize.c: New file.
102234         * tests/test-canonicalize.sh: Likewise.
102235         * modules/canonicalize-tests: Likewise.
102237 2007-07-06  Jim Meyering  <jim@meyering.net>
102239         * lib/getugroups.c (getugroups): Detect getgrent failure.
102240         Adjust comment to reflect reality: this function may return -1.
102242 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
102244         * build-aux/bootstrap (TP_URL,get_translations): Update to use
102245         the new TP address.
102246         (usage): Fix typo
102247         (gnulib_mk): New variable.
102249 2007-07-05  Jim Meyering  <jim@meyering.net>
102251         Don't let endgrent clobber errno, no matter how improbable.
102252         * lib/getugroups.c (getugroups): Save and restore errno around
102253         endgrent call.
102255         Close the group DB even when failing with 2^31 or more members.
102256         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
102258 2007-07-04  Jim Meyering  <jim@meyering.net>
102260         * lib/getugroups.h: New file.
102261         * lib/getugroups.c: Include "getugroups.h".
102262         Remove uses of "register" keyword.
102263         Move local variable, "cp", down into scope where used.
102264         Give "username" parameter the "const" attribute.
102265         * modules/getugroups (Files): Add lib/getugroups.h
102267 2007-07-04  Karl Berry  <karl@gnu.org>
102269         * MODULES.html.sh (func_all_modules): Complete rename of
102270         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
102272 2007-07-02  Bruno Haible  <bruno@clisp.org>
102274         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
102275         mode, when inttypes.h comes from gnulib.
102276         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
102278 2007-07-02  Simon Josefsson  <simon@josefsson.org>
102280         * NEWS: Mention lgpl module name change.
102282         * modules/lgpl-2.1: Renamed from lgpl.
102284         * NEWS: Mention gpl module name change.
102286         * modules/gpl-3.0: New file, based on gpl-2.0.
102288         * modules/gpl-2.0: Renamed from gpl.
102290         * modules/gpl: Fix filename, doc/gpl.texi is now found at
102291         doc/gpl-2.0.texi.
102293 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
102295         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
102296         #define __STDC_LIMIT_MACROS temporarily while including
102297         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
102298         Problem reported by Joel E. Denny in
102299         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
102301 2007-07-01  Bruno Haible  <bruno@clisp.org>
102303         * lib/unistdio.h: New file.
102304         * lib/unistdio/u-asnprintf.h: New file.
102305         * lib/unistdio/u-asprintf.h: New file.
102306         * lib/unistdio/u-printf-args.c: New file.
102307         * lib/unistdio/u-printf-args.h: New file.
102308         * lib/unistdio/u-printf-parse.h: New file.
102309         * lib/unistdio/u-snprintf.h: New file.
102310         * lib/unistdio/u-sprintf.h: New file.
102311         * lib/unistdio/u-vasprintf.h: New file.
102312         * lib/unistdio/u-vsnprintf.h: New file.
102313         * lib/unistdio/u-vsprintf.h: New file.
102314         * lib/unistdio/ulc-asnprintf.c: New file.
102315         * lib/unistdio/ulc-asprintf.c: New file.
102316         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
102317         * lib/unistdio/ulc-printf-parse.c: New file.
102318         * lib/unistdio/ulc-snprintf.c: New file.
102319         * lib/unistdio/ulc-sprintf.c: New file.
102320         * lib/unistdio/ulc-vasnprintf.c: New file.
102321         * lib/unistdio/ulc-vasprintf.c: New file.
102322         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
102323         * lib/unistdio/ulc-vsnprintf.c: New file.
102324         * lib/unistdio/ulc-vsprintf.c: New file.
102325         * lib/unistdio/u8-asnprintf.c: New file.
102326         * lib/unistdio/u8-asprintf.c: New file.
102327         * lib/unistdio/u8-printf-parse.c: New file.
102328         * lib/unistdio/u8-snprintf.c: New file.
102329         * lib/unistdio/u8-sprintf.c: New file.
102330         * lib/unistdio/u8-vasnprintf.c: New file.
102331         * lib/unistdio/u8-vasprintf.c: New file.
102332         * lib/unistdio/u8-vsnprintf.c: New file.
102333         * lib/unistdio/u8-vsprintf.c: New file.
102334         * lib/unistdio/u8-u8-asnprintf.c: New file.
102335         * lib/unistdio/u8-u8-asprintf.c: New file.
102336         * lib/unistdio/u8-u8-snprintf.c: New file.
102337         * lib/unistdio/u8-u8-sprintf.c: New file.
102338         * lib/unistdio/u8-u8-vasnprintf.c: New file.
102339         * lib/unistdio/u8-u8-vasprintf.c: New file.
102340         * lib/unistdio/u8-u8-vsnprintf.c: New file.
102341         * lib/unistdio/u8-u8-vsprintf.c: New file.
102342         * lib/unistdio/u16-asnprintf.c: New file.
102343         * lib/unistdio/u16-asprintf.c: New file.
102344         * lib/unistdio/u16-printf-parse.c: New file.
102345         * lib/unistdio/u16-snprintf.c: New file.
102346         * lib/unistdio/u16-sprintf.c: New file.
102347         * lib/unistdio/u16-vasnprintf.c: New file.
102348         * lib/unistdio/u16-vasprintf.c: New file.
102349         * lib/unistdio/u16-vsnprintf.c: New file.
102350         * lib/unistdio/u16-vsprintf.c: New file.
102351         * lib/unistdio/u16-u16-asnprintf.c: New file.
102352         * lib/unistdio/u16-u16-asprintf.c: New file.
102353         * lib/unistdio/u16-u16-snprintf.c: New file.
102354         * lib/unistdio/u16-u16-sprintf.c: New file.
102355         * lib/unistdio/u16-u16-vasnprintf.c: New file.
102356         * lib/unistdio/u16-u16-vasprintf.c: New file.
102357         * lib/unistdio/u16-u16-vsnprintf.c: New file.
102358         * lib/unistdio/u16-u16-vsprintf.c: New file.
102359         * lib/unistdio/u32-asnprintf.c: New file.
102360         * lib/unistdio/u32-asprintf.c: New file.
102361         * lib/unistdio/u32-printf-parse.c: New file.
102362         * lib/unistdio/u32-snprintf.c: New file.
102363         * lib/unistdio/u32-sprintf.c: New file.
102364         * lib/unistdio/u32-vasnprintf.c: New file.
102365         * lib/unistdio/u32-vasprintf.c: New file.
102366         * lib/unistdio/u32-vsnprintf.c: New file.
102367         * lib/unistdio/u32-vsprintf.c: New file.
102368         * lib/unistdio/u32-u32-asnprintf.c: New file.
102369         * lib/unistdio/u32-u32-asprintf.c: New file.
102370         * lib/unistdio/u32-u32-snprintf.c: New file.
102371         * lib/unistdio/u32-u32-sprintf.c: New file.
102372         * lib/unistdio/u32-u32-vasnprintf.c: New file.
102373         * lib/unistdio/u32-u32-vasprintf.c: New file.
102374         * lib/unistdio/u32-u32-vsnprintf.c: New file.
102375         * lib/unistdio/u32-u32-vsprintf.c: New file.
102376         * tests/unistdio/test-ulc-asnprintf1.c: New file.
102377         * tests/unistdio/test-ulc-asnprintf1.h: New file.
102378         * tests/unistdio/test-ulc-printf1.h: New file.
102379         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
102380         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
102381         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
102382         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
102383         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
102384         * tests/unistdio/test-ulc-vasprintf1.c: New file.
102385         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
102386         * tests/unistdio/test-ulc-vsprintf1.c: New file.
102387         * tests/unistdio/test-u8-asnprintf1.c: New file.
102388         * tests/unistdio/test-u8-asnprintf1.h: New file.
102389         * tests/unistdio/test-u8-printf1.h: New file.
102390         * tests/unistdio/test-u8-vasnprintf1.c: New file.
102391         * tests/unistdio/test-u8-vasnprintf2.c: New file.
102392         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
102393         * tests/unistdio/test-u8-vasnprintf3.c: New file.
102394         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
102395         * tests/unistdio/test-u8-vasprintf1.c: New file.
102396         * tests/unistdio/test-u8-vsnprintf1.c: New file.
102397         * tests/unistdio/test-u8-vsprintf1.c: New file.
102398         * tests/unistdio/test-u16-asnprintf1.c: New file.
102399         * tests/unistdio/test-u16-asnprintf1.h: New file.
102400         * tests/unistdio/test-u16-printf1.h: New file.
102401         * tests/unistdio/test-u16-vasnprintf1.c: New file.
102402         * tests/unistdio/test-u16-vasnprintf2.c: New file.
102403         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
102404         * tests/unistdio/test-u16-vasnprintf3.c: New file.
102405         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
102406         * tests/unistdio/test-u16-vasprintf1.c: New file.
102407         * tests/unistdio/test-u16-vsnprintf1.c: New file.
102408         * tests/unistdio/test-u16-vsprintf1.c: New file.
102409         * tests/unistdio/test-u32-asnprintf1.c: New file.
102410         * tests/unistdio/test-u32-asnprintf1.h: New file.
102411         * tests/unistdio/test-u32-printf1.h: New file.
102412         * tests/unistdio/test-u32-vasnprintf1.c: New file.
102413         * tests/unistdio/test-u32-vasnprintf2.c: New file.
102414         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
102415         * tests/unistdio/test-u32-vasnprintf3.c: New file.
102416         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
102417         * tests/unistdio/test-u32-vasprintf1.c: New file.
102418         * tests/unistdio/test-u32-vsnprintf1.c: New file.
102419         * tests/unistdio/test-u32-vsprintf1.c: New file.
102420         * modules/unistdio/base: New file.
102421         * modules/unistdio/u-printf-args: New file.
102422         * modules/unistdio/ulc-asnprintf: New file.
102423         * modules/unistdio/ulc-asprintf: New file.
102424         * modules/unistdio/ulc-fprintf: New file.
102425         * modules/unistdio/ulc-printf-parse: New file.
102426         * modules/unistdio/ulc-snprintf: New file.
102427         * modules/unistdio/ulc-sprintf: New file.
102428         * modules/unistdio/ulc-vasnprintf: New file.
102429         * modules/unistdio/ulc-vasprintf: New file.
102430         * modules/unistdio/ulc-vfprintf: New file.
102431         * modules/unistdio/ulc-vsnprintf: New file.
102432         * modules/unistdio/ulc-vsprintf: New file.
102433         * modules/unistdio/u8-asnprintf: New file.
102434         * modules/unistdio/u8-asprintf: New file.
102435         * modules/unistdio/u8-printf-parse: New file.
102436         * modules/unistdio/u8-snprintf: New file.
102437         * modules/unistdio/u8-sprintf: New file.
102438         * modules/unistdio/u8-vasnprintf: New file.
102439         * modules/unistdio/u8-vasprintf: New file.
102440         * modules/unistdio/u8-vsnprintf: New file.
102441         * modules/unistdio/u8-vsprintf: New file.
102442         * modules/unistdio/u8-u8-asnprintf: New file.
102443         * modules/unistdio/u8-u8-asprintf: New file.
102444         * modules/unistdio/u8-u8-snprintf: New file.
102445         * modules/unistdio/u8-u8-sprintf: New file.
102446         * modules/unistdio/u8-u8-vasnprintf: New file.
102447         * modules/unistdio/u8-u8-vasprintf: New file.
102448         * modules/unistdio/u8-u8-vsnprintf: New file.
102449         * modules/unistdio/u8-u8-vsprintf: New file.
102450         * modules/unistdio/u16-asnprintf: New file.
102451         * modules/unistdio/u16-asprintf: New file.
102452         * modules/unistdio/u16-printf-parse: New file.
102453         * modules/unistdio/u16-snprintf: New file.
102454         * modules/unistdio/u16-sprintf: New file.
102455         * modules/unistdio/u16-vasnprintf: New file.
102456         * modules/unistdio/u16-vasprintf: New file.
102457         * modules/unistdio/u16-vsnprintf: New file.
102458         * modules/unistdio/u16-vsprintf: New file.
102459         * modules/unistdio/u16-u16-asnprintf: New file.
102460         * modules/unistdio/u16-u16-asprintf: New file.
102461         * modules/unistdio/u16-u16-snprintf: New file.
102462         * modules/unistdio/u16-u16-sprintf: New file.
102463         * modules/unistdio/u16-u16-vasnprintf: New file.
102464         * modules/unistdio/u16-u16-vasprintf: New file.
102465         * modules/unistdio/u16-u16-vsnprintf: New file.
102466         * modules/unistdio/u16-u16-vsprintf: New file.
102467         * modules/unistdio/u32-asnprintf: New file.
102468         * modules/unistdio/u32-asprintf: New file.
102469         * modules/unistdio/u32-printf-parse: New file.
102470         * modules/unistdio/u32-snprintf: New file.
102471         * modules/unistdio/u32-sprintf: New file.
102472         * modules/unistdio/u32-vasnprintf: New file.
102473         * modules/unistdio/u32-vasprintf: New file.
102474         * modules/unistdio/u32-vsnprintf: New file.
102475         * modules/unistdio/u32-vsprintf: New file.
102476         * modules/unistdio/u32-u32-asnprintf: New file.
102477         * modules/unistdio/u32-u32-asprintf: New file.
102478         * modules/unistdio/u32-u32-snprintf: New file.
102479         * modules/unistdio/u32-u32-sprintf: New file.
102480         * modules/unistdio/u32-u32-vasnprintf: New file.
102481         * modules/unistdio/u32-u32-vasprintf: New file.
102482         * modules/unistdio/u32-u32-vsnprintf: New file.
102483         * modules/unistdio/u32-u32-vsprintf: New file.
102484         * modules/unistdio/ulc-asnprintf-tests: New file.
102485         * modules/unistdio/ulc-vasnprintf-tests: New file.
102486         * modules/unistdio/ulc-vasprintf-tests: New file.
102487         * modules/unistdio/ulc-vsnprintf-tests: New file.
102488         * modules/unistdio/ulc-vsprintf-tests: New file.
102489         * modules/unistdio/u8-asnprintf-tests: New file.
102490         * modules/unistdio/u8-vasnprintf-tests: New file.
102491         * modules/unistdio/u8-vasprintf-tests: New file.
102492         * modules/unistdio/u8-vsnprintf-tests: New file.
102493         * modules/unistdio/u8-vsprintf-tests: New file.
102494         * modules/unistdio/u16-asnprintf-tests: New file.
102495         * modules/unistdio/u16-vasnprintf-tests: New file.
102496         * modules/unistdio/u16-vasprintf-tests: New file.
102497         * modules/unistdio/u16-vsnprintf-tests: New file.
102498         * modules/unistdio/u16-vsprintf-tests: New file.
102499         * modules/unistdio/u32-asnprintf-tests: New file.
102500         * modules/unistdio/u32-vasnprintf-tests: New file.
102501         * modules/unistdio/u32-vasprintf-tests: New file.
102502         * modules/unistdio/u32-vsnprintf-tests: New file.
102503         * modules/unistdio/u32-vsprintf-tests: New file.
102504         * MODULES.html.sh (Unicode string functions): Add the new modules.
102506 2007-07-01  Bruno Haible  <bruno@clisp.org>
102508         * lib/sprintf.c (sprintf): Limit the available length estimation,
102509         to avoid address wraparound.
102510         * lib/vsprintf.c (vsprintf): Likewise.
102511         * modules/sprintf-posix (Dependencies): Add stdint.
102512         * modules/vsprintf-posix (Dependencies): Likewise.
102514 2007-07-01  Bruno Haible  <bruno@clisp.org>
102516         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
102517         Windows PATH as well. Conservative double-quoting. Comments.
102519 2007-07-01  Bruno Haible  <bruno@clisp.org>
102520             Eric Blake  <ebb9@byu.net>
102521             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102523         * gnulib-tool (self_abspathname): Fix algorithm to cope with
102524         empty components in $PATH, denoting '.'.
102526 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102528         * gnulib-tool: Fix indentation.
102529         (func_create_megatestdir): Likewise.
102530         Report by Bruno Haible.
102532 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102534         Sync from Automake.
102535         * build-aux/gnupload: Fix shell portability issues with for loops.
102536         Report by Karl Berry.
102538 2007-06-29  Simon Josefsson  <simon@josefsson.org>
102540         * build-aux/maint.mk (POURL): Use translationproject.org.
102542 2007-06-27  Simon Josefsson  <simon@josefsson.org>
102543             Bruno Haible  <bruno@clisp.org>
102545         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
102546         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
102547         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
102548         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
102549         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
102551 2007-06-27  Bruno Haible  <bruno@clisp.org>
102553         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
102554         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
102556 2007-06-26  Karl Berry  <karl@gnu.org>
102558         * MODULES.html.sh: remove xreadlink-with-size.
102560 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
102562         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
102563         method that I hope also handles the double-include problem noted
102564         by Bruno Haible in
102565         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
102567 2007-06-23  Bruno Haible  <bruno@clisp.org>
102569         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
102570         Don't let the 'mostlyclean' target fail if the last subdirectory could
102571         not be removed.
102572         Reported by Karl Berry.
102574 2007-06-23  Bruno Haible  <bruno@clisp.org>
102576         * gnulib-tool (echo): Add a speedier workaround for ksh.
102577         * tests/test-echo.sh: Likewise.
102579 2007-06-23  Bruno Haible  <bruno@clisp.org>
102581         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
102582         * tests/test-echo.sh: Likewise.
102584 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102586         * gnulib-tool (IFS): Initialize early, so we don't set it to
102587         empty later.
102588         (self_abspathname): Rewrite algorithm to set it, reindent.
102589         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
102590         (func_create_megatestdir): Merge some sed scripts.
102592 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
102594         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
102595         exposed by Sun Studio 11 cc on Solaris 8.
102597 2007-06-22  Bruno Haible  <bruno@clisp.org>
102599         * gnulib-tool (echo): Ensure the echo primitive does not interpret
102600         backslashes.
102601         * tests/test-echo.sh: New file.
102603 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102605         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
102606         simplify `sed_replace_build_aux' scripts, they are portable but
102607         echoing them with `echo' is not.
102608         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
102610 2007-06-21  Karl Berry  <karl@gnu.org>
102612         * config/srclist.txt: guess we can't handle the licenses via
102613         srclist at the moment.
102615 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
102617         * MODULES.html.sh: Add include_next.
102618         * modules/include_next: New file.
102620 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
102622         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
102623         INCLUDE_NEXT.
102624         (gl_CHECK_NEXT_HEADERS): New macro.
102625         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
102626         the obsolescent gl_ABSOLUTE_HEADER.
102627         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
102628         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
102629         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
102630         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
102631         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
102632         * m4/math_h.m4 (gl_MATH_H): Likewise.
102633         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
102634         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
102635         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
102636         * m4/stdint.m4 (gl_STDINT_H): Likewise.
102637         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
102638         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
102639         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
102640         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
102641         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
102642         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
102643         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
102644         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
102645         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
102646         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
102647         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
102648         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
102649         * m4/inttypes.m4 (gl_INTTYPES_H): Define
102650         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
102651         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
102652         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
102653         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
102654         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
102655         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
102656         * lib/float_.h: Likewise.
102657         * lib/inttypes_.h: Likewise.
102658         * lib/math_.h: Likewise.
102659         * lib/search_.h: Likewise.
102660         * lib/signal_.h: Likewise.
102661         * lib/stdint_.h: Likewise.
102662         * lib/stdio_.h: Likewise.
102663         * lib/stdlib_.h: Likewise.
102664         * lib/string_.h: Likewise.
102665         * lib/sys_stat_.h: Likewise.
102666         * lib/sys_time_.h: Likewise.
102667         * lib/time_.h: Likewise.
102668         * lib/unistd_.h: Likewise.
102669         * lib/wchar_.h: Likewise.
102670         * lib/wctype_.h: Likewise.
102671         * lib/dirent_.h: Likewise.
102672         * lib/iconv_.h: Likewise.
102673         * lib/locale_.h: Likewise.
102674         * lib/netinet_in_.h: Likewise.
102675         * lib/sys_select_.h: Likewise.
102676         * lib/sys_socket_.h: Likewise.
102677         * lib/sysexits_.h: Likewise.
102678         * modules/fcntl (Depends-on): Depend on include_next, not
102679         absolute_header.
102680         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
102681         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
102682         * modules/fchdir: Likewise.
102683         * modules/float: Likewise.
102684         * modules/iconv_open: Likewise.
102685         * modules/inttypes: Likewise.
102686         * modules/locale: Likewise.
102687         * modules/math: Likewise.
102688         * modules/netinet_in: Likewise.
102689         * modules/search: Likewise.
102690         * modules/signal: Likewise.
102691         * modules/stdint: Likewise.
102692         * modules/stdio: Likewise.
102693         * modules/stdlib: Likewise.
102694         * modules/string: Likewise.
102695         * modules/sys_select: Likewise.
102696         * modules/sys_socket: Likewise.
102697         * modules/sys_stat: Likewise.
102698         * modules/sys_time: Likewise.
102699         * modules/sysexits: Likewise.
102700         * modules/time: Likewise.
102701         * modules/unistd: Likewise.
102702         * modules/wchar: Likewise.
102703         * modules/wctype: Likewise.
102704         * modules/sys_stat: Change maintainer to "all".
102705         * modules/unistd: Likewise.
102707 2007-06-20  Karl Berry  <karl@gnu.org>
102709         * config/srclist.txt: track www changes in license files.
102711 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
102713         * build-aux/bootstrap: Remove stray dot.
102714         Make sure build_aux settings are honored when linking
102715         gnulib_extra_files.
102717 2007-06-19  Eric Blake  <ebb9@byu.net>
102719         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
102720         Allow compilation on cygwin.
102722 2007-06-19  Jim Meyering  <jim@meyering.net>
102724         xreadlink-with-size: Remove module.  No longer used.
102725         Ex-callers now use xreadlink or mreadlink-with-size.
102726         * modules/xreadlink-with-size: Remove module.
102727         * lib/xreadlink-with-size.c: Remove file.
102728         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
102729         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
102730         just before the function definition *is* accurate.
102732         Eliminate one way canonicalize_filename_mode could exit.
102733         * lib/canonicalize.c (canonicalize_filename_mode):
102734         Use mreadlink_with_size, not xreadlink_with_size.
102736 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
102738         Detect porting problems to FreeBSD/arm, which has time_t wider than
102739         long int.  Original problem reported for GNU diff by Xin Li in
102740         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
102741         * modules/getdate (Depends-on): Add intprops, verify.
102742         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
102743         is an integer type no wider than long int.
102745 2007-06-18  Jim Meyering  <jim@meyering.net>
102747         New module: mreadlink-with-size.
102748         * MODULES.html.sh: Add mreadlink-with-size.
102749         * modules/mreadlink-with-size: New module
102750         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
102751         not xreadlink-with-size.
102752         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
102754 2007-06-16  Bruno Haible  <bruno@clisp.org>
102756         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
102757         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
102758         Reported by Gary V. Vaughan <gary@gnu.org>.
102760 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
102762         Revamp lchown so that it lives in unistd.h where it belongs.
102763         * lib/lchown.h: Remove.
102764         * lib/dirchownmod.c: Don't include lib/lchown.h.
102765         * lib/fchownat.c: Likewise.
102766         * lib/openat.c: Likewise.
102767         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
102768         does not follow symlinks.
102769         (EOPNOTSUPP): Define if not defined.
102770         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
102771         is defined to 0.
102772         (lchown): New decl.
102773         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
102774         Do not check for lchown decl.
102775         Set REPLACE_LCHOWN.
102776         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
102777         REPLACE_LCHOWN.
102778         * modules/chown: Make it clear it follows symlinks.
102779         * modules/lchown: Make it clear it doesn't follow symlinks.
102780         (Files): Remove lib/lchown.h
102781         (Depends-on): Add unistd.
102782         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
102783         (Include): Include <unistd.h>, not "lchown.h".
102784         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
102785         REPLACE_LCHOWN.
102787 2007-06-15  Jim Meyering  <jim@meyering.net>
102789         Change license (GPL to LGPL) of fsusage and dependents.
102790         * modules/fsusage (License): Change to LGPL.
102791         * modules/full-read (License): Likewise.
102792         * modules/full-write (License): Likewise.
102793         * modules/safe-read (License): Likewise.
102794         * modules/safe-write (License): Likewise.
102796 2007-06-14  Ben Pfaff  <blp@gnu.org>
102798         Missing part of allocsa -> malloca transition.
102799         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
102800         gl_MALLOCA.
102802 2007-06-12  Bruno Haible  <bruno@clisp.org>
102804         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
102805         to ia64, x86_64, i386.
102806         Reported by Eric Blake.
102808 2007-06-12  Bruno Haible  <bruno@clisp.org>
102810         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
102811         cross-compiling to x86_64.
102813 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
102815         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
102816         glitch reported by Ralf Wildenhues in
102817         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
102819         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
102820         Vin Shelton.
102822 2007-06-11  Bruno Haible  <bruno@clisp.org>
102824         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
102825         replacement string.
102826         Reported by Eric Blake.
102828 2007-06-10  Bruno Haible  <bruno@clisp.org>
102830         Prepare vasnprintf code for use with Unicode strings.
102831         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
102832         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
102833         TYPE_U32_STRING.
102834         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
102835         a_u32_string variants.
102836         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
102837         * lib/printf-args.c: Don't include config.h and the specification
102838         header if PRINTF_FETCHARGS is already defined.
102839         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
102840         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
102841         TYPE_U16_STRING, TYPE_U32_STRING.
102842         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
102843         u16_directive, u16_directives, u32_directive, u32_directives): New
102844         types.
102845         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
102846         New declarations.
102847         * lib/printf-parse.c: Don't include config.h and the specification
102848         header if PRINTF_PARSE is already defined. Eliminate the set of
102849         parameters for WIDE_CHAR_VERSION; the user of this file must provide
102850         them now. Include c-ctype.h.
102851         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
102852         directive and CHAR_T_ONLY_ASCII.
102853         * lib/vasnprintf.c: Don't include config.h and the specification header
102854         if VASNPRINTF is already defined.
102855         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
102856         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
102857         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
102858         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
102859         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
102860         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
102861         code accordingly.
102862         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
102863         pad_ourselves also in this case, with the 'c' and 's' directives, and
102864         with a different notion of "width".
102865         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
102867 2007-06-10  Bruno Haible  <bruno@clisp.org>
102869         * modules/unistr/u32-mbsnlen: New file.
102870         * lib/unistr/u32-mbsnlen.c: New file.
102872         * modules/unistr/u16-mbsnlen: New file.
102873         * lib/unistr/u16-mbsnlen.c: New file.
102875         * modules/unistr/u8-mbsnlen: New file.
102876         * lib/unistr/u8-mbsnlen.c: New file.
102878         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
102879         declarations.
102881 2007-06-10  Bruno Haible  <bruno@clisp.org>
102883         * lib/string_.h (mbsnlen): New declaration.
102884         * lib/mbsnlen.c: New file.
102885         * m4/mbsnlen.m4: New file.
102886         * modules/mbsnlen: New file.
102887         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
102888         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
102889         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
102891 2007-06-10  Bruno Haible  <bruno@clisp.org>
102893         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
102895 2007-06-10  Bruno Haible  <bruno@clisp.org>
102897         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
102898         * lib/mbuiter.h: Likewise.
102900 2007-06-10  Bruno Haible  <bruno@clisp.org>
102902         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
102903         declaration.
102905 2007-06-10  Karl Berry  <karl@gnu.org>
102907         * config/srclist.txt: remove gettext entries, Bruno prefers
102908         to update individually.
102910 2007-06-10  Bruno Haible  <bruno@clisp.org>
102912         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
102913         'maxlen'. Ensure only length + width bytes are allocated, not
102914         length + 1 + width.
102916 2007-06-09  Bruno Haible  <bruno@clisp.org>
102918         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
102919         (CHAR_T): Remove macro.
102920         (VASNPRINTF): Update.
102922 2007-06-09  Bruno Haible  <bruno@clisp.org>
102924         * MODULES.html.sh (Unicode string functions): Add the new modules.
102926         * modules/uniconv/u32-conv-to-enc: New file.
102927         * lib/uniconv/u32-conv-to-enc.c: New file.
102928         * modules/uniconv/u32-conv-to-enc-tests: New file.
102929         * tests/uniconv/test-u32-conv-to-enc.c: New file.
102931         * modules/uniconv/u16-conv-to-enc: New file.
102932         * lib/uniconv/u16-conv-to-enc.c: New file.
102933         * lib/uniconv/u-conv-to-enc.h: New file.
102934         * modules/uniconv/u16-conv-to-enc-tests: New file.
102935         * tests/uniconv/test-u16-conv-to-enc.c: New file.
102937         * modules/uniconv/u8-conv-to-enc: New file.
102938         * lib/uniconv/u8-conv-to-enc.c: New file.
102939         * modules/uniconv/u8-conv-to-enc-tests: New file.
102940         * tests/uniconv/test-u8-conv-to-enc.c: New file.
102942         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
102943         u32_conv_to_encoding): New declarations.
102945 2007-06-09  Bruno Haible  <bruno@clisp.org>
102947         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
102949 2007-06-09  Bruno Haible  <bruno@clisp.org>
102951         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
102952         * modules/malloca: Renamed from modules/allocsa, updated.
102953         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
102954         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
102955         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
102956         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
102957         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
102958         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
102959         * modules/xmalloca: Renamed from modules/xallocsa, updated.
102960         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
102961         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
102962         * modules/c-strcasestr (Depends-on): Update.
102963         * lib/c-strcasestr.c: Update.
102964         * modules/c-strstr (Depends-on): Update.
102965         * lib/c-strstr.c: Update.
102966         * modules/canonicalize-lgpl (Depends-on): Update.
102967         * lib/canonicalize-lgpl.c: Update.
102968         * modules/clean-temp (Depends-on): Update.
102969         * lib/clean-temp.c: Update.
102970         * modules/csharpcomp (Depends-on): Update.
102971         * lib/csharpcomp.c: Update.
102972         * modules/csharpexec (Depends-on): Update.
102973         * lib/csharpexec.c: Update.
102974         * modules/javacomp (Depends-on): Update.
102975         * lib/javacomp.c: Update.
102976         * modules/javaexec (Depends-on): Update.
102977         * lib/javaexec.c: Update.
102978         * modules/mbscasestr (Depends-on): Update.
102979         * lib/mbscasestr.c: Update.
102980         * modules/mbsstr (Depends-on): Update.
102981         * lib/mbsstr.c: Update.
102982         * modules/setenv (Depends-on): Update.
102983         * lib/setenv.c: Update.
102984         * modules/strcasestr (Depends-on): Update.
102985         * lib/strcasestr.c: Update.
102986         * modules/striconveha (Depends-on): Update.
102987         * lib/striconveha.c: Update.
102988         * modules/relocatable-prog-wrapper (Files): Update.
102989         * lib/relocwrapper.c: Update.
102990         * build-aux/install-reloc: Update.
102991         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
102993 2007-06-08  Bruno Haible  <bruno@clisp.org>
102995         Port to uClibc.
102996         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
102997         * lib/fpurge.c (fpurge): Likewise.
102998         * lib/freading.c (freading): Likewise.
102999         * lib/fseeko.c (rpl_fseeko): Likewise.
103000         * lib/fseterr.c (fseterr): Likewise.
103001         * lib/fwriting.c (fwriting): Likewise.
103002         * tests/test-fflush.c (main): Avoid a failure on uClibc.
103004 2007-06-08  Bruno Haible  <bruno@clisp.org>
103006         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
103007         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
103008         * modules/gettext (Files): Add m4/intlmacosx.m4.
103010 2007-06-07  Bruno Haible  <bruno@clisp.org>
103012         * modules/localename-tests: New file.
103013         * tests/test-localename.c: New file.
103015         New module 'localename'.
103016         * lib/localename.h: New file.
103017         * lib/localename.c: New file, from GNU gettext.
103018         * m4/localename.m4: New file.
103019         * modules/localename: New file.
103021 2007-06-07  Bruno Haible  <bruno@clisp.org>
103023         Work around the lack of <wchar.h> on some builds of uClibc.
103024         * doc/headers/wchar.texi: Update.
103025         * lib/wchar_.h: Include <wchar.h> only if it exists.
103026         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
103027         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
103028         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
103029         doesn't exist.
103030         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
103031         * modules/mbfile (Depends-on): Add wchar.
103032         * modules/mbiter (Depends-on): Likewise.
103033         * modules/mbuiter (Depends-on): Likewise.
103034         Reported by Simon Josefsson.
103036 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
103038         Work around problem reported by Steven M. Schweda in
103039         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
103040         Tru64 5.1B with the Compaq compiler environment installed declares
103041         an 'isblank' function but does not define it in the C library.
103042         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
103043         * lib/regex_internal.h (isblank): Likewise.
103044         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
103045         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
103047 2007-06-05  Bruno Haible  <bruno@clisp.org>
103049         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
103050         ia64.
103051         * modules/printf-safe: New file.
103052         * modules/fprintf-posix (Depends-on): Add printf-safe.
103053         * modules/printf-posix (Depends-on): Likewise.
103054         * modules/snprintf-posix (Depends-on): Likewise.
103055         * modules/sprintf-posix (Depends-on): Likewise.
103056         * modules/vasnprintf-posix (Depends-on): Likewise.
103057         * modules/vasprintf-posix (Depends-on): Likewise.
103058         * modules/vfprintf-posix (Depends-on): Likewise.
103059         * modules/vprintf-posix (Depends-on): Likewise.
103060         * modules/vsnprintf-posix (Depends-on): Likewise.
103061         * modules/vsprintf-posix (Depends-on): Likewise.
103062         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
103063         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
103064         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
103065         "no" on i386, x86_64, ia64.
103066         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
103067         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103068         on i386, x86_64, ia64.
103069         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
103070         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103071         on i386, x86_64, ia64.
103072         * tests/test-vasnprintf-posix.c: Include float.h.
103073         (LDBL80_WORDS): New macro.
103074         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103075         on i386, x86_64, ia64.
103076         * tests/test-vasprintf-posix.c: Include float.h.
103077         (LDBL80_WORDS): New macro.
103078         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103079         on i386, x86_64, ia64.
103080         * tests/test-snprintf-posix.c: Include float.h.
103081         * tests/test-sprintf-posix.c: Likewise.
103082         * tests/test-vsnprintf-posix.c: Likewise.
103083         * tests/test-vsprintf-posix.c: Likewise.
103085 2007-06-05  Bruno Haible  <bruno@clisp.org>
103087         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
103088         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
103089         non-IEEE numbers on i386, x86_64, ia64.
103090         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
103091         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
103092         * tests/test-isnanl.h: Include float.h.
103093         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
103095 2007-06-05  Bruno Haible  <bruno@clisp.org>
103097         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
103098         also the %a / %A. Handle the %a / %A code before this extra handling.
103100 2007-06-05  Bruno Haible  <bruno@clisp.org>
103102         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
103103         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
103105 2007-06-05  Bruno Haible  <bruno@clisp.org>
103107         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
103108         typo in variable name.
103110 2007-06-05  Eric Blake  <ebb9@byu.net>
103112         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
103113         Reported by Simon Josefsson.
103115 2007-06-04  Bruno Haible  <bruno@clisp.org>
103117         Avoid test failures on some PowerPC platforms.
103118         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
103119         Define differently for PowerPC.
103120         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
103121         Reported by Gary V. Vaughan <gary@gnu.org>.
103123 2007-06-02  Bruno Haible  <bruno@clisp.org>
103125         Fix test-stdint failure on FreeBSD/ia64.
103126         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
103127         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
103128         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
103129         * doc/headers/stdint.texi: Update.
103131 2007-06-01  Bruno Haible  <bruno@clisp.org>
103133         * tests/test-binary-io.c (main): Pass a third argument to open().
103134         Reported by Gary V. Vaughan <gary@gnu.org>.
103136 2007-06-01  Bruno Haible  <bruno@clisp.org>
103138         * doc/functions/frexpl.texi: Update for mingw.
103140 2007-06-01  Bruno Haible  <bruno@clisp.org>
103142         * tests/test-lseek.c (main): Disable test of errno for invalid third
103143         argument.
103144         * doc/functions/lseek.texi: Update.
103145         Reported by Gary V. Vaughan <gary@gnu.org>.
103147 2007-05-28  Bruno Haible  <bruno@clisp.org>
103149         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
103151 2007-05-31  Eric Blake  <ebb9@byu.net>
103153         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
103154         cross compiling.
103156 2007-05-30  Eric Blake  <ebb9@byu.net>
103157         and Bruno Haible  <bruno@clisp.org>
103159         Work around mingw test failures exposed by m4-1.4.9b.
103160         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
103161         * tests/test-unistd.c: Disable uid_t and git_t tests for the
103162         moment.
103164 2007-05-30  Bruno Haible  <bruno@clisp.org>
103166         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
103167         assuming that they are closed. Needed on HP-UX 11.
103169 2007-05-29  Bruno Haible  <bruno@clisp.org>
103171         Fix a problem with #include_next.
103172         * lib/dirent_.h: Split the double-inclusion guard.
103173         * lib/fcntl_.h: Likewise.
103174         * lib/float_.h: Likewise.
103175         * lib/iconv_.h: Likewise.
103176         * lib/inttypes_.h: Likewise.
103177         * lib/locale_.h: Likewise.
103178         * lib/math_.h: Likewise.
103179         * lib/netinet_in_.h: Likewise.
103180         * lib/search_.h: Likewise.
103181         * lib/signal_.h: Likewise.
103182         * lib/stdint_.h: Likewise.
103183         * lib/stdio_.h: Likewise.
103184         * lib/stdlib_.h: Likewise.
103185         * lib/string_.h: Likewise.
103186         * lib/sys_select_.h: Likewise.
103187         * lib/sys_socket_.h: Likewise.
103188         * lib/sys_stat_.h: Likewise.
103189         * lib/sys_time_.h: Likewise.
103190         * lib/sysexits_.h: Likewise.
103191         * lib/time_.h: Likewise.
103192         * lib/unistd_.h: Likewise.
103193         * lib/wchar_.h: Likewise.
103194         * lib/wctype_.h: Likewise.
103196 2007-05-29  Bruno Haible  <bruno@clisp.org>
103198         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
103199         for the moment.
103201 2007-05-29  Bruno Haible  <bruno@clisp.org>
103203         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
103204         invocation.
103205         Reported by Eric Blake.
103207 2007-05-29  Bruno Haible  <bruno@clisp.org>
103209         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
103210         compiling case.
103212 2007-05-29  Eric Blake  <ebb9@byu.net>
103213             Bruno Haible  <bruno@clisp.org>
103215         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
103216         cross compiles.
103218 2007-05-28  Eric Blake  <ebb9@byu.net>
103220         * modules/closein-tests (test_closein_LDADD): Support test on
103221         cygwin with libtool.
103223 2007-05-28  Bruno Haible  <bruno@clisp.org>
103225         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
103226         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
103227         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
103228         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
103229         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
103230         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
103231         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
103232         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
103233         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
103235 2007-05-28  Eric Blake  <ebb9@byu.net>
103237         Unconditionally include <config.h> in unit tests.
103238         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
103239         * tests/test-allocsa.c, tests/test-arcfour.c,
103240         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
103241         tests/test-array_list.c, tests/test-array_oset.c,
103242         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
103243         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
103244         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
103245         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
103246         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
103247         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
103248         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
103249         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
103250         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
103251         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
103252         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
103253         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
103254         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
103255         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
103256         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
103257         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
103258         test-md5.c, test-memmem.c, test-printf-posix.c,
103259         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
103260         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
103261         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
103262         test-strcasestr.c, test-striconv.c, test-striconveh.c,
103263         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
103264         test-vasnprintf-posix2.c, test-vasnprintf.c,
103265         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
103266         test-vfprintf-posix.c, test-vprintf-posix.c,
103267         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
103268         test-xvasprintf.c: Likewise.
103270 2007-05-28  Bruno Haible  <bruno@clisp.org>
103272         * gnulib-tool (func_import): Remember the --with-tests command-line
103273         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
103274         Reported by Eric Blake.
103276 2007-05-28  Bruno Haible  <bruno@clisp.org>
103278         * modules/ftell-tests: New file.
103279         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
103280         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
103282         * lib/ftell.c: New file.
103283         * modules/ftell: New file.
103284         * m4/ftell.m4: New file.
103285         * doc/functions/ftell.texi: Update.
103286         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
103287         REPLACE_FTELL.
103288         * lib/stdio_.h (rpl_ftell): New declaration.
103289         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
103290         REPLACE_FTELL.
103292 2007-05-28  Eric Blake  <ebb9@byu.net>
103294         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
103296 2007-05-28  Bruno Haible  <bruno@clisp.org>
103298         * modules/fseek-tests: New file.
103299         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
103300         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
103302         * lib/fseek.c: New file.
103303         * modules/fseek: New file.
103304         * m4/fseek.m4: New file.
103305         * doc/functions/fseek.texi: Update.
103306         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
103307         REPLACE_FSEEK.
103308         * lib/stdio_.h (rpl_fseek): New declaration.
103309         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
103310         REPLACE_FSEEK.
103312 2007-05-28  Bruno Haible  <bruno@clisp.org>
103314         * lib/stdio_.h (fflush): More comments.
103316 2007-05-28  Bruno Haible  <bruno@clisp.org>
103318         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
103319         runtime test.
103321 2007-05-28  Eric Blake  <ebb9@byu.net>
103323         Improve lseek module.
103324         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
103325         * lib/unistd_.h (lseek): Scale back link warning message.
103326         * tests/test-lseek.c: Beef up test.
103327         * tests/test-lseek.sh: Exercise more facets of lseek.
103328         Reported by Bruno Haible.
103330 2007-05-28  Bruno Haible  <bruno@clisp.org>
103332         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
103333         to define.
103335 2007-05-27  Bruno Haible  <bruno@clisp.org>
103337         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
103339 2007-05-27  Bruno Haible  <bruno@clisp.org>
103341         * modules/openmp: New file.
103342         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
103343         Noah Misch.
103345 2007-05-26  Bruno Haible  <bruno@clisp.org>
103347         * modules/chdir-long (Depends-on): Add fchdir.
103348         * modules/chdir-safer (Depends-on): Likewise.
103349         * modules/fts (Depends-on): Likewise.
103350         * modules/fts-lgpl (Depends-on): Likewise.
103351         * modules/openat (Depends-on): Likewise.
103352         * modules/savewd (Depends-on): Likewise.
103354 2007-05-24  Eric Blake  <ebb9@byu.net>
103356         Fix lseek on mingw.
103357         * modules/lseek: New module.
103358         * m4/lseek.m4: New file.
103359         * lib/lseek.c: New file.
103360         * modules/lseek-tests: New file.
103361         * tests/test-lseek.c: New file.
103362         * tests/test-lseek.sh: New file.
103363         * MODULES.html.sh: Document lseek module.
103364         * modules/fflush (Depends-on): Add lseek, fseeko.
103365         * modules/fseeko (Depends-on): Likewise.
103366         * modules/ftello (Depends-on): Likewise.
103367         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
103368         broken.
103369         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
103370         broken.
103371         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
103372         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
103373         * lib/ftello.c (rpl_ftello): Likewise.
103374         * tests/test-fseeko.c (main): Test this.
103375         * tests/test-fseeko.sh: Likewise.
103376         * tests/test-ftello.c (main): Likewise.
103377         * tests/test-ftello.sh: Likewise.
103378         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
103379         implies replacing fseek.
103380         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
103381         HAVE_FTELLO.
103382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
103383         * modules/unistd (Makefile.am): Likewise.
103384         * lib/unistd_.h (lseek): Declare a replacement.
103385         * doc/functions/lseek.texi (lseek): Document this fix.
103386         * doc/functions/fseek.texi (fseek): Likewise.
103387         * doc/functions/ftell.texi (ftell): Likewise.
103389 2007-05-24  Bruno Haible  <bruno@clisp.org>
103391         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
103392         in the printed representation of a NaN.
103393         * tests/test-vasprintf-posix.c (test_function): Likewise.
103394         * tests/test-snprintf-posix.h (test_function): Likewise.
103395         * tests/test-sprintf-posix.h (test_function): Likewise.
103396         Reported by Eric Blake.
103398 2007-05-23  Eric Blake  <ebb9@byu.net>
103400         Fix fseeko/ftello on cygwin 1.5.24.
103401         * doc/functions/fseeko.texi (fseeko): Document the fix.
103402         * doc/functions/ftello.texi (ftello): Document the fix.
103403         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
103404         * doc/functions/stdout.text (stdout): New file.
103405         * doc/functions/stderr.text (stderr): New file.
103406         * doc/gnulib.texi (Function Substitutes): Use new files.
103407         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
103408         prior to 1.7.0.
103409         * tests/test-ftello.c (main): Likewise for ftello.
103410         * tests/test-fseeko.sh: New file.
103411         * tests/test-ftello.sh: New file.
103412         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
103413         with seekable stdin.
103414         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
103415         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
103416         (gl_REPLACE_FSEEKO): New macro.
103417         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
103418         * modules/fseeko (Files): Distribute fseeko.c.
103419         * modules/ftello (Files): Distribute ftello.c.
103420         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
103421         mode.
103422         * lib/ftello.c (rpl_ftello): New file.
103423         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
103424         fseeko, ftello.
103425         (gl_STDIN_LARGE_OFFSET): New macro.
103426         * modules/stdio (Makefile.am): Perform the replacement.
103427         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
103429 2007-05-23  Bruno Haible  <bruno@clisp.org>
103431         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
103432         GNULIB_POSIXCHECK is defined.
103434 2007-05-21  Bruno Haible  <bruno@clisp.org>
103436         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
103437         Check also the output for NaN arguments. When cross-compiling, guess
103438         no on IRIX.
103439         * lib/vasnprintf.c: Update comments.
103440         * tests/test-vasnprintf-posix.c (strisnan): New function.
103441         (test_function): Use it.
103442         * tests/test-vasprintf-posix.c (strisnan): New function.
103443         (test_function): Use it.
103444         * tests/test-snprintf-posix.h (strisnan): New function.
103445         (test_function): Use it.
103446         * tests/test-sprintf-posix.h (strisnan): New function.
103447         (test_function): Use it.
103448         Reported by Eric Blake.
103450 2007-05-20  Bruno Haible  <bruno@clisp.org>
103452         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
103453         numbers that fails on BeOS.
103454         * doc/functions/frexpl.texi: Update.
103456 2007-05-20  Jim Meyering  <jim@meyering.net>
103458         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
103459         forced upon us by glibc-2.6.
103461 2007-05-20  Bruno Haible  <bruno@clisp.org>
103463         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
103464         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
103465         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
103466         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
103467         NEED_PRINTF_INFINITE.
103468         (is_infinitel): New function.
103469         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
103470         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
103471         gl_PREREQ_VASNPRINTF_INFINITE.
103472         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
103473         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
103474         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
103475         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
103476         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
103477         gl_PREREQ_VASNPRINTF_INFINITE.
103478         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
103479         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103480         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103481         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103482         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103483         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103484         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103485         * doc/functions/fprintf.texi: Update.
103486         * doc/functions/printf.texi: Update.
103487         * doc/functions/snprintf.texi: Update.
103488         * doc/functions/sprintf.texi: Update.
103489         * doc/functions/vfprintf.texi: Update.
103490         * doc/functions/vprintf.texi: Update.
103491         * doc/functions/vsnprintf.texi: Update.
103492         * doc/functions/vsprintf.texi: Update.
103494 2007-05-20  Bruno Haible  <bruno@clisp.org>
103496         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
103497         was not found in libc.
103498         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
103500 2007-05-20  Bruno Haible  <bruno@clisp.org>
103502         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
103503         printed as "-nan" instead of "nan".
103504         * tests/test-vasprintf-posix.c (test_function): Likewise.
103505         * tests/test-snprintf-posix.h (test_function): Likewise.
103506         * tests/test-sprintf-posix.h (test_function): Likewise.
103507         Needed for HP-UX 11.
103509 2007-05-20  Jim Meyering  <jim@meyering.net>
103511         Fix buggy test for the fchownat-deref bug.
103512         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
103513         symlink required for the run-test.  Without it, this test would
103514         always declare that fchownat doesn't work, and client code would
103515         unnecessarily use the replacement function with fixed libc.
103516         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
103517         Reported by Greg Schafer.
103519 2007-05-19  Bruno Haible  <bruno@clisp.org>
103521         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
103522         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
103523         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
103524         Needed for IRIX 6.5 and Solaris 2.5.1.
103526 2007-05-19  Bruno Haible  <bruno@clisp.org>
103528         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
103529         (test_function): Skip tests involving -0.0 on platforms where
103530         -0.0 = 0.0.
103531         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
103532         (test_function): Skip tests involving -0.0 on platforms where
103533         -0.0 = 0.0.
103534         * tests/test-snprintf-posix.h (have_minus_zero): New function.
103535         (test_function): Skip tests involving -0.0 on platforms where
103536         -0.0 = 0.0.
103537         * tests/test-sprintf-posix.h (have_minus_zero): New function.
103538         (test_function): Skip tests involving -0.0 on platforms where
103539         -0.0 = 0.0.
103540         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
103541         tests.
103542         * tests/test-printf-posix.h (test_function): Likewise.
103543         * tests/test-printf-posix.output: Remove all -0.0 related results.
103544         Needed for IRIX 6.5.
103546 2007-05-19  Bruno Haible  <bruno@clisp.org>
103548         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
103549         printed as "nan0x7fffffff" instead of "nan".
103550         * tests/test-vasprintf-posix.c (test_function): Likewise.
103551         * tests/test-snprintf-posix.h (test_function): Likewise.
103552         * tests/test-sprintf-posix.h (test_function): Likewise.
103553         * tests/test-fprintf-posix.h (NaN): Remove macro.
103554         (test_function): Remove all NaN related tests.
103555         * tests/test-printf-posix.h (NaN): Remove macro.
103556         (test_function): Remove all NaN related tests.
103557         * tests/test-printf-posix.output: Remove all NaN related results.
103558         Needed for IRIX 6.5.
103560 2007-05-19  Bruno Haible  <bruno@clisp.org>
103562         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
103563         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
103565 2007-05-19  Bruno Haible  <bruno@clisp.org>
103567         * lib/float_.h: New file.
103568         * m4/float_h.m4: New file.
103569         * modules/float: New file.
103570         * modules/isnanl (Dependencies): Add float.
103571         * modules/isnanl-nolibm (Dependencies): Likewise.
103572         * modules/mathl (Dependencies): Likewise.
103573         * modules/printf-frexpl (Dependencies): Likewise.
103574         * modules/signbit (Dependencies): Likewise.
103575         * modules/vasnprintf (Dependencies): Likewise.
103576         * doc/headers/float.texi: Update.
103578 2007-05-19  Jim Meyering  <jim@meyering.net>
103580         * lib/utimens.c (gl_futimens): Rename from futimens,
103581         now that glibc-2.6 declares futimens.
103582         * lib/utimens.h: Likewise.
103584 2007-05-19  Bruno Haible  <bruno@clisp.org>
103586         Avoid test failures on mingw.
103587         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
103588         * tests/test-printf-posix.sh: Likewise.
103589         * tests/test-vfprintf-posix.sh: Likewise.
103590         * tests/test-vprintf-posix.sh: Likewise.
103592 2007-05-19  Bruno Haible  <bruno@clisp.org>
103594         Fix *printf result for NaN, Inf, -0.0 on mingw.
103595         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
103596         * lib/vasnprintf.c: Include math.h and isnan.h.
103597         (is_infinite_or_zero): New function.
103598         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
103599         values in the %f, %F, %e, %E, %g, %G directives.
103600         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
103601         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
103602         gl_PRINTF_INFINITE and test its result. Invoke
103603         gl_PREREQ_VASNPRINTF_INFINITE.
103604         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
103605         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103606         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103607         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103608         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103609         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103610         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103611         * doc/functions/fprintf.texi: Update.
103612         * doc/functions/printf.texi: Update.
103613         * doc/functions/snprintf.texi: Update.
103614         * doc/functions/sprintf.texi: Update.
103615         * doc/functions/vfprintf.texi: Update.
103616         * doc/functions/vprintf.texi: Update.
103617         * doc/functions/vsnprintf.texi: Update.
103618         * doc/functions/vsprintf.texi: Update.
103620 2007-05-19  Bruno Haible  <bruno@clisp.org>
103622         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
103623         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
103624         Instead of multiplying with 10^k, set extra_zeroes to k.
103625         (scale10_round_long_double): Remove function.
103627 2007-05-18  Bruno Haible  <bruno@clisp.org>
103629         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
103630         introduced on 2007-05-06.
103632 2007-05-18  Bruno Haible  <bruno@clisp.org>
103634         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
103635         %g directives.
103636         * tests/test-vasprintf-posix.c (test_function): Likewise.
103637         * tests/test-snprintf-posix.h (test_function): Likewise.
103638         * tests/test-sprintf-posix.h (test_function): Likewise.
103640 2007-05-18  Bruno Haible  <bruno@clisp.org>
103642         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
103643         (strmatch): New function.
103644         (test_function): Test the %f directive on numbers of various exponents.
103645         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
103646         (strmatch): New function.
103647         (test_function): Test the %f directive on numbers of various exponents.
103648         * tests/test-snprintf-posix.h (strmatch): New function.
103649         (test_function): Test the %f directive on numbers of various exponents.
103650         * tests/test-sprintf-posix.h (strmatch): New function.
103651         (test_function): Test the %f directive on numbers of various exponents.
103652         * tests/test-snprintf-posix.c (SIZEOF): New macro.
103653         * tests/test-sprintf-posix.c (SIZEOF): New macro.
103654         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
103655         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
103657 2007-05-18  Bruno Haible  <bruno@clisp.org>
103659         Add support for 'long double' number output.
103660         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
103661         * lib/vasnprintf.c: Include math.h and float+.h.
103662         (mp_limb_t): New type.
103663         (GMP_LIMB_BITS): New macro.
103664         (mp_twolimb_t): New type.
103665         (GMP_TWOLIMB_BITS): New macro.
103666         (mpn_t): New type.
103667         (multiply, divide, convert_to_decimal, decode_long_double,
103668         scale10_round_long_double, scale10_round_decimal_long_double,
103669         floorlog10l): New functions.
103670         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
103671         for the %f, %F, %e, %E, %g, %G directives.
103672         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
103673         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
103674         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
103675         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
103676         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
103677         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103678         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103679         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103680         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103681         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103682         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103683         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
103684         * modules/snprintf-posix (Depends-on): Likewise.
103685         * modules/sprintf-posix (Depends-on): Likewise.
103686         * modules/vasnprintf-posix (Depends-on): Likewise.
103687         * modules/vasprintf-posix (Depends-on): Likewise.
103688         * modules/vfprintf-posix (Depends-on): Likewise.
103689         * modules/vsnprintf-posix (Depends-on): Likewise.
103690         * modules/vsprintf-posix (Depends-on): Likewise.
103691         * modules/vasnprintf (Files): Add lib/float+.h.
103692         * doc/functions/fprintf.texi: Update.
103693         * doc/functions/printf.texi: Update.
103694         * doc/functions/snprintf.texi: Update.
103695         * doc/functions/sprintf.texi: Update.
103696         * doc/functions/vfprintf.texi: Update.
103697         * doc/functions/vprintf.texi: Update.
103698         * doc/functions/vsnprintf.texi: Update.
103699         * doc/functions/vsprintf.texi: Update.
103701 2007-05-18  Bruno Haible  <bruno@clisp.org>
103703         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
103705 2007-05-18  Bruno Haible  <bruno@clisp.org>
103707         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
103708         for printing 64-bit integers. Needed for mingw.
103710 2007-05-18  Bruno Haible  <bruno@clisp.org>
103712         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
103713         gl_FUNC_FREXPL_WORKS.
103714         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
103716 2007-05-18  Bruno Haible  <bruno@clisp.org>
103718         * modules/frexpl-nolibm-tests: New file.
103720         * modules/frexpl-nolibm: New file.
103721         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
103723 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
103725         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
103726         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
103727         GCC 4.2, which otherwise issues a lot of warnings.
103728         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
103729         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
103730         Likewise.
103731         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
103732         * modules/iconv_open (iconv.h): Likewise.
103733         * modules/locale (locale.h): Likewise.
103734         * modules/netinet_in (netinet/in.h): Likewise.
103735         * modules/sys_select (sys_select.h): Likewise.
103736         * modules/sys_socket (sys/socket.h): Likewise.
103737         * modules/sys_stat (sys/stat.h): Likewise.
103738         * modules/sysexits (sysexits.h): Likewise.
103739         * modules/unistd (unistd.h): Likewise.
103741 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103743         * modules/closein-tests (Makefile.am): Distribute
103744         `test-closein.sh'.
103746 2007-05-17  Bruno Haible  <bruno@clisp.org>
103748         * tests/test-printf-posix.output: Renamed from
103749         tests/test-fprintf-posix.out.
103750         * modules/fprintf-posix-tests: Update.
103751         * modules/printf-posix-tests: Update.
103752         * modules/vfprintf-posix-tests: Update.
103753         * modules/vprintf-posix-tests: Update.
103754         * tests/test-fprintf-posix.sh: Update.
103755         * tests/test-printf-posix.sh: Update.
103756         * tests/test-vfprintf-posix.sh: Update.
103757         * tests/test-vprintf-posix.sh: Update.
103758         Reported by Ralf Wildenhues.
103760 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
103762         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
103763         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
103764         GCC 4.2, which otherwise issues a lot of warnings.
103765         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
103766         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
103767         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
103768         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
103769         it should no longer be needed.
103770         * lib/string_.h: Likewise.
103771         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
103772         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
103773         * modules/inttypes (inttypes.h): Likewise.
103774         * modules/math (math.h): Likewise.
103775         * modules/search (search.h): Likewise.
103776         * modules/signal (signal.h): Likewise.
103777         * modules/stdint (stdint.h): Likewise.
103778         * modules/stdio (stdio.h): Likewise.
103779         * modules/stdlib (stdlib.h): Likewise.
103780         * modules/string (string.h): Likewise.
103781         * modules/sys_time (sys/time.h): Likewise.
103782         * modules/time (time.h): Likewise.
103783         * modules/wchar (wchar.h): Likewise.
103784         * modules/wctype (wtype.h): Likewise.
103786 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
103788         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
103790 2007-05-13  Bruno Haible  <bruno@clisp.org>
103792         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
103793         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
103794         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
103795         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
103796         (gl_PREREQ_STRTOK_R): Don't require it here.
103798 2007-05-13  Bruno Haible  <bruno@clisp.org>
103800         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
103801         when used in C++ mode.
103803 2007-05-12  Bruno Haible  <bruno@clisp.org>
103805         * lib/linebuffer.h: Tweak doc.
103806         * lib/linebuffer.c: Likewise.
103808 2007-05-12  James Youngman  <jay@gnu.org>
103810         * lib/linebuffer.c (readlinebuffer_delim): New function,
103811         like readlinebuffer, but use a caller-specified delimiter.
103812         (readlinebuffer): Just call readlinebuffer_delim with '\n'
103813         as the delimiter.
103814         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
103816 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
103818         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
103819         * modules/openat (Files): Remove openat-die.c.
103820         (Depends-on): Add openat-die.
103821         * modules/openat-die: New module.
103823 2007-05-06  Bruno Haible  <bruno@clisp.org>
103825         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
103826         Update with info about Cygwin.
103827         * doc/functions/fprintf.texi: Update.
103828         * doc/functions/printf.texi: Update.
103829         * doc/functions/snprintf.texi: Update.
103830         * doc/functions/sprintf.texi: Update.
103831         * doc/functions/vfprintf.texi: Update.
103832         * doc/functions/vprintf.texi: Update.
103833         * doc/functions/vsnprintf.texi: Update.
103834         * doc/functions/vsprintf.texi: Update.
103835         Reported by Eric Blake.
103837 2007-05-06  Bruno Haible  <bruno@clisp.org>
103839         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
103840         padding ourselves for the floating-point directives.
103841         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
103842         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
103843         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
103844         gl_PRINTF_FLAG_ZERO and test its result. Invoke
103845         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
103846         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103847         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_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         * tests/test-snprintf-posix.h (test_function): Also check the width
103854         and some flags in the %f directive.
103855         * tests/test-sprintf-posix.h (test_function): Likewise.
103856         * tests/test-vasnprintf-posix.c (test_function): Likewise.
103857         * tests/test-vasprintf-posix.c (test_function): Likewise.
103858         * doc/functions/fprintf.texi: Update.
103859         * doc/functions/printf.texi: Update.
103860         * doc/functions/snprintf.texi: Update.
103861         * doc/functions/sprintf.texi: Update.
103862         * doc/functions/vfprintf.texi: Update.
103863         * doc/functions/vprintf.texi: Update.
103864         * doc/functions/vsnprintf.texi: Update.
103865         * doc/functions/vsprintf.texi: Update.
103867 2007-05-06  Bruno Haible  <bruno@clisp.org>
103869         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
103870         pass the ' flag character to sprintf or snprintf.
103871         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
103872         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
103873         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
103874         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
103875         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
103876         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103877         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
103878         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103879         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103880         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103881         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103882         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103883         * tests/test-snprintf-posix.h (test_function): Also check the grouping
103884         flag.
103885         * tests/test-sprintf-posix.h (test_function): Likewise.
103886         * tests/test-vasnprintf-posix.c (test_function): Likewise.
103887         * tests/test-vasprintf-posix.c (test_function): Likewise.
103888         * doc/functions/fprintf.texi: Update.
103889         * doc/functions/printf.texi: Update.
103890         * doc/functions/snprintf.texi: Update.
103891         * doc/functions/sprintf.texi: Update.
103892         * doc/functions/vfprintf.texi: Update.
103893         * doc/functions/vprintf.texi: Update.
103894         * doc/functions/vsnprintf.texi: Update.
103895         * doc/functions/vsprintf.texi: Update.
103897 2007-05-01  Bruno Haible  <bruno@clisp.org>
103899         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
103901 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
103903         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
103904         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
103906 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
103908         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
103909         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
103910         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
103912 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
103914         * lib/argp-help.c (struct hol_entry): New member `ord'.
103915         (HOL_ENTRY_PTRCMP): Use ord for comparison
103916         (hol_sort): Initialize ord.
103918 2007-05-01  Bruno Haible  <bruno@clisp.org>
103920         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
103921         Reported by Eric Blake.
103922         * doc/gnulib.texi (Function Substitutes): Update.
103924 2007-05-01  Bruno Haible  <bruno@clisp.org>
103926         * doc/functions.texi: Remove file, now redundant through
103927         doc/functions/*.texi.
103929 2007-05-01  Bruno Haible  <bruno@clisp.org>
103931         * modules/argp (Depends-on): Add sleep.
103933 2007-05-01  Bruno Haible  <bruno@clisp.org>
103935         * modules/sleep-tests: New file.
103936         * tests/test-sleep.c: New file.
103938         * modules/sleep: New file.
103939         * lib/sleep.c: New file.
103940         * m4/sleep.m4: New file.
103941         * lib/unistd_.h (sleep): New declaration.
103942         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
103943         HAVE_SLEEP.
103944         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
103945         * doc/functions/sleep.texi: Document the sleep module.
103947 2007-05-01  Bruno Haible  <bruno@clisp.org>
103949         * lib/sigprocmask.h: Remove file.
103950         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
103951         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
103952         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
103953         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
103954         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
103955         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
103956         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
103957         HAVE_SIGSET_T as a shell variable.
103958         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
103959         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
103960         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
103961         (Depends-on): Add signal. Remove verify.
103962         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
103963         (Include): Mention <signal.h> instead of sigprocmask.h.
103964         * NEWS: Mention the change.
103965         * lib/fatal-signal.c: Don't include sigprocmask.h.
103967 2007-05-01  Bruno Haible  <bruno@clisp.org>
103969         * modules/signal: New file.
103970         * lib/signal_.h: New file.
103971         * m4/signal_h.m4: New file.
103973 2007-05-01  Bruno Haible  <bruno@clisp.org>
103975         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
103976         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
103977         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
103978         HAVE_WCTYPE_CTMP_BUG into wctype.h.
103980 2007-05-01  Bruno Haible  <bruno@clisp.org>
103982         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
103983         configure time.
103984         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
103985         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
103986         * modules/sys_stat (Makefile.am): Substitute their values into
103987         sys/stat.h.
103989 2007-05-01  Bruno Haible  <bruno@clisp.org>
103991         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
103992         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
103993         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
103995 2007-05-01  Bruno Haible  <bruno@clisp.org>
103997         * doc/header/assert.texi: Undo last change: don't mention the gnulib
103998         'assert' module here.
104000 2007-05-01  Bruno Haible  <bruno@clisp.org>
104002         * doc/functions/*.texi: New files.
104003         * doc/functions/google-ranking.txt: New file.
104004         * doc/gnulib.texi (Function Substitutes): New chapter.
104005         (ctime, inet_ntoa): Remove sections.
104006         * doc/ctime.texi: Remove file.
104007         * doc/inet_ntoa.texi: Remove file.
104008         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
104009         dependencies.
104010         (%.info): New rule, specifying a --reference-limit.
104012 2007-05-01  Bruno Haible  <bruno@clisp.org>
104014         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
104016 2007-05-01  Bruno Haible  <bruno@clisp.org>
104018         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
104019         the portability of 'mkdir' to mingw systems.
104021 2007-05-01  Bruno Haible  <bruno@clisp.org>
104023         * doc/headers/google-ranking.txt: New file.
104025 2007-04-30  Eric Blake  <ebb9@byu.net>
104027         Prefer fseeko to fseek.
104028         * modules/getpass (Depends-on): Add fseeko.
104029         * lib/getpass.c (getpass): Use fseeko, not fseek.
104031 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
104033         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
104034         assumes the sorting is stable, while most qsort implementations
104035         are not.  Use argument addresses to ensure they never compare as
104036         equal.
104038         * tests/test-argp-2.sh (usage-indent test): Fix output
104039         (func_compare): Restore diff options
104040         * tests/test-argp.c: Restore #include "progname.h"
104042 2007-04-29  Bruno Haible  <bruno@clisp.org>
104044         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
104045         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104046         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
104047         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104048         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
104049         (configure.ac): Define CHECK_SNPRINTF_POSIX.
104050         (TESTS, check_PROGRAMS): Add test-snprintf.
104051         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
104052         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
104053         (TESTS, check_PROGRAMS): Add test-vsnprintf.
104054         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
104055         assertions that fail on HP-UX, OSF/1, or IRIX.
104056         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
104058 2007-04-29  Bruno Haible  <bruno@clisp.org>
104060         * MODULES.html.sh (posix_functions): Remove 'contents'.
104062 2007-04-29  Karl Berry  <karl@gnu.org>
104064         * config/srclist.txt (gendocs_template_min): new entry.
104066 2007-04-29  Bruno Haible  <bruno@clisp.org>
104068         Work around fpurge bug on BSD systems.
104069         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
104070         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
104071         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
104072         fpurge to rpl_fpurge if the system already has this function.
104073         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
104074         the case where the system already has this function. Correct invariants
104075         on BSD systems.
104076         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
104077         BSD systems.
104079 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
104081         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
104082         proposed by Sven Verdoolaege.
104084         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
104085         options.
104086         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
104087         (usage and help tests): Update
104089 2007-04-29  Bruno Haible  <bruno@clisp.org>
104091         * tests/test-fflush.c (main): Use a file of size 17, not 10.
104092         Print more information in case of failure. Disable a test on BeOS.
104094 2007-04-29  Bruno Haible  <bruno@clisp.org>
104096         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
104097         This helps debugging on systems on which no gdb is available.
104099 2007-04-29  Bruno Haible  <bruno@clisp.org>
104101         * lib/freading.h: Improve comments.
104102         * lib/fwriting.h: Likewise.
104103         * tests/test-freading.c (main): Don't check freading immediately after
104104         repositioning. Needed for glibc.
104106 2007-04-29  Bruno Haible  <bruno@clisp.org>
104108         * lib/freading.c (freading): Trivial simplification.
104110 2007-04-28  Bruno Haible  <bruno@clisp.org>
104112         * tests/test-fwriting.c (main): Also test the interaction between
104113         fflush and fwriting.
104114         * modules/fwriting-tests (Depends-on): Add fflush.
104116         * tests/test-freading.c (main): Also test the interaction between
104117         fflush and freading.
104118         * modules/freading-tests (Depends-on): Add fflush.
104120 2007-04-28  Bruno Haible  <bruno@clisp.org>
104122         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
104123         fseeko and ftello.
104124         Suggested by Eric Blake.
104126 2007-04-28  Jim Meyering  <jim@meyering.net>
104128         Avoid false-negative in gl_STDINT_H's C99 conformance test.
104129         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
104130         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
104132 2007-04-27  Eric Blake  <ebb9@byu.net>
104134         * doc/headers/assert.texi (assert.h): Document assert module use.
104136 2007-04-27  Bruno Haible  <bruno@clisp.org>
104138         * doc/headers/*.texi: New files.
104139         * doc/gnulib.texi (Header File Substitutes): New chapter.
104140         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
104141         dependencies.
104142         (standards.info ,standards.html, standards.dvi): Update dependencies.
104143         (mostlyclean, clean): New targets.
104145 2007-04-27  Bruno Haible  <bruno@clisp.org>
104147         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
104148         * modules/sysexits (Files, Makefile.am): Update.
104150         * lib/sys_socket_.h: Renamed from lib/socket_.h.
104151         * modules/sys_socket (Files, Makefile.am): Update.
104153         * lib/sys_stat_.h: Renamed from lib/stat_.h.
104154         * modules/sys_stat (Files, Makefile.am): Update.
104156 2007-04-27  Eric Blake  <ebb9@byu.net>
104158         * lib/freading.h: Improve comments.
104159         * lib/fwriting.h: Likewise.
104160         * lib/fflush.c: Likewise.
104162         Fix closein for mingw.
104163         * modules/closein-tests: Add tests for closein.
104164         * tests/test-closein.c: New file.
104165         * tests/test-closein.sh: Likewise.
104166         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
104167         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
104169 2007-04-27  Bruno Haible  <bruno@clisp.org>
104171         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
104172         version is < 6.
104173         * lib/math_.h [__DECC]: Likewise.
104174         * lib/stdio_.h [__DECC]: Likewise.
104175         * lib/stdlib_.h [__DECC]: Likewise.
104176         * lib/string_.h [__DECC]: Likewise.
104177         * lib/time_.h [__DECC]: Likewise.
104178         * lib/wchar_.h [__DECC]: Likewise.
104179         * lib/wctype_.h [__DECC]: Likewise.
104181 2007-04-27  Bruno Haible  <bruno@clisp.org>
104183         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
104185 2007-04-27  Bruno Haible  <bruno@clisp.org>
104187         * lib/fflush.c: Add comments.
104188         * modules/fpurge-tests (Depends-on): Add fflush.
104189         * modules/freadable-tests (Depends-on): Likewise.
104190         * modules/fwritable-tests (Depends-on): Likewise.
104192 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
104194         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
104195         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
104196         Report by Bruno Haible <bruno@clisp.org>.
104198 2007-04-26  Eric Blake  <ebb9@byu.net>
104200         Fix fflush on mingw.
104201         * modules/fflush (Depends-on): Add freading.
104202         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
104203         but unread data.
104205 2007-04-26  Eric Blake  <ebb9@byu.net>
104206         and Bruno Haible  <bruno@clisp.org>
104208         Implement freading and fwriting.
104209         * lib/freading.c: New file.
104210         * lib/freading.h: Likewise.
104211         * m4/freading.m4: Likewise.
104212         * modules/freading: Likewise.
104213         * modules/freading-tests: Likewise.
104214         * tests/test-freading.c: Likewise.
104215         * lib/fwriting.c: New file.
104216         * lib/fwriting.h: Likewise.
104217         * m4/fwriting.m4: Likewise.
104218         * modules/fwriting: Likewise.
104219         * modules/fwriting-tests: Likewise.
104220         * tests/test-fwriting.c: Likewise.
104221         * MODULES.html.sh (File stream based Input/Output): Mention them.
104223 2007-04-26  Bruno Haible  <bruno@clisp.org>
104225         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
104226         'long' when we assume it.
104227         Suggested by Eric Blake.
104229 2007-04-26  Bruno Haible  <bruno@clisp.org>
104231         Ensure fseeko, ftello are declared on glibc systems.
104232         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
104233         * modules/fseeko (configure.ac-early): Likewise.
104234         * modules/ftello (configure.ac-early): Likewise.
104235         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
104236         AC_FUNC_FSEEKO for this.
104237         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
104238         (gl_CHECK_FSEEKO): Remove macro.
104240 2007-04-26  Bruno Haible  <bruno@clisp.org>
104242         * tests/test-fflush.c (main): Also check the ftell result after
104243         fflush and fseek/fseeko.
104244         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
104245         file descriptor position cache in the stream.
104246         * lib/fseeko.c (rpl_fseeko): Likewise.
104248 2007-04-26  Bruno Haible  <bruno@clisp.org>
104250         * modules/fflush-tests (Depends-on): Add fseeko.
104252 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
104253             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104255         * lib/argz_.h: ensure error_t definition is obtained in same
104256         mechanism system argz.h would have.
104257         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
104258         argz facilities are known bad.  Err on the side of caution if
104259         cross-compiling.
104261 2007-04-25  Eric Blake  <ebb9@byu.net>
104263         * lib/fpurge.c (includes): Use stdlib.h for free.
104264         * tests/test-fflush.c (main): Also test fflush-fseeko.
104266 2007-04-25  Bruno Haible  <bruno@clisp.org>
104268         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
104269         * lib/fseeko.c: New file.
104270         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
104271         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
104272         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
104273         gl_FUNC_FSEEKO.
104274         (gl_FUNC_FSEEKO): Invoke it.
104275         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
104276         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
104277         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
104279 2007-04-25  Bruno Haible  <bruno@clisp.org>
104281         * modules/fflush (Depends-on): Add ftello.
104283 2007-04-25  Bruno Haible  <bruno@clisp.org>
104285         * modules/ftello-tests: New file.
104286         * tests/test-ftello.c: New file.
104288         * modules/ftello: New file.
104289         * m4/ftello.m4: New file.
104290         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
104291         HAVE_FTELLO.
104292         * lib/stdio_.h (ftello): New declaration.
104293         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
104294         HAVE_FTELLO.
104296 2007-04-25  Bruno Haible  <bruno@clisp.org>
104298         * modules/fseeko-tests: New file.
104299         * tests/test-fseeko.c: New file.
104301         * modules/fseeko: New file.
104302         * m4/fseeko.m4: New file.
104303         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
104304         HAVE_FSEEKO.
104305         * lib/stdio_.h (fseeko): New declaration.
104306         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
104307         HAVE_FSEEKO.
104309 2007-04-25  Bruno Haible  <bruno@clisp.org>
104311         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
104313 2007-04-25  Bruno Haible  <bruno@clisp.org>
104315         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
104316         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
104317         * tests/test-unistd.c: Likewise.
104318         * tests/test-fcntl.c: Likewise.
104320 2007-04-23  Eric Blake  <ebb9@byu.net>
104322         * lib/fflush.c: Fix missing include.
104323         Reported by Bruno Haible.
104325 2007-04-23  Bruno Haible  <bruno@clisp.org>
104327         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
104328         Reported by Eric Blake.
104330 2007-04-23  Bruno Haible  <bruno@clisp.org>
104332         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
104334 2007-04-23  Bruno Haible  <bruno@clisp.org>
104336         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
104338 2007-04-23  Bruno Haible  <bruno@clisp.org>
104340         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
104341         Needed on HP-UX 11.
104343 2007-04-16  Eric Blake  <ebb9@byu.net>
104345         Make fflush rely on fpurge.
104346         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
104347         open coding all variants.
104348         * modules/fflush (Depends-on): Add fpurge and unistd.
104349         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
104350         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
104352         Fix --with-tests compilation on cygwin.
104353         * modules/argmatch-tests (Makefile.am): List gnulib library first
104354         in LDADD.
104355         * modules/argp-tests (Makefile.am): Likewise.
104356         * modules/array-list-tests (Makefile.am): Likewise.
104357         * modules/array-oset-tests (Makefile.am): Likewise.
104358         * modules/avltree-list-tests (Makefile.am): Likewise.
104359         * modules/avltree-oset-tests (Makefile.am): Likewise.
104360         * modules/avltreehash-list-tests (Makefile.am): Likewise.
104361         * modules/carray-list-tests (Makefile.am): Likewise.
104362         * modules/dirname-tests (Makefile.am): Likewise.
104363         * modules/frexp-tests (Makefile.am): Likewise.
104364         * modules/isnanl-tests (Makefile.am): Likewise.
104365         * modules/linked-list-tests (Makefile.am): Likewise.
104366         * modules/linkedhash-list-tests (Makefile.am): Likewise.
104367         * modules/lock-tests (Makefile.am): Likewise.
104368         * modules/rbtree-list-tests (Makefile.am): Likewise.
104369         * modules/rbtree-oset-tests (Makefile.am): Likewise.
104370         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
104371         * modules/tls-tests (Makefile.am): Likewise.
104372         * modules/tsearch-tests (Makefile.am): Likewise.
104373         * modules/xvasprintf-tests (Makefile.am): Likewise.
104375         Fix fpurge for cygwin.
104376         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
104377         value.
104378         * modules/fpurge-tests (Depends-on): Clean up trash.
104380 2007-04-16  Simon Josefsson  <simon@josefsson.org>
104382         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
104384         * m4/autobuild.m4: Re-indent.
104386 2007-04-13  Bruno Haible  <bruno@clisp.org>
104388         * modules/fpurge-tests: New file.
104389         * tests/test-fpurge.c: New file.
104391         * modules/fpurge: New file.
104392         * lib/fpurge.h: New file.
104393         * lib/fpurge.c: New file.
104394         * m4/fpurge.m4: New file.
104396 2007-04-13  Bruno Haible  <bruno@clisp.org>
104398         * modules/fbufmode-tests: New file.
104399         * tests/test-fbufmode.c: New file.
104401         * modules/fbufmode: New file.
104402         * lib/fbufmode.h: New file.
104403         * lib/fbufmode.c: New file.
104404         * m4/fbufmode.m4: New file.
104406 2007-04-13  Bruno Haible  <bruno@clisp.org>
104408         * modules/fwritable-tests: New file.
104409         * tests/test-fwritable.c: New file.
104411         * modules/fwritable: New file.
104412         * lib/fwritable.h: New file.
104413         * lib/fwritable.c: New file.
104414         * m4/fwritable.m4: New file.
104416 2007-04-13  Bruno Haible  <bruno@clisp.org>
104418         * modules/freadable-tests: New file.
104419         * tests/test-freadable.c: New file.
104421         * modules/freadable: New file.
104422         * lib/freadable.h: New file.
104423         * lib/freadable.c: New file.
104424         * m4/freadable.m4: New file.
104426 2007-04-13  Bruno Haible  <bruno@clisp.org>
104428         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
104429         MOSTLYCLEANFILES.
104431 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
104433         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
104434         gzip bootstrap.conf to avoid dragging in i18n machinery.
104435         (gnulib_tool_option): Use it.
104437 2007-04-13  Bruno Haible  <bruno@clisp.org>
104439         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
104440         %F directives.
104441         * tests/test-vasprintf-posix.c (test_function): Likewise.
104442         * tests/test-snprintf-posix.h (test_function): Likewise.
104443         * tests/test-sprintf-posix.h (test_function): Likewise.
104444         * tests/test-fprintf-posix.h (test_function): Likewise.
104445         * tests/test-printf-posix.h (test_function): Likewise.
104446         * tests/test-fprintf-posix.out: Likewise.
104448 2007-04-13  Bruno Haible  <bruno@clisp.org>
104450         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
104451         * modules/tls-tests (configure.ac): Likewise.
104452         Reported by Arto C. Nirkko <anirkko@insel.ch>.
104454 2007-04-13  Bruno Haible  <bruno@clisp.org>
104456         * lib/tls.c (glthread_tls_get): Fix return type.
104457         Patch by Arto C. Nirkko <anirkko@insel.ch>.
104459 2007-04-12  Eric Blake  <ebb9@byu.net>
104461         * modules/gettime (Depends-on): Remove gettime.
104462         Reported by Dmitry V. Levin.
104464 2007-04-12  Bruno Haible  <bruno@clisp.org>
104466         * modules/fflush (Include): Mention <stdio.h>.
104467         * modules/strtoimax (Include): Mention <inttypes.h>.
104468         * modules/strtoumax (Include): Likewise.
104470 2007-04-12  Eric Blake  <ebb9@byu.net>
104472         * .cvsignore: New file.
104473         * .gitignore: Likewise.
104475 2007-04-12  Bruno Haible  <bruno@clisp.org>
104477         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
104478         not before, since $(LDADD) often contains libgnu.a.
104479         * modules/striconv-tests (test_striconv_LDADD): Likewise.
104480         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
104481         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
104482         Needed on Cygwin.
104484 2007-04-12  Eric Blake  <ebb9@byu.net>
104486         Work around glibc's failure to flush stdin on fclose.
104487         * lib/closein.c (close_stdin): Flush stdin before closing.
104489         Work around glibc's failure to reset seekable stdin on exit.
104490         * modules/closein: New module.
104491         * lib/closein.c: New file.
104492         * lib/closein.h: Likewise.
104493         * m4/closein.m4: Likewise.
104494         * MODULES.html.sh (File stream based Input/Output): Document it.
104496 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104498         * gnulib-tool: Rename generated 'autobuild' script to
104499         'do-autobuild' in --create-megatestdir output.
104501         * doc/gnulib.texi (Build robot for gnulib): Fix.
104503 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104505         * modules/sysexits (Depends-on): Add absolute-header.
104507 2007-04-12  Eric Blake  <ebb9@byu.net>
104509         No need to preserve errno on success.
104510         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
104511         Reported by Bruno Haible.
104513 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104515         * MODULES.html.sh (Support for maintaining and releasing
104516         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
104518 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104520         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
104522 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104524         * modules/autobuild: New module.
104526         * m4/autobuild.m4: New file.
104528 2007-04-11  Bruno Haible  <bruno@clisp.org>
104530         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
104531         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
104532         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
104533         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
104534         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
104535         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104536         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104537         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104538         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104539         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104540         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
104541         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104542         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104543         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
104544         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104545         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104546         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
104547         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104548         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104549         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
104550         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104551         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104552         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
104553         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104554         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104555         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
104556         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104557         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104558         Reported by Eric Blake.
104560 2007-04-11  Bruno Haible  <bruno@clisp.org>
104562         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
104564 2007-04-10  Bruno Haible  <bruno@clisp.org>
104566         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
104567         for NaN and Infinity. Needed on FreeBSD 6.1.
104568         * tests/test-vasnprintf-posix.c (test_function): Undo last change
104569         regarding results for "%010a" of Infinity and NaN.
104570         * tests/test-vasprintf-posix.c (test_function): Likewise.
104571         * tests/test-snprintf-posix.h (test_function): Likewise.
104572         * tests/test-sprintf-posix.h (test_function): Likewise.
104573         * tests/test-fprintf-posix.h (test_function): Likewise.
104574         * tests/test-printf-posix.h (test_function): Likewise.
104575         * tests/test-fprintf-posix.out: Likewise.
104577 2007-04-10  Bruno Haible  <bruno@clisp.org>
104579         * modules/locale-tests: New file.
104580         * tests/test-locale.c: New file.
104582         * modules/locale: New file.
104583         * lib/locale_.h: New file.
104584         * m4/locale_h.m4: New file.
104586 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
104587             Bruno Haible  <bruno@clisp.org>
104589         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
104590         be determined, test for availability of the copysignf, copysign,
104591         copysignl functions.
104592         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
104593         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
104594         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
104596 2007-04-09  Eric Blake  <ebb9@byu.net>
104598         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
104599         * modules/stdio (Makefile.am): Support fflush.
104600         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
104601         * modules/fflush: New file.
104602         * lib/fflush.c: Likewise.
104603         * m4/fflush.m4: Likewise.
104604         * modules/fflush-tests: New test.
104605         * tests/test-fflush.c: Likewise.
104606         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
104608 2007-04-06  Bruno Haible  <bruno@clisp.org>
104610         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
104611         (VASNPRINTF): Use signbit for faster determination whether to print a
104612         minus sign.
104613         * modules/vasnprintf (Files): Remove lib/float+.h.
104614         * modules/fprintf-posix (Depends-on): Add signbit.
104615         * modules/snprintf-posix (Depends-on): Likewise.
104616         * modules/sprintf-posix (Depends-on): Likewise.
104617         * modules/vasnprintf-posix (Depends-on): Likewise.
104618         * modules/vasprintf-posix (Depends-on): Likewise.
104619         * modules/vfprintf-posix (Depends-on): Likewise.
104620         * modules/vsnprintf-posix (Depends-on): Likewise.
104621         * modules/vsprintf-posix (Depends-on): Likewise.
104623 2007-04-06  Bruno Haible  <bruno@clisp.org>
104625         * tests/test-frexp.c (main): Test also the sign bit of zero results.
104626         * tests/test-frexpl.c (main): Likewise.
104627         * tests/test-ldexpl.c (main): Likewise.
104628         * modules/frexp-tests (Depends-on): Add signbit.
104629         * modules/frexpl-tests (Depdends-on): Likewise.
104630         * modules/ldexpl-tests (Depdends-on): Likewise.
104632 2007-04-06  Bruno Haible  <bruno@clisp.org>
104634         * modules/signbit-tests: New file.
104635         * tests/test-signbit.c: New file.
104637         * modules/signbit: New file.
104638         * lib/signbitf.c: New file.
104639         * lib/signbitd.c: New file.
104640         * lib/signbitl.c: New file.
104641         * m4/signbit.m4: New file.
104642         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
104643         (signbit): New macro.
104644         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
104645         REPLACE_SIGNBIT.
104646         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
104647         REPLACE_FREXPL into math.h.
104649 2007-04-06  Bruno Haible  <bruno@clisp.org>
104651         * modules/isnanf-nolibm-tests: New file.
104652         * tests/test-isnanf.c: New file.
104654         * modules/isnanf-nolibm: New file.
104655         * lib/isnanf.h: New file.
104656         * lib/isnanf.c: New file.
104657         * lib/isnan.c: Consider the USE_FLOAT macro.
104658         * m4/isnanf.m4: New file.
104660 2007-04-06  Bruno Haible  <bruno@clisp.org>
104662         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
104663         (Link): New section.
104665         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
104667 2007-04-06  Bruno Haible  <bruno@clisp.org>
104669         Assume the 'long double' type.
104670         * m4/longdouble.m4: Remove file.
104671         * config/srclist.txt: Don't mention longdouble.m4.
104672         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
104673         * lib/float+.h: Likewise.
104674         * lib/frexp.c: Likewise.
104675         * lib/printf-args.h: Likewise.
104676         * lib/printf-args.c: Likewise.
104677         * lib/printf-frexp.c: Likewise.
104678         * lib/printf-parse.c: Likewise.
104679         * lib/vasnprintf.c: Likewise.
104680         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
104681         * m4/intl.m4: Likewise.
104682         * m4/isnanl.m4: Likewise.
104683         * m4/printf.m4: Likewise.
104684         * m4/printf-frexpl.m4: Likewise.
104685         * m4/vasnprintf.m4: Likewise.
104686         * modules/allocsa (Files): Remove m4/longdouble.m4.
104687         * modules/gettext (Files): Likewise.
104688         * modules/relocatable-prog-wrapper (Files): Likewise.
104689         * modules/vasnprintf (Files): Likewise.
104690         * modules/isnanl (Files): Likewise.
104691         (Include): Simplify.
104692         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
104693         (Include): Simplify.
104694         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
104695         (Include): Simplify.
104696         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
104697         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104698         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
104699         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104700         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
104701         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104702         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
104703         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104704         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
104705         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104706         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
104707         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104708         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
104709         * tests/test-isnanl.c: Likewise.
104710         * tests/test-snprintf-posix.h: Likewise.
104711         * tests/test-sprintf-posix.h: Likewise.
104712         * tests/test-vasnprintf-posix.c: Likewise.
104713         * tests/test-vasnprintf-posix2.c: Likewise.
104714         * tests/test-vasprintf-posix.c: Likewise.
104716 2007-04-06  Bruno Haible  <bruno@clisp.org>
104718         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
104719         * lib/math_.h [__DECC]: Include the overridden include file through
104720         #include_next, outside the double-inclusion guard.
104721         * lib/stdio_.h [__DECC]: Likewise.
104722         * lib/stdlib_.h [__DECC]: Likewise.
104723         * lib/string_.h [__DECC]: Likewise.
104724         * lib/time_.h [__DECC]: Likewise.
104725         * lib/wchar_.h [__DECC]: Likewise.
104726         * lib/wctype_.h [__DECC]: Likewise.
104727         * lib/inttypes_.h [__DECC]: Likewise.
104728         Reported by Albert Chin <china@thewrittenword.com> in
104729         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
104731 2007-04-04  Eric Blake  <ebb9@byu.net>
104733         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
104734         1.5.x.
104736 2007-04-04  Bruno Haible  <bruno@clisp.org>
104738         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
104739         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
104741 2007-04-04  Bruno Haible  <bruno@clisp.org>
104743         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
104744         results for "%010a" of Infinity and NaN.
104745         * tests/test-vasprintf-posix.c (test_function): Likewise.
104746         * tests/test-snprintf-posix.h (test_function): Likewise.
104747         * tests/test-sprintf-posix.h (test_function): Likewise.
104748         * tests/test-fprintf-posix.h (test_function): Remove these tests.
104749         * tests/test-printf-posix.h (test_function): Likewise.
104750         * tests/test-fprintf-posix.out: Update.
104751         Needed for FreeBSD 6.1.
104753 2007-04-04  Bruno Haible  <bruno@clisp.org>
104755         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
104756         directly used by the gnulib modules nor by gnulib-tool.
104758 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
104760         * DEPENDENCIES: Give overall description of version dependency
104761         desirability.  Use more-typical names for apps.
104762         Add shell, coreutils, diffutils, grep, tar, gzip.
104764 2007-04-04  Simon Josefsson  <simon@josefsson.org>
104766         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
104768 2007-04-04  Karl Berry  <karl@gnu.org>
104770         * MODULES.html.sh (func_module): missing '.
104772 2007-04-03  Bruno Haible  <bruno@clisp.org>
104774         * modules/argmatch-tests (Makefile.am): New variable
104775         test_argmatch_LDADD.
104776         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
104777         * modules/array-list-tests (Makefile.am): New variable
104778         test_array_list_LDADD.
104779         * modules/array-oset-tests (Makefile.am): New variable
104780         test_array_oset_LDADD.
104781         * modules/avltree-list-tests (Makefile.am): New variable
104782         test_avltree_list_LDADD.
104783         * modules/avltree-oset-tests (Makefile.am): New variable
104784         test_avltree_oset_LDADD.
104785         * modules/avltreehash-list-tests (Makefile.am): New variable
104786         test_avltreehash_list_LDADD.
104787         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
104788         test_canonicalize_lgpl_LDADD.
104789         * modules/carray-list-tests (Makefile.am): New variable
104790         test_carray_list_LDADD.
104791         * modules/dirname-tests (Makefile.am): New variable
104792         test_dirname_LDADD.
104793         * modules/linked-list-tests (Makefile.am): New variable
104794         test_linked_list_LDADD.
104795         * modules/linkedhash-list-tests (Makefile.am): New variable
104796         test_linkedhash_list_LDADD.
104797         * modules/rbtree-list-tests (Makefile.am): New variable
104798         test_rbtree_list_LDADD.
104799         * modules/rbtree-oset-tests (Makefile.am): New variable
104800         test_rbtree_oset_LDADD.
104801         * modules/rbtreehash-list-tests (Makefile.am): New variable
104802         test_rbtreehash_list_LDADD.
104803         * modules/xvasprintf-tests (Makefile.am): New variable
104804         test_xvasprintf_LDADD.
104805         Reported by Eric Blake.
104807 2007-04-03  Eric Blake  <ebb9@byu.net>
104809         * DEPENDENCIES: Weaken m4 requirements.
104811 2007-04-03  Bruno Haible  <bruno@clisp.org>
104813         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
104814         * modules/isnanl-tests (configure.ac): Likewise.
104816 2007-04-03  Ben Pfaff  <blp@gnu.org>
104818         * modules/iconv_open: Add $(srcdir)/ to source directory
104819         references in Makefile fragments that call gperf, to fix VPATH
104820         builds.
104822 2007-04-03  Bruno Haible  <bruno@clisp.org>
104824         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
104825         * lib/ldexpl.c: Undo last change.
104827 2007-04-03  Bruno Haible  <bruno@clisp.org>
104829         * modules/printf-frexpl (Depends-on): Undo last change.
104830         (Files): Add m4/ldexpl.m4.
104832 2007-04-03  Bruno Haible  <bruno@clisp.org>
104834         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
104835         * modules/isnanl (Link): New section.
104837         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
104838         * modules/frexp (Link): New section.
104840         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
104841         * modules/frexpl (Link): New section.
104843         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
104844         * modules/ldexpl (Link): New section.
104846 2007-04-03  Bruno Haible  <bruno@clisp.org>
104848         * modules/TEMPLATE-EXTENDED: New file.
104849         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
104851 2007-04-03  Bruno Haible  <bruno@clisp.org>
104853         * DEPENDENCIES: New file.
104854         Suggested by Simon Josefsson.
104856 2007-04-03  Bruno Haible  <bruno@clisp.org>
104858         * doc/gnulib.texi: Escape @.
104860 2007-04-03  James Youngman  <jay@gnu.org>
104861         and Paul Eggert  <eggert@cs.ucla.edu>
104863         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
104864         birthtime on all systems that have birthtime, not just those which
104865         use st_birthtimensec rather than st_birthtim.  Putting zero in
104866         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
104867         that the birth time is not available for files on an NFS mount.
104869 2007-04-03  Simon Josefsson  <simon@josefsson.org>
104871         * modules/memxor: Move back from crypto/, suggested by Bruno.
104872         * modules/crypto/hmac-sha1: Fix memxor dependency.
104874         * modules/crypto/gc: Moved from ../.
104876 2007-04-02  Eric Blake  <ebb9@byu.net>
104878         * lib/ldexpl.c (includes): Avoid libm.
104880         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
104882 2007-04-02  Bruno Haible  <bruno@clisp.org>
104884         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
104885         on IRIX.
104887 2007-04-02  Bruno Haible  <bruno@clisp.org>
104889         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
104890         x86 or x86_64 platforms running MacOS X.
104891         Reported by Ryan Schmidt <@ryandesign.com>.
104893 2007-04-02  Bruno Haible  <bruno@clisp.org>
104895         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
104896         i386.
104898 2007-04-01  Simon Josefsson  <simon@josefsson.org>
104900         * modules/crypto/arcfour: Moved from ../.
104901         * modules/crypto/arcfour-tests: Moved from ../.
104902         * modules/crypto/arctwo: Moved from ../.
104903         * modules/crypto/arctwo-tests: Moved from ../.
104904         * modules/crypto/des: Moved from ../.
104905         * modules/crypto/des-tests: Moved from ../.
104906         * modules/crypto/gc-arcfour: Moved from ../.
104907         * modules/crypto/gc-arcfour-tests: Moved from ../.
104908         * modules/crypto/gc-arctwo: Moved from ../.
104909         * modules/crypto/gc-arctwo-tests: Moved from ../.
104910         * modules/crypto/gc-des: Moved from ../.
104911         * modules/crypto/gc-des-tests: Moved from ../.
104912         * modules/crypto/gc-hmac-md5: Moved from ../.
104913         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
104914         * modules/crypto/gc-hmac-sha1: Moved from ../.
104915         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
104916         * modules/crypto/gc-md2: Moved from ../.
104917         * modules/crypto/gc-md2-tests: Moved from ../.
104918         * modules/crypto/gc-md4: Moved from ../.
104919         * modules/crypto/gc-md4-tests: Moved from ../.
104920         * modules/crypto/gc-md5: Moved from ../.
104921         * modules/crypto/gc-md5-tests: Moved from ../.
104922         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
104923         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
104924         * modules/crypto/gc-random: Moved from ../.
104925         * modules/crypto/gc-rijndael: Moved from ../.
104926         * modules/crypto/gc-rijndael-tests: Moved from ../.
104927         * modules/crypto/gc-sha1: Moved from ../.
104928         * modules/crypto/gc-sha1-tests: Moved from ../.
104929         * modules/crypto/gc-tests: Moved from ../.
104930         * modules/crypto/hmac-md5: Moved from ../.
104931         * modules/crypto/hmac-md5-tests: Moved from ../.
104932         * modules/crypto/hmac-sha1: Moved from ../.
104933         * modules/crypto/hmac-sha1-tests: Moved from ../.
104934         * modules/crypto/md2: Moved from ../.
104935         * modules/crypto/md2-tests: Moved from ../.
104936         * modules/crypto/md4: Moved from ../.
104937         * modules/crypto/md4-tests: Moved from ../.
104938         * modules/crypto/md5: Moved from ../.
104939         * modules/crypto/md5-tests: Moved from ../.
104940         * modules/crypto/memxor: Moved from ../.
104941         * modules/crypto/rijndael: Moved from ../.
104942         * modules/crypto/rijndael-tests: Moved from ../.
104943         * modules/crypto/sha1: Moved from ../.
104945 2007-03-30  James Youngman  <jay@gnu.org>
104947         * tests/test-stat-time.c (prepare_test): use chmod() rather than
104948         rename() to change the ctime of a file (because ctime is unaffected
104949         by rename on jfs2 on AIX 5.1).
104950         (main): Start by doing cleanup, in case a previous run failed leaving
104951         test files behind.
104953 2007-03-31  Bruno Haible  <bruno@clisp.org>
104955         Support old proprietary implementations of iconv.
104956         * modules/iconv_open: New file.
104957         * lib/iconv_.h: New file.
104958         * m4/iconv_h.m4: New file.
104959         * lib/iconv_open.c: New file.
104960         * lib/iconv_open-aix.gperf: New file.
104961         * lib/iconv_open-hpux.gperf: New file.
104962         * lib/iconv_open-irix.gperf: New file.
104963         * lib/iconv_open-osf.gperf: New file.
104964         * m4/iconv_open.m4: New file.
104965         * modules/linebreak (Depends-on): Add iconv_open.
104966         * modules/striconv (Depends-on): Likewise.
104967         * modules/striconveh (Depends-on): Likewise.
104968         * modules/unicodeio (Depends-on): Likewise.
104969         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
104970         (iconv_t)(-1).
104971         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
104972         conversion if cd is (iconv_t)(-1).
104973         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
104974         is not possible.
104976 2007-03-31  Bruno Haible  <bruno@clisp.org>
104978         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
104979         work on Solaris either. Protect also second use of "autodetect_jp".
104981 2007-03-31  Bruno Haible  <bruno@clisp.org>
104983         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
104984         the function is not present.
104986 2007-03-31  Bruno Haible  <bruno@clisp.org>
104988         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
104989         the function is not present.
104991 2007-03-31  Bruno Haible  <bruno@clisp.org>
104993         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
104994         a bug in HP-UX iconv_open().
104996 2007-03-31  Bruno Haible  <bruno@clisp.org>
104998         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
104999         (Mathematics <math.h>): New section, add fpieee.
105000         (Input/output <stdio.h>): Add fseterr.
105001         (Mathematics <math.h>): New section, add printf-frexp.
105002         (Container data structures): Add sublist.
105003         (Core language properties): Add fpucw, inline.
105004         (Functions for greatest-width integer types <inttypes.h>): Add
105005         imaxabs, imaxdiv, inttypes.
105006         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
105007         isnanl-nolibm, ldexp.
105008         (Mathematics <math.h>): New section, add printf-frexpl.
105009         (Support for systems lacking POSIX:2001): Add fprintf-posix,
105010         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
105011         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
105012         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
105013         (Unicode string functions): Add unistr/u*-mbtoucr.
105014         (Java): Add javacomp-script, javaexec-script.
105015         (C#): Add csharpcomp-script, csharpexec-script.
105016         (Support for building libraries and executables): Add havelib,
105017         relocatable-*.
105018         (Support for maintaining and releasing projects): Renamed from
105019         'Support for maintaining and release projects'. Add announce-gen.
105021 2007-03-31  Bruno Haible  <bruno@clisp.org>
105023         * README: Talk primarily about git.
105024         (git and CVS): Renamed from CVS.
105025         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
105026         gnulib is available through git.
105027         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
105029 2007-03-30  Bruno Haible  <bruno@clisp.org>
105031         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
105032         * lib/poll_.h: Likewise.
105033         * lib/stat_.h: Likewise.
105034         * lib/sys_time_.h: Likewise.
105035         * lib/sysexit_.h: Likewise.
105036         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
105037         * lib/stdbool_.h: Likewise.
105038         * lib/byteswap_.h: Add double-inclusion guard.
105040 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
105042         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
105044 2007-03-30  Karl Berry  <karl@gnu.org>
105046         * config/srclist-update: double space after USA in the license
105047         substitution, since that's how it's usually (?) written.
105049 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
105051         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
105052         reported by Bruno Haible.
105054 2007-03-29  Bruno Haible  <bruno@clisp.org>
105056         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
105057         a bug in AIX iconv().
105059 2007-03-29  Bruno Haible  <bruno@clisp.org>
105061         * modules/ldexpl-tests: New file.
105062         * tests/test-ldexpl.c: New file.
105064 2007-03-29  Bruno Haible  <bruno@clisp.org>
105066         * lib/ldexpl.c: Include fpucw.h.
105067         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
105068         multiplication.
105069         * modules/ldexpl (Depends-on): Add fpucw.
105071 2007-03-29  Bruno Haible  <bruno@clisp.org>
105073         * modules/ldexpl: New file.
105074         * m4/ldexpl.m4: New file.
105075         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
105076         set.
105077         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
105078         REPLACE_LDEXPL.
105079         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
105080         REPLACE_LDEXPL.
105081         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
105082         gl_FUNC_LDEXPL_WORKS.
105083         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
105084         * modules/mathl (Files): Remove lib/ldexpl.c.
105085         (Depends-on): Add ldexpl.
105087 2007-03-29  Bruno Haible  <bruno@clisp.org>
105089         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
105091 2007-03-29  Bruno Haible  <bruno@clisp.org>
105093         * tests/test-striconveh.c (main): Don't assume that a direct conversion
105094         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
105095         and possibly also HP-UX.
105096         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
105097         work on AIX, IRIX, HP-UX, OSF/1.
105098         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
105099         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
105100         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
105101         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
105102         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
105103         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
105105 2007-03-29  Bruno Haible  <bruno@clisp.org>
105107         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
105109 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
105111         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
105112         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
105114 2007-03-29  Eric Blake  <ebb9@byu.net>
105116         * lib/acl-internal.h: Remove redundant include.
105117         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
105118         Cygwin when a file is locked.
105120 2007-03-29  Bruno Haible  <bruno@clisp.org>
105122         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
105123         file.
105124         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
105126 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
105128         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
105129         try to remove a parent directory if the child couldn't be removed
105130         (except for the first rmdir, which could fail because the child
105131         doesn't exist).  Problem reported by Jeff Blaine in
105132         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
105134 2007-03-28  Bruno Haible  <bruno@clisp.org>
105136         * lib/striconveh.c (utf8conv_carefully): New function.
105137         (mem_cd_iconveh_internal): Invoke it.
105139 2007-03-28  Bruno Haible  <bruno@clisp.org>
105141         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
105142         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
105143         input.
105144         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
105145         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
105146         unistr/u8-uctomb.
105148 2007-03-28  Bruno Haible  <bruno@clisp.org>
105150         * modules/unistr/u8-mbtoucr: New file.
105151         * lib/unistr/u8-mbtoucr.c: New file.
105152         * modules/unistr/u16-mbtoucr: New file.
105153         * lib/unistr/u16-mbtoucr.c: New file.
105154         * modules/unistr/u16-mbtoucr: New file.
105155         * lib/unistr/u16-mbtoucr.c: New file.
105156         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
105158 2007-03-27  Simon Josefsson  <simon@josefsson.org>
105159             Bruno Haible  <bruno@clisp.org>
105161         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
105162         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
105163         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
105165         * m4/stdio_h.m4: Add stubs for vasprintf too.
105167         * modules/stdio: Support vasprintf in sed command.
105169         * modules/vasprintf: Depend on stdio for prototypes.  Remove
105170         vasprintf.h.  Add stdio module indicator.
105172         * lib/stdio_.h: Declare asprintf and vasprintf, based on
105173         vasprintf.h.
105175         * lib/vasprintf.h: File removed.
105177         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
105178         * lib/vasprintf.c: Ditto.
105179         * lib/xvasprintf.c: Ditto.
105180         * tests/test-vasprintf-posix.c: Ditto.
105181         * tests/test-vasprintf.c: Ditto.
105183 2007-03-27  Bruno Haible  <bruno@clisp.org>
105185         Make vasnprintf multithread-safe.
105186         * lib/vasnprintf.c (decimal_point_char): New function.
105187         (VASNPRINTF): Use it.
105188         Suggested by Simon Josefsson.
105190 2007-03-27  Eric Blake  <ebb9@byu.net>
105192         Support sub-second birthtime on cygwin.
105193         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
105194         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
105195         (get_stat_birthtime): Also work with st_birthtim.
105197 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
105199         * lib/stat-time.h (USE_BIRTHTIME): Remove.
105200         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
105201         (get_stat_birthtime_ns): Do not try to use "spare" fields.
105202         (get_stat_birthtime_ns): Simplify compile-time tests.
105203         (get_stat_birthtime): Change the API to look like
105204         get_stat_mtime etc., except return a negative tv_nsec on error.
105205         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
105206         Don't check for "spare" fields.
105207         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
105208         or for struct stat.st_birthtime, as these tests aren't used.
105209         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
105211 2007-03-27  Bruno Haible  <bruno@clisp.org>
105213         * lib/stat-time.h: Include <sys/stat.h>.
105215 2007-03-27  James Youngman  <jay@gnu.org>
105217         * lib/stat-time.h (get_stat_birthtime): New function for
105218           retrieving st_birthtime as provided by UFS2 (hence *BSD).
105219         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
105220           and its variants.
105221         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
105222         * modules/stat-time-test: New file.
105223         * tests/test-stat-time.c: New test, devised by Bruno Haible.
105225 2007-03-26  Bruno Haible  <bruno@clisp.org>
105227         Better support of signalling NaNs.
105228         * lib/atanl.c: Include isnanl.h.
105229         (atanl): Perform test for NaN at the beginning of the function and
105230         through a call to isnanl.
105231         * lib/cosl.c: Include isnanl.h.
105232         (cosl): Perform test for NaN at the beginning of the function and
105233         through a call to isnanl.
105234         * lib/ldexpl.c: Include isnanl.h.
105235         (ldexpl): Perform test for NaN through a call to isnanl.
105236         * lib/logl.c: Include isnanl.h.
105237         (logl): Perform test for NaN at the beginning of the function and
105238         through a call to isnanl.
105239         * lib/sinl.c: Include isnanl.h.
105240         (sinl): Perform test for NaN at the beginning of the function and
105241         through a call to isnanl.
105242         * lib/sqrtl.c: Include isnanl.h.
105243         (sqrtl): Perform test for NaN at the beginning of the function and
105244         through a call to isnanl.
105245         * lib/tanl.c: Include isnanl.h.
105246         (tanl): Perform test for NaN at the beginning of the function and
105247         through a call to isnanl.
105248         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
105249         * modules/mathl (Depends-on): Add isnanl.
105251 2007-03-26  Eric Blake  <ebb9@byu.net>
105253         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
105254         regression in logic sense of previous patch.
105256 2007-03-26  Bruno Haible  <bruno@clisp.org>
105258         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
105259         unportable shell command "if ! ...".
105260         Reported by Ralf Wildenhues.
105262 2007-03-25  Bruno Haible  <bruno@clisp.org>
105264         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
105265         <sysexits.h> file, and only add EX_CONFIG.
105266         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
105267         absolute file name and whether it is sufficient. Substitute also
105268         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
105269         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
105270         ABSOLUTE_SYSEXITS_H into sysexits.h.
105272 2007-03-25  Bruno Haible  <bruno@clisp.org>
105274         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
105275         hints is NULL.
105277 2007-03-25  Bruno Haible  <bruno@clisp.org>
105279         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
105280         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
105282 2007-03-25  Bruno Haible  <bruno@clisp.org>
105284         * lib/vasnprintf.c: Include langinfo.h.
105285         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
105286         multithread-safe.
105287         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
105288         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
105289         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
105290         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105291         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105292         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105293         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
105294         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
105295         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105296         Reported by Simon Josefsson.
105298 2007-03-25  Bruno Haible  <bruno@clisp.org>
105300         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
105301         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
105302         * modules/vasnprintf (Depends-on): Add stdint.
105304 2007-03-25  Bruno Haible  <bruno@clisp.org>
105306         * modules/fpieee: New file.
105307         * m4/fpieee.m4: New file.
105308         * modules/isnan-nolibm (Depends-on): Add fpieee.
105309         * modules/isnanl-nolibm (Depends-on): Add fpieee.
105310         * modules/isnanl (Depends-on): Add fpieee.
105312 2007-03-25  Bruno Haible  <bruno@clisp.org>
105314         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
105316 2007-03-25  Bruno Haible  <bruno@clisp.org>
105318         Avoid test failures on IRIX 6.5.
105319         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
105320         (main): Use it.
105321         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
105322         macros.
105323         (main): Use them.
105325 2007-03-25  Bruno Haible  <bruno@clisp.org>
105327         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
105328         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
105329         exists but doesn't work.
105330         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
105331         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
105332         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
105333         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
105334         math.h.
105336 2007-03-25  Bruno Haible  <bruno@clisp.org>
105338         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
105339         returns inf. Needed on IRIX 6.5.
105341 2007-03-25  Bruno Haible  <bruno@clisp.org>
105343         * tests/test-frexpl.c: Include isnanl-nolibm.h.
105344         (main): Use isnanl instead of x != x idiom.
105345         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
105347         * tests/test-frexp.c: Include isnan.h.
105348         (main): Use isnan instead of x != x idiom.
105349         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
105351 2007-03-25  Bruno Haible  <bruno@clisp.org>
105353         * tests/test-frexp.c (NaN): New function/macro.
105354         (main): Use it instead of 0.0 / 0.0.
105355         * tests/test-isnan.c (NaN): New function/macro.
105356         (main): Use it instead of 0.0 / 0.0.
105357         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
105358         (test_function): Use it instead of 0.0 / 0.0.
105359         * tests/test-vasprintf-posix.c (NaN): New function/macro.
105360         (test_function): Use it instead of 0.0 / 0.0.
105361         * tests/test-snprintf-posix.h (NaN): New function/macro.
105362         (test_function): Use it instead of 0.0 / 0.0.
105363         * tests/test-sprintf-posix.h (NaN): New function/macro.
105364         (test_function): Use it instead of 0.0 / 0.0.
105365         * tests/test-fprintf-posix.h (NaN): New function/macro.
105366         (test_function): Use it instead of 0.0 / 0.0.
105367         * tests/test-printf-posix.h (NaN): New function/macro.
105368         (test_function): Use it instead of 0.0 / 0.0.
105370         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
105372 2007-03-25  Bruno Haible  <bruno@clisp.org>
105374         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
105376 2007-03-25  Bruno Haible  <bruno@clisp.org>
105378         * lib/regexec.c (merge_state_with_log): Make static.
105380 2007-03-25  Bruno Haible  <bruno@clisp.org>
105382         * lib/trigl.c (kernel_rem_pio2): Make static.
105384 2007-03-25  Bruno Haible  <bruno@clisp.org>
105386         * lib/sincosl.c (sincosl_table): Make static.
105388 2007-03-25  Bruno Haible  <bruno@clisp.org>
105390         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
105391         if the compiler does not support C99.
105393 2007-03-25  Bruno Haible  <bruno@clisp.org>
105395         * modules/time (Makefile.am): Ensure all rule action lines start with a
105396         tab.
105398 2007-03-24  Bruno Haible  <bruno@clisp.org>
105400         * modules/tsearch-tests: New file.
105401         * tests/test-tsearch.sh: New file.
105402         * tests/test-tsearch.c: New file, mostly copied from glibc.
105404         * modules/search-tests: New file.
105405         * tests/test-search.c: New file.
105407         * modules/search: New file.
105408         * lib/search_.h: New file, incorporating lib/tsearch.h.
105409         * m4/search_h.m4: New file.
105410         * lib/tsearch.h: Remove file.
105411         * lib/tsearch.c: Include search.h instead of tsearch.h.
105412         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
105413         HAVE_TSEARCH.
105414         * modules/tsearch (Files): Remove lib/tsearch.h.
105415         (Depends-on): Add search.
105416         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
105417         (Include): Change tsearch.h into search.h.
105419 2007-03-24  Bruno Haible  <bruno@clisp.org>
105421         * modules/fpucw: New file.
105422         * lib/fpucw.h: New file.
105423         * lib/frexp.c: Include fpucw.h.
105424         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
105425         (FUNC): Use them.
105426         * lib/printf-frexp.c: Include fpucw.h.
105427         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
105428         (FUNC): Use them.
105429         * lib/vasnprintf.c: Include fpucw.h.
105430         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
105431         'long double' calculations.
105432         * tests/test-frexpl.c: Include fpucw.h.
105433         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
105434         * tests/test-printf-frexpl.c: Include fpucw.h.
105435         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
105436         * modules/frexpl (Depends-on): Add fpucw.
105437         * modules/printf-frexpl (Depends-on): Likewise.
105438         * modules/fprintf-posix (Depends-on): Likewise.
105439         * modules/snprintf-posix (Depends-on): Likewise.
105440         * modules/sprintf-posix (Depends-on): Likewise.
105441         * modules/vasnprintf-posix (Depends-on): Likewise.
105442         * modules/vasprintf-posix (Depends-on): Likewise.
105443         * modules/vfprintf-posix (Depends-on): Likewise.
105444         * modules/vsnprintf-posix (Depends-on): Likewise.
105445         * modules/vsprintf-posix (Depends-on): Likewise.
105446         * modules/frexpl-tests (Depends-on): Likewise.
105447         * modules/printf-frexpl-tests (Depends-on): Likewise.
105449 2007-03-24  Bruno Haible  <bruno@clisp.org>
105451         * lib/float+.h: New file.
105452         * lib/isnan.c: Include float+.h.
105453         (SIZE): New macro.
105454         (FUNC): Compare only SIZE bytes of the value.
105455         * lib/vasnprintf.c: Include float+.h.
105456         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
105457         SIZEOF_LDBL or SIZEOF_DBL bytes.
105458         * modules/isnan-nolibm (Files): Add lib/float+.h.
105459         * modules/isnanl-nolibm (Files): Add lib/float+.h.
105460         * modules/isnanl (Files): Add lib/float+.h.
105461         * modules/vasnprintf (Files): Add lib/float+.h.
105463 2007-03-24  Bruno Haible  <bruno@clisp.org>
105465         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
105466         include isnanl-nolibm.h.
105468 2007-03-24  Bruno Haible  <bruno@clisp.org>
105470         * tests/test-read-file.c (main): Don't produce spurious output for
105471         expected situations. Make the test fail if it encountered unexpected
105472         results.
105474 2007-03-24  Bruno Haible  <bruno@clisp.org>
105476         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
105477         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
105479 2007-03-24  Bruno Haible  <bruno@clisp.org>
105481         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
105483 2007-03-24  Bruno Haible  <bruno@clisp.org>
105485         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
105486         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
105488         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
105489         * modules/utf8-ucs4: Turn into a symbolic link to module
105490         unistr/u8-mbtouc.
105492         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
105493         utf8-ucs4-unsafe.
105494         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
105495         unistr/u8-mbtouc-unsafe.
105497         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
105498         * modules/utf16-ucs4: Turn into a symbolic link to module
105499         unistr/u16-mbtouc.
105501         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
105502         utf16-ucs4-unsafe.
105503         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
105504         unistr/u16-mbtouc-unsafe.
105506         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
105507         * modules/ucs4-utf8: Turn into a symbolic link to module
105508         unistr/u8-ubtomb.
105510         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
105511         * modules/ucs4-utf16: Turn into a symbolic link to module
105512         unistr/u16-ubtomb.
105514 2007-03-24  Bruno Haible  <bruno@clisp.org>
105516         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
105517         Enable the function only if HAVE_INLINE.
105518         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
105519         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
105520         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
105521         Enable the function only if HAVE_INLINE.
105522         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
105523         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
105524         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
105525         Enable the function only if HAVE_INLINE.
105526         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
105527         Enable the function only if HAVE_INLINE.
105528         * modules/utf8-ucs4: Update.
105529         * modules/utf8-ucs4-unsafe: Update.
105530         * modules/utf16-ucs4: Update.
105531         * modules/utf16-ucs4-unsafe: Update.
105532         * modules/ucs4-utf8: Update.
105533         * modules/ucs4-utf16: Update.
105535 2007-03-24  Bruno Haible  <bruno@clisp.org>
105537         * lib/utf8-ucs4.h: Remove file.
105538         * lib/utf8-ucs4-unsafe.h: Remove file.
105539         * lib/utf16-ucs4.h: Remove file.
105540         * lib/utf16-ucs4-unsafe.h: Remove file.
105541         * lib/ucs4-utf8.h: Remove file.
105542         * lib/ucs4-utf16.h: Remove file.
105543         * lib/unistr.h: Include their previous contents.
105544         * m4/utf-ucs4.m4: Remove file.
105545         * m4/ucs4-utf.m4: Remove file.
105546         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
105547         (Depends-on): Add unistr/base.
105548         (configure.ac): Remove gl_UTF_UCS4.
105549         (Makefile.am): Update.
105550         (Include): Change to unistr.h.
105551         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
105552         (Depends-on): Add unistr/base.
105553         (configure.ac): Remove gl_UTF_UCS4.
105554         (Makefile.am): Update.
105555         (Include): Change to unistr.h.
105556         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
105557         (Depends-on): Add unistr/base.
105558         (configure.ac): Remove gl_UTF_UCS4.
105559         (Makefile.am): Update.
105560         (Include): Change to unistr.h.
105561         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
105562         (Depends-on): Add unistr/base.
105563         (configure.ac): Remove gl_UTF_UCS4.
105564         (Makefile.am): Update.
105565         (Include): Change to unistr.h.
105566         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
105567         (Depends-on): Add unistr/base.
105568         (configure.ac): Remove gl_UCS4_UTF.
105569         (Makefile.am): Update.
105570         (Include): Change to unistr.h.
105571         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
105572         (Depends-on): Add unistr/base.
105573         (configure.ac): Remove gl_UCS4_UTF.
105574         (Makefile.am): Update.
105575         (Include): Change to unistr.h.
105576         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
105577         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
105578         utf8-ucs4-unsafe.h.
105579         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
105580         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
105581         utf16-ucs4-unsafe.h.
105582         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
105583         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
105584         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
105585         * lib/unistr/u8-strchr.c: Likewise.
105586         * lib/unistr/u8-strrchr.c: Likewise.
105587         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
105588         * lib/unistr/u16-strchr.c: Likewise.
105589         * lib/unistr/u16-strrchr.c: Likewise.
105590         * lib/striconveh.c: Update.
105591         * lib/linebreak.c: Update.
105593 2007-03-24  Bruno Haible  <bruno@clisp.org>
105595         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
105596         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
105598 2007-03-22  Bruno Haible  <bruno@clisp.org>
105600         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
105602 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
105604         * MODULES.html.sh (File system functions): New module write-any-file.
105605         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
105606         * m4/write-any-file.m4: New files.
105608 2007-03-23  Eric Blake  <ebb9@byu.net>
105610         * gnulib-tool: Rearrange space-tab sequences, since some editors
105611         like to eat them.
105613 2007-03-23  Eric Blake  <ebb9@byu.net>
105615         * lib/version-etc.c (version_etc_va): Update license wording to
105616         be more concise.  Recommended by Richard Stallman.
105618 2007-03-22  Bruno Haible  <bruno@clisp.org>
105620         * lib/poll.c (MSG_PEEK): New fallback definition.
105622 2007-03-22  Bruno Haible  <bruno@clisp.org>
105624         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
105625         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
105626         (main): Update.
105627         Fixes a compilation error on BeOS.
105629 2007-03-22  Bruno Haible  <bruno@clisp.org>
105631         * modules/frexpl-tests: New file.
105632         * tests/test-frexpl.c: New file.
105634         * modules/frexpl: New file.
105635         * m4/frexpl.m4: New file.
105636         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
105637         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
105638         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
105639         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
105640         (Depends-on): Add frexpl. Remove isnanl-nolibm.
105641         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
105643 2007-03-22  Bruno Haible  <bruno@clisp.org>
105645         * lib/frexpl.c: Share code with lib/frexp.c.
105646         * modules/mathl (Files): Add lib/frexp.c.
105647         (Depends-on): Add isnanl-nolibm.
105649 2007-03-22  Bruno Haible  <bruno@clisp.org>
105651         * modules/printf-frexp (Files): Add m4/frexp.m4.
105652         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
105653         only if the found frexp function actually works.
105655 2007-03-22  Bruno Haible  <bruno@clisp.org>
105657         * lib/frexp.c: Remove older implementation that uses divisions.
105659 2007-03-21  Bruno Haible  <bruno@clisp.org>
105661         * modules/frexp-tests: New file.
105662         * tests/test-frexp.c: New file.
105664         * modules/frexp: New file.
105665         * lib/frexp.c: New file.
105666         * m4/frexp.m4: New file.
105667         * lib/math_.h (frexp): New declaration.
105668         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
105669         REPLACE_FREXP.
105670         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
105672 2007-03-21  Bruno Haible  <bruno@clisp.org>
105674         * modules/isnanl-tests: New file.
105675         * tests/test-isnanl.c: New file.
105677         * modules/isnanl: New file.
105678         * lib/isnanl.h: New file.
105679         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
105680         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
105681         gl_FUNC_ISNANL_WORKS.
105682         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
105683         New macros.
105685 2007-03-21  Bruno Haible  <bruno@clisp.org>
105687         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
105688         lib/isnanl.h.
105689         (Include): Update.
105690         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
105691         * lib/vasnprintf.c: Update.
105692         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
105693         tests/test-isnanl.h, remove tests/test-isnanl.c.
105694         (Makefile.am): Update.
105695         * tests/test-isnanl-nolibm.c: New file.
105696         * tests/test-isnanl.h: New file.
105697         * tests/test-isnanl.c: Remove file.
105699 2007-03-21  Jim Meyering  <jim@meyering.net>
105701         When trying to open ".", treat ESTALE like EACCES.
105702         * lib/savewd.c (savewd_save): Resort to forking not just upon
105703         failure with EACCES, but also when errno is ESTALE.
105705 2007-03-20  Bruno Haible  <bruno@clisp.org>
105707         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
105708         Needed on AIX 5.1. Reported by Matthew Woehlke.
105710 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
105712         Suggestions by Bruno Haible:
105713         * lib/acl-internal.h: Include "gettext.h" rather than rolling
105714         our own.
105715         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
105716         * modules/acl (Depends-on): Add gettext.
105718 2007-03-19  Bruno Haible  <bruno@clisp.org>
105720         * modules/iconvme: Remove file.
105721         * lib/iconvme.h: Remove file.
105722         * lib/iconvme.c: Remove file.
105723         * m4/iconvme.m4: Remove file.
105725 2007-03-19  Bruno Haible  <bruno@clisp.org>
105727         * doc/relocatable-maint.texi: Break long shell script line.
105728         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
105730 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
105732         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
105733         handle file_has_acl.
105734         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
105735         * lib/acl.c: Move header inclusions and related macro defns into
105736         lib/acl-internal.h.
105737         (S_ISLNK): Remove defn, since that's now done for us.
105738         (file_has_acl): Move to lib/file-has-acl.c.
105739         Call acl_trivial if available.  This is the crucial part of the fix.
105740         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
105741         shared within the library.  Rewrite a bit, partly to make it compatible
105742         with the GNU coding style.
105743         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
105744         Remove unnecessary double-quotes.
105745         Don't test for acl_to_text; the build will catch that.
105746         Replace acl_entries if it doesn't exist and it is needed.
105747         Check for -lsec and acl_trivial (as used on Solaris 10).
105748         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
105749         lib/file-has-acl.c.
105750         (Depends-on): Add sys_stat, for S_ISLNK.
105752 2007-03-19  Ben Pfaff  <blp@gnu.org>
105754         * doc/gnulib.texi: Fix typos.
105755         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
105757 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
105759         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
105760         If size is zero here, buf must be zero.
105762 2007-03-19  Simon Josefsson  <simon@josefsson.org>
105764         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
105765         <bruno@clisp.org>.
105767 2007-03-18  Bruno Haible  <bruno@clisp.org>
105769         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
105770         Suggested by Eric Blake.
105772 2007-03-18  Ben Pfaff  <blp@gnu.org>
105774         * doc/relocatable.texi: Recommend using as prefix a directory
105775         that does not exist and will never be created.  Based on
105776         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
105777         and others.
105779 2007-03-17  Bruno Haible  <bruno@clisp.org>
105781         * lib/fchownat.c: Include lchown.h.
105783 2007-03-17  Bruno Haible  <bruno@clisp.org>
105785         Fix endless loop when the given allocated size was > INT_MAX.
105786         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
105787         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
105788         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
105789         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
105790         * lib/sprintf.c (sprintf): Likewise.
105792 2007-03-17  Bruno Haible  <bruno@clisp.org>
105794         * tests/test-argp-2.sh (func_compare): Output a context diff.
105796 2007-03-17  Bruno Haible  <bruno@clisp.org>
105798         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
105799         locale's decimal-point character.
105801 2007-03-17  Bruno Haible  <bruno@clisp.org>
105803         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
105804         before comparing it. Needed because on some platforms (e.g. x86) a
105805         'long double' occupies less bytes than sizeof (long double).
105807 2007-03-17  Bruno Haible  <bruno@clisp.org>
105809         * tests/test-crc.c (main): Make printf statements 64-bit clean.
105810         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
105811         * tests/test-getaddrinfo.c (simple): Likewise.
105812         * tests/test-read-file.c (main): Likewise.
105814 2007-03-17  Bruno Haible  <bruno@clisp.org>
105816         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
105818 2007-03-17  Bruno Haible  <bruno@clisp.org>
105820         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
105821         unused variable.
105823 2007-03-17  Bruno Haible  <bruno@clisp.org>
105825         * tests/test-c-strcasecmp.c: Include c-strcase.h.
105826         * tests/test-c-strncasecmp.c: Likewise.
105828 2007-03-17  Bruno Haible  <bruno@clisp.org>
105830         * modules/stdlib (Depends-on): Add unistd.
105831         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
105832         Needed for MacOS X 10.3.
105834 2007-03-17  Bruno Haible  <bruno@clisp.org>
105836         * lib/unistr/u-strdup.h: Include <stdlib.h>.
105838 2007-03-17  Bruno Haible  <bruno@clisp.org>
105840         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
105842 2007-03-17  Bruno Haible  <bruno@clisp.org>
105844         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
105845         to reflect files copied from gnulib (with or without modifications).
105846         Suggested by Jim Meyering.
105848 2007-03-17  Eric Blake  <ebb9@byu.net>
105850         * NEWS: Document stdlib change from 2007-02-18.
105852 2007-03-17  Jim Meyering  <jim@meyering.net>
105854         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
105855         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
105856         someone uses a name containing shell meta-characters.
105857         Reported by Alfred M. Szmidt.
105859         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
105861 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
105863         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
105864         and copy gettext configuration files only if configure.ac contains
105865         a use of AM_GNU_GETTEXT_VERSION.
105867 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
105869         * build-aux/bootstrap (gnulib_name): New variable.
105870         (gnulib_tool_options): Use it.
105872 2007-03-13  Simon Josefsson  <simon@josefsson.org>
105874         * tests/test-des.c: Use new namespace.
105876 2007-03-15  Bruno Haible  <bruno@clisp.org>
105878         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
105879         Reported by James Youngman <jay@gnu.org>.
105881 2007-03-15  Bruno Haible  <bruno@clisp.org>
105883         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
105884         declared prototype. Needed with cc on OSF/1 5.1.
105886 2007-03-15  Bruno Haible  <bruno@clisp.org>
105888         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
105889         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
105890         (struct gl_list_implementation): Add dispose_fn argument to the
105891         'create_empty', 'create' methods.
105892         (struct gl_list_impl_base): Add field 'dispose_fn'.
105893         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
105894         argument.
105895         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
105896         dispose_fn argument.
105897         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
105898         dispose_fn on the dropped values.
105899         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
105900         dispose_fn argument.
105901         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
105902         dropped values.
105903         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
105904         (gl_tree_remove_node): Call dispose_fn on the dropped value.
105905         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
105906         (gl_tree_remove_node): Call dispose_fn on the dropped value.
105907         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
105908         argument.
105909         (gl_tree_list_free): Call dispose_fn on the dropped values.
105910         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
105911         the dropped values.
105912         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
105913         Add dispose_fn argument.
105914         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
105915         Call dispose_fn on the dropped values.
105916         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
105917         Add dispose_fn argument.
105918         (gl_sublist_create): Initialize the 'dispose_fn' field.
105919         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
105920         * tests/test-array_list.c (main): Update.
105921         * tests/test-carray_list.c (main): Update.
105922         * tests/test-avltree_list.c (main): Update.
105923         * tests/test-rbtree_list.c (main): Update.
105924         * tests/test-avltreehash_list.c (main): Update.
105925         * tests/test-rbtreehash_list.c (main): Update.
105926         * tests/test-linked_list.c (main): Update.
105927         * tests/test-linkedhash_list.c (main): Update.
105928         * tests/test-array_oset.c (main): Update.
105930 2007-03-15  Bruno Haible  <bruno@clisp.org>
105932         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
105933         (gl_oset_create_empty): Add dispose_fn argument.
105934         (struct gl_oset_implementation): Add dispose_fn argument to
105935         'create_empty' method.
105936         (struct gl_oset_impl_base): Add dispose_fn field.
105937         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
105938         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
105939         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
105940         values.
105941         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
105942         (gl_tree_oset_free): Call dispose_fn on the dropped values.
105943         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
105944         dropped value.
105945         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
105946         dropped value.
105947         * tests/test-array_oset.c (main): Update.
105948         * tests/test-avltree_oset.c (main): Update.
105949         * tests/test-rbtree_oset.c (main): Update.
105950         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
105952 2007-03-13  Bruno Haible  <bruno@clisp.org>
105954         * tests/test-stdbool.c (i): Update after last patch.
105956 2007-03-12  Bruno Haible  <bruno@clisp.org>
105958         * lib/quotearg.c: Include <wctype.h> early, before the definition of
105959         the iswprint macro. Needed on Solaris 2.5.1.
105961 2007-03-12  Bruno Haible  <bruno@clisp.org>
105963         * tests/test-printf-frexp.c (main): Declare x as volatile.
105965 2007-03-12  Simon Josefsson  <simon@josefsson.org>
105967         * doc/gnulib.texi (Build robot for gnulib): New section.
105969 2007-03-12  Jim Meyering  <jim@meyering.net>
105971         * build-aux/bootstrap: New file.
105972         * build-aux/bootstrap.conf: New file, from coreutils.
105974 2007-03-11  Bruno Haible  <bruno@clisp.org>
105976         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
105978 2007-03-12  Simon Josefsson  <simon@josefsson.org>
105980         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
105981         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
105982         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
105984 2007-03-11  Bruno Haible  <bruno@clisp.org>
105986         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
105987         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
105989 2007-03-11  Bruno Haible  <bruno@clisp.org>
105991         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
105992         formula. Needed for SunPRO C 5.0.
105994 2007-03-11  Bruno Haible  <bruno@clisp.org>
105996         * modules/long-options (Depends-on): Add getopt.
105998 2007-03-11  Bruno Haible  <bruno@clisp.org>
106000         * modules/modechange (Depends-on): Add stdbool.
106002 2007-03-11  Bruno Haible  <bruno@clisp.org>
106004         * modules/i-ring (Depends-on): Add stdbool.
106006 2007-03-11  Bruno Haible  <bruno@clisp.org>
106008         * modules/gc-des (Depends-on): Add stdbool.
106010 2007-03-11  Bruno Haible  <bruno@clisp.org>
106012         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
106014 2007-03-11  Bruno Haible  <bruno@clisp.org>
106016         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
106018 2007-03-11  Bruno Haible  <bruno@clisp.org>
106020         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
106022 2007-03-11  Bruno Haible  <bruno@clisp.org>
106024         * lib/vasnprintf.c (sprintf): Undefine.
106026 2007-03-11  Bruno Haible  <bruno@clisp.org>
106028         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
106029         initializers in SunPRO C and Compaq C compilers.
106031 2007-03-11  Bruno Haible  <bruno@clisp.org>
106033         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
106034         decrementing code ANSI C compliant.
106036 2007-03-11  Bruno Haible  <bruno@clisp.org>
106038         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
106039         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
106041 2007-03-11  Bruno Haible  <bruno@clisp.org>
106043         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
106044         <stdbool.h> substitute doesn't pass.
106046 2007-03-11  Bruno Haible  <bruno@clisp.org>
106048         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
106050 2007-03-11  Bruno Haible  <bruno@clisp.org>
106052         * gnulib-tool (func_create_megatestdir): Create also an autobuild
106053         script, for submission to autobuild.josefsson.org.
106055 2007-03-10  Bruno Haible  <bruno@clisp.org>
106057         * modules/canonicalize-lgpl-tests: New file.
106058         * tests/test-canonicalize-lgpl.sh: New file.
106059         * tests/test-canonicalize-lgpl.c: New file.
106061         * modules/c-strcase-tests: New file.
106062         * tests/test-c-strcase.sh: New file.
106063         * tests/test-c-strcasecmp.c: New file.
106064         * tests/test-c-strncasecmp.c: New file.
106066         * modules/atexit-tests: New file.
106067         * tests/test-atexit.sh: New file.
106068         * tests/test-atexit.c: New file.
106070 2007-03-10  Bruno Haible  <bruno@clisp.org>
106072         * tests/test-binary-io.sh: Use temporary filenames that are not so
106073         likely to clash with those of other tests (in a parallel make).
106074         * tests/test-binary-io.c: Likewise.
106076 2007-03-10  Bruno Haible  <bruno@clisp.org>
106078         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
106079         fallback; use #error instead.
106080         Suggested by Simon Josefsson.
106082 2007-03-10  Bruno Haible  <bruno@clisp.org>
106084         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
106085         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
106086         first and the last.
106088 2007-03-10  Bruno Haible  <bruno@clisp.org>
106090         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
106092 2007-03-10  Bruno Haible  <bruno@clisp.org>
106094         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
106095         "make distcheck".
106096         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
106097         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
106098         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
106100 2007-03-10  Bruno Haible  <bruno@clisp.org>
106102         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
106103         variable.
106104         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
106105         variable.
106107 2007-03-09  Eric Blake  <ebb9@byu.net>
106108         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
106110         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
106111         types are not being provided by gnulib.
106112         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
106113         types are supported.
106115 2007-03-10  Bruno Haible  <bruno@clisp.org>
106117         * lib/stdio_.h (__attribute__): New macro.
106118         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
106119         vsprintf): Specify __attribute__ __format__ for GCC.
106120         Suggested by Eric Blake.
106122 2007-03-09  Bruno Haible  <bruno@clisp.org>
106124         * modules/printf-posix-tests: New file.
106125         * tests/test-printf-posix.sh: New file.
106126         * tests/test-printf-posix.c: New file.
106128         * modules/printf-posix: New file.
106129         * lib/printf.c: New file.
106130         * m4/printf-posix-rpl.m4: New file.
106131         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
106132         REPLACE_PRINTF.
106133         * lib/stdio_.h (printf): New declaration.
106134         (format, __format__, ____printf____, ____scanf____, ____strftime____,
106135         ____strfmon____): New macros.
106136         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
106137         REPLACE_PRINTF.
106139 2007-03-09  Bruno Haible  <bruno@clisp.org>
106141         * tests/test-vasnprintf-posix2.sh: New file.
106142         * tests/test-vasnprintf-posix2.c: New file.
106143         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
106144         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
106145         (Makefile.am): Activate test-vasnprintf-posix2.sh.
106147         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
106148         a locale dependent decimal point, rather than always '.'.
106150 2007-03-09  Eric Blake  <ebb9@byu.net>
106152         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
106153         spite of platforms like Tandem/NSK that define it to -1.
106155 2007-03-08  Bruno Haible  <bruno@clisp.org>
106157         * modules/vprintf-posix-tests: New file.
106158         * tests/test-vprintf-posix.sh: New file.
106159         * tests/test-vprintf-posix.c: New file.
106160         * tests/test-printf-posix.h: New file.
106162         * modules/vprintf-posix: New file.
106163         * lib/vprintf.c: New file.
106164         * m4/vprintf-posix.m4: New file.
106165         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
106166         REPLACE_VPRINTF.
106167         * lib/stdio_.h (vprintf): New declaration.
106168         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
106169         REPLACE_VPRINTF.
106171 2007-03-08  Bruno Haible  <bruno@clisp.org>
106173         * modules/fprintf-posix-tests: New file.
106174         * tests/test-fprintf-posix.sh: New file.
106175         * tests/test-fprintf-posix.c: New file.
106177         * modules/fprintf-posix: New file.
106178         * lib/fprintf.c: New file.
106179         * m4/fprintf-posix.m4: New file.
106180         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
106181         REPLACE_FPRINTF.
106182         * lib/stdio_.h (fprintf): New declaration.
106183         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
106184         REPLACE_FPRINTF.
106186 2007-03-08  Bruno Haible  <bruno@clisp.org>
106188         * modules/vfprintf-posix-tests: New file.
106189         * tests/test-vfprintf-posix.sh: New file.
106190         * tests/test-vfprintf-posix.c: New file.
106191         * tests/test-fprintf-posix.h: New file.
106192         * tests/test-fprintf-posix.out: New file.
106194         * modules/vfprintf-posix: New file.
106195         * lib/vfprintf.c: New file.
106196         * m4/vfprintf-posix.m4: New file.
106197         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
106198         REPLACE_VFPRINTF.
106199         * lib/stdio_.h (vfprintf): New declaration.
106200         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
106201         REPLACE_VFPRINTF.
106203 2007-03-08  Bruno Haible  <bruno@clisp.org>
106205         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
106207 2007-03-08  Bruno Haible  <bruno@clisp.org>
106209         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
106210         instead of 'expr' invocations.
106211         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
106212         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
106213         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
106214         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
106215         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
106216         Suggested by Paul Eggert.
106218 2007-03-08  Bruno Haible  <bruno@clisp.org>
106220         * modules/fseterr-tests: New file.
106221         * tests/test-fseterr.c: New file.
106223         * modules/fseterr: New file.
106224         * lib/fseterr.h: New file.
106225         * lib/fseterr.c: New file.
106227 2007-03-08  Bruno Haible  <bruno@clisp.org>
106229         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
106230         * lib/getopt_.h: Likewise.
106231         * lib/mbswidth.h: Likewise.
106232         * lib/setenv.h: Likewise.
106233         * lib/vasnprintf.h: Likewise.
106234         * lib/vasprintf.h: Likewise.
106235         * lib/verror.h: Likewise.
106236         * lib/xsetenv.h: Likewise.
106237         * lib/xvasprintf.h: Likewise.
106239 2007-03-08  Jim Meyering  <jim@meyering.net>
106241         * users.txt: Add parted.
106243         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
106245 2007-03-07  Bruno Haible  <bruno@clisp.org>
106247         * m4/printf.m4: Make the shell script snippets copy&pastable.
106249 2007-03-02  Bruno Haible  <bruno@clisp.org>
106251         * lib/netinet_in_.h: New file.
106252         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
106253         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
106254         * modules/netinet_in (Files): Add lib/netinet_in_.h.
106255         (Depends-on): Add absolute-header.
106256         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
106257         into netinet/in.h.
106259 2007-03-03  Bruno Haible  <bruno@clisp.org>
106261         * lib/sys_select_.h: New file.
106262         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
106263         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
106264         * modules/sys_select (Files): Add lib/sys_select_.h.
106265         (Depends-on): Add absolute-header.
106266         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
106267         into sys/select.h.
106269 2007-03-02  Bruno Haible  <bruno@clisp.org>
106271         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
106272         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
106273         values.
106274         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
106275         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
106276         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
106277         * modules/sys_socket (Depends-on): Add absolute-header.
106278         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
106279         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
106280         (Include): Remove requirement of inclusion of <sys/types.h>.
106282 2007-03-02  Bruno Haible  <bruno@clisp.org>
106284         * lib/byteswap_.h (bswap_32): Fix formula.
106286 2007-03-06  Bruno Haible  <bruno@clisp.org>
106288         * modules/sprintf-posix-tests: New file.
106289         * tests/test-sprintf-posix.c: New file.
106291         * modules/sprintf-posix: New file.
106292         * lib/sprintf.c: New file.
106293         * m4/sprintf-posix.m4: New file.
106294         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
106295         REPLACE_SPRINTF.
106296         * lib/stdio_.h (sprintf): New declaration.
106297         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
106298         REPLACE_SPRINTF.
106300 2007-03-06  Bruno Haible  <bruno@clisp.org>
106302         * modules/vsprintf-posix-tests: New file.
106303         * tests/test-vsprintf-posix.c: New file.
106304         * tests/test-sprintf-posix.h: New file.
106306         * modules/vsprintf-posix: New file.
106307         * lib/vsprintf.c: New file.
106308         * m4/vsprintf-posix.m4: New file.
106309         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
106310         REPLACE_VSPRINTF.
106311         * lib/stdio_.h (vsprintf): New declaration.
106312         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
106313         REPLACE_VSPRINTF.
106315 2007-03-06  Bruno Haible  <bruno@clisp.org>
106317         * modules/vsnprintf (Depend-on): Remove minmax.
106319 2007-03-06  Bruno Haible  <bruno@clisp.org>
106321         * modules/snprintf-posix-tests: New file.
106322         * tests/test-snprintf-posix.c: New file.
106324         * modules/snprintf-posix: New file.
106325         * m4/snprintf-posix.m4: New file.
106326         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
106327         gl_FUNC_SNPRINTF.
106328         (gl_FUNC_SNPRINTF): Invoke it.
106329         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
106330         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
106331         is set.
106332         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
106334 2007-03-06  Bruno Haible  <bruno@clisp.org>
106336         * modules/vsnprintf-posix-tests: New file.
106337         * tests/test-vsnprintf-posix.c: New file.
106338         * tests/test-snprintf-posix.h: New file.
106340         * modules/vsnprintf-posix: New file.
106341         * m4/vsnprintf-posix.m4: New file.
106342         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
106343         gl_FUNC_VSNPRINTF.
106344         (gl_FUNC_VSNPRINTF): Invoke it.
106345         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
106346         * lib/stdio_.h (vsnprintf): Define as a replacement if
106347         REPLACE_VSNPRINTF is set.
106348         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
106350 2007-03-06  Bruno Haible  <bruno@clisp.org>
106352         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
106353         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
106355 2007-03-06  Bruno Haible  <bruno@clisp.org>
106357         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
106358         (asinl): Declare also if HAVE_DECL_ASINL is set.
106359         (atanl): Declare also if HAVE_DECL_ATANL is set.
106360         (ceill): Declare also if HAVE_DECL_CEILL is set.
106361         (cosl): Declare also if HAVE_DECL_COSL is set.
106362         (expl): Declare also if HAVE_DECL_EXPL is set.
106363         (floorl): Declare also if HAVE_DECL_FLOORL is set.
106364         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
106365         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
106366         (logl): Declare also if HAVE_DECL_LOGL is set.
106367         (sinl): Declare also if HAVE_DECL_SINL is set.
106368         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
106369         (tanl): Declare also if HAVE_DECL_TANL is set.
106370         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
106371         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
106372         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
106373         declaration of frexpl, ldexpl.
106374         * modules/printf-frexpl (Depends-on): Add math.
106375         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
106377 2007-03-05  Bruno Haible  <bruno@clisp.org>
106379         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
106380         frexpl and ldexpl are declared.
106381         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
106383 2007-03-05  Bruno Haible  <bruno@clisp.org>
106385         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
106386         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
106388 2007-03-05  Bruno Haible  <bruno@clisp.org>
106390         * lib/stdio_.h: Include <stddef.h>.
106392 2007-03-05  Bruno Haible  <bruno@clisp.org>
106394         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
106396 2007-03-05  Bruno Haible  <bruno@clisp.org>
106398         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
106399         NetBSD 4, from Ralf Wildenhues.
106401 2007-03-04  Bruno Haible  <bruno@clisp.org>
106403         * lib/vasprintf.h: Update #if logic for the case when the functions
106404         exist but are overridden.
106406 2007-03-04  Bruno Haible  <bruno@clisp.org>
106408         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
106409         implementations: glibc-2.4 and MacOS X 10.3.
106410         * tests/test-vasnprintf-posix.c (test_function): Test also the case
106411         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
106412         * tests/test-vasprintf-posix.c (test_function): Likewise.
106414 2007-03-04  Bruno Haible  <bruno@clisp.org>
106416         * modules/vasprintf-posix-tests: New file.
106417         * tests/test-vasprintf-posix.c: New file.
106419         * modules/vasprintf-posix: New file.
106420         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
106421         defined.
106422         * m4/vasprintf-posix.m4: New file.
106423         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
106424         gl_FUNC_VASPRINTF.
106425         (gl_FUNC_VASPRINTF): Invoke it.
106426         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
106427         here.
106428         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
106430 2007-03-04  Bruno Haible  <bruno@clisp.org>
106432         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
106433         REPLACE_GETTIMEOFDAY.
106434         * modules/sys_time (Makefile.am): Likewise.
106435         * m4/sys_time_h.m4: Likewise.
106436         * m4/gettimeofday.m4: Likewise.
106438 2007-03-04  Bruno Haible  <bruno@clisp.org>
106440         * modules/vasnprintf-posix-tests: New file.
106441         * tests/test-vasnprintf-posix.c: New file.
106443         * modules/vasnprintf-posix: New file.
106444         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
106445         printf-frexpl.h.
106446         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
106447         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
106448         REPLACE_VASNPRINTF is defined.
106449         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
106450         gl_FUNC_VASNPRINTF.
106451         (gl_FUNC_VASNPRINTF): Invoke it.
106452         * m4/vasnprintf-posix.m4: New file.
106453         * m4/printf.m4: New file.
106455 2007-03-04  Bruno Haible  <bruno@clisp.org>
106457         Compile progreloc.c only if --enable-relocatable is specified.
106458         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
106459         if --enable-relocatable was specified.
106460         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
106461         lib_SOURCES.
106463 2007-03-04  Jim Meyering  <jim@meyering.net>
106465         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
106466         Use it consistently, rather than enumerating errno constants.
106468 2007-03-04  Bruno Haible  <bruno@clisp.org>
106470         * modules/xvasprintf-tests: New file.
106471         * tests/test-xvasprintf.c: New file.
106473         * modules/vasprintf-tests: New file.
106474         * tests/test-vasprintf.c: New file.
106476         * modules/vasnprintf-tests: New file.
106477         * tests/test-vasnprintf.c: New file.
106479         * modules/vsnprintf-tests: New file.
106480         * tests/test-vsnprintf.c: New file.
106482         * modules/snprintf-tests: New file.
106483         * tests/test-snprintf.c: New file.
106485 2007-03-04  Bruno Haible  <bruno@clisp.org>
106487         Compile relocatable.c only if --enable-relocatable is specified.
106488         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
106489         gl_RELOCATABLE_LIBRARY.
106490         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
106491         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
106492         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
106493         gl_RELOCATABLE_LIBRARY.
106494         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
106495         (Makefile.am): Remove lib_SOURCES.
106496         * modules/relocatable-lib-lgpl (configure.ac): Invoke
106497         gl_RELOCATABLE_LIBRARY.
106498         (Makefile.am): Remove lib_SOURCES.
106499         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
106500         always.
106501         * modules/relocatable-prog-wrapper (configure.ac): Invoke
106502         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
106504 2007-03-04  Bruno Haible  <bruno@clisp.org>
106506         * modules/argmatch-tests: New file.
106507         * tests/test-argmatch.c: New file.
106509         * tests/test-allocsa.c (main): Halve the number of loop runs.
106511         * modules/alloca-opt-tests: New file.
106512         * tests/test-alloca-opt.c: New file.
106514 2007-03-04  Jim Meyering  <jim@meyering.net>
106516         Work around difference between Linux ACLs and Solaris 10 ZFS.
106517         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
106518         for EINVAL.
106520 2007-03-03  Bruno Haible  <bruno@clisp.org>
106522         * modules/relocatable-prog (Depends-on): Add back progreloc's
106523         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
106525 2007-03-03  Bruno Haible  <bruno@clisp.org>
106527         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
106528         * modules/relocatable-lib: New file.
106530 2007-03-03  Bruno Haible  <bruno@clisp.org>
106532         * modules/relocatable-prog: Renamed from modules/relocatable.
106533         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
106535 2007-03-03  Bruno Haible  <bruno@clisp.org>
106537         * modules/relocatable-script (Files): Add doc/relocatable.texi,
106538         m4/relocatable-lib.m4.
106539         (Depends-on): Remove 'relocatable'.
106540         (configure.ac): Add gl_RELOCATABLE_NOP.
106542 2007-03-03  Bruno Haible  <bruno@clisp.org>
106544         * modules/relocatable-prog-wrapper: New file.
106545         * modules/relocatable (Depends-on): Add it. Remove all other
106546         dependencies except progname.
106547         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
106549         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
106550         (gl_FUNC_STRERROR): Nop.
106551         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
106553         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
106554         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
106556         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
106557         (gl_FUNC_READLINK): Update.
106559         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
106561 2007-03-03  Bruno Haible  <bruno@clisp.org>
106563         * lib/xreadlink.c: Include <unistd.h> unconditionally.
106564         * modules/xreadlink (Depends-on): Add unistd.
106565         * modules/xreadlink-with-size (Depends-on): Likewise.
106567 2007-03-03  Bruno Haible  <bruno@clisp.org>
106569         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
106570         extracted from gt_FUNC_SETENV.
106571         (gt_FUNC_SETENV): Remove macro.
106572         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
106573         remove gt_FUNC_SETENV.
106575 2007-03-03  Bruno Haible  <bruno@clisp.org>
106577         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
106578         ENABLE_RELOCATABLE here.
106579         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
106581 2007-03-03  Bruno Haible  <bruno@clisp.org>
106583         * modules/rbtreehash-list-tests (Depends-on): Add progname.
106584         * tests/test-rbtreehash_list.c: Include progname.h.
106585         (main): Call set_program_name.
106587         * modules/rbtree-oset-tests (Depends-on): Add progname.
106588         * tests/test-rbtree_oset.c: Include progname.h.
106589         (main): Call set_program_name.
106591         * modules/rbtree-list-tests (Depends-on): Add progname.
106592         * tests/test-rbtree_list.c: Include progname.h.
106593         (main): Call set_program_name.
106595         * modules/linked-list-tests (Depends-on): Add progname.
106596         * tests/test-linked_list.c: Include progname.h.
106597         (main): Call set_program_name.
106599 2007-03-03  Bruno Haible  <bruno@clisp.org>
106601         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
106602         All uses of __restrict changed to _Restrict_.
106603         * lib/glob_.h (__restrict): Remove macro.
106605 2007-03-02  Bruno Haible  <bruno@clisp.org>
106607         * modules/gettext (configure.ac): Require gettext infrastructure
106608         from version 0.16.1.
106610 2007-03-02  Bruno Haible  <bruno@clisp.org>
106612         * modules/linkedhash-list-tests (Depends-on): Add progname.
106613         * tests/test-linkedhash_list.c: Include progname.h.
106614         (main): Call set_program_name.
106616         * modules/carray-list-tests (Depends-on): Add progname.
106617         * tests/test-carray_list.c: Include progname.h.
106618         (main): Call set_program_name.
106620         * modules/avltreehash-list-tests (Depends-on): Add progname.
106621         * tests/test-avltreehash_list.c: Include progname.h.
106622         (main): Call set_program_name.
106624         * modules/avltree-oset-tests (Depends-on): Add progname.
106625         * tests/test-avltree_oset.c: Include progname.h.
106626         (main): Call set_program_name.
106628         * modules/avltree-list-tests (Depends-on): Add progname.
106629         * tests/test-avltree_list.c: Include progname.h.
106630         (main): Call set_program_name.
106632         * modules/array-oset-tests (Depends-on): Add progname.
106633         * tests/test-array_oset.c: Include progname.h.
106634         (main): Call set_program_name.
106636         * modules/array-list-tests (Depends-on): Add progname.
106637         * tests/test-array_list.c: Include progname.h.
106638         (main): Call set_program_name.
106640         * modules/argp-tests (Depends-on): Add progname.
106641         * tests/test-argp.c: Include argp.h first. Include progname.h.
106642         (main): Call set_program_name.
106644 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
106646         * doc/gnulib-tool.texi (Initial import): Reword description of
106647         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
106648         limited effect even if defined after the first system include.
106650 2007-03-01  Bruno Haible  <bruno@clisp.org>
106652         * build-aux/config.libpath: Update to libtool-1.5.22.
106653         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
106655 2007-03-01  Bruno Haible  <bruno@clisp.org>
106657         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
106658         foo_CFLAGS.
106659         Reported by Ralf Wildenhues.
106661 2007-03-01  Bruno Haible  <bruno@clisp.org>
106663         * build-aux/install-reloc: Remove object files left over by some
106664         compilers.
106665         Reported by Ralf Wildenhues.
106667 2007-03-01  Bruno Haible  <bruno@clisp.org>
106669         * build-aux/install-reloc: Break long lines.
106671 2007-03-01  Bruno Haible  <bruno@clisp.org>
106673         * doc/relocatable.texi: Document that it may not work on OpenBSD.
106674         Reported by Ralf Wildenhues.
106676 2007-03-01  Bruno Haible  <bruno@clisp.org>
106678         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
106679         include ordering constraints.
106681 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
106683         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
106684         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
106685         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
106686         as another example.
106687         * lib/time_.h: Fix misspelling.
106688         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
106689         Require gl_HEADER_TIME_H_DEFAULTS.
106690         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
106691         * m4/time_r.m4 (gl_TIME_R): Likewise.
106692         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
106694 2007-03-01  Bruno Haible  <bruno@clisp.org>
106696         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
106697         * m4/utimens.m4 (gl_UTIMENS): Likewise.
106699 2007-03-01  Jim Meyering  <jim@meyering.net>
106701         * modules/xreadlink (Maintainer): Add my name.
106702         * modules/xreadlink-with-size (Depends-on): Alphabetize.
106704 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
106705             Bruno Haible  <bruno@clisp.org>
106707         * build-aux/install-reloc: Compile also c-ctype.c.
106708         * build-aux/relocatable.sh.in: New file.
106709         * doc/relocatable.texi: New file.
106710         * doc/relocatable-maint.texi: New file.
106711         * doc/gnulib.texi: Include relocatable-maint.texi.
106712         * lib/progreloc.c: Include unistd.h unconditionally.
106713         * lib/relocwrapper.c: Include unistd.h unconditionally.
106714         Include c-ctype.h.
106715         (add_dotbin): Use c_tolower.
106716         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
106717         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
106718         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
106719         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
106720         to m4/relocatable-lib.m4.
106721         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
106722         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
106723         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
106724         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
106725         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
106726         * modules/relocatable: New file.
106727         * modules/relocatable-lib: New file.
106728         * modules/relocatable-script: New file.
106730 2007-02-28  Bruno Haible  <bruno@clisp.org>
106732         Import --enable-relocatable infrastructure.
106733         * build-aux/config.libpath: New file, from GNU gettext.
106734         * build-aux/install-reloc: New file, from GNU gettext.
106735         * build-aux/reloc-ldflags: New file, from GNU gettext.
106736         * lib/relocatable.h: New file, from GNU gettext.
106737         * lib/relocatable.c: New file, from GNU gettext.
106738         * lib/relocwrapper.c: New file, from GNU gettext.
106739         * m4/relocatable.m4: New file, from GNU gettext.
106741 2007-02-28  Bruno Haible  <bruno@clisp.org>
106743         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
106745         * modules/xreadlink: New file, from GNU gettext with modifications.
106746         * lib/xreadlink.c: New file, from GNU gettext.
106747         * lib/xreadlink.h: Add comments.
106748         (xreadlink): New declaration.
106750         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
106751         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
106752         lib/xreadlink-with-size.c.
106753         (configure.ac): Remove gl_XREADLINK invocation.
106754         (Makefile.am): Augment lib_SOURCES.
106755         * m4/xreadlink.m4: Remove file.
106756         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
106757         (xreadlink_with_size): Renamed from xreadink.
106758         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
106759         * modules/canonicalize (Depends-on): Replace xreadlink with
106760         xreadlink-with-size.
106761         * lib/canonicalize.c (canonicalize_filename_mode): Update.
106763 2007-02-25  Jim Meyering  <jim@meyering.net>
106765         * build-aux/announce-gen: When complaining about excess arguments,
106766         list them.
106768 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
106770         * README: Document signed integer overflow situation more
106771         accurately.
106773 2007-02-25  Bruno Haible  <bruno@clisp.org>
106775         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
106776         'a' or 'A' conversion.
106778 2007-02-25  Bruno Haible  <bruno@clisp.org>
106780         * modules/filename: Renamed from modules/pathname.
106781         (Files): Replace lib/pathname.h with lib/filename.h. Replace
106782         lib/concatpath.c with lib/concat-filename.c.
106783         (Makefile.am): Update.
106784         (Include): Replace pathname.h with filename.h.
106785         * lib/filename.h: Renamed from lib/pathname.h.
106786         (concatenated_filename): Renamed from concatenated_pathname.
106787         * lib/concat-filename.c: Renamed from lib/concatpath.c.
106788         (concatenated_filename): Renamed from concatenated_pathname.
106789         * lib/findprog.c: Include filename.h instead of pathname.h.
106790         (find_in_path): Update.
106791         * lib/javacomp.c: Include filename.h instead of pathname.h.
106792         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
106793         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
106794         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
106795         is_oldgcj_14_13_usable, is_javac_usable): Update.
106796         * lib/javaexec.c: Include filename.h instead of pathname.h.
106797         (execute_java_class): Update.
106798         * modules/findprog: Update.
106799         * modules/javacomp: Update.
106800         * modules/javaexec: Update.
106801         * MODULES.html.sh (File system functions): Add 'filename', remove
106802         'pathname'.
106804 2007-02-25  Bruno Haible  <bruno@clisp.org>
106806         * modules/printf-frexpl-tests: New file.
106807         * tests/test-printf-frexpl.c: New file.
106809         * modules/printf-frexpl: New file.
106810         * lib/printf-frexpl.h: New file.
106811         * lib/printf-frexpl.c: New file.
106812         * m4/printf-frexpl.m4: New file.
106814 2007-02-25  Bruno Haible  <bruno@clisp.org>
106816         * modules/printf-frexp-tests: New file.
106817         * tests/test-printf-frexp.c: New file.
106819         * modules/printf-frexp: New file.
106820         * lib/printf-frexp.h: New file.
106821         * lib/printf-frexp.c: New file.
106822         * m4/printf-frexp.m4: New file.
106824 2007-02-25  Bruno Haible  <bruno@clisp.org>
106826         Assume automake >= 1.10 for the tests.
106827         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
106828         * modules/arctwo-tests: Likewise.
106829         * modules/argp-tests: Likewise.
106830         * modules/avltree-list-tests: Likewise.
106831         * modules/avltree-oset-tests: Likewise.
106832         * modules/avltreehash-list-tests: Likewise.
106833         * modules/carray-list-tests: Likewise.
106834         * modules/crc-tests: Likewise.
106835         * modules/des-tests: Likewise.
106836         * modules/gc-arcfour-tests: Likewise.
106837         * modules/gc-arctwo-tests: Likewise.
106838         * modules/gc-des-tests: Likewise.
106839         * modules/gc-hmac-md5-tests: Likewise.
106840         * modules/gc-hmac-sha1-tests: Likewise.
106841         * modules/gc-md2-tests: Likewise.
106842         * modules/gc-md4-tests: Likewise.
106843         * modules/gc-md5-tests: Likewise.
106844         * modules/gc-pbkdf2-sha1-tests: Likewise.
106845         * modules/gc-rijndael-tests: Likewise.
106846         * modules/gc-sha1-tests: Likewise.
106847         * modules/gc-tests: Likewise.
106848         * modules/getaddrinfo-tests: Likewise.
106849         * modules/hmac-md5-tests: Likewise.
106850         * modules/hmac-sha1-tests: Likewise.
106851         * modules/linked-list-tests: Likewise.
106852         * modules/linkedhash-list-tests: Likewise.
106853         * modules/lock-tests: Likewise.
106854         * modules/md2-tests: Likewise.
106855         * modules/md4-tests: Likewise.
106856         * modules/md5-tests: Likewise.
106857         * modules/rbtree-list-tests: Likewise.
106858         * modules/rbtree-oset-tests: Likewise.
106859         * modules/rbtreehash-list-tests: Likewise.
106860         * modules/read-file-tests: Likewise.
106861         * modules/rijndael-tests: Likewise.
106862         * modules/stdint-tests: Likewise.
106863         * modules/tls-tests: Likewise.
106865 2007-02-24  Bruno Haible  <bruno@clisp.org>
106867         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
106868         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
106869         function; instead check whether isnan with a double argument links.
106870         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
106871         function; instead check whether isnan with a 'long double' argument
106872         links.
106873         Reported by Eric Blake <ebb9@byu.net>.
106875 2007-02-24  Bruno Haible  <bruno@clisp.org>
106877         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
106878         defined.
106879         * lib/isnanl.c: Remove all code. Just include isnan.c.
106880         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
106882 2007-02-25  Jim Meyering  <jim@meyering.net>
106884         Avoid conflicting types for 'unsetenv' on FreeBSD.
106885         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
106886         conflicting with FreeBSD's (5.0 and 6.1) function declaration
106887         in stdlib.h.
106889 2007-02-24  Bruno Haible  <bruno@clisp.org>
106891         * modules/isnanl-nolibm-tests: New file.
106892         * tests/test-isnanl.c: New file.
106894         * modules/isnanl-nolibm: New file.
106895         * lib/isnanl.h: New file.
106896         * lib/isnanl.c: New file.
106897         * m4/isnanl.m4: New file.
106899 2007-02-24  Bruno Haible  <bruno@clisp.org>
106901         * modules/isnan-nolibm-tests: New file.
106902         * tests/test-isnan.c: New file.
106904         * modules/isnan-nolibm: New file.
106905         * lib/isnan.h: New file.
106906         * lib/isnan.c: New file.
106907         * m4/isnan.m4: New file.
106909 2007-02-24  Bruno Haible  <bruno@clisp.org>
106911         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
106912         assume that an exponent fits in 20 bits.
106914 2007-02-24  Jim Meyering  <jim@meyering.net>
106916         * m4/regex.m4: Update the description of the configure-time option,
106917         --without-included-regex, to state accurately what the defaults are,
106918         and perhaps to give people an idea why using this option is risky.
106920 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
106922         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
106923         loops on small arguments.  This attempts to avoid the problem
106924         Bruno Haible reported for AIX 4.3.2 in
106925         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
106927 2007-02-23  Bruno Haible  <bruno@clisp.org>
106929         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
106930         Needed for help2man.
106932 2007-02-23  Karl Berry  <karl@gnu.org>
106934         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
106935         exists, foo.h should be cvs-ignored, not committed.
106937 2007-02-23  Eric Blake  <ebb9@byu.net>
106939         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
106940         * lib/stat-time.h (includes): Likewise.
106941         * lib/utimecmp.c (includes): Likewise.
106942         * lib/utimens.h (includes): Likewise.
106943         * lib/getdate.y (includes): Also include "timespec.h" for use
106944         internal to the module.
106945         * modules/utimens (Depends-on): Revert yesterday's patch.
106946         * modules/nanosleep (Depends-on): Add missing dependency.
106948 2007-02-22  Bruno Haible  <bruno@clisp.org>
106950         * lib/glob.c: Don't include getlogin_r.h.
106952 2007-02-22  Jim Meyering  <jim@meyering.net>
106954         * modules/utimens (Depends-on): Add timespec, required for
106955         utimens.h's inclusion of timespec.h.
106957 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
106959         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
106960         long unreadable paths in GNU/Linux.  Problem reported by Andreas
106961         Schwab in
106962         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
106963         I'll try to think of a better way to fix the Solaris problem.
106965         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
106966         like glibc; on Solaris 10, it fails with errno == EINVAL.
106967         POSIX says the behavior is unspecified if the first argument is NULL,
106968         so play it safe and never pass NULL to the system getcwd.
106970 2007-02-21  Jim Meyering  <jim@meyering.net>
106972         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
106973         of gettimeofday.  It would conflict with the one now always
106974         provided via sys_time_.h.  Reported by Matthew Woehlke, as
106975         an IRIX 6.5 build failure.
106977 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
106979         Minor fixups to port to Solaris 10 with Sun C 5.8.
106980         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
106981         * modules/getcwd (Depends-on): Add dirfd.
106982         * lib/putenv.c (putenv): #undef it.
106983         (rpl_putenv): New decl.
106984         (malloc, free): Include <stdlib.h> rather than prototyping separately.
106986 2007-02-20  Bruno Haible  <bruno@clisp.org>
106988         * modules/stdio-tests: New file.
106989         * tests/test-stdio.c: New file.
106991         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
106992         (Depends-on): Add stdio.
106993         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
106994         (Include): Use <stdio.h> instead of vsnprintf.h.
106995         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
106996         HAVE_DECL_VSNPRINTF.
106997         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
106999         * modules/snprintf (Files): Remove lib/snprintf.h.
107000         (Depends-on): Add stdio.
107001         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
107002         (Include): Use <stdio.h> instead of snprintf.h.
107003         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
107004         HAVE_DECL_SNPRINTF.
107005         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
107006         * lib/getaddrinfo.c: Likewise.
107008         * modules/stdio: New file.
107009         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
107010         * lib/snprintf.h: Remove file.
107011         * lib/vsnprintf.h: Remove file.
107012         * lib/.cppi-disable: Remove snprintf.h.
107013         * m4/stdio_h.m4: New file.
107014         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
107016 2007-02-20  Jim Meyering  <jim@meyering.net>
107018         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
107019         used by e.g., mingw.  From Bruno Haible.
107021 2007-02-19  Bruno Haible  <bruno@clisp.org>
107023         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
107024         warnings.
107025         Reported by Ben Pfaff <blp@cs.stanford.edu>.
107027 2007-02-19  Bruno Haible  <bruno@clisp.org>
107029         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
107030         from mingw users.
107032 2007-02-19  Bruno Haible  <bruno@clisp.org>
107034         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
107035         warnings.
107036         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
107038 2007-02-19  Jim Meyering  <jim@meyering.net>
107040         Don't use FD after a successful "fdopendir (fd)".
107041         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
107042         Reset it by calling dirfd on the just-obtained DIR*.
107044         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
107045         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
107047 2007-02-18  Bruno Haible  <bruno@clisp.org>
107049         * lib/readlink.c: Include <unistd.h>.
107050         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
107051         HAVE_READLINK.
107052         * modules/readlink (Depends-on): Add unistd.
107053         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107054         (Include): Add <unistd.h>.
107056         * lib/getlogin_r.h: Remove file.
107057         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
107058         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
107059         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
107060         HAVE_DECL_GETLOGIN_R.
107061         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
107062         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107063         (Include): Use <unistd.h> instead of getlogin_r.h.
107065         * lib/getcwd.h: Remove file.
107066         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
107067         * lib/xgetcwd.c: Likewise.
107068         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
107069         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
107070         * modules/getcwd (Files): Remove lib/getcwd.h.
107071         (Depends-on): Add unistd.
107072         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107073         (Include): Use <unistd.h> instad of getcwd.h.
107075         * lib/ftruncate.c: Include <unistd.h> first.
107076         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
107077         Set HAVE_FTRUNCATE.
107078         * modules/ftruncate (Depends-on): Add unistd.
107079         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107081         * lib/fchdir.c: Include <unistd.h> first.
107082         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
107083         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
107084         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
107085         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107086         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
107088         * lib/dup2.c: Include <unistd.h> first.
107089         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
107090         HAVE_DUP2.
107091         * modules/dup2 (Depends-on): Add unistd.
107092         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107094         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
107095         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
107096         REPLACE_CHOWN. Don't define chown as a macro here.
107097         * modules/chown (Depends-on): Add unistd.
107098         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107100         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
107101         Add definition for GL_LINK_WARNING.
107102         (chown, dup2): New declarations.
107103         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
107104         link warning.
107105         (ftruncate): New declaration.
107106         (getcwd): New declaration, taken from old getcwd.h.
107107         (getlogin_r): New declaration, taken from old getlogin_r.h.
107108         (readlink): New declaration.
107109         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
107110         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
107111         (gl_PREREQ_UNISTD): Remove macro.
107112         (gl_UNISTD_MODULE_INDICATOR): New macro.
107113         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
107114         many new variables. Don't set UNISTD_H.
107115         * modules/unistd (Description): Change.
107116         (Depends-on): Add link-warning.
107117         (configure.ac): Update.
107118         (Makefile.am): Create unistd.h always. Substitute many new variables
107119         into it.
107121 2007-02-18  Bruno Haible  <bruno@clisp.org>
107123         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
107124         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
107125         HAVE_GETSUBOPT.
107126         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
107127         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
107128         * lib/getsubopt.h: Remove file.
107129         * modules/getsubopt (Files): Remove lib/getsubopt.h.
107130         (Depends-on): Add stdlib.
107131         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
107132         (Includes): Use <stdlib.h> instead of getsubopt.h.
107133         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
107134         Set HAVE_GETSUBOPT.
107135         * lib/getsubopt.c: Don't include getsubopt.h.
107137 2007-02-18  Bruno Haible  <bruno@clisp.org>
107139         * modules/fchdir (Depends-on): Add dup2.
107141 2007-02-18  Bruno Haible  <bruno@clisp.org>
107143         * lib/stdlib_.h: Handle glibc's special invocation convention
107144         specially.
107146 2007-02-18  Bruno Haible  <bruno@clisp.org>
107148         * modules/stdlib-tests: New file.
107149         * tests/test-stdlib.c: New file.
107151         * modules/mkstemp (Files): Remove lib/mkstemp.h.
107152         (Depends-on): Add stdlib.
107153         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
107154         (Includes): Use <stdlib.h> instead of mkstemp.h.
107155         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
107156         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
107157         * lib/mkstemp.c: Don't include mkstemp.h.
107158         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
107159         * lib/stdlib--.h: Don't include mkstemp.h.
107161         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
107162         (Depends-on): Add stdlib.
107163         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
107164         (Includes): Use <stdlib.h> instead of mkdtemp.h.
107165         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
107166         HAVE_MKDTEMP.
107167         * lib/mkdtemp.c: Don't include mkdtemp.h.
107168         * lib/clean-temp.c: Don't include mkdtemp.h.
107170         * modules/exit (Files): Remove lib/exit.h.
107171         (Depends-on): Add stdlib.
107172         (Makefile.am): Remove lib_SOURCES.
107173         (Include): Use <stdlib.h> instead of exit.h.
107174         * lib/argmatch.c: Don't include exit.h.
107175         * lib/execute.c: Likewise.
107176         * lib/pagealign_alloc.c: Likewise.
107177         * lib/pipe.c: Likewise.
107178         * lib/wait-process.c: Likewise.
107179         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
107180         * lib/exitfail.c: Likewise.
107181         * lib/savewd.c: Likewise.
107182         * lib/xsetenv.c: Likewise.
107184         * modules/stdlib: New file.
107185         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
107186         and extra comments about mkstemp().
107187         * lib/exit.h: Remove file.
107188         * lib/mkdtemp.h: Remove file.
107189         * lib/mkstemp.h: Remove file.
107190         * m4/stdlib_h.m4: New file.
107191         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
107193 2007-02-18  Bruno Haible  <bruno@clisp.org>
107195         * modules/math-tests: New file.
107196         * tests/test-math.c: New file.
107198         * modules/math: New file.
107199         * modules/mathl (Files): Remove lib/mathl.h.
107200         (Depends-on): Add math.
107201         (Makefile.am): Don't mention mathl.h.
107202         (Include): Use <math.h> instead of mathl.h.
107203         * lib/math_.h: New file.
107204         * lib/mathl.h: Remove file.
107205         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
107206         mathl.h.
107207         * lib/asinl.c: Likewise.
107208         * lib/atanl.c: Likewise.
107209         * lib/ceill.c: Likewise.
107210         * lib/cosl.c: Likewise.
107211         * lib/expl.c: Likewise.
107212         * lib/floorl.c: Likewise.
107213         * lib/frexpl.c: Likewise.
107214         * lib/ldexpl.c: Likewise.
107215         * lib/logl.c: Likewise.
107216         * lib/sincosl.c: Likewise.
107217         * lib/sinl.c: Likewise.
107218         * lib/sqrtl.c: Likewise.
107219         * lib/tanl.c: Likewise.
107220         * lib/trigl.c: Likewise.
107221         * m4/math_h.m4: New file.
107222         * MODULES.html.sh (Mathematics): Add math.
107224 2007-02-17  Bruno Haible  <bruno@clisp.org>
107226         * modules/wctype-tests: New file.
107227         * tests/test-wctype.c: New file.
107229         * modules/wchar-tests: New file.
107230         * tests/test-wchar.c: New file.
107232         * modules/unistd-tests: New file.
107233         * tests/test-unistd.c: New file.
107235         * modules/time-tests: New file.
107236         * tests/test-time.c: New file.
107238         * modules/sysexits-tests: New file.
107239         * tests/test-sysexits.c: New file.
107241         * modules/sys_time-tests: New file.
107242         * tests/test-sys_time.c: New file.
107244         * modules/sys_stat-tests: New file.
107245         * tests/test-sys_stat.c: New file.
107247         * modules/sys_socket-tests: New file.
107248         * tests/test-sys_socket.c: New file.
107250         * modules/sys_select-tests: New file.
107251         * tests/test-sys_select.c: New file.
107253         * modules/string-tests: New file.
107254         * tests/test-string.c: New file.
107256         * modules/stdbool-tests: New file.
107257         * tests/test-stdbool.c: New file.
107259         * modules/netinet_in-tests: New file.
107260         * tests/test-netinet_in.c: New file.
107262         * modules/inttypes-tests: New file.
107263         * tests/test-inttypes.c: New file.
107265         * modules/fcntl-tests: New file.
107266         * tests/test-fcntl.c: New file.
107268         * modules/byteswap-tests: New file.
107269         * tests/test-byteswap.c: New file.
107271         * modules/arpa_inet-tests: New file.
107272         * tests/test-arpa_inet.c: New file.
107274 2007-02-17  Bruno Haible  <bruno@clisp.org>
107276         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
107277         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
107278         if the corresponding module is not enabled. Emit link warnings if
107279         the function is used nevertheless.
107280         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
107281         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
107282         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
107283         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
107284         * modules/inttypes (Depends-on): Add link-warning.
107285         (Makefile.am): Copy the contents of build-aux/link-warning.h into
107286         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
107287         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
107288         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
107289         * modules/imaxdiv (configure.ac): Likewise.
107290         * modules/strtoimax (configure.ac): Likewise.
107291         * modules/strtoumax (configure.ac): Likewise.
107293 2007-02-17  Bruno Haible  <bruno@clisp.org>
107295         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
107296         gl_STRING_MODULE_INDICATOR_DEFAULTS.
107297         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
107298         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
107300 2007-02-17  Bruno Haible  <bruno@clisp.org>
107302         * modules/link-warning: New file.
107303         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
107304         * lib/string_.h (GL_LINK_WARNING): Remove definition.
107305         * modules/string (Depends-on): Add link-warning.
107306         (Makefile.am): Copy the contents of build-aux/link-warning.h into
107307         string.h.
107308         * MODULES.html.sh (Support for building libraries and executables): Add
107309         link-warning.
107311 2007-02-17  Bruno Haible  <bruno@clisp.org>
107313         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
107314         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
107315         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
107316         long lines.
107318 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
107319             Bruno Haible  <bruno@clisp.org>
107321         * modules/tmpfile: New file.
107322         * lib/tmpfile.c: New file.
107323         * m4/tmpfile.m4: New file.
107324         * MODULES.html.sh (func_all_modules): New section "Input/output".
107326 2007-02-15  Bruno Haible  <bruno@clisp.org>
107328         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
107329         (supports_delete_on_close): New function.
107330         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
107332 2007-02-14  Bruno Haible  <bruno@clisp.org>
107334         * modules/mbspcasecmp-tests: New file.
107335         * tests/test-mbspcasecmp.sh: New file.
107336         * tests/test-mbspcasecmp.c: New file.
107338         New module mbspcasecmp.
107339         * modules/mbspcasecmp: New file.
107340         * lib/mbspcasecmp.c: New file.
107341         * lib/string_.h (strncasecmp): Change warning message.
107342         (mbspcasecmp): New declaration.
107343         * m4/mbspcasecmp.m4: New file.
107344         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107345         GNULIB_MBSPCASECMP.
107346         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
107347         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
107349 2007-02-14  Bruno Haible  <bruno@clisp.org>
107351         * modules/mbsncasecmp-tests: New file.
107352         * tests/test-mbsncasecmp.sh: New file.
107353         * tests/test-mbsncasecmp.c: New file.
107355         New module mbsncasecmp.
107356         * modules/mbsncasecmp: New file.
107357         * lib/mbsncasecmp.c: New file.
107358         * lib/string_.h (mbsncasecmp): New declaration.
107359         * m4/mbsncasecmp.m4: New file.
107360         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107361         GNULIB_MBSNCASECMP.
107362         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
107363         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
107365 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
107367         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
107368         Verify that it doesn't overlap with our flags.
107369         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
107370         do not have the desired effect in multibyte locales; instead, use
107371         mbscasecmp.
107372         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
107373         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
107374         we don't require GNU fnmatch ourselves (if our users require it, they
107375         should do so explicitly).
107377         Fix regex code so it doesn't rely on strcasecmp.
107378         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
107379         Otherwise, include gnulib's langinfo.h.
107380         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
107381         undesirable behavior in non-C locales.  Instead, rely on localecharset.
107382         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
107383         * modules/regex (FILES): Remove m4/codeset.m4.
107384         (Depends-on): Add localcharset.  Remove strcase.
107386 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107388         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
107389         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
107391 2007-02-13  Bruno Haible  <bruno@clisp.org>
107393         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
107394         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
107396 2007-02-12  Bruno Haible  <bruno@clisp.org>
107398         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
107399         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
107400         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
107401         time warning rather than a link error.
107403 2007-02-12  Bruno Haible  <bruno@clisp.org>
107405         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
107406         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
107407         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
107409 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
107411         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
107412         args, not 2.
107414 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
107416         New module 'time', so that apps can include <time.h> as per
107417         POSIX and GNU instead of separate include files like time_r.h
107418         and timegm.h.  This implementation tries out a simpler approach
107419         for replacing decls in standard include files (as compared to
107420         the string module), somewhat as an experiment.
107422         * config/srclist.txt: Comment out mktime.c for now.
107423         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
107424         since it doesn't apply any more.  Use generic wording instead.
107425         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
107426         'time'.
107427         * lib/time_.h, m4/time_h.m4, modules/time: New files.
107428         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
107429         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
107430         Don't include <sys/types.h>; no longer needed since we assume C89.
107431         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
107432         * lib/strftime.c: Likewise.
107433         * lib/time_r.c: Likewise.
107434         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
107435         * lib/nanosleep.c: Include <time.h> first, to check interface.
107436         * lib/strptime.c: Likewise.
107437         * lib/time_r.c: Likewise.
107438         * lib/timegm.c: Likewise.
107439         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
107440         needed.
107441         * lib/timegm.c: Don't include timegm.h; no longer needed.
107442         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
107443         time.h now handles any problems in that area.
107444         (struct timespec, nanosleep): Remove; time.h now arranges for these.
107445         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
107446         that time.h defines struct timespec.
107447         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
107448         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
107449         handles that.
107450         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
107451         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
107452         needed.  Set REPLACE_LOCALTIME.
107453         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
107454         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
107455         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
107456         nanosleep; time_h.m4 now does that.  Don't require
107457         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
107458         module handles this now.
107459         * modules/getdate (Depends-on): Remove timespec.  Add time.
107460         * modules/nanosleep (Depends-on): Likewise.
107461         * modules/stat-time (Depends-on): Likewise.
107462         * modules/nanosleep (Include): Include time.h, not timespec.h.
107463         * modules/strptime (Files): Remove lib/strptime.h.
107464         (Depends-on): Add extensions, time.
107465         (Include): Include time.h, not strptime.h.
107466         * modules/time_r (Files): Remove lib/time_r.h.
107467         (Depends-on): Add time.
107468         (Include): Include time.h, not time_r.h.
107469         * modules/timegm: Likewise.
107470         * modules/timespec (Description): Now does timespec-related decls
107471         of our own, instead of struct timespec itself.
107472         (Depends-on): Add time; remove extensions.
107473         (Maintainer): Add self.
107474         * modules/utimecmp (Depends-on): Add time; remove timespec.
107475         * modules/utimens (Depends-on): Likewise.
107476         * modules/xnanosleep (Depends-on): Likewise.
107478 2007-02-11  Bruno Haible  <bruno@clisp.org>
107480         * lib/c-strstr.c: Include allocsa.h.
107481         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
107482         * lib/c-strcasestr.c: Include allocsa.h.
107483         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
107484         * lib/strcasestr.c: Include allocsa.h.
107485         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
107486         * lib/mbsstr.c: Include allocsa.h.
107487         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
107488         allocsa/freesa instead of malloc/free.
107489         * lib/mbscasestr.c: Include allocsa.h.
107490         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
107491         allocsa/freesa instead of malloc/free.
107492         * modules/c-strstr (Depends-on): Add allocsa.
107493         * modules/c-strcasestr (Depends-on): Likewise.
107494         * modules/strcasestr (Depends-on): Likewise.
107495         * modules/mbsstr (Depends-on): Likewise.
107496         * modules/mbscasestr (Depends-on): Likewise.
107498 2007-02-11  Bruno Haible  <bruno@clisp.org>
107500         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
107502         * modules/mbsspn-tests: New file.
107503         * tests/test-mbsspn.sh: New file.
107504         * tests/test-mbsspn.c: New file.
107506 2007-02-11  Bruno Haible  <bruno@clisp.org>
107508         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
107510         * modules/mbspbrk-tests: New file.
107511         * tests/test-mbspbrk.sh: New file.
107512         * tests/test-mbspbrk.c: New file.
107514 2007-02-11  Bruno Haible  <bruno@clisp.org>
107516         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
107517         unneeded cast.
107519         * modules/mbscspn-tests: New file.
107520         * tests/test-mbscspn.sh: New file.
107521         * tests/test-mbscspn.c: New file.
107523 2007-02-11  Bruno Haible  <bruno@clisp.org>
107525         * modules/mbscasecmp-tests: New file.
107526         * tests/test-mbscasecmp.sh: New file.
107527         * tests/test-mbscasecmp.c: New file.
107529 2007-02-11  Bruno Haible  <bruno@clisp.org>
107531         Ensure O(n) worst-case complexity of mbscasestr.
107532         * lib/mbscasestr.c: Include stdbool.h.
107533         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
107534         functions.
107535         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
107536         the bookkeeping indicates that it's worth it.
107537         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
107539         * modules/mbscasestr-tests: New file.
107540         * tests/test-mbscasestr1.c: New file.
107541         * tests/test-mbscasestr2.sh: New file.
107542         * tests/test-mbscasestr2.c: New file.
107543         * tests/test-mbscasestr3.sh: New file.
107544         * tests/test-mbscasestr3.c: New file.
107545         * tests/test-mbscasestr4.sh: New file.
107546         * tests/test-mbscasestr4.c: New file.
107547         * m4/locale-tr.m4: New file.
107549 2007-02-11  Bruno Haible  <bruno@clisp.org>
107551         Ensure O(n) worst-case complexity of mbsstr.
107552         * lib/mbsstr.c: Include stdbool.h.
107553         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
107554         functions.
107555         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
107556         bookkeeping indicates that it's worth it.
107557         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
107559         * modules/mbsstr-tests: New file.
107560         * tests/test-mbsstr1.c: New file.
107561         * tests/test-mbsstr2.sh: New file.
107562         * tests/test-mbsstr2.c: New file.
107563         * tests/test-mbsstr3.sh: New file.
107564         * tests/test-mbsstr3.c: New file.
107565         * m4/locale-fr.m4: New file.
107567 2007-02-11  Bruno Haible  <bruno@clisp.org>
107569         * lib/mbsrchr.c (mbsrchr): Fix bug.
107571         * modules/mbsrchr-tests: New file.
107572         * tests/test-mbsrchr.sh: New file.
107573         * tests/test-mbsrchr.c: New file.
107575 2007-02-11  Bruno Haible  <bruno@clisp.org>
107577         * lib/mbschr.c (mbschr): Fix bug.
107579         * modules/mbschr-tests: New file.
107580         * tests/test-mbschr.sh: New file.
107581         * tests/test-mbschr.c: New file.
107582         * m4/locale-zh.m4: New file.
107584 2007-02-11  Bruno Haible  <bruno@clisp.org>
107586         Support for copying multibyte string iterators.
107587         * lib/mbiter.h: Include <string.h>.
107588         (mbiter_multi_copy): New function.
107589         (mbi_copy): New macro.
107590         * lib/mbuiter.h: Include <string.h>.
107591         (mbuiter_multi_copy): New function.
107592         (mbui_copy): New macro.
107594 2007-02-11  Bruno Haible  <bruno@clisp.org>
107596         New module mbslen.
107597         * modules/mbslen: New file.
107598         * lib/mbslen.c: New file.
107599         * lib/string_.h (mbslen): New declaration.
107600         * m4/mbslen.m4: New file.
107601         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107602         GNULIB_MBSLEN.
107603         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
107604         * MODULES.html.sh (Internationalization functions): Add mbslen.
107606 2007-02-11  Bruno Haible  <bruno@clisp.org>
107608         Ensure O(n) worst-case complexity of strcasestr substitute.
107609         * lib/strcasestr.c: Include stdbool.h.
107610         (knuth_morris_pratt): New function.
107611         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
107612         bookkeeping indicates that it's worth it.
107613         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
107615         * modules/strcasestr-tests: New file.
107616         * tests/test-strcasestr.c: New file.
107618 2007-02-11  Bruno Haible  <bruno@clisp.org>
107620         Ensure O(n) worst-case complexity of c_strcasestr.
107621         * lib/c-strcasestr.c: Include stdbool.h, string.h.
107622         (knuth_morris_pratt): New function.
107623         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
107624         the bookkeeping indicates that it's worth it.
107625         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
107627         * modules/c-strcasestr-tests: New file.
107628         * tests/test-c-strcasestr.c: New file.
107630 2007-02-11  Bruno Haible  <bruno@clisp.org>
107632         Ensure O(n) worst-case complexity of c_strstr.
107633         * lib/c-strstr.c: Include stdbool.h, string.h.
107634         (knuth_morris_pratt): New function.
107635         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
107636         bookkeeping indicates that it's worth it.
107637         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
107639         * lib/c-strstr.c: Complete rewrite for maintainability.
107641         * modules/c-strstr-tests: New file.
107642         * tests/test-c-strstr.c: New file.
107644 2007-02-11  Bruno Haible  <bruno@clisp.org>
107646         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
107647         5.2.1 and earlier, whereby \055 was treated just like the range
107648         delimiter '-'.
107649         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
107651 2007-02-08  Bruno Haible  <bruno@clisp.org>
107653         * modules/regex (Depends-on): Add stdbool.
107654         Reported by Dalibor Topic <robilad@kaffe.org>.
107656 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
107658         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
107659         Prefer returning from main to exiting from it.
107660         Remove unnecessary parens after sizeof.
107662 2007-02-05  Bruno Haible  <bruno@clisp.org>
107664         New module mbssep.
107665         * modules/mbssep: New file.
107666         * lib/mbssep.c: New file.
107667         * lib/string_.h (strsep): Add a conditional link warning.
107668         (mbssep): New declaration.
107669         * m4/mbssep.m4: New file.
107670         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107671         GNULIB_MBSSEP.
107672         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
107673         * MODULES.html.sh (Internationalization functions): Add mbssep.
107675 2007-02-05  Bruno Haible  <bruno@clisp.org>
107677         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
107678         Optimize search in case of 1 delimiter.
107680 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
107682         * lib/acl.h: Include sys/types.h before sys/acl.h.
107684 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
107686         Merge upstream fix for glibc bugzilla #3957:
107688         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
107690         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
107691         bit for RE_HAT_LISTS_NOT_NEWLINE.
107692         (build_charclass_op): Remove bogus comment.
107694 2007-02-05  Simon Josefsson  <simon@josefsson.org>
107696         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
107698 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
107700         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
107701         * lib/memmem.c [!defined _LIBC]: Include config.h.
107703 2007-02-04  Bruno Haible  <bruno@clisp.org>
107705         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
107706         warning message.
107708 2007-02-04  Bruno Haible  <bruno@clisp.org>
107710         New module mbstok_r.
107711         * modules/mbstok_r: New file.
107712         * lib/mbstok_r.c: New file.
107713         * lib/string_.h (strtok_r): Change argument names to match the
107714         comments. Add a conditional link warning.
107715         (mbstok_r): New declaration.
107716         * m4/mbstok_r.m4: New file.
107717         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107718         GNULIB_MBSTOK_R.
107719         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
107720         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
107722 2007-02-04  Bruno Haible  <bruno@clisp.org>
107724         New module mbsspn.
107725         * modules/mbsspn: New file.
107726         * lib/mbsspn.c: New file.
107727         * lib/string_.h (strspn): Add a conditional link warning.
107728         (mbsspn): New declaration.
107729         * m4/mbsspn.m4: New file.
107730         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107731         GNULIB_MBSSPN.
107732         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
107733         * MODULES.html.sh (Internationalization functions): Add mbsspn.
107735 2007-02-04  Bruno Haible  <bruno@clisp.org>
107737         New module mbspbrk.
107738         * modules/mbspbrk: New file.
107739         * lib/mbspbrk.c: New file.
107740         * lib/string_.h (strpbrk): Add a conditional link warning.
107741         (mbspbrk): New declaration.
107742         * m4/mbspbrk.m4: New file.
107743         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107744         GNULIB_MBSPBRK.
107745         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
107746         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
107748 2007-02-04  Bruno Haible  <bruno@clisp.org>
107750         New module mbscspn.
107751         * modules/mbscspn: New file.
107752         * lib/mbscspn.c: New file.
107753         * lib/string_.h (strcspn): Add a conditional link warning.
107754         (mbscspn): New declaration.
107755         * m4/mbscspn.m4: New file.
107756         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107757         GNULIB_MBSCSPN.
107758         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
107759         * MODULES.html.sh (Internationalization functions): Add mbscspn.
107761 2007-02-04  Bruno Haible  <bruno@clisp.org>
107763         New module mbscasestr, reduced goal of strcasestr.
107764         * modules/mbscasestr: New file.
107765         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
107766         (mbscasestr): Renamed from strcasestr.
107767         * lib/strcasestr.c: Don't include mbuiter.h.
107768         (strcasestr): Remove support for multibyte locales.
107769         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
107770         Change the conditional link warning.
107771         (mbscasestr): New declaration.
107772         * m4/mbscasestr.m4: New file.
107773         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
107774         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
107775         REPLACE_STRCASESTR.
107776         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
107777         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
107778         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
107779         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
107780         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
107781         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
107782         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
107783         (Depends-on): Remove mbuiter.
107784         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
107786 2007-02-04  Bruno Haible  <bruno@clisp.org>
107788         Simplify handling of strncasecmp.
107789         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
107790         the conditional link warning.
107791         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
107792         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
107793         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
107794         * modules/strcase (configure.ac): Don't invoke
107795         gl_STRING_MODULE_INDICATOR.
107796         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
107798 2007-02-04  Bruno Haible  <bruno@clisp.org>
107800         New module mbscasecmp, reduced goal of strcasecmp.
107801         * modules/mbscasecmp: New file.
107802         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
107803         (mbscasecmp): Renamed from strcasecmp.
107804         * lib/strcasecmp.c: Don't include mbuiter.h.
107805         (strcasecmp): Remove support for multibyte locales.
107806         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
107807         Change the conditional link warning.
107808         (mbscasecmp): New declaration.
107809         * m4/mbscasecmp.m4: New file.
107810         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
107811         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
107812         REPLACE_STRCASECMP.
107813         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
107814         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107815         GNULIB_MBSCASECMP.
107816         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
107817         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
107818         * modules/strcase (Files): Remove m4/mbrtowc.m4.
107819         (Depends-on): Remove mbuiter.
107820         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
107822 2007-02-04  Bruno Haible  <bruno@clisp.org>
107824         New module mbsstr. Remove module strstr.
107825         * modules/mbsstr: New file.
107826         * modules/strstr: Remove file.
107827         * lib/mbsstr.c: Renamed from lib/strstr.c.
107828         (mbsstr): Renamed from strstr.
107829         * lib/string_.h (strstr): Remove declaration. Change the conditional
107830         link warning.
107831         (mbsstr): New declaration.
107832         * m4/mbsstr.m4: New file.
107833         * m4/strstr.m4: Remove file.
107834         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
107835         REPLACE_STRSTR.
107836         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
107837         Don't initialize GNULIB_STRSTR.
107838         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
107839         substitute GNULIB_STRSTR and REPLACE_STRSTR.
107840         * MODULES.html.sh (Internationalization functions): Add mbsstr.
107841         (Support for systems lacking ANSI C 89): Remove strstr.
107843 2007-02-04  Bruno Haible  <bruno@clisp.org>
107845         New module mbsrchr.
107846         * modules/mbsrchr: New file.
107847         * lib/mbsrchr.c: New file.
107848         * lib/string_.h (strrchr): Add a conditional link warning.
107849         (mbsrchr): New declaration.
107850         * m4/mbsrchr.m4: New file.
107851         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107852         GNULIB_MBSRCHR.
107853         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
107854         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
107856 2007-02-04  Bruno Haible  <bruno@clisp.org>
107858         New module mbschr.
107859         * modules/mbschr: New file.
107860         * lib/mbschr.c: New file.
107861         * lib/string_.h (strchr): Add a conditional link warning.
107862         (mbschr): New declaration.
107863         * m4/mbschr.m4: New file.
107864         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107865         GNULIB_MBSCHR.
107866         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
107867         * MODULES.html.sh (Internationalization functions): Add mbschr.
107869 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
107871         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
107873         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
107875 2007-02-04  Bruno Haible  <bruno@clisp.org>
107877         New module description section 'configure.ac-early'.
107878         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
107879         (func_get_autoconf_early_snippet): New function.
107880         (func_import, func_create_testdir): Use it. Remove special cases for
107881         modules 'extensions' and 'lock'.
107882         * modules/extensions (configure.ac-early): Require
107883         gl_USE_SYSTEM_EXTENSIONS.
107884         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
107886 2007-02-04  Bruno Haible  <bruno@clisp.org>
107888         Make use of gcj-4.3's -fsource and -ftarget option.
107889         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
107890         and if so try the options -fsource and -ftarget.
107891         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
107892         source_version, ftarget_option, target_version arguments.
107893         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
107894         (is_envjavac_oldgcj_14_14_usable): Renamed from
107895         is_envjavac_gcj_14_14_usable.
107896         (is_envjavac_oldgcj_14_13_usable): Renamed from
107897         is_envjavac_gcj_14_13_usable.
107898         (is_gcj_present): Update.
107899         (is_gcj_43, is_gcj43_usable): New functions.
107900         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
107901         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
107902         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
107903         try the options -fsource and -ftarget.
107905 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
107907         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
107908         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
107909         larger value.
107911 2007-02-03  Jim Meyering  <jim@meyering.net>
107913         Give tools a better chance to allocate space for very large buffers.
107914         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
107916         Make pwd and readlink work also when run with an unreadable parent dir
107917         on systems with openat support.
107918         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
107919         provided getcwd function, even when we have openat support.
107920         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
107922 2007-02-02  Bruno Haible  <bruno@clisp.org>
107924         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
107925         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
107926         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
107927         portability problems if one of these functions is only used on specific
107928         platforms.
107929         Reported by Paul Eggert.
107931 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
107933         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
107934         is causing more trouble than it's curing.
107935         * lib/regex_internal.h (__mempcpy): Remove.
107936         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
107937         (and make the code a tad smaller to boot).
107938         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
107940 2007-02-02  Jim Meyering  <jim@meyering.net>
107942         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
107943         section, not in the Makefile.am: one.
107945 2007-02-02  Eric Blake  <ebb9@byu.net>
107947         * lib/strchrnul.c: Always include config.h first.
107949         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
107950         gnulib strstr is not necessary here.
107952 2007-02-02  Simon Josefsson  <simon@josefsson.org>
107954         * m4/socklen.m4: Fix typo.
107956 2007-02-02  Eric Blake  <ebb9@byu.net>
107958         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
107959         * modules/netinet_in (Makefile.am): Likewise.
107961 2007-02-01  Bruno Haible  <bruno@clisp.org>
107963         * lib/string_.h (GL_LINK_WARNING): New macro.
107964         (strcasecmp, strstr, strcasestr): If provided by the system,
107965         conditionally define as a macro that leads to a warning instead of to
107966         an error.
107967         (strncasecmp): Conditionally define as a macro that leads to a warning.
107969 2007-02-01  Karl Berry  <karl@gnu.org>
107971         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
107973 2007-02-01  Bruno Haible  <bruno@clisp.org>
107975         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
107976         renamings.
107978 2007-02-01  Eric Blake  <ebb9@byu.net>
107980         * modules/regex (Depends-on): Revert dependence on mempcpy.
107981         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
107982         module's definition of mempcpy.
107983         Reported by Paul Eggert.
107985 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
107987         * lib/string_.h: If the gnulib module XYZ is not present, undefine
107988         the symbol XYZ before redefining it.  This fixes a problem with
107989         programs that don't use XYZ, when compiled on systems that define
107990         XYZ to something else.
107992 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
107994         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
107995         occurs when "mkdir -m foo" creates a setgid directory that is (1)
107996         writeable to group or other and (2) is intended to have a special
107997         mode bit that is set or cleared.  In such a case, the directory
107998         should be neither group- nor other-writeable until the special
107999         mode bits are right.
108001 2007-01-31  Eric Blake  <ebb9@byu.net>
108003         * modules/mountlist (Depends-on): Add strstr.
108005         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
108006         bug.
108007         * modules/string (Makefile.am): Remove redundant replacement.
108008         * modules/regex (Depends-on): Add mempcpy.
108010 2007-01-31  Bruno Haible  <bruno@clisp.org>
108012         New module description field 'Link'.
108013         * gnulib-tool (func_usage): Document --extract-link-directive.
108014         (sed_extract_prog): Recognize 'Link' directive.
108015         (func_get_link_directive): New function.
108016         (func_import): Show summary of link directives.
108017         Handle --extract-link-directive option.
108018         * modules/acl (Link): New section.
108019         * modules/clock-time (Link): New section.
108020         * modules/euidaccess (Link): New section.
108021         * modules/gettext (Link): New section.
108022         * modules/iconv (Link): New section.
108023         * modules/lock (Link): New section.
108024         * modules/nanosleep (Link): New section.
108025         * modules/readline (Link): New section.
108027 2007-01-27  Bruno Haible  <bruno@clisp.org>
108029         Enforce the use of gnulib modules for unportable <string.h> functions.
108030         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
108031         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
108032         (gl_HEADER_STRING_H_BODY): Require it.
108033         * lib/string_.h: If the gnulib module XYZ is not present, redefine
108034         the symbol XYZ to one that gives a link error.
108035         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
108036         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
108037         * modules/mempcpy (configure.ac): Likewise.
108038         * modules/memrchr (configure.ac): Likewise.
108039         * modules/stpcpy (configure.ac): Likewise.
108040         * modules/stpncpy (configure.ac): Likewise.
108041         * modules/strcase (configure.ac): Likewise.
108042         * modules/strcasestr (configure.ac): Likewise.
108043         * modules/strchrnul (configure.ac): Likewise.
108044         * modules/strdup (configure.ac): Likewise.
108045         * modules/strndup (configure.ac): Likewise.
108046         * modules/strnlen (configure.ac): Likewise.
108047         * modules/strpbrk (configure.ac): Likewise.
108048         * modules/strsep (configure.ac): Likewise.
108049         * modules/strstr (configure.ac): Likewise.
108050         * modules/strtok_r (configure.ac): Likewise.
108052 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
108054         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
108056 2007-01-30  Jim Meyering  <jim@meyering.net>
108058         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
108060 2007-01-29  Bruno Haible  <bruno@clisp.org>
108062         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
108063         * lib/execute.c: Likewise.
108064         * lib/pipe.c: Likewise.
108065         * lib/printf-args.h: Likewise.
108066         * lib/printf-args.c: Likewise.
108067         * lib/printf-parse.c: Likewise.
108068         * lib/vasnprintf.c: Likewise.
108070 2007-01-29  Eric Blake  <ebb9@byu.net>
108072         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
108073         declaration.
108075 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
108077         * lib/strptime.h (strptime): Use 'restrict' for args where
108078         POSIX requires this.
108079         * lib/strptime.c (strptime): Likewise.
108080         Change license notice from LGPL to GPL, since gnulib-tool will
108081         change this as needed.
108082         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
108083         defined.
108084         Include "strptime.h" first, to check interface.
108085         Do not #undef _LIBC and _NL_CURRENT.
108086         Do not include <stdlib.h>; no longer needed.
108087         Include "time_r.h" and declare ptime_locale_status
108088         only if _LIBC is not defined.
108089         (__P): Remove unused macro.
108090         (match_string): Bring back glibc version, but use it only if _LIBC
108091         is defined.
108092         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
108093         Remove unnecessary assertion and abort() call.
108094         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
108095         * m4/strptime.m4: Fix serial number comment.
108096         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
108097         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
108098         (Depends-on): Add time_r.
108100 2007-01-29  Bruno Haible  <bruno@clisp.org>
108102         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
108103         strptime.
108104         * modules/strptime (Depends-on): Add stdbool.
108105         * lib/strptime.h: Include <time.h> always. Add comments.
108107 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108109         * modules/strptime: New file.
108110         * lib/strptime.h: New file.
108111         * lib/strptime.c: New file.
108112         * m4/strptime.m4: New file.
108114 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
108116         * MODULES.html.sh: New module mpsort.
108117         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
108119         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
108120         a circularity problem with HP-UX ia64 reported by Bob Proulx in
108121         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
108122         All uses changed.
108123         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
108124         All uses changed.
108125         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
108126         to _Restrict_.
108127         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
108128         the parameter matches the prototype.
108130 2007-01-28  Jim Meyering  <jim@meyering.net>
108132         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
108133         sys/time.h here, reverting that part of the previous patch:
108134         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
108136 2007-01-28  Bruno Haible  <bruno@clisp.org>
108138         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
108139         value of $(SYS_TIME_H).
108140         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
108141         remove it conditionally, too. [added by Jim Meyering]
108142         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
108143         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
108144         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
108145         GETTIMEOFDAY_REPLACEMENT to 1.
108147 2007-01-28  Bruno Haible  <bruno@clisp.org>
108149         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
108150         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
108151         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
108152         Set UNISTD_H instead of UNISTD_H2.
108153         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
108155 2007-01-28  Bruno Haible  <bruno@clisp.org>
108157         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
108158         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
108160 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108162         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
108163         (func_create_testdir): Ensure C locale for `grep' and `tr'
108164         character ranges.
108165         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
108166         ACLOCAL_AMFLAGS parsing state machine.
108168 2007-01-27  Bruno Haible  <bruno@clisp.org>
108170         * modules/unistr/base: Update.
108172 2007-01-27  Bruno Haible  <bruno@clisp.org>
108174         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
108175         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
108176         * modules/unistr/u32-mbtouc-unsafe: Renamed from
108177         modules/unistr/u32-mbtouc.
108178         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
108179         * lib/unistr.h: Update.
108180         * lib/linebreak.c: Update.
108181         * modules/unistr/u32-mbtouc: Renamed from
108182         modules/unistr/u32-mbtouc-safe.
108183         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
108184         * lib/unistr.h: Update.
108185         * lib/unistr/u32-to-u8.c: Update.
108186         * lib/unistr/u32-to-u16.c: Update.
108188 2007-01-27  Bruno Haible  <bruno@clisp.org>
108190         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
108191         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
108192         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
108193         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
108194         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
108195         * modules/unistr/u16-mbtouc-unsafe: Renamed from
108196         modules/unistr/u16-mbtouc.
108197         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
108198         * lib/unistr.h: Update.
108199         * lib/linebreak.c: Update.
108200         * modules/linebreak: Update.
108201         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
108202         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
108203         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
108204         * modules/unistr/u16-mbtouc: Renamed from
108205         modules/unistr/u16-mbtouc-safe.
108206         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
108207         * lib/unistr.h: Update.
108208         * lib/unistr/u16-to-u8.c: Update.
108209         * modules/unistr/u16-to-u8: Update.
108210         * lib/unistr/u16-to-u32.c: Update.
108211         * modules/unistr/u16-to-u32: Update.
108213 2007-01-27  Bruno Haible  <bruno@clisp.org>
108215         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
108216         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
108217         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
108218         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
108219         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
108220         * modules/unistr/u8-mbtouc-unsafe: Renamed from
108221         modules/unistr/u8-mbtouc.
108222         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
108223         * lib/unistr.h: Update.
108224         * lib/striconveh.c: Update.
108225         * modules/striconveh: Update.
108226         * lib/linebreak.c: Update.
108227         * modules/linebreak: Update.
108228         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
108229         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
108230         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
108231         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
108232         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
108233         * lib/unistr.h: Update.
108234         * lib/striconveh.c: Update.
108235         * modules/striconveh: Update.
108236         * lib/unistr/u8-to-u16.c: Update.
108237         * modules/unistr/u8-to-u16: Update.
108238         * lib/unistr/u8-to-u32.c: Update.
108239         * modules/unistr/u8-to-u32: Update.
108241 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108243         Sync from Libtool.
108244         * lib/argz.c: Do not include strings.h nor memory.h, include
108245         string.h unconditionally.  Patch by Simon Josefsson.
108247 2007-01-27  Bruno Haible  <bruno@clisp.org>
108249         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
108250         from gl_HEADER_STRING_H_BODY.
108251         (gl_HEADER_STRING_H_BODY): Require it.
108252         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
108253         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
108254         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
108255         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
108256         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
108257         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
108258         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
108259         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
108260         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
108261         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
108262         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
108263         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
108264         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
108265         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
108266         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
108268 2007-01-27  Bruno Haible  <bruno@clisp.org>
108270         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
108271         check_PROGRAMS into noinst_PROGRAMS.
108272         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
108273         check_PROGRAMS in this case.
108274         (func_import): Set for_test to false.
108275         (func_create_testdir): Set for_test to true.
108277 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
108278             Bruno Haible  <bruno@clisp.org>
108280         * modules/strcasestr (Files): Remove lib/strcasestr.h.
108281         (Depends-on): Add string.
108282         (Includes): Use <string.h> instead of strcasestr.h.
108283         * modules/string (Makefile.am): Also substitute the value of
108284         REPLACE_STRCASESTR.
108285         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
108286         assume strcasestr is declared in <string.h> not <strings.h>. Also
108287         set REPLACE_STRCASESTR.
108288         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
108289         REPLACE_STRCASESTR.
108290         * lib/strcasestr.h: Remove file.
108291         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
108292         * lib/string_.h (strcasestr): New declaration.
108294 2007-01-27  Bruno Haible  <bruno@clisp.org>
108296         * lib/string_.h: Use 'extern'.
108298 2007-01-27  Jim Meyering  <jim@meyering.net>
108300         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
108301         of set-but-not-used local, "q".
108303         * lib/mempcpy.c: Include <config.h> before <string.h>.
108304         This fixes a compilation error on HP-UX, due to the system's
108305         "restrict"-using mempcpy prototype.
108307 2007-01-26  Bruno Haible  <bruno@clisp.org>
108309         Small optimization.
108310         * lib/javacomp.c: Include c-strstr.h.
108311          (is_envjavac_gcj): Use c_strstr instead of strstr.
108312         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
108314 2007-01-26  Bruno Haible  <bruno@clisp.org>
108316         * MODULES.html.sh (Unicode string functions): Add the new modules.
108318         * modules/uniconv/u32-strconv-to-locale: New file.
108319         * lib/uniconv/u32-strconv-to-locale.c: New file.
108321         * modules/uniconv/u16-strconv-to-locale: New file.
108322         * lib/uniconv/u16-strconv-to-locale.c: New file.
108324         * modules/uniconv/u8-strconv-to-locale: New file.
108325         * lib/uniconv/u8-strconv-to-locale.c: New file.
108327         * modules/uniconv/u32-strconv-from-locale: New file.
108328         * lib/uniconv/u32-strconv-from-locale.c: New file.
108330         * modules/uniconv/u16-strconv-from-locale: New file.
108331         * lib/uniconv/u16-strconv-from-locale.c: New file.
108333         * modules/uniconv/u8-strconv-from-locale: New file.
108334         * lib/uniconv/u8-strconv-from-locale.c: New file.
108336         * modules/uniconv/u32-strconv-to-enc: New file.
108337         * lib/uniconv/u32-strconv-to-enc.c: New file.
108338         * modules/uniconv/u32-strconv-to-enc-tests: New file.
108339         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
108341         * modules/uniconv/u16-strconv-to-enc: New file.
108342         * lib/uniconv/u16-strconv-to-enc.c: New file.
108343         * lib/uniconv/u-strconv-to-enc.h: New file.
108344         * modules/uniconv/u16-strconv-to-enc-tests: New file.
108345         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
108347         * modules/uniconv/u8-strconv-to-enc: New file.
108348         * lib/uniconv/u8-strconv-to-enc.c: New file.
108349         * modules/uniconv/u8-strconv-to-enc-tests: New file.
108350         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
108352         * modules/uniconv/u32-strconv-from-enc: New file.
108353         * lib/uniconv/u32-strconv-from-enc.c: New file.
108354         * modules/uniconv/u32-strconv-from-enc-tests: New file.
108355         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
108357         * modules/uniconv/u16-strconv-from-enc: New file.
108358         * lib/uniconv/u16-strconv-from-enc.c: New file.
108359         * modules/uniconv/u16-strconv-from-enc-tests: New file.
108360         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
108362         * modules/uniconv/u8-strconv-from-enc: New file.
108363         * lib/uniconv/u8-strconv-from-enc.c: New file.
108364         * lib/uniconv/u-strconv-from-enc.h: New file.
108365         * modules/uniconv/u8-strconv-from-enc-tests: New file.
108366         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
108368         * modules/uniconv/u32-conv-from-enc: New file.
108369         * lib/uniconv/u32-conv-from-enc.c: New file.
108370         * modules/uniconv/u32-conv-from-enc-tests: New file.
108371         * tests/uniconv/test-u32-conv-from-enc.c: New file.
108373         * modules/uniconv/u16-conv-from-enc: New file.
108374         * lib/uniconv/u16-conv-from-enc.c: New file.
108375         * lib/uniconv/u-conv-from-enc.h: New file.
108376         * modules/uniconv/u16-conv-from-enc-tests: New file.
108377         * tests/uniconv/test-u16-conv-from-enc.c: New file.
108379         * modules/uniconv/u8-conv-from-enc: New file.
108380         * lib/uniconv/u8-conv-from-enc.c: New file.
108381         * modules/uniconv/u8-conv-from-enc-tests: New file.
108382         * tests/uniconv/test-u8-conv-from-enc.c: New file.
108384         * modules/uniconv/base: New file.
108385         * lib/uniconv.h: New file.
108387 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
108389         * doc/gnulib-tool.texi (Initial import): Update to match current
108390         behavior with strdup module.
108391         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
108392         * lib/memmem.h: Remove; all uses removed.  This is now done
108393         by <string.h>.
108394         * lib/mempcpy.h: Likewise.
108395         * lib/memrchr.h: Likewise.
108396         * lib/stpcpy.h: Likewise.
108397         * lib/stpncpy.h: Likewise.
108398         * lib/strcase.h: Likewise.
108399         * lib/strchrnul.h: Likewise.
108400         * lib/strdup.h: Likewise.
108401         * lib/strndup.h: Likewise.
108402         * lib/strnlen.h: Likewise.
108403         * lib/strpbrk.h: Likewise.
108404         * lib/strsep.h: Likewise.
108405         * lib/strstr.h: Likewise.
108406         * lib/strtok_r.h: Likewise.
108407         * lib/string_.h: New file.
108408         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
108409         Rely on <string.h> instead.
108410         * lib/canon-host.c: Likewise.
108411         * lib/chdir-long.c: Likewise.
108412         * lib/concatpath.c: Likewise.
108413         * lib/exclude.c: Likewise.
108414         * lib/fchdir.c: Likewise.
108415         * lib/getaddrinfo.c: Likewise.
108416         * lib/getcwd.c: Likewise.
108417         * lib/getsubopt.c: Likewise.
108418         * lib/glob.c: Likewise.
108419         * lib/hard-locale.c: Likewise.
108420         * lib/iconvme.c: Likewise.
108421         * lib/javacomp.c: Likewise.
108422         * lib/mempcpy.c: Likewise.
108423         * lib/memrchr.c: Likewise.
108424         * lib/regex_internal.h: Likewise.
108425         * lib/stpncpy.c: Likewise.
108426         * lib/strcasecmp.c: Likewise.
108427         * lib/strchrnul.c: Likewise.
108428         * lib/strdup.c: Likewise.
108429         * lib/striconv.c: Likewise.
108430         * lib/striconveh.c: Likewise.
108431         * lib/striconveha.c: Likewise.
108432         * lib/strncasecmp.c: Likewise.
108433         * lib/strndup.c: Likewise.
108434         * lib/strnlen.c: Likewise.
108435         * lib/strsep.c: Likewise.
108436         * lib/strstr.c: Likewise.
108437         * lib/strtok_r.c: Likewise.
108438         * lib/userspec.c: Likewise.
108439         * lib/w32spawn.h: Likewise.
108440         * lib/xstrndup.c: Likewise.
108441         * lib/mountlist.c (strstr): Remove decl.
108442         * m4/string_h.m4: New file.
108443         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
108444         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
108445         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
108446         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
108447         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
108448         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
108449         Set REPLACE_STRCASECMP if necessary.
108450         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
108451         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
108452         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
108453         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
108454         HAVE_DECL_STRDUP if necessary.
108455         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
108456         since gl_FUNC_STRNDUP does that now.
108457         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
108458         Check for decl here...
108459         (gl_PREREQ_STRNLEN): ... not here.
108460         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
108461         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
108462         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
108463         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
108464         necessary.
108465         * modules/string: New file.
108466         * modules/memmem (Files): Remove special-purpose include file.
108467         (Depends-on): Add string.
108468         (Include): Include <string.h>, not the removed file.
108469         * modules/mempcpy: Likewise.
108470         * modules/memrchr: Likewise.
108471         * modules/stpcpy: Likewise.
108472         * modules/stpncpy: Likewise.
108473         * modules/strcase: Likewise.
108474         * modules/strchrnul: Likewise.
108475         * modules/strdup: Likewise.
108476         * modules/strndup: Likewise.
108477         * modules/strnlen: Likewise.
108478         * modules/strpbrk: Likewise.
108479         * modules/strsep: Likewise.
108480         * modules/strstr: Likewise.
108481         * modules/strtok_r: Likewise.
108482         * tests/test-dirname.c: Don't include "strdup.h", since
108483         <string.h> now suffices.
108484         * tests/test-memmem.c: Don't include "memmem.h", since
108485         <string.h> now suffices.
108487 2007-01-25  Bruno Haible  <bruno@clisp.org>
108489         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
108490         *resultp is 0.
108492         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
108493         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
108494         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
108495         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
108497         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
108498         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
108499         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
108500         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
108501         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
108502         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
108504 2007-01-24  Bruno Haible  <bruno@clisp.org>
108506         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
108507         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
108508         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
108509         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
108510         gl_FUNC_FTS_CORE.
108511         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
108512         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
108513         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
108514         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
108515         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
108516         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
108517         gl_FUNC_FCHOWNAT.
108518         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
108519         gl_FUNC_STRFTIME.
108520         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
108521         Reported by Ralf Wildenhues.
108523 2007-01-24  Bruno Haible  <bruno@clisp.org>
108525         Drop AC_REQUIRE calls that are redundant with the module dependencies.
108526         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
108527         gl_GETADDRINFO.
108528         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
108529         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
108530         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
108532 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
108534         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
108535         Don't use 'exit'; just return from 'main'.
108536         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
108538         * lib/fnmatch_.h: Readjust white space and comments to match
108539         glibc, to avoid spurious diffs.
108541 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
108543         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
108544         2004-12-01 change by Jakub Jelinek, since this code won't compile
108545         if !LIBC.  Problem reported by Bob Proulx.
108547 2007-01-23  Bruno Haible  <bruno@clisp.org>
108549         * lib/striconveh.c: Include c-strcaseeq.h.
108550         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
108551         * modules/striconveh (Depends-on): Add c-strcaseeq.
108553 2007-01-23  Bruno Haible  <bruno@clisp.org>
108555         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
108557         * modules/c-strcaseeq: New file.
108558         * lib/c-strcaseeq.h: New file.
108560         * modules/streq: New file.
108561         * lib/streq.h: New file.
108563 2007-01-23  Bruno Haible  <bruno@clisp.org>
108565         * modules/striconveha-tests: New file.
108566         * tests/test-striconveha.c: New file.
108568         * lib/striconveha.h: Include <stdbool.h>.
108569         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
108570         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
108571         (mem_iconveha_notranslit): Renamed from mem_iconveha.
108572         (mem_iconveha): New function.
108573         (str_iconveha_notranslit): Renamed from str_iconveha.
108574         (str_iconveha): New function.
108575         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
108576         c-strcase.
108578 2007-01-23  Bruno Haible  <bruno@clisp.org>
108580         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
108581         encodings without forgiving before trying any encoding with handler.
108582         (str_iconveha): Try all encodings without forgiving before trying any
108583         encoding with handler.
108585 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
108587         Import the following changes from libc.
108589         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
108591         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
108593         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
108595         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
108596         normal_bracket label.
108598         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
108600         [BZ #361]
108601         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
108602         to normal_bracket after fetching the next character.
108604 2007-01-22  Bruno Haible  <bruno@clisp.org>
108606         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
108607         argument.
108608         * lib/striconveh.c (iconv_carefully_1): New function.
108609         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
108610         argument.
108611         (str_cd_iconveh): Update.
108612         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
108613         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
108614         * tests/test-striconveh.c (MAGIC): New macro.
108615         (new_offsets): New function.
108616         (main): Test call with and without offsets.
108618 2007-01-22  Bruno Haible  <bruno@clisp.org>
108620         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
108621         * modules/sys_select (Makefile.am): Likewise.
108622         * modules/sys_socket (Makefile.am): Likewise.
108623         * modules/sys_time (Makefile.am): Likewise.
108625 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
108627         * modules/gettimeofday (License): Change from GPL to LGPL, since
108628         gettimeofday is a library function.
108630 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
108632         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
108634 2007-01-21  Bruno Haible  <bruno@clisp.org>
108636         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
108638 2007-01-21  Bruno Haible  <bruno@clisp.org>
108640         * modules/striconveha: New file.
108641         * lib/striconveha.h: New file.
108642         * lib/striconveha.c: New file.
108643         * MODULES.html.sh (Internationalization functions): Add striconveha.
108644         * lib/striconv.c (str_iconv): Optimize the case of an empty input
108645         string.
108646         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
108648 2007-01-21  Bruno Haible  <bruno@clisp.org>
108650         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
108651         * lib/striconveh.c (str_iconveh): Likewise.
108653 2007-01-21  Bruno Haible  <bruno@clisp.org>
108655         * lib/striconveh.h (mem_iconveh): New declaration.
108656         * lib/striconveh.c (mem_iconveh): New function.
108657         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
108659 2007-01-21  Bruno Haible  <bruno@clisp.org>
108661         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
108663         * lib/striconveh.h (mem_cd_iconveh): Change specification.
108664         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
108665         original result buffer.
108666         (str_cd_iconveh): Update.
108667         * tests/test-striconveh.c (main): Update.
108669         * lib/striconv.h (mem_cd_iconv): Change specification.
108670         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
108671         result buffer.
108672         (str_cd_iconv): Update.
108673         * tests/test-striconv.c (main): Update.
108675 2007-01-21  Bruno Haible  <bruno@clisp.org>
108677         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
108679 2007-01-20  Jim Meyering  <jim@meyering.net>
108681         * lib/userspec.c (parse_with_separator): If a user or group string
108682         starts with "+", skip the corresponding name-to-ID look-up, since
108683         such a look-up must fail: user and group names may not include "+".
108685 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
108687         * lib/poll.c: Include sys/time.h and time.h unconditionally,
108688         since we now assume the sys_time module.
108689         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
108690         check for sys/time.h; no longer needed.
108691         * modules/poll (Depends-on): Depend on sys_time.
108693 2007-01-18  Bruno Haible  <bruno@clisp.org>
108695         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
108696         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
108698         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
108699         gettimeofday.
108701         * tests/test-gettimeofday.c: Include <time.h>.
108702         (dummy): Remove variable.
108704         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
108705         gl_HEADER_SYS_TIME_H.
108706         (gl_HEADER_SYS_TIME_H): New macro.
108708         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
108709         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108710         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
108711         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
108712         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108713         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
108714         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
108715         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108716         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
108717         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
108718         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108720         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
108721         last change; it caused a compilation error when cross-compiling to
108722         Cygwin.
108724 2007-01-18  Jim Meyering  <jim@meyering.net>
108726         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
108727         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
108728         than the race-prone "test -d sys || mkdir sys".
108729         (configure.ac): Use AC_PROG_MKDIR_P.
108730         * modules/sys_select: Likewise.
108731         * modules/sys_socket: Likewise.
108732         * modules/sys_time: Likewise.
108734 2007-01-18  Eric Blake  <ebb9@byu.net>
108736         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
108737         replace gettimeofday.
108738         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
108739         name, to avoid infinite recursion.
108741 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
108743         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
108744         module sys_time.
108745         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
108746         assume timespec.h defines struct timeval.
108747         * lib/settime.c: Likewise.
108748         * lib/utimens.c: Likewise.
108749         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
108750         since we now assume the gettimeofday module.
108751         * lib/tempname.c (__gen_tempname): Likewise.
108752         * lib/gettimeofday.h: Remove.
108753         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
108754         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
108755         Include <time.h>, for 'time()'.
108756         (localtime_buffer_addr): Also use this workaround if
108757         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
108758         to simplify the uses.  All uses changed.
108759         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
108760         that #undef is inside {}, and 'const' follows type name consistently.
108761         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
108762         (gettimeofday): Do not use the maximum possible value for
108763         tv->tv_usec, since that might break usages other than ls.c.
108764         Instead, we'll leave ls.c alone.  This undoes today's patch
108765         by Bruno.  Add a compile-time warning for 1s-clock resolution;
108766         we've never observed the problem but might as well keep the
108767         canary.
108768         * lib/nanosleep.c: Include timespec.h first, for interface check.
108769         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
108770         now assume the sys_time module.
108771         * lib/tempname.c: Likewise.
108772         * lib/timespec.h: Likewise.
108773         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
108774         needed.
108775         * lib/strftime.c: Likewise.
108776         * lib/timespec.h: Likewise.
108777         * lib/posixtm.c: Include posixtm.h first, for interface check.
108778         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
108779         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
108780         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
108781         * lib/sys_time_.h: New file.
108782         * lib/timespec.h (struct timespec): Use long int, not long.
108783         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
108784         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
108785         Remove obsolescent call to AC_HEADER_TIME.
108786         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
108787         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
108788         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
108789         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
108790         Likewise.
108791         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
108792         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
108793         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
108794         into the sys_time module.  Check for gettimeofday just once.
108795         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
108796         for gettimeofday signature to just check the signature.  Merely
108797         compile it, since linking doesn't test signature.  Improve test for
108798         whether gettimeofday.o is actually needed.
108799         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
108800         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
108801         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
108802         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108803         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
108804         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
108805         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
108806         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
108807         than worrying about sys/time.h.
108808         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
108809         Don't bother worrying about TIME_WITH_SYS_TIME.
108810         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
108811         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
108812         * m4/sys_time_h.m4: New file.
108813         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
108814         Don't include sys/time.h.  Return from main rather than exiting.
108815         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
108816         all uses changed.
108817         * modules/gethrxtime (Depends-on): Add sys_time.
108818         * modules/gettime (Depends-on): Likewise.
108819         * modules/gettimeofday (Depends-on): Likewise.
108820         * modules/nanosleep (Depends-on): Likewise.
108821         * modules/settime (Depends-on): Likewise.
108822         * modules/tempname (Depends-on): Likewise.
108823         * modules/utimens (Depends-on): Likewise.
108824         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
108825         (Include): Change back to <sys/time.h>.
108826         (Maintainer): Add self.
108827         * modules/sys_time: New file.
108828         * modules/tempname (Depends-on): Add gettimeofday.
108829         * tests/test-gettimeofday.c: Include <sys/time.h>
108830         rather than gettimeofday.h.
108832 2007-01-17  Bruno Haible  <bruno@clisp.org>
108834         * gnulib-tool (func_get_license): Revert last patch. Instead, let
108835         the license default to GPL.
108836         (func_create_testdir): Don't complain if a module is LGPL and its
108837         tests module depends on GPLed modules.
108839 2007-01-17  Bruno Haible  <bruno@clisp.org>
108841         * lib/gettimeofday.c (gettimeofday): Add code for the case
108842         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
108843         maximum possible value for tv->tv_usec, rather than the minimum one.
108845 2005-10-08  Martin Lambers  <marlam@marlam.de>
108846 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
108847 2007-01-16  Bruno Haible  <bruno@clisp.org>
108849         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
108850         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
108851         gl_FUNC_GETTIMEOFDAY.
108852         (Include): Add gettimeofday.h.
108853         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
108854         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
108855         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
108856         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
108857         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
108858         * lib/gettimeofday.h: New file.
108859         * lib/gettimeofday.c: Include <sys/timeb.h>.
108860         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
108861         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108862         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
108863         fall back on time().
108865         * tests/test-gettimeofday.c: New file.
108866         * modules/gettimeofday-tests: New file.
108868 2007-01-16  Eric Blake  <ebb9@byu.net>
108870         * modules/fnmatch (Depends-on): Depend on wchar.
108871         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
108872         * m4/fnmatch.m4: Likewise.
108873         * modules/mbchar (Makefile.am): Assume <wchar.h>.
108874         * m4/mbchar.m4: Likewise.
108875         * modules/mbswidth (Depends-on): Depend on wchar.
108876         * lib/mbswidth.c: Assume <wchar.h>.
108877         * m4/mbswidth.m4: Likewise.
108878         * modules/quotearg (Depends-on): Depend on wchar.
108879         * lib/quotearg.c: Assume <wchar.h>.
108880         * m4/quotearg.m4: Likewise.
108881         * modules/regex (Depends-on): Depend on wchar.
108882         * lib/regex_internal.h: Assume <wchar.h>.
108883         * m4/regex.m4: Likewise.
108884         * modules/stdint (Depends-on): Depend on wchar.
108885         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
108886         * m4/stdint.m4: Likewise.
108887         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
108888         * modules/strftime (Depends-on): Depend on wchar.
108889         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
108890         * modules/strtol (Depends-on): Depend on wchar.
108891         * lib/strtol.c: Assume <wchar.h>.
108892         * modules/wcwidth (Depends-on): Depend on wchar.
108893         * lib/wcwidth.h: Assume <wchar.h>.
108894         * m4/wcwidth.m4: Likewise.
108896 2007-01-16  Bruno Haible  <bruno@clisp.org>
108898         * modules/csharpexec-script: New, created from...
108899         * modules/csharpexec: ... this.
108901 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
108903         * modules/javaexec-script: New, created from...
108904         * modules/javaexec: ... this.
108906 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
108908         * modules/poll (Dependencies): Add sys_select.
108910 2007-01-15  Jim Meyering  <jim@meyering.net>
108912         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
108913         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
108914         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
108915         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
108917 2007-01-15  Bruno Haible  <bruno@clisp.org>
108919         * modules/striconveh: New file.
108920         * lib/striconveh.h: New file.
108921         * lib/striconveh.c: New file.
108922         * MODULES.html.sh (Internationalization functions): Add striconveh.
108924         * modules/striconveh-tests: New file.
108925         * tests/test-striconveh.c: New file.
108927 2007-01-15  Bruno Haible  <bruno@clisp.org>
108929         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
108930         not from GNU libiconv or GNU libc.
108932 2007-01-15  Bruno Haible  <bruno@clisp.org>
108934         * doc/gnulib-intro.texi (Copyright): Explain the different license
108935         terms for module descriptions, autoconf macros, tests, documentation.
108937 2007-01-14  Bruno Haible  <bruno@clisp.org>
108939         * modules/striconv-tests: New file.
108940         * tests/test-striconv.c: New file.
108942 2007-01-14  Bruno Haible  <bruno@clisp.org>
108944         * modules/iconv-tests: New file.
108945         * tests/test-iconv.c: New file.
108947 2007-01-14  Bruno Haible  <bruno@clisp.org>
108949         * gnulib-tool (func_get_license): For test modules, use the license of
108950         the main module.
108952 2007-01-14  Bruno Haible  <bruno@clisp.org>
108954         * modules/iconv (Include): Clarify that <iconv.h> can only be included
108955         if iconv is found to exist.
108957 2007-01-14  Bruno Haible  <bruno@clisp.org>
108959         * modules/c-ctype-tests: New file.
108960         * tests/test-c-ctype.c: New file.
108962 2007-01-14  Bruno Haible  <bruno@clisp.org>
108964         * modules/binary-io-tests: New file.
108965         * tests/test-binary-io.sh: New file.
108966         * tests/test-binary-io.c: New file.
108968 2007-01-14  Bruno Haible  <bruno@clisp.org>
108970         * modules/array-oset-tests: New file.
108971         * tests/test-array_oset.c: New file.
108973 2007-01-14  Bruno Haible  <bruno@clisp.org>
108975         * modules/array-list-tests: New file.
108976         * tests/test-array_list.c: New file.
108978 2007-01-14  Bruno Haible  <bruno@clisp.org>
108980         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
108981         and make.
108982         Reported by Simon Josefsson in
108983         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
108985 2007-01-14  Bruno Haible  <bruno@clisp.org>
108987         * modules/allocsa-tests: New file.
108988         * tests/test-allocsa.c: New file.
108990 2007-01-14  Bruno Haible  <bruno@clisp.org>
108992         * modules/fchdir (Depends-on): Add absolute-header.
108993         * modules/unistd (Depends-on): Likewise.
108995 2006-12-30  Bruno Haible  <bruno@clisp.org>
108997         * modules/fchdir: New file.
108998         * modules/unistd (Files): Add lib/unistd_.h.
108999         (Makefile.am): Generate unistd.h from unistd_.h.
109000         * lib/fchdir.c: New file.
109001         * lib/dirent_.h: New file.
109002         * lib/unistd_.h: New file.
109003         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
109004         * m4/fchdir.m4: New file.
109005         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
109006         (gl_HEADER_UNISTD): Invoke it.
109007         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
109008         function.
109009         * lib/backupfile.c (opendir, closedir): Undefine.
109010         * lib/chown.c (open, close): Undefine.
109011         * lib/clean-temp.c (open, close): Undefine.
109012         * lib/copy-file.c (open, close): Undefine.
109013         * lib/execute.c (open, close): Undefine.
109014         * lib/fsusage.c (open, close): Undefine.
109015         * lib/gc-gnulib.c (open, close): Undefine.
109016         * lib/getcwd.c (opendir, closedir): Undefine.
109017         * lib/glob.c (opendir, closedir): Undefine.
109018         * lib/javacomp.c (open, close): Undefine.
109019         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
109020         * lib/openat-proc.c (open, close): Undefine.
109021         * lib/pagealign_alloc.c (open, close): Undefine.
109022         * lib/pipe.c (open, close): Undefine.
109023         * lib/progreloc.c (open, close): Undefine.
109024         * lib/savedir.c (opendir, closedir): Undefine.
109025         * lib/utime.c (open, close): Undefine.
109026         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
109028 2007-01-10  Bruno Haible  <bruno@clisp.org>
109030         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
109032 2007-01-12  Eric Blake  <ebb9@byu.net>
109034         Provide a robust <wchar.h>.  Further simplifications are now
109035         possible in other modules, but not included here.
109036         * modules/wchar: New module.
109037         * m4/wchar.m4: New file.
109038         * lib/wchar_.h: Likewise.
109039         * modules/mbchar (Depends-on): Depend on wchar, as the first use
109040         of the new module.
109041         * MODULES.html.sh (Extended multibyte and wide character utilities):
109042         New section.
109044 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
109046         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
109047         to a reasonable default for memory allocation.
109048         (xreadlink): Don't allocate a huge buffer, to work around a buggy
109049         file system that reports garbage st_size values for symlinks.
109050         Problem reported by Liyang Hu.
109052 2007-01-11  Simon Josefsson  <simon@josefsson.org>
109054         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
109055         Emacs .#* auto-save files).
109057 2007-01-11  Bruno Haible  <bruno@clisp.org>
109059         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
109060         directory.
109062 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
109064         Use @...@ consistently in lib/wctype_.h.
109065         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
109066         on it being set to 1 or 0.
109067         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
109068         go back to AC_SUBSTing it.
109069         * modules/wctype (Makefile.am): Undo previous change.
109071 2007-01-10  Eric Blake  <ebb9@byu.net>
109073         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
109074         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
109075         * modules/wctype (Makefile.am): Likewise.
109076         Reported by Chris McGuire.
109078 2007-01-10  Jim Meyering  <jim@meyering.net>
109080         fts.c: a small readability/maintainability improvement
109081         * lib/fts.c (fts_read): Make this code slightly more readable and
109082         maintainable by hoisting the "sp->fts_cur = p" assignments to
109083         immediately follow the statements that set P.  Derived from
109084         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
109086 2007-01-10  Eric Blake  <ebb9@byu.net>
109088         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
109089         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
109090         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
109091         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
109092         Reported by Chris McGuire.
109094 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109096         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
109097         in sed script.
109099 2007-01-09  Bruno Haible  <bruno@clisp.org>
109101         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
109102         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
109103         variables.
109104         (func_module): Use them.
109106 2007-01-09  Bruno Haible  <bruno@clisp.org>
109108         * modules/unistr/base: New file.
109109         * lib/unistr.h: New file.
109111         * modules/unistr/u8-to-u16: New file.
109112         * lib/unistr/u8-to-u16.c: New file.
109114         * modules/unistr/u8-to-u32: New file.
109115         * lib/unistr/u8-to-u32.c: New file.
109117         * modules/unistr/u16-to-u8: New file.
109118         * lib/unistr/u16-to-u8.c: New file.
109120         * modules/unistr/u16-to-u32: New file.
109121         * lib/unistr/u16-to-u32.c: New file.
109123         * modules/unistr/u32-to-u8: New file.
109124         * lib/unistr/u32-to-u8.c: New file.
109126         * modules/unistr/u32-to-u16: New file.
109127         * lib/unistr/u32-to-u16.c: New file.
109129         * modules/unistr/u8-check: New file.
109130         * modules/unistr/u16-check: New file.
109131         * modules/unistr/u32-check: New file.
109132         * lib/unistr/u8-check.c: New file.
109133         * lib/unistr/u16-check.c: New file.
109134         * lib/unistr/u32-check.c: New file.
109136         * modules/unistr/u8-chr: New file.
109137         * modules/unistr/u16-chr: New file.
109138         * modules/unistr/u32-chr: New file.
109139         * lib/unistr/u8-chr.c: New file.
109140         * lib/unistr/u16-chr.c: New file.
109141         * lib/unistr/u32-chr.c: New file.
109143         * modules/unistr/u8-cmp: New file.
109144         * modules/unistr/u16-cmp: New file.
109145         * modules/unistr/u32-cmp: New file.
109146         * lib/unistr/u8-cmp.c: New file.
109147         * lib/unistr/u16-cmp.c: New file.
109148         * lib/unistr/u32-cmp.c: New file.
109150         * modules/unistr/u8-cpy: New file.
109151         * modules/unistr/u16-cpy: New file.
109152         * modules/unistr/u32-cpy: New file.
109153         * lib/unistr/u8-cpy.c: New file.
109154         * lib/unistr/u16-cpy.c: New file.
109155         * lib/unistr/u32-cpy.c: New file.
109156         * lib/unistr/u-cpy.h: New file.
109158         * modules/unistr/u8-cpy-alloc: New file.
109159         * modules/unistr/u16-cpy-alloc: New file.
109160         * modules/unistr/u32-cpy-alloc: New file.
109161         * lib/unistr/u8-cpy-alloc.c: New file.
109162         * lib/unistr/u16-cpy-alloc.c: New file.
109163         * lib/unistr/u32-cpy-alloc.c: New file.
109164         * lib/unistr/u-cpy-alloc.h: New file.
109166         * modules/unistr/u8-endswith: New file.
109167         * modules/unistr/u16-endswith: New file.
109168         * modules/unistr/u32-endswith: New file.
109169         * lib/unistr/u8-endswith.c: New file.
109170         * lib/unistr/u16-endswith.c: New file.
109171         * lib/unistr/u32-endswith.c: New file.
109172         * lib/unistr/u-endswith.h: New file.
109174         * modules/unistr/u8-mblen: New file.
109175         * modules/unistr/u16-mblen: New file.
109176         * modules/unistr/u32-mblen: New file.
109177         * lib/unistr/u8-mblen.c: New file.
109178         * lib/unistr/u16-mblen.c: New file.
109179         * lib/unistr/u32-mblen.c: New file.
109181         * modules/unistr/u8-mbtouc: New file.
109182         * modules/unistr/u16-mbtouc: New file.
109183         * modules/unistr/u32-mbtouc: New file.
109184         * lib/unistr/u8-mbtouc.c: New file.
109185         * lib/unistr/u16-mbtouc.c: New file.
109186         * lib/unistr/u32-mbtouc.c: New file.
109188         * modules/unistr/u8-mbtouc-safe: New file.
109189         * modules/unistr/u16-mbtouc-safe: New file.
109190         * modules/unistr/u32-mbtouc-safe: New file.
109191         * lib/unistr/u8-mbtouc-safe.c: New file.
109192         * lib/unistr/u16-mbtouc-safe.c: New file.
109193         * lib/unistr/u32-mbtouc-safe.c: New file.
109195         * modules/unistr/u8-move: New file.
109196         * modules/unistr/u16-move: New file.
109197         * modules/unistr/u32-move: New file.
109198         * lib/unistr/u8-move.c: New file.
109199         * lib/unistr/u16-move.c: New file.
109200         * lib/unistr/u32-move.c: New file.
109201         * lib/unistr/u-move.h: New file.
109203         * modules/unistr/u8-next: New file.
109204         * modules/unistr/u16-next: New file.
109205         * modules/unistr/u32-next: New file.
109206         * lib/unistr/u8-next.c: New file.
109207         * lib/unistr/u16-next.c: New file.
109208         * lib/unistr/u32-next.c: New file.
109210         * modules/unistr/u8-prev: New file.
109211         * modules/unistr/u16-prev: New file.
109212         * modules/unistr/u32-prev: New file.
109213         * lib/unistr/u8-prev.c: New file.
109214         * lib/unistr/u16-prev.c: New file.
109215         * lib/unistr/u32-prev.c: New file.
109217         * modules/unistr/u8-set: New file.
109218         * modules/unistr/u16-set: New file.
109219         * modules/unistr/u32-set: New file.
109220         * lib/unistr/u8-set.c: New file.
109221         * lib/unistr/u16-set.c: New file.
109222         * lib/unistr/u32-set.c: New file.
109223         * lib/unistr/u-set.h: New file.
109225         * modules/unistr/u8-startswith: New file.
109226         * modules/unistr/u16-startswith: New file.
109227         * modules/unistr/u32-startswith: New file.
109228         * lib/unistr/u8-startswith.c: New file.
109229         * lib/unistr/u16-startswith.c: New file.
109230         * lib/unistr/u32-startswith.c: New file.
109231         * lib/unistr/u-startswith.h: New file.
109233         * modules/unistr/u8-stpcpy: New file.
109234         * modules/unistr/u16-stpcpy: New file.
109235         * modules/unistr/u32-stpcpy: New file.
109236         * lib/unistr/u8-stpcpy.c: New file.
109237         * lib/unistr/u16-stpcpy.c: New file.
109238         * lib/unistr/u32-stpcpy.c: New file.
109239         * lib/unistr/u-stpcpy.h: New file.
109241         * modules/unistr/u8-stpncpy: New file.
109242         * modules/unistr/u16-stpncpy: New file.
109243         * modules/unistr/u32-stpncpy: New file.
109244         * lib/unistr/u8-stpncpy.c: New file.
109245         * lib/unistr/u16-stpncpy.c: New file.
109246         * lib/unistr/u32-stpncpy.c: New file.
109247         * lib/unistr/u-stpncpy.h: New file.
109249         * modules/unistr/u8-strcat: New file.
109250         * modules/unistr/u16-strcat: New file.
109251         * modules/unistr/u32-strcat: New file.
109252         * lib/unistr/u8-strcat.c: New file.
109253         * lib/unistr/u16-strcat.c: New file.
109254         * lib/unistr/u32-strcat.c: New file.
109255         * lib/unistr/u-strcat.h: New file.
109257         * modules/unistr/u8-strchr: New file.
109258         * modules/unistr/u16-strchr: New file.
109259         * modules/unistr/u32-strchr: New file.
109260         * lib/unistr/u8-strchr.c: New file.
109261         * lib/unistr/u16-strchr.c: New file.
109262         * lib/unistr/u32-strchr.c: New file.
109264         * modules/unistr/u8-strcmp: New file.
109265         * modules/unistr/u16-strcmp: New file.
109266         * modules/unistr/u32-strcmp: New file.
109267         * lib/unistr/u8-strcmp.c: New file.
109268         * lib/unistr/u16-strcmp.c: New file.
109269         * lib/unistr/u32-strcmp.c: New file.
109271         * modules/unistr/u8-strcpy: New file.
109272         * modules/unistr/u16-strcpy: New file.
109273         * modules/unistr/u32-strcpy: New file.
109274         * lib/unistr/u8-strcpy.c: New file.
109275         * lib/unistr/u16-strcpy.c: New file.
109276         * lib/unistr/u32-strcpy.c: New file.
109277         * lib/unistr/u-strcpy.h: New file.
109279         * modules/unistr/u8-strcspn: New file.
109280         * modules/unistr/u16-strcspn: New file.
109281         * modules/unistr/u32-strcspn: New file.
109282         * lib/unistr/u8-strcspn.c: New file.
109283         * lib/unistr/u16-strcspn.c: New file.
109284         * lib/unistr/u32-strcspn.c: New file.
109285         * lib/unistr/u-strcspn.h: New file.
109287         * modules/unistr/u8-strdup: New file.
109288         * modules/unistr/u16-strdup: New file.
109289         * modules/unistr/u32-strdup: New file.
109290         * lib/unistr/u8-strdup.c: New file.
109291         * lib/unistr/u16-strdup.c: New file.
109292         * lib/unistr/u32-strdup.c: New file.
109293         * lib/unistr/u-strdup.h: New file.
109295         * modules/unistr/u8-strlen: New file.
109296         * modules/unistr/u16-strlen: New file.
109297         * modules/unistr/u32-strlen: New file.
109298         * lib/unistr/u8-strlen.c: New file.
109299         * lib/unistr/u16-strlen.c: New file.
109300         * lib/unistr/u32-strlen.c: New file.
109301         * lib/unistr/u-strlen.h: New file.
109303         * modules/unistr/u8-strmblen: New file.
109304         * modules/unistr/u16-strmblen: New file.
109305         * modules/unistr/u32-strmblen: New file.
109306         * lib/unistr/u8-strmblen.c: New file.
109307         * lib/unistr/u16-strmblen.c: New file.
109308         * lib/unistr/u32-strmblen.c: New file.
109310         * modules/unistr/u8-strmbtouc: New file.
109311         * modules/unistr/u16-strmbtouc: New file.
109312         * modules/unistr/u32-strmbtouc: New file.
109313         * lib/unistr/u8-strmbtouc.c: New file.
109314         * lib/unistr/u16-strmbtouc.c: New file.
109315         * lib/unistr/u32-strmbtouc.c: New file.
109317         * modules/unistr/u8-strncat: New file.
109318         * modules/unistr/u16-strncat: New file.
109319         * modules/unistr/u32-strncat: New file.
109320         * lib/unistr/u8-strncat.c: New file.
109321         * lib/unistr/u16-strncat.c: New file.
109322         * lib/unistr/u32-strncat.c: New file.
109323         * lib/unistr/u-strncat.h: New file.
109325         * modules/unistr/u8-strncmp: New file.
109326         * modules/unistr/u16-strncmp: New file.
109327         * modules/unistr/u32-strncmp: New file.
109328         * lib/unistr/u8-strncmp.c: New file.
109329         * lib/unistr/u16-strncmp.c: New file.
109330         * lib/unistr/u32-strncmp.c: New file.
109332         * modules/unistr/u8-strncpy: New file.
109333         * modules/unistr/u16-strncpy: New file.
109334         * modules/unistr/u32-strncpy: New file.
109335         * lib/unistr/u8-strncpy.c: New file.
109336         * lib/unistr/u16-strncpy.c: New file.
109337         * lib/unistr/u32-strncpy.c: New file.
109338         * lib/unistr/u-strncpy.h: New file.
109340         * modules/unistr/u8-strnlen: New file.
109341         * modules/unistr/u16-strnlen: New file.
109342         * modules/unistr/u32-strnlen: New file.
109343         * lib/unistr/u8-strnlen.c: New file.
109344         * lib/unistr/u16-strnlen.c: New file.
109345         * lib/unistr/u32-strnlen.c: New file.
109346         * lib/unistr/u-strnlen.h: New file.
109348         * modules/unistr/u8-strpbrk: New file.
109349         * modules/unistr/u16-strpbrk: New file.
109350         * modules/unistr/u32-strpbrk: New file.
109351         * lib/unistr/u8-strpbrk.c: New file.
109352         * lib/unistr/u16-strpbrk.c: New file.
109353         * lib/unistr/u32-strpbrk.c: New file.
109354         * lib/unistr/u-strpbrk.h: New file.
109356         * modules/unistr/u8-strrchr: New file.
109357         * modules/unistr/u16-strrchr: New file.
109358         * modules/unistr/u32-strrchr: New file.
109359         * lib/unistr/u8-strrchr.c: New file.
109360         * lib/unistr/u16-strrchr.c: New file.
109361         * lib/unistr/u32-strrchr.c: New file.
109363         * modules/unistr/u8-strspn: New file.
109364         * modules/unistr/u16-strspn: New file.
109365         * modules/unistr/u32-strspn: New file.
109366         * lib/unistr/u8-strspn.c: New file.
109367         * lib/unistr/u16-strspn.c: New file.
109368         * lib/unistr/u32-strspn.c: New file.
109369         * lib/unistr/u-strspn.h: New file.
109371         * modules/unistr/u8-strstr: New file.
109372         * modules/unistr/u16-strstr: New file.
109373         * modules/unistr/u32-strstr: New file.
109374         * lib/unistr/u8-strstr.c: New file.
109375         * lib/unistr/u16-strstr.c: New file.
109376         * lib/unistr/u32-strstr.c: New file.
109377         * lib/unistr/u-strstr.h: New file.
109379         * modules/unistr/u8-strtok: New file.
109380         * modules/unistr/u16-strtok: New file.
109381         * modules/unistr/u32-strtok: New file.
109382         * lib/unistr/u8-strtok.c: New file.
109383         * lib/unistr/u16-strtok.c: New file.
109384         * lib/unistr/u32-strtok.c: New file.
109385         * lib/unistr/u-strtok.h: New file.
109387         * modules/unistr/u8-uctomb: New file.
109388         * modules/unistr/u16-uctomb: New file.
109389         * modules/unistr/u32-uctomb: New file.
109390         * lib/unistr/u8-uctomb.c: New file.
109391         * lib/unistr/u16-uctomb.c: New file.
109392         * lib/unistr/u32-uctomb.c: New file.
109394         * MODULES.html.sh (Unicode string functions): Add the new modules.
109396 2007-01-08  Bruno Haible  <bruno@clisp.org>
109398         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
109399         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
109400         subdirectories.
109402 2007-01-08  Karl Berry  <karl@gnu.org>
109404         * doc/error.texi: mention that main() fns must set program_name
109405         when progname is used.
109407 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
109409         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
109410         WCTYPE_H is empty, for the benefit of builds from non-distclean
109411         directories.  Problem reported by Eric Blake in
109412         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
109414 2007-01-08  Bruno Haible  <bruno@clisp.org>
109416         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
109417         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
109418         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
109419         PROVIDE_CANONICALIZE_FILENAME_MODE.
109420         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
109422 2007-01-08  Bruno Haible  <bruno@clisp.org>
109424         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
109425         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
109426         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
109427         * lib/fts.c: Likewise.
109428         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
109430 2006-12-25  Bruno Haible  <bruno@clisp.org>
109432         * modules/utf8-ucs4-safe: New file.
109433         * lib/utf8-ucs4-safe.h: New file.
109434         * lib/unistr/utf8-ucs4-safe.c: New file.
109436         * modules/utf16-ucs4-safe: New file.
109437         * lib/utf16-ucs4-safe.h: New file.
109438         * lib/unistr/utf16-ucs4-safe.c: New file.
109440         * MODULES.html.sh (Unicode string functions): Add the new modules.
109442 2007-01-08  Bruno Haible  <bruno@clisp.org>
109444         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
109445         (Depends-on): Add unitypes.
109446         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
109447         (u8_mbtouc_aux): Move out to separate file.
109448         (u8_mbtouc): Use ucs4_t, uint8_t types.
109449         * lib/unistr/utf8-ucs4.c: New file.
109451         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
109452         (Depends-on): Add unitypes.
109453         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
109454         (u16_mbtouc_aux): Move out to separate file.
109455         (u16_mbtouc): Use ucs4_t, uint16_t types.
109456         * lib/unistr/utf16-ucs4.c: New file.
109458         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
109459         (Depends-on): Add unitypes.
109460         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
109461         (u8_uctomb_aux): Move out to separate file.
109462         (u8_uctomb): Use ucs4_t, uint8_t types.
109463         * lib/unistr/ucs4-utf8.c: New file.
109465         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
109466         (Depends-on): Add unitypes.
109467         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
109468         (u16_uctomb_aux): Move out to separate file.
109469         (u16_uctomb): Use ucs4_t, uint16_t types.
109470         * lib/unistr/ucs4-utf16.c: New file.
109472 2006-12-25  Bruno Haible  <bruno@clisp.org>
109474         * modules/unitypes: New file.
109475         * lib/unitypes.h: New file.
109476         * MODULES.html.sh (func_all_modules): New section "Unicode string
109477         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
109478         this section. Add unitypes.
109480 2007-01-08  Bruno Haible  <bruno@clisp.org>
109482         Avoid variable names that conflict with those from libtool.
109483         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
109484         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
109485         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
109486         library_names_spec to acl_library_names_spec, hardcode_* to
109487         acl_hardcode_*.
109488         Reported by Ralf Wildenhues.
109490 2007-01-08  Bruno Haible  <bruno@clisp.org>
109492         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
109493         definition.
109494         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
109495         definition.
109496         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
109497         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
109498         definition.
109499         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
109500         definition.
109501         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
109502         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
109503         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
109504         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
109505         definition.
109506         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
109507         definition.
109508         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
109509         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
109510         GC_USE_<algorithm>.
109511         * lib/gc-libgcrypt.c: Likewise.
109512         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
109513         * modules/gc-arctwo (configure.ac): Likewise.
109514         * modules/gc-des (configure.ac): Likewise.
109515         * modules/gc-hmac-md5 (configure.ac): Likewise.
109516         * modules/gc-hmac-sha1 (configure.ac): Likewise.
109517         * modules/gc-md2 (configure.ac): Likewise.
109518         * modules/gc-md4 (configure.ac): Likewise.
109519         * modules/gc-md5 (configure.ac): Likewise.
109520         * modules/gc-random (configure.ac): Likewise.
109521         * modules/gc-rijndael (configure.ac): Likewise.
109522         * modules/gc-sha1 (configure.ac): Likewise.
109524 2007-01-08  Bruno Haible  <bruno@clisp.org>
109526         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
109527         macro definition.
109528         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
109529         definition.
109530         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
109531         definition.
109532         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
109533         * modules/fcntl-safer (configure.ac): Likewise.
109534         * modules/fopen-safer (configure.ac): Likewise.
109535         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
109536         GNULIB_FWRITEERROR macro definition.
109538 2007-01-08  Bruno Haible  <bruno@clisp.org>
109540         * m4/gnulib-common.m4: New file.
109541         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
109542         (func_get_filelist): Add m4/gnulib-common.m4.
109544 2007-01-08  Bruno Haible  <bruno@clisp.org>
109546         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
109547         command.
109549 2007-01-08  Jim Meyering  <jim@meyering.net>
109551         Use a more robust test for a "can't happen" condition.
109552         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
109553         narrowed the st_size value.  Presuming the "can't happen" condition
109554         is true, that narrowing could conceivably convert an invalid st_size
109555         value into a valid one.  Instead, use a change based on Matthew
109556         Woehlke's original patch.
109558         Slight readability improvement: use an assert-like macro
109559         in place of literal "abort ()" uses.
109560         * lib/fts.c (fts_assert): Define.
109561         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
109562         Use this macro instead of a bare 'abort'.
109564 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
109566         Don't worry about using IRIX 5.3's wctype.h broken definitions;
109567         simply work around them.
109568         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
109569         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
109570         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
109571         declaring.
109572         Don't bother to define as macros, since the standard doesn't require it.
109573         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
109574         longer worry about IRIX 5.3.
109575         (HAVE_WCTYPE_CTMP_BUG): Remove.
109577 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
109579         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
109580         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
109581         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
109582         Problems reported by Georg Schwarz for IRIX 5.3.
109584         * gnulib-tool (autoconf_minversion): Take the maximum version number
109585         found, not the minimum.  Problem reported by James Youngman.
109587 2007-01-03  Karl Berry  <karl@gnu.org>
109589         * doc/error.texi: new file, explaining interaction with progname.
109590         * doc/gnulib.texi: include it.  Update copyright.
109592 2007-01-03  Simon Josefsson  <simon@josefsson.org>
109594         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
109595         AC_CANONICAL_HOST, to improve autobuild outputs.
109597 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
109598             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
109600         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
109601         sockets, server sockets, and other file descriptors.  Count errors
109602         to compute the return value.  Reorder the code a bit to be easier
109603         to follow.  Don't set event bits that were not requested (except
109604         POLLERR and POLLHUP).
109606 2007-01-01  Bruno Haible  <bruno@clisp.org>
109608         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
109610 2007-01-03  Jim Meyering  <jim@meyering.net>
109612         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
109614 2007-01-02  Bruno Haible  <bruno@clisp.org>
109616         * modules/settime (Include): Require timespec.h.
109617         * modules/nanosleep (Include): Likewise.
109619 2007-01-01  Bruno Haible  <bruno@clisp.org>
109621         * gnulib-tool (func_emit_copyright_notice): Bump year.
109622         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
109624 2007-01-01  Bruno Haible  <bruno@clisp.org>
109626         Improve support for OpenBSD.
109627         * build-aux/config.rpath (libname_spec): Export.
109628         (library_names_spec): New variable. Export.
109629         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
109630         library_names_spec from the config.rpath output. Locate shared library
109631         through the name pattern in library_names_spec.
109633 2007-01-01  Eric Blake  <ebb9@byu.net>
109635         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
109637 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
109639         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
109640         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
109641         assume the C locale, and avoid an "eval" that could cause trouble.
109642         Problem with SORT reported by Bob Proulx.
109644         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
109645         Define.  Trivial patch from Henning Nielsen Lund, originally
109646         sent to bug-grep@gnu.org today.
109648 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
109650         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
109651         struct stat.  Problem reported by Henning Nielsen Lund.
109652         * lib/acl.c: Include acl.h first, to check interface.  Don't
109653         bother to include sys/types.h and sys/stat.h again.
109655 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
109657         Import the following change from libc; problem reported by
109658         Sven Verdoolaege.
109660         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
109662         [BZ #1373]
109663         * lib/argp.h: Remove __NTH for __argp_usage inline function.
109665 2006-12-28  Jim Meyering  <jim@meyering.net>
109667         * build-aux/announce-gen: Do not assume that the package
109668         builds any of tar.gz, tar.bz2, and .xdelta files.
109669         Suggestion from Simon Josefsson.
109671 2006-12-28  Simon Josefsson  <simon@josefsson.org>
109673         * modules/announce-gen: New file.
109675 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
109677         * lib/mbchar.h: Just include <wctype.h>; the wctype module
109678         handles its gotchas now.
109679         * lib/mbswidth.c: Likewise.
109680         * lib/wcwidth.h: Likewise.
109681         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
109682         and iswcntrl; the wctype module does this stuff now.
109683         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
109684         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
109685         * modules/mbchar (Depends-on): Add wctype.
109686         * modules/mbswidth (Depends-on): Likewise.
109687         * modules/wcwidth (Depends-on): Likewise.
109689 2006-12-27  Eric Blake  <ebb9@byu.net>
109691         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
109692         module uses more than what <wctype.h> is required to provide.
109694 2006-12-26  Eric Blake  <ebb9@byu.net>
109696         * gnulib-tool (sed_extract_prog): Avoid space-tab.
109698 2006-12-26  Eric Blake  <ebb9@byu.net>
109700         * modules/absolute-header: New module.
109701         * modules/fcntl (Depends-on): Depend on it.
109702         * modules/inttypes (Depends-on): Likewise.
109703         * modules/stdint (Depends-on): Likewise.
109704         * modules/sys_stat (Depends-on): Likewise.
109705         * modules/wctype (Depends-on): Likewise.
109706         * MODULES.html.sh (Support for building libraries and
109707         executables): Document it.
109709 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
109711         * gnulib-tool (SED): Remove, undoing previous change.
109712         The problem was that it broke coreutils on Solaris, because
109713         "sed --posix" leaked into a makefile.
109714         (sed): New alias, if 'alias' and GNU sed.
109716 2006-12-24  Jim Meyering  <jim@meyering.net>
109718         Work around an fchownat bug in glibc-2.4:
109719         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
109720         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
109721         in spite of the -P option.
109722         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
109723         New macros.
109724         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
109725         * modules/openat (Files): Add lib/fchownat.c.
109726         * lib/openat.c (fchownat): Don't define here.  Move to...
109727         * lib/fchownat.c: ...this new file.
109729 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
109731         Fix bug reported by Bruno Haible in
109732         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
109733         where quotearg.c didn't compile on Mac OS X 10.2 because it
109734         lacks <wchar.h> and wint_t.
109735         * lib/wctype_.h (__wctype_wint_t): New type.
109736         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
109737         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
109738         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
109739         Arg is now of type __wctype_wint_t, not wint_t.
109740         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
109741         substitute HAVE_WINT_T.
109742         * modules/wctype (Files): Add m4/wint_t.m4.
109743         (wctype.h): Substitute HAVE_WINT_T.
109745 2006-12-23  Bruno Haible  <bruno@clisp.org>
109747         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
109749 2006-12-23  Bruno Haible  <bruno@clisp.org>
109751         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
109752         S_ISLNK.
109753         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
109754         mingw.
109756 2006-12-22  Bruno Haible  <bruno@clisp.org>
109758         * lib/copy-file.c: Include acl.h.
109759         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
109760         Close the file descriptors only after being done with copy_acl.
109761         * modules/copy-file (Depends-on): Add acl.
109763 2006-12-22  Bruno Haible  <bruno@clisp.org>
109765         * gnulib-tool (SED): New variable.
109766         Use $SED instead of sed everywhere.
109768 2006-12-22  Bruno Haible  <bruno@clisp.org>
109770         * modules/no-c++: New file.
109771         * m4/no-c++.m4: New file.
109772         * MODULES.html.sh (Support for building libraries and executables):
109773         Add no-c++.
109775 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
109777         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
109778         Include <limits.h>, and use its INT_MAX to rewrite the
109779         j loop so that it does not overflow 'int'.  Problem reported by
109780         Ralf Wildenhues in
109781         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
109782         Play it safe by shifting left by 1 rather than multiplying by 2,
109783         as GCC is less likely to optimize this away when the value
109784         is signed (when it assumes overflow leads to undefined behavior).
109785         Also, don't assume time_t uses two's complement.
109787 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
109789         * MODULES.html.sh: New module wctype.
109790         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
109791         * lib/fnmatch.c: Don't bother to include <wchar.h> before
109792         <wctype.h>, since the new wctype module should fix this.
109793         * lib/quotearg.c: Include <wctype.h> unconditionally, since
109794         the wctype module should arrange for it.
109795         * lib/regex_internal.h: Likewise.
109796         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
109797         since the wctype module should handle this now.
109798         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
109799         * modules/fnmatch (Depends-on): Add wctype.
109800         * modules/quotearg (Depends-on): Likewise.
109801         * modules/regex (Depends-on): Likewise.
109803 2006-12-19  Bruno Haible  <bruno@clisp.org>
109805         * lib/strdup.h [C++]: Wrap definitions in extern "C".
109806         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
109808 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109810         * modules/savewd (Depends-on): Fix dependency on fcntl.
109812 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
109814         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
109815         conforms to C99, rather than relying on the user's environment
109816         setting of STDINT_H.
109818 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
109819         and Eric Blake  <ebb9@byu.net>
109821         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
109822         This is more consistent with the other defines here.
109823         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
109824         Port to z/OS.  Problem reported by Paul Gilmartin.
109825         Change local vars to use gl_ prefix rather than ac_.
109826         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
109827         with other defines.
109828         * modules/double-slash-root: New module.
109829         * modules/dirname (Files): Remove m4/double-slash-root.m4.
109830         (Depends-on): Add double-slash-root.
109831         * MODULES.html.sh (File system functions): Mention new module.
109833 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
109835         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
109836         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
109837         This is for the benefit of gzip, which doesn't do i18n.
109839 2006-12-12  Jim Meyering  <jim@meyering.net>
109841         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
109842         Reported by Andreas Schwab <schwab@suse.de>.
109844 2006-12-12  Bruno Haible  <bruno@clisp.org>
109846         Merge these changes.
109847         2006-09-05  Bruno Haible  <bruno@clisp.org>
109848         * lib/iconvme.c (iconv_string): No need to save and restore errno when
109849         iconv_alloc succeeded.
109850         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
109851         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
109852         test for " && dest " at the end - dest is always != NULL there. Call
109853         iconv with 4xNULL arguments initially, to reset the state. Call iconv
109854         with 2xNULL arguments, also to flush the state storage. Handle the
109855         IRIX iconv behaviour. Realloc the final result, to throw away unused
109856         memory.
109858 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
109860         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
109861         and fchmodat unconditionally, since glibc 2.4 has them.
109862         Problem reported by Arkadiusz Miskiewicz.
109864 2006-12-10  Bruno Haible  <bruno@clisp.org>
109866         * gnulib-tool (func_import): Show the include files only for those
109867         modules that are copied and specified.
109868         Reported by Karl Berry.
109870 2006-12-08  Jim Meyering  <jim@meyering.net>
109872         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
109873         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
109875         * build-aux/announce-gen: Add two new options, both optional:
109876         --bootstrap-tools=TOOL_LIST
109877               a comma-separated list of tools, e.g.,
109878               autoconf,automake,bison,gnulib
109879         --gnulib-snapshot-date=DATE
109880               if gnulib is in the bootstrap tool list,
109881               then report this as the snapshot date.
109882               If not specified, use the current date/time.
109883               If you specify a date here, be sure it's UTC.
109885 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109887         * tests/test-argp-2.sh: Fix test to match actual output.
109888         (func_compare): Fix sed script to be portable.
109890 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
109892         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
109893         workaround for this case.  It is not autoconfigured now; offhand
109894         it's hard to see how to autoconfigure it.
109896 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
109898         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
109899         a directory that is about to be chowned.  Such a directory's
109900         initial file permissions should permit the owner only and this
109901         should not be changed until after the chown, since the group and
109902         other bits would be incorrect if they granted permission before
109903         the chown.
109905         Fix porting problem for iswctype reported by Georg Schwarz in:
109906         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
109907         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
109908         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
109909         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
109910         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
109912 2006-12-03  Jim Meyering  <jim@meyering.net>
109914         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
109915         p->fts_statp may not yet be defined.
109916         (fts_read): Instead, set it in the caller, once p->fts_statp is
109917         sure to be defined, and corresponds to a top-level directory.
109918         This bug made du -x fail.  Here's the coreutils test case:
109919         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
109920         Reported by Mike Frysinger.
109922 2006-12-01  Jim Meyering  <jim@meyering.net>
109924         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
109925         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
109926         Reported by Simon Josefsson.
109928 2006-11-30  Jim Meyering  <jim@meyering.net>
109930         * m4/warning.m4: Use the all-permissive copyright notice
109931         recommended by RMS (rather than LGPL).
109932         * m4/vararrays.m4: Likewise.
109933         * m4/flexmember.m4: Likewise.
109935 2006-11-29  Bruno Haible  <bruno@clisp.org>
109937         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
109938         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
109939         using +=.
109940         Reported by Simon Josefsson <simon@josefsson.org>.
109942 2006-11-28  James Youngman  <jay@gnu.org>
109944         * README: Advise users that they might find the bug-gnulib@gnu.org
109945         and autotools-announce@gnu.org mailing lists useful.
109947 2006-11-28  Bruno Haible  <bruno@clisp.org>
109949         * m4/ptrdiff_max.m4: Remove file.
109951 2006-11-21  Bruno Haible  <bruno@clisp.org>
109953         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
109954         _AC_COMPUTE_INT.
109955         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
109956         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
109957         _AC_COMPUTE_INT.
109958         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
109959         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
109960         _AC_COMPUTE_INT.
109961         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
109963 2006-11-28  Jim Meyering  <jim@meyering.net>
109965         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
109966         warning from "gcc -Wshadow" about shadowing the builtin.
109968 2006-11-27  Bruno Haible  <bruno@clisp.org>
109970         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
109971         _AC_COMPUTE_INT.
109972         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
109974 2006-11-27  Bruno Haible  <bruno@clisp.org>
109975             Paul Eggert  <eggert@cs.ucla.edu>
109977         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
109979 2006-11-26  Bruno Haible  <bruno@clisp.org>
109981         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
109982         noinst_LTLIBRARIES.
109984 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
109985             Bruno Haible  <bruno@clisp.org>
109987         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
109988         if compiling with "gcc -ansi".
109990 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
109992         Fix some incompatibilities with gcc -ansi -pedantic.
109993         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
109994         if compiling pedantically with GCC, unless it's C99 or later.
109995         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
109996         it mishandles gcc -ansi -pedantic as well.
109997         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
109998         if gcc -pedantic.
109999         * lib/regexec.c (check_node_accept_bytes): Don't use auto
110000         initializers for struct if -pedantic, unless it's C99 or later.
110002 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
110004         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
110005         Don't close an fd more than once. Identical atimes indicate
110006         success, not failure.
110008 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
110010         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
110012 2006-11-23  Jim Meyering  <jim@meyering.net>
110014         * build-aux/announce-gen: New file.  From coreutils.
110016 2006-11-22  Jim Meyering  <jim@meyering.net>
110018         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
110019         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
110020         (fts_read): Use a temporary to narrow the overused st_size member
110021         before using it in a switch statement.  Reported by Matthew Woehlke.
110023         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
110024         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
110026 2006-11-20  Bruno Haible  <bruno@clisp.org>
110028         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
110029         changequote instead of pairs of brackets.
110030         Reported by Andreas Schwab <schwab@suse.de>.
110032 2006-11-21  Jim Meyering  <jim@meyering.net>
110034         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
110035         so as to remain compatible with older compilers.
110036         Patch from Michael Deutschmann.
110038 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
110040         * MODULES.html.sh (File system functions): Add openat.
110042         * lib/openat.h (rpl_fstatat): New macro, if
110043         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
110044         (fstatat): Define to rpl_fstatat under the same conditions,
110045         unless COMPILING_FSTATAT.
110046         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
110047         seems to have the bug.
110048         * lib/fstatat.c: New file.
110049         * modules/openat (Files): Add it.
110051 2006-11-20  Bruno Haible  <bruno@clisp.org>
110053         * Makefile: New file.
110055 2006-11-20  Jim Meyering  <jim@meyering.net>
110057         The beginnings of syntax-related checks for gnulib.
110058         * lib/Makefile: New file.
110059         * lib/t-idcache: New script.  Ensure that the two halves of
110060         idcache.c stay in sync.
110062         * lib/idcache.c: Adjust comments in user- and group- portions to
110063         be more accurate, and to be consistent with one another.
110065 2006-11-20  Jim Meyering  <jim@meyering.net>
110067         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
110068         continue using the flexible array member (thus, this module performs
110069         half as many malloc calls), with the addition that...
110070         (getgroup, getuser): Consistently record a non-match via an empty
110071         "name" string, and map an empty string match to a NULL return value.
110072         * modules/idcache (Depends-on): Re-add flexmember.
110074         * lib/idcache.c (getuser): Remove all uses of the register keyword.
110075         (getuidbyname, getgroup, getgidbyname): Likewise.
110077         Use cleaner syntax: NULL rather than 0.
110078         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
110080 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
110082         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
110083         It mishandled the case where the group was missing.
110084         Problem reported by Greg Schafer.
110085         * modules/idcache: Likewise.
110087 2006-11-18  Jim Meyering  <jim@meyering.net>
110089         * check-module (%exempt_header): Add exception for some
110090         conditionally-included headers.
110092         * modules/i-ring (Depends-on): Add verify.
110093         (License): Change to LGPL.
110095 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
110097         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
110098         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
110099         and inttostr.h.  Use snprintf rather than uinttostr, so that
110100         LGPLed code doesn't depend on GPLed.
110102 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
110104         * modules/inline (License): Change from GPL to LGPL.
110106 2006-11-17  Jim Meyering  <jim@meyering.net>
110108         * modules/d-type (License): Switch to LGPL.
110110 2006-11-15  Bruno Haible  <bruno@clisp.org>
110112         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
110114 2006-11-15  Eric Blake  <ebb9@byu.net>
110116         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
110117         the module dependency.
110119 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
110120             Bruno Haible  <bruno@clisp.org>
110122         * gnulib-tool (func_create_testdir): Add license consistency check.
110124 2006-11-15  Eric Blake  <ebb9@byu.net>
110126         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
110127         random "(cached)" in configure output.
110129 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110131         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
110132         test for conforming inttypes.h is both announced and cached.
110134         * MODULES.html.sh (seen_modules, seen_files): New variables.
110135         (func_module): Rewrite to use a few less gnulib-tool and sed
110136         invocations.  Avoid a couple of quadratic algorithms for ...
110137         (missed_modules, missed_files): ... these, with ...
110138         (func_append, func_tmpdir): ... these new functions, from
110139         gnulib-tool.  Analogously, install traps for cleanup.
110141         * tests/test-gc.c (main): Remove unused variables.
110142         * tests/test-read-file.c: Include stdlib.h, for 'free'.
110144 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
110146         * modules/inttostr (License): Change to LGPL.
110148 2006-11-14  Eric Blake  <ebb9@byu.net>
110150         * modules/tempname (License): Change to LGPL.
110152 2006-11-14  Eric Blake  <ebb9@byu.net>
110154         * doc/functions.texi (Function Portability): *printf functions on
110155         Cygwin now understand all POSIX size specifiers.
110157 2006-11-14  Bruno Haible  <bruno@clisp.org>
110159         * modules/c-ctype (License): Change to LGPL.
110161 2006-11-12  Bruno Haible  <bruno@clisp.org>
110163         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
110164         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
110165         for GNOME libraries, for which the include files are installed in
110166         subdirectories of $prefix/include.
110168 2006-11-12  Bruno Haible  <bruno@clisp.org>
110170         * m4/lib-link.m4: Require at least autoconf-2.54.
110171         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
110172         name to underscores for the --with option.
110174 2006-11-13  Bruno Haible  <bruno@clisp.org>
110176         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
110177         the tests directory.
110178         Reported by Ralf Wildenhues.
110180 2006-11-13  Bruno Haible  <bruno@clisp.org>
110182         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
110183         (func_emit_initmacro_end): Undo the override here.
110184         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
110185         Works around the famous automake error in coreutils.
110187 2006-11-13  Eric Blake  <ebb9@byu.net>
110189         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
110190         element, not its node.
110192 2006-11-12  Bruno Haible  <bruno@clisp.org>
110194         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
110195         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
110197 2006-11-12  Bruno Haible  <bruno@clisp.org>
110199         * gnulib-tool: New option --local-symlink.
110200         (func_usage): Document it.
110201         (lsymbolic): New variable.
110202         (func_import, func_create_testdir): If --symlink was not specified,
110203         test whether --local-symlink was specified and the file comes from
110204         the local_gnulib_dir.
110206 2006-11-12  Bruno Haible  <bruno@clisp.org>
110208         * gnulib-tool (func_ln): New function.
110209         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
110211 2006-11-12  Bruno Haible  <bruno@clisp.org>
110213         Finish support for source files in subdirectories.
110214         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
110215         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
110216         AUTOMAKE_OPTIONS.
110217         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
110219 2006-11-12  Bruno Haible  <bruno@clisp.org>
110221         * gnulib-tool (func_get_automake_snippet): Synthesize also an
110222         EXTRA_lib_SOURCES augmentation.
110223         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
110225 2006-11-12  Jim Meyering  <jim@meyering.net>
110227         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
110228         file descriptors.  This also averts a failure on systems with
110229         native openat support when a traversed directory lacks "x" access.
110230         * lib/fts_.h: Include "i-ring.h"
110231         (struct FTS) [fts_fd_ring]: New member.
110232         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
110233         (FCHDIR): Add parentheses.
110234         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
110235         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
110236         When descending, rather than simply closing the previous
110237         fts_cwd_fd value, push that file descriptor onto the ring.
110238         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
110239         (fts_open): Initialize the new fd_ring member.
110240         (fts_close): Clear the ring.
110241         (fts_safe_changedir): When possible, use our new fd_ring to skip
110242         the diropen and fstat and dev/ino comparison that would normally
110243         accompany a virtual `chdir ("..")'.
110245         * modules/fts (Depends-on): Add i-ring.
110246         * modules/i-ring: New module.
110247         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
110248         * m4/i-ring.m4: New file.
110250 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110252         * gnulib-tool (func_create_testdir): Fix replacement of
110253         `build-aux' in configure.ac.  Run autotools in gltests
110254         subdirectory.
110255         (func_create_testdir, func_create_megatestdir, test): There is
110256         no need for '--force' in most autotool invocations in a new
110257         tree.  Actually fail the whole test if any of the tools, or the
110258         configure or make stages fail.
110260         Sync from Automake.
110261         * build-aux/gnupload: Revert last change.  Add pointer to upload
110262         instructions of the GNU Maintenance Instructions.
110263         Suggestion by Karl Berry.
110265 2006-11-10  Jim Meyering  <jim@meyering.net>
110267         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
110269 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
110271         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
110272         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
110273         (bind_textdomain_codeset) [! ENABLE_NLS]:
110274         Evaluate all the arguments.  That way, callers get compatible behavior
110275         if the arguments have side effects.  Also, it avoids some GCC
110276         diagnostics in some cases; Joel E. Denny reported problems when Bison
110277         was configured with --enable-gcc-warnigs.
110279 2006-11-10  Jim Meyering  <jim@meyering.net>
110281         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
110282         relevant options in CFLAGS (like -O, -fno-inline) are taken into
110283         account.
110285 2006-11-10  Jim Meyering  <jim@meyering.net>
110287         * modules/inline: New file/module.
110288         * modules/xalloc (Files): Remove m4/inline.m4.
110289         (Depends-on): Add inline, instead.
110290         * modules/oset: Likewise.
110291         * modules/list: Likewise.
110293 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
110295         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
110296         Problem reported by Matthew Woehlke.
110298 2006-11-09  Bruno Haible  <bruno@clisp.org>
110300         * lib/tempname.c (gen_tempname): Remove variant that invokes
110301         __gen_tempname.
110302         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
110303         __gen_tempname.
110305 2006-11-08  Bruno Haible  <bruno@clisp.org>
110307         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
110308         to 'yes' instead of 'cross-compiling'.
110310 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
110312         * lib/quotearg.h (quotearg_free): New decl.
110313         * lib/quotearg.c (quotearg_free): New function.
110314         (slot0, nslots, slotvec0, slotvec):
110315         Now file-scope so that quotearg_free can get at them.
110317 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110319         Sync from Automake.
110320         * build-aux/gnupload: Add missing 'gnu' to example URL.
110321         Report by Karl Berry.
110323 2006-11-08  Bruno Haible  <bruno@clisp.org>
110325         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
110326         Suggested by Paul Eggert.
110328 2006-11-08  Jim Meyering  <jim@meyering.net>
110330         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
110331         It's already included if !_LIBC.
110332         (fts_safe_changedir): Add a comment.
110334 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
110336         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
110337         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
110338         Matthew Woehlke.
110340         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
110341         definitions up, to avoid colliding with change below.
110342         (static_inline) [HAVE_INLINE]: New macro.
110343         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
110344         Provide extern decls when !HAVE_INLINE.  Do not define unless
110345         static_inline is defined, either by us or by xmalloc.c.  Use
110346         static_inline rather than static inline.
110347         (XCALLOC): Optimize sizeof(T) = 1 case.
110348         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
110350 2006-11-07  Bruno Haible  <bruno@clisp.org>
110352         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
110353         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
110354         AC_C_INLINE.
110355         * modules/xalloc (Files): Add m4/inline.m4.
110357 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110359         * README: Fix typo.
110360         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
110361         (Miscellanous Notes): ...from this.
110363 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
110365         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
110366         Mention that offsetof should be used instead of sizeof.
110367         From Bruno Haible.
110369 2006-11-07  Bruno Haible  <bruno@clisp.org>
110371         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
110373 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
110375         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
110376         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
110377         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
110378         (gl_tree_add_before, gl_tree_add_after):
110379         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
110380         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
110381         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
110382         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
110383         (gl_linked_add_after, gl_linked_add_at): Likewise.
110384         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
110385         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
110386         (gl_tree_add_before, gl_tree_add_after): Likewise.
110387         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
110388         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
110389         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
110391 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110393         * lib/gl_oset.h: Use C comment style, not C++ comment style.
110395 2006-11-06  Bruno Haible  <bruno@clisp.org>
110397         * m4/inline.m4: New file.
110398         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
110399         * modules/list (Files): Add m4/inline.m4.
110400         * modules/oset (Files): Likewise.
110402 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
110404         * lib/idcache.c: Include <stddef.h>, for offsetof.
110405         (struct userid.name): Change from char * to a flexible array member.
110406         All uses changed.
110407         * modules/idcache (Depends-on): Add flexmember.
110409         * MODULES.html.sh (Core language properties): New module flexmember.
110410         * modules/flexmember, m4/flexmember.m4: New files.
110412         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
110413         inline functions that are identical with the old xnmalloc_inline,
110414         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
110415         that we can avoid some unnecessary integer multiplications and
110416         divisions in the common case where the element size is known at
110417         compile time.
110418         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
110419         needed.
110420         (xnboundedmalloc): Remove.
110421         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
110422         arguments, for consistency with rest of this header.
110423         (xcharalloc): Rewrite using XNMALLOC.
110424         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
110425         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
110426         versions have been moved to lib/xalloc.h and renamed to be the
110427         non-*_inline versions.
110428         (xmalloc, xrealloc): Implement without reference to the xnmalloc
110429         and xnrealloc functions, since those functions are now inline and
110430         now call us.
110431         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
110432         renaming described above.
110433         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
110434         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
110435         captures the dependency in AC_C_INLINE.
110437         New module canonicalize-lgpl, proposed by Charles Wilson in
110438         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
110439         with a few small changes afterwards.
110440         * MODULES.html.sh (File system functions): New module
110441         canonicalize-lgpl.
110442         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
110443         and canonicalize_file_name.
110444         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
110445         * modules/canonicalize-lgpl: New files.
110447 2006-11-05  Bruno Haible  <bruno@clisp.org>
110449         * gnulib-tool (func_import, func_create_testdir): Create directories
110450         also for files in subdirectories of lib/.
110452 2006-11-05  Bruno Haible  <bruno@clisp.org>
110454         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
110455         ANSI C compliant.
110457 2006-11-03  Bruno Haible  <bruno@clisp.org>
110459         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
110460         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
110461         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
110462         (xnboundedmalloc): New inline function.
110463         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
110464         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
110465         xmalloc.
110466         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
110467         xmalloc.
110468         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
110469         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
110470         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
110471         xmalloc.
110472         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
110473         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
110474         xmalloc.
110475         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
110476         gl_tree_add_after): Use XMALLOC instead of xmalloc.
110477         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
110478         xmalloc.
110479         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
110480         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
110481         gl_tree_add_after): Use XMALLOC instead of xmalloc.
110482         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
110483         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
110484         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
110485         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
110487 2006-11-03  Bruno Haible  <bruno@clisp.org>
110489         * lib/c-ctype.h [C++]: Define functions without name mangling.
110490         * lib/fwriteerror.h [C++]: Likewise.
110491         * lib/gcd.h [C++]: Likewise.
110492         * lib/linebreak.h [C++]: Likewise.
110494 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
110496         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
110497         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
110498         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
110499         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
110500         Check for functions and headers just once.
110501         Check for declaration of canonicalize_file_name.
110502         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
110504 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
110506         * gnulib-tool (func_import): Fix typo in actioncmd.
110508 2006-11-02  Bruno Haible  <bruno@clisp.org>
110510         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
110511         newline sequence in the Makefile.am snippet as a space, like "make"
110512         does.
110513         Reported by Roger Persson <perrog@gmail.com>.
110515 2006-11-01  Bruno Haible  <bruno@clisp.org>
110517         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
110518         already declared in <string.h>.
110519         * lib/strcase.h (strncasecmp): Don't declare it if yes.
110521 2006-11-01  Bruno Haible  <bruno@clisp.org>
110523         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
110524         * lib/strcase.h: Include <string.h>.
110525         (strcasecmp): Define to rpl_strcasecmp here.
110527 2006-11-01  Bruno Haible  <bruno@clisp.org>
110529         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
110531 2006-11-01  Eric Blake  <ebb9@byu.net>
110533         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
110535         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
110537 2006-10-29  Bruno Haible  <bruno@clisp.org>
110539         Make it compile in C++ mode.
110540         * lib/full-write.c (full_rw): Add a cast.
110542 2006-11-01  Bruno Haible  <bruno@clisp.org>
110544         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
110545         be POSIX compliant.
110546         Reported by Roger Persson <perrog@gmail.com>.
110548 2006-11-01  Eric Blake  <ebb9@byu.net>
110550         * lib/getopt_.h: Fix comments.
110552 2006-10-31  Eric Blake  <ebb9@byu.net>
110554         * modules/tmpdir (Depends-on): Add sys_stat.
110555         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
110556         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
110557         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
110558         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
110559         tempname.
110561 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
110563         Avoid some C++ diagnostics reported by Bruno Haible.
110564         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
110565         xmalloc.
110566         (quotearg_alloc): Use xcharalloc rather than xmalloc.
110567         (struct slotvec): Move to top level.
110568         (quotearg_n_options): Rewrite to avoid xmalloc.
110569         * lib/xalloc.h (xcharalloc): New function.
110570         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
110571         [defined __cplusplus]: Add function template that provides result
110572         type propagation.  This part of the change is from Bruno Haible.
110574 2006-10-29  Bruno Haible  <bruno@clisp.org>
110576         Make it compile in C++ mode.
110577         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
110578         * lib/strnlen1.c (strnlen1): Cast memchr result.
110579         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
110580         * lib/clean-temp.c (string_equals, string_hash): Add casts.
110581         (create_temp_dir): Rename local variable 'template'.
110582         (compile_csharp_using_sscli): Add cast.
110583         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
110584         * lib/findprog.c (find_in_path): Likewise.
110585         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
110586         * lib/wait-process.c (register_slave_subprocess): Likewise.
110588 2006-10-22  Bruno Haible  <bruno@clisp.org>
110590         * modules/tsearch: New file.
110591         * lib/tsearch.h: New file.
110592         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
110593         * m4/tsearch.m4: New file.
110594         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
110596 2006-10-29  Eric Blake  <ebb9@byu.net>
110598         * lib/arcfour.c: Assume config.h.
110599         * lib/arctwo.c: Likewise.
110600         * lib/base64.c: Likewise.
110601         * lib/check-version.c: Likewise.
110602         * lib/crc.c: Likewise.
110603         * lib/des.c: Likewise.
110604         * lib/gc-gnulib.c: Likewise.
110605         * lib/gc-libgcrypt.c: Likewise.
110606         * lib/gc-pbkdf2-sha1.c: Likewise.
110607         * lib/getaddrinfo.c: Likewise.
110608         * lib/getdelim.c: Likewise.
110609         * lib/getline.c: Likewise.
110610         * lib/hmac-md5.c: Likewise.
110611         * lib/hmac-sha1.c: Likewise.
110612         * lib/iconvme.c: Likewise.
110613         * lib/md2.c: Likewise.
110614         * lib/md4.c: Likewise.
110615         * lib/memxor.c: Likewise.
110616         * lib/read-file.c: Likewise.
110617         * lib/readline.c: Likewise.
110618         * lib/rijndael-alg-fst.c: Likewise.
110619         * lib/rijndael-api-fst.c: Likewise.
110620         * lib/xgetdomainname.c: Likewise.
110622 2006-10-28  Eric Blake  <ebb9@byu.net>
110624         * lib/xstrndup.c: Assume config.h.
110626 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
110628         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
110629         stat-macros.h is now for our own macros, whereas stat_h is for
110630         macros in the <sys/stat.h> name space.
110631         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
110632         (STAT_MACROS_H): Remove.
110633         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
110634         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
110635         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
110636         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
110637         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
110638         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
110639         Move these macros to ...
110640         * lib/stat_.h: here.  Don't include stat-macros.h.
110641         * lib/canonicalize.c: Don't include stat-macros.h.
110642         * lib/chown.c: Likewise.
110643         * lib/euidaccess.c: Likewise.
110644         * lib/file-type.c: Likewise.
110645         * lib/filemode.c: Likewise.
110646         * lib/glob.c: Likewise.
110647         * lib/isapipe.c: Likewise.
110648         * lib/lchown.c: Likewise.
110649         * lib/lstat.c: Likewise.
110650         * lib/mkdir-p.c: Likewise.
110651         * lib/rmdir.c: Likewise.
110652         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
110653         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
110654         unless mkdir isn't declared, to speed up 'configure'.
110655         Always create sys/stat.h, since it's unlikely any real sys/stat.h
110656         would define all the S_* symbols.
110657         * modules/canonicalize (Depends-on):
110658         Depend on sys_stat, not stat-macros.
110659         * modules/chown: Likewise.
110660         * modules/euidaccess: Likewise.
110661         * modules/filemode: Likewise.
110662         * modules/file-type: Likewise.
110663         * modules/glob: Likewise.
110664         * modules/isapipe: Likewise.
110665         * modules/lchown: Likewise.
110666         * modules/lstat: Likewise.
110667         * modules/mkancesdirs: Likewise.
110668         * modules/rmdir: Likewise.
110669         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
110670         * modules/modechange: Likewise.
110671         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
110672         (configure.ac): Remove gl_STAT_MACROS.
110673         * modules/sys_stat (Depends-on): Remove stat-macros.
110675 2006-10-27  Bruno Haible  <bruno@clisp.org>
110677         * m4/signed.m4: Remove file.
110678         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
110679         invocation.
110680         * modules/vasnprintf (Files): Remove m4/signed.m4.
110682 2006-10-27  Bruno Haible  <bruno@clisp.org>
110684         Update to GNU gettext 0.16.
110685         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
110686         m4/inttypes-h.m4, m4/signed.m4.
110687         * m4/gettext.m4: Update to GNU gettext 0.16.
110688         * m4/intl.m4: New file, from GNU gettext.
110689         * m4/intldir.m4: New file, from GNU gettext.
110690         * config/srclist.txt: Update
110692 2006-10-27  Eric Blake  <ebb9@byu.net>
110694         * MODULES.html.sh: Document tempname.
110695         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
110696         dependencies.
110697         (Files): Move lib/tempname.c...
110698         * modules/tempname: ...to this new module.
110699         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
110700         (gl_PREREQ_TEMPNAME): Move...
110701         * m4/tempname.m4: ...to this new file.
110702         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
110703         * modules/sys_stat (Depends-on): Add stat-macros.
110704         * lib/stat_.h (includes): Pick up stat macros.
110705         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
110706         if stat macros are broken.
110707         * lib/tempname.c (includes): No need to include "stat-macros.h".
110708         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
110709         (direxists, __path_search) [!_LIBC]: Don't compile these in
110710         gnulib; the tmpdir module covers that.
110711         * lib/tempname.h: New file.
110713 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
110715         * COPYING: Explain how gnulib-tool converts licence headers.
110716         Almost all wording by Eric Blake.
110718 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
110720         * lib/mbchar.h (is_basic_table): Make read-only.
110721         * lib/mbchar.c (is_basic_table): Likewise.
110722         Reported by John Darrington.
110724 2006-10-25  Bruno Haible  <bruno@clisp.org>
110726         * lib/progname.h (set_program_name): Undefine before defining.
110728 2006-10-25  Bruno Haible  <bruno@clisp.org>
110730         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
110731         false for non-gcc C++ compilers.
110732         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
110734 2006-10-24  Bruno Haible  <bruno@clisp.org>
110736         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
110737         iconv implementations like Irix iconv.
110739 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
110741         * modules/vararrays: New file.
110742         * m4/vararrays.m4: New file, taken from diffutils.
110743         * MODULES.html.sh: New module vararrays.
110745 2006-10-24  Karl Berry  <karl@gnu.org>
110747         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
110748         Don't call GNU Unix.
110750 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110752         * users.txt: Add Libtool.
110754         Sync from Libtool:
110756         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
110758         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
110759         to gnulib's policy of including config.h unconditionally.
110761 2006-10-24  Bruno Haible  <bruno@clisp.org>
110763         * modules/wcwidth (Files): Add m4/wint_t.m4.
110764         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
110765         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
110767 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
110769         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
110770         to pacify GCC with some -W flags enabled.  Problem reported by
110771         Bruno Haible.
110773 2006-10-24  Jim Meyering  <jim@meyering.net>
110775         * MODULES.html.sh: Remove uinttostr.  It's not a module.
110776         Reported by Karl Berry.
110778 2006-10-23  Bruno Haible  <bruno@clisp.org>
110780         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
110782 2006-10-24  Bruno Haible  <bruno@clisp.org>
110784         * lib/gl_list.h: Use C comment style, not C++ comment style.
110786 2006-10-23  Eric Blake  <ebb9@byu.net>
110788         * lib/getaddrinfo.c (includes): Add missing include.
110790 2006-10-23  Bruno Haible  <bruno@clisp.org>
110791             Paul Eggert  <eggert@cs.ucla.edu>
110793         Ability to rename obstack_free.
110794         * lib/obstack.h (__obstack_free): New macro. Declare instead of
110795         obstack_free.
110796         (obstack_free): Invoke the __obstack_free macro.
110797         * lib/obstack.c (obstack_free): Use __obstack_free macro.
110799 2006-10-23  Bruno Haible  <bruno@clisp.org>
110800             Paul Eggert  <eggert@cs.ucla.edu>
110802         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
110803         __argc, __argv from the declaration. (They are defined as macros on
110804         mingw.)
110806 2006-10-22  Bruno Haible  <bruno@clisp.org>
110808         * doc/gnulib-intro.texi: New file.
110809         * doc/gnulib.texi: Include it.
110811 2006-10-21  Bruno Haible  <bruno@clisp.org>
110813         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
110814         "Introduction", "Miscellanous Notes", "Particular Modules".
110816 2006-10-21  Bruno Haible  <bruno@clisp.org>
110818         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110819         Change mostlyclean-local rule to avoid sh syntax error from bash
110820         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
110822 2006-10-23  Jim Meyering  <jim@meyering.net>
110824         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
110825         in place of snprintf.
110827         * modules/inttostr (Files): Add lib/uinttostr.c.
110828         * lib/uinttostr.c (inttostr): New file/function.
110829         * lib/inttostr.h (uinttostr): Declare.
110830         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
110831         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
110832         Add uinttostr.
110833         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
110835 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
110837         * lib/canonicalize.c (ELOOP): Define if not already defined.
110838         Problem reported by Bruno Haible in
110839         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
110841 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
110843         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
110844         Problem reported by Perry Smith and Ville Laurikari.
110846         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
110847         uses.
110849 2006-10-19  Bruno Haible  <bruno@clisp.org>
110851         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
110852         for mingw.
110854 2006-10-19  Bruno Haible  <bruno@clisp.org>
110856         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
110857         Needed for mingw.
110859 2006-10-19  Bruno Haible  <bruno@clisp.org>
110861         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
110863 2006-10-19  Bruno Haible  <bruno@clisp.org>
110865         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
110866         it.
110868 2006-10-19  Bruno Haible  <bruno@clisp.org>
110870         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
110871         invocation.
110873 2006-10-19  Bruno Haible  <bruno@clisp.org>
110875         * gnulib-tool (func_create_testdir): Don't include ftruncate and
110876         mountlist by default.
110878 2006-10-16  Bruno Haible  <bruno@clisp.org>
110880         * lib/c-strstr.c: Include c-strstr.h.
110882 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
110884         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
110885         in a slash.
110887 2006-10-18  Bruno Haible  <bruno@clisp.org>
110889         * lib/lock.h [C++]: Wrap definitions in extern "C".
110891 2006-10-18  Bruno Haible  <bruno@clisp.org>
110893         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
110894         gl_LIBOBJS list.
110896 2006-10-18  Bruno Haible  <bruno@clisp.org>
110898         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
110900 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
110902         * lib/xstrtol.h: Include gettext.h.
110903         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
110904         Problem reported by Eric Blake.
110905         * modules/xstrtol (Depends-on): Add gettext-h.
110907 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
110909         * lib/strftime.c (advance): New macro.
110910         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
110911         incomplete type, so you can't add 0 to it.  Problem and patch
110912         reported by Eelco Dolstra for dietlibc.
110914 2006-10-18  Jim Meyering  <jim@meyering.net>
110916         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
110917         type for a local, and rename it: s/up/user_proc/.
110919 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
110921         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
110922         READ_UTMP_USER_PROCESS.
110923         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
110925 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
110927         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
110928         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
110930 2006-10-17  Eric Blake  <ebb9@byu.net>
110932         * lib/sigprocmask.c (sigprocmask): Fix typo.
110934         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
110936         * modules/clean-temp (Makefile.am): Don't add to make output...
110937         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
110938         config.h.
110940 2006-10-17  Bruno Haible  <bruno@clisp.org>
110942         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
110943         differently if DEFAULT_TEXT_DOMAIN is set.
110945 2006-10-16  Bruno Haible  <bruno@clisp.org>
110947         * lib/clean-temp.c: Include fwriteerror.h.
110949 2006-10-16  Bruno Haible  <bruno@clisp.org>
110951         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
110953 2006-10-16  Bruno Haible  <bruno@clisp.org>
110955         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
110956         * lib/sigprocmask.h: Include <sys/types.h>.
110957         (sigset_t): Use the system's definition if present.
110959 2006-10-17  Eric Blake  <ebb9@byu.net>
110961         * lib/xvasprintf.c (includes): Assume config.h.
110962         * lib/xasprintf.c (includes): Likewise.
110964 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
110966         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
110967         at least as wide as intmax_t.
110969 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
110971         (Imported from Automake.)
110972         * build-aux/gnupload: Update to version 1.1 of directive file.
110974 2006-10-16  Eric Blake  <ebb9@byu.net>
110976         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
110977         match Automake 1.10a.
110979 2006-10-14  Bruno Haible  <bruno@clisp.org>
110981         * modules/sigprocmask: New file.
110982         * lib/sigprocmask.h: New file.
110983         * lib/sigprocmask.c: New file.
110984         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
110985         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
110986         request sigprocmask.o.
110987         (gl_PREREQ_SIGPROCMASK): New macro.
110988         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
110989         (Depends-on): Add sigprocmask.
110990         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
110991         gt_SIGNALBLOCKING. Test for 'raise' only once.
110992         * lib/fatal-signal.c: Include sigprocmask.h.
110993         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
110994         unblock_fatal_signals): Define always.
110995         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
110996         sigprocmask.
110998 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
111000         Sync from Automake.
111001         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
111002         which incorrectly sets the mode of an existing destination
111003         directory.  In some cases the unpatched install-sh could do the
111004         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
111005         system.  We hope this is rare in practice, but it's clearly worth
111006         fixing.  Problem reported by Alex Unleashed in
111007         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
111008         Also, don't bother to check for -m bugs unless we're using -m;
111009         suggested by Stepan Kasal.
111011 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111013         Sync from Automake.
111014         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
111015         `-c' flag, so they appear at the same position as in %FASTDEP%
111016         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
111017         which ignores unknown options only after the first non-option.
111018         Bug report against M4 by Nelson H. F. Beebe.
111020 2006-10-13  Jim Meyering  <jim@meyering.net>
111022         Fix a bug in yesterday's change.
111023         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
111024         p->fts_statp->st_dev would be used uninitialized.
111025         Ensures that we always call fts_stat on the very first entry.
111026         Miklos Szeredi reported that find -xdev stopped working.
111028 2006-10-12  Bruno Haible  <bruno@clisp.org>
111030         * gnulib-tool (func_get_automake_snippet): Append an automatically
111031         computed EXTRA_DIST augmentation.
111032         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
111033         * modules/alloca-opt (Makefile.am): Likewise.
111034         * modules/allocsa (Makefile.am): Likewise.
111035         * modules/arcfour (Makefile.am): Likewise.
111036         * modules/arctwo (Makefile.am): Likewise.
111037         * modules/argmatch (Makefile.am): Likewise.
111038         * modules/argz (Makefile.am): Likewise.
111039         * modules/atexit (Makefile.am): Likewise.
111040         * modules/backupfile (Makefile.am): Likewise.
111041         * modules/byteswap (Makefile.am): Likewise.
111042         * modules/c-strtod (Makefile.am): Likewise.
111043         * modules/c-strtold (Makefile.am): Likewise.
111044         * modules/calloc (Makefile.am): Likewise.
111045         * modules/canon-host (Makefile.am): Likewise.
111046         * modules/canonicalize (Makefile.am): Likewise.
111047         * modules/chdir-long (Makefile.am): Likewise.
111048         * modules/chdir-safer (Makefile.am): Likewise.
111049         * modules/check-version (Makefile.am): Likewise.
111050         * modules/chown (Makefile.am): Likewise.
111051         * modules/cloexec (Makefile.am): Likewise.
111052         * modules/close-stream (Makefile.am): Likewise.
111053         * modules/closeout (Makefile.am): Likewise.
111054         * modules/crc (Makefile.am): Likewise.
111055         * modules/csharpexec (Makefile.am): Likewise.
111056         * modules/cycle-check (Makefile.am): Likewise.
111057         * modules/des (Makefile.am): Likewise.
111058         * modules/dev-ino (Makefile.am): Likewise.
111059         * modules/dirfd (Makefile.am): Likewise.
111060         * modules/dirname (Makefile.am): Likewise.
111061         * modules/dup2 (Makefile.am): Likewise.
111062         * modules/eealloc (Makefile.am): Likewise.
111063         * modules/error (Makefile.am): Likewise.
111064         * modules/euidaccess (Makefile.am): Likewise.
111065         * modules/exclude (Makefile.am): Likewise.
111066         * modules/exitfail (Makefile.am): Likewise.
111067         * modules/fcntl-safer (Makefile.am): Likewise.
111068         * modules/fcntl (Makefile.am): Likewise.
111069         * modules/file-type (Makefile.am): Likewise.
111070         * modules/fileblocks (Makefile.am): Likewise.
111071         * modules/filemode (Makefile.am): Likewise.
111072         * modules/filenamecat (Makefile.am): Likewise.
111073         * modules/fnmatch (Makefile.am): Likewise.
111074         * modules/fopen-safer (Makefile.am): Likewise.
111075         * modules/fpending (Makefile.am): Likewise.
111076         * modules/fprintftime (Makefile.am): Likewise.
111077         * modules/free (Makefile.am): Likewise.
111078         * modules/fsusage (Makefile.am): Likewise.
111079         * modules/ftruncate (Makefile.am): Likewise.
111080         * modules/fts (Makefile.am): Likewise.
111081         * modules/gc-arcfour (Makefile.am): Likewise.
111082         * modules/gc-des (Makefile.am): Likewise.
111083         * modules/gc-hmac-md5 (Makefile.am): Likewise.
111084         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
111085         * modules/gc-md4 (Makefile.am): Likewise.
111086         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
111087         * modules/gc-sha1 (Makefile.am): Likewise.
111088         * modules/gc (Makefile.am): Likewise.
111089         * modules/getaddrinfo (Makefile.am): Likewise.
111090         * modules/getcwd (Makefile.am): Likewise.
111091         * modules/getdelim (Makefile.am): Likewise.
111092         * modules/getdomainname (Makefile.am): Likewise.
111093         * modules/getgroups (Makefile.am): Likewise.
111094         * modules/gethostname (Makefile.am): Likewise.
111095         * modules/gethrxtime (Makefile.am): Likewise.
111096         * modules/getline (Makefile.am): Likewise.
111097         * modules/getloadavg (Makefile.am): Likewise.
111098         * modules/getlogin_r (Makefile.am): Likewise.
111099         * modules/getndelim2 (Makefile.am): Likewise.
111100         * modules/getopt (Makefile.am): Likewise.
111101         * modules/getpagesize (Makefile.am): Likewise.
111102         * modules/getpass-gnu (Makefile.am): Likewise.
111103         * modules/getpass (Makefile.am): Likewise.
111104         * modules/getsubopt (Makefile.am): Likewise.
111105         * modules/gettime (Makefile.am): Likewise.
111106         * modules/gettimeofday (Makefile.am): Likewise.
111107         * modules/getugroups (Makefile.am): Likewise.
111108         * modules/getusershell (Makefile.am): Likewise.
111109         * modules/glob (Makefile.am): Likewise.
111110         * modules/group-member (Makefile.am): Likewise.
111111         * modules/hard-locale (Makefile.am): Likewise.
111112         * modules/hash (Makefile.am): Likewise.
111113         * modules/hmac-md5 (Makefile.am): Likewise.
111114         * modules/hmac-sha1 (Makefile.am): Likewise.
111115         * modules/human (Makefile.am): Likewise.
111116         * modules/idcache (Makefile.am): Likewise.
111117         * modules/imaxabs (Makefile.am): Likewise.
111118         * modules/imaxdiv (Makefile.am): Likewise.
111119         * modules/inet_ntop (Makefile.am): Likewise.
111120         * modules/inet_pton (Makefile.am): Likewise.
111121         * modules/intprops (Makefile.am): Likewise.
111122         * modules/inttostr (Makefile.am): Likewise.
111123         * modules/inttypes (Makefile.am): Likewise.
111124         * modules/isapipe (Makefile.am): Likewise.
111125         * modules/javaversion (Makefile.am): Likewise.
111126         * modules/lchmod (Makefile.am): Likewise.
111127         * modules/lchown (Makefile.am): Likewise.
111128         * modules/localcharset (Makefile.am): Likewise.
111129         * modules/long-options (Makefile.am): Likewise.
111130         * modules/lstat (Makefile.am): Likewise.
111131         * modules/malloc (Makefile.am): Likewise.
111132         * modules/mathl (Makefile.am): Likewise.
111133         * modules/mbchar (Makefile.am): Likewise.
111134         * modules/md2 (Makefile.am): Likewise.
111135         * modules/md4 (Makefile.am): Likewise.
111136         * modules/md5 (Makefile.am): Likewise.
111137         * modules/memcasecmp (Makefile.am): Likewise.
111138         * modules/memchr (Makefile.am): Likewise.
111139         * modules/memcmp (Makefile.am): Likewise.
111140         * modules/memcoll (Makefile.am): Likewise.
111141         * modules/memcpy (Makefile.am): Likewise.
111142         * modules/memmem (Makefile.am): Likewise.
111143         * modules/memmove (Makefile.am): Likewise.
111144         * modules/mempcpy (Makefile.am): Likewise.
111145         * modules/memrchr (Makefile.am): Likewise.
111146         * modules/memset (Makefile.am): Likewise.
111147         * modules/memxor (Makefile.am): Likewise.
111148         * modules/mkancesdirs (Makefile.am): Likewise.
111149         * modules/mkdir-p (Makefile.am): Likewise.
111150         * modules/mkdir (Makefile.am): Likewise.
111151         * modules/mkdtemp (Makefile.am): Likewise.
111152         * modules/mkstemp (Makefile.am): Likewise.
111153         * modules/mktime (Makefile.am): Likewise.
111154         * modules/modechange (Makefile.am): Likewise.
111155         * modules/mountlist (Makefile.am): Likewise.
111156         * modules/nanosleep (Makefile.am): Likewise.
111157         * modules/obstack (Makefile.am): Likewise.
111158         * modules/openat (Makefile.am): Likewise.
111159         * modules/pagealign_alloc (Makefile.am): Likewise.
111160         * modules/pathmax (Makefile.am): Likewise.
111161         * modules/physmem (Makefile.am): Likewise.
111162         * modules/poll (Makefile.am): Likewise.
111163         * modules/posixtm (Makefile.am): Likewise.
111164         * modules/posixver (Makefile.am): Likewise.
111165         * modules/putenv (Makefile.am): Likewise.
111166         * modules/quote (Makefile.am): Likewise.
111167         * modules/quotearg (Makefile.am): Likewise.
111168         * modules/raise (Makefile.am): Likewise.
111169         * modules/read-file (Makefile.am): Likewise.
111170         * modules/readline (Makefile.am): Likewise.
111171         * modules/readlink (Makefile.am): Likewise.
111172         * modules/readtokens (Makefile.am): Likewise.
111173         * modules/readutmp (Makefile.am): Likewise.
111174         * modules/realloc (Makefile.am): Likewise.
111175         * modules/regex (Makefile.am): Likewise.
111176         * modules/rename-dest-slash (Makefile.am): Likewise.
111177         * modules/rename (Makefile.am): Likewise.
111178         * modules/rijndael (Makefile.am): Likewise.
111179         * modules/rmdir (Makefile.am): Likewise.
111180         * modules/rpmatch (Makefile.am): Likewise.
111181         * modules/safe-read (Makefile.am): Likewise.
111182         * modules/safe-write (Makefile.am): Likewise.
111183         * modules/same-inode (Makefile.am): Likewise.
111184         * modules/same (Makefile.am): Likewise.
111185         * modules/save-cwd (Makefile.am): Likewise.
111186         * modules/savedir (Makefile.am): Likewise.
111187         * modules/setenv (Makefile.am): Likewise.
111188         * modules/settime (Makefile.am): Likewise.
111189         * modules/sha1 (Makefile.am): Likewise.
111190         * modules/sig2str (Makefile.am): Likewise.
111191         * modules/snprintf (Makefile.am): Likewise.
111192         * modules/stat-macros (Makefile.am): Likewise.
111193         * modules/stat-time (Makefile.am): Likewise.
111194         * modules/stdbool (Makefile.am): Likewise.
111195         * modules/stdint (Makefile.am): Likewise.
111196         * modules/stdlib-safer (Makefile.am): Likewise.
111197         * modules/stpcpy (Makefile.am): Likewise.
111198         * modules/stpncpy (Makefile.am): Likewise.
111199         * modules/strcase (Makefile.am): Likewise.
111200         * modules/strcasestr (Makefile.am): Likewise.
111201         * modules/strchrnul (Makefile.am): Likewise.
111202         * modules/strcspn (Makefile.am): Likewise.
111203         * modules/strdup (Makefile.am): Likewise.
111204         * modules/strerror (Makefile.am): Likewise.
111205         * modules/strftime (Makefile.am): Likewise.
111206         * modules/strndup (Makefile.am): Likewise.
111207         * modules/strnlen (Makefile.am): Likewise.
111208         * modules/strpbrk (Makefile.am): Likewise.
111209         * modules/strsep (Makefile.am): Likewise.
111210         * modules/strstr (Makefile.am): Likewise.
111211         * modules/strtod (Makefile.am): Likewise.
111212         * modules/strtoimax (Makefile.am): Likewise.
111213         * modules/strtok_r (Makefile.am): Likewise.
111214         * modules/strtol (Makefile.am): Likewise.
111215         * modules/strtoll (Makefile.am): Likewise.
111216         * modules/strtoul (Makefile.am): Likewise.
111217         * modules/strtoull (Makefile.am): Likewise.
111218         * modules/strtoumax (Makefile.am): Likewise.
111219         * modules/strverscmp (Makefile.am): Likewise.
111220         * modules/sys_socket (Makefile.am): Likewise.
111221         * modules/sys_stat (Makefile.am): Likewise.
111222         * modules/sysexits (Makefile.am): Likewise.
111223         * modules/time_r (Makefile.am): Likewise.
111224         * modules/timegm (Makefile.am): Likewise.
111225         * modules/timespec (Makefile.am): Likewise.
111226         * modules/tmpfile-safer (Makefile.am): Likewise.
111227         * modules/trim (Makefile.am): Likewise.
111228         * modules/unistd-safer (Makefile.am): Likewise.
111229         * modules/unlinkdir (Makefile.am): Likewise.
111230         * modules/unlocked-io (Makefile.am): Likewise.
111231         * modules/userspec (Makefile.am): Likewise.
111232         * modules/utime (Makefile.am): Likewise.
111233         * modules/utimecmp (Makefile.am): Likewise.
111234         * modules/utimens (Makefile.am): Likewise.
111235         * modules/vasnprintf (Makefile.am): Likewise.
111236         * modules/vasprintf (Makefile.am): Likewise.
111237         * modules/vsnprintf (Makefile.am): Likewise.
111238         * modules/xalloc (Makefile.am): Likewise.
111239         * modules/xgetcwd (Makefile.am): Likewise.
111240         * modules/xnanosleep (Makefile.am): Likewise.
111241         * modules/xreadlink (Makefile.am): Likewise.
111242         * modules/xstrtod (Makefile.am): Likewise.
111243         * modules/xstrtol (Makefile.am): Likewise.
111244         * modules/xstrtold (Makefile.am): Likewise.
111245         * modules/yesno (Makefile.am): Likewise.
111246         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
111248 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
111250         * modules/error (Makefile.am): Distribute files through
111251         EXTRA_DIST, not lib_SOURCES.
111253 2006-10-12  Eric Blake  <ebb9@byu.net>
111255         * modules/error (Makefile.am): Distribute files in /lib.
111256         * modules/obstack (Makefile.am): Likewise.
111258 2006-10-12  Bruno Haible  <bruno@clisp.org>
111260         * modules/acl (Makefile.am): Distribute all files in lib/ through
111261         EXTRA_DIST.
111262         * modules/arcfour (Makefile.am): Likewise.
111263         * modules/arctwo (Makefile.am): Likewise.
111264         * modules/argmatch (Makefile.am): Likewise.
111265         * modules/argz (Makefile.am): Likewise.
111266         * modules/atexit (Makefile.am): Likewise.
111267         * modules/backupfile (Makefile.am): Likewise.
111268         * modules/c-strtod (Makefile.am): Likewise.
111269         * modules/c-strtold (Makefile.am): Likewise.
111270         * modules/calloc (Makefile.am): Likewise.
111271         * modules/canon-host (Makefile.am): Likewise.
111272         * modules/canonicalize (Makefile.am): Likewise.
111273         * modules/chdir-long (Makefile.am): Likewise.
111274         * modules/chdir-safer (Makefile.am): Likewise.
111275         * modules/check-version (Makefile.am): Likewise.
111276         * modules/chown (Makefile.am): Likewise.
111277         * modules/cloexec (Makefile.am): Likewise.
111278         * modules/close-stream (Makefile.am): Likewise.
111279         * modules/closeout (Makefile.am): Likewise.
111280         * modules/crc (Makefile.am): Likewise.
111281         * modules/cycle-check (Makefile.am): Likewise.
111282         * modules/des (Makefile.am): Likewise.
111283         * modules/dirfd (Makefile.am): Likewise.
111284         * modules/dirname (Makefile.am): Likewise.
111285         * modules/dup2 (Makefile.am): Likewise.
111286         * modules/euidaccess (Makefile.am): Likewise.
111287         * modules/exclude (Makefile.am): Likewise.
111288         * modules/exitfail (Makefile.am): Likewise.
111289         * modules/fcntl-safer (Makefile.am): Likewise.
111290         * modules/file-type (Makefile.am): Likewise.
111291         * modules/fileblocks (Makefile.am): Likewise.
111292         * modules/filemode (Makefile.am): Likewise.
111293         * modules/filenamecat (Makefile.am): Likewise.
111294         * modules/fnmatch (Makefile.am): Likewise.
111295         * modules/fopen-safer (Makefile.am): Likewise.
111296         * modules/fpending (Makefile.am): Likewise.
111297         * modules/fprintftime (Makefile.am): Likewise.
111298         * modules/free (Makefile.am): Likewise.
111299         * modules/fsusage (Makefile.am): Likewise.
111300         * modules/ftruncate (Makefile.am): Likewise.
111301         * modules/fts (Makefile.am): Likewise.
111302         * modules/gc (Makefile.am): Likewise.
111303         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
111304         * modules/getaddrinfo (Makefile.am): Likewise.
111305         * modules/getcwd (Makefile.am): Likewise.
111306         * modules/getdelim (Makefile.am): Likewise.
111307         * modules/getdomainname (Makefile.am): Likewise.
111308         * modules/getgroups (Makefile.am): Likewise.
111309         * modules/gethostname (Makefile.am): Likewise.
111310         * modules/gethrxtime (Makefile.am): Likewise.
111311         * modules/getline (Makefile.am): Likewise.
111312         * modules/getloadavg (Makefile.am): Likewise.
111313         * modules/getlogin_r (Makefile.am): Likewise.
111314         * modules/getopt (Makefile.am): Likewise.
111315         * modules/getpass (Makefile.am): Likewise.
111316         * modules/getpass-gnu (Makefile.am): Likewise.
111317         * modules/getsubopt (Makefile.am): Likewise.
111318         * modules/gettime (Makefile.am): Likewise.
111319         * modules/gettimeofday (Makefile.am): Likewise.
111320         * modules/getugroups (Makefile.am): Likewise.
111321         * modules/getusershell (Makefile.am): Likewise.
111322         * modules/glob (Makefile.am): Likewise.
111323         * modules/group-member (Makefile.am): Likewise.
111324         * modules/hard-locale (Makefile.am): Likewise.
111325         * modules/hash (Makefile.am): Likewise.
111326         * modules/hmac-md5 (Makefile.am): Likewise.
111327         * modules/hmac-sha1 (Makefile.am): Likewise.
111328         * modules/human (Makefile.am): Likewise.
111329         * modules/idcache (Makefile.am): Likewise.
111330         * modules/imaxabs (Makefile.am): Likewise.
111331         * modules/imaxdiv (Makefile.am): Likewise.
111332         * modules/inet_ntop (Makefile.am): Likewise.
111333         * modules/inet_pton (Makefile.am): Likewise.
111334         * modules/inttostr (Makefile.am): Likewise.
111335         * modules/isapipe (Makefile.am): Likewise.
111336         * modules/lchown (Makefile.am): Likewise.
111337         * modules/long-options (Makefile.am): Likewise.
111338         * modules/lstat (Makefile.am): Likewise.
111339         * modules/malloc (Makefile.am): Likewise.
111340         * modules/mathl (Makefile.am): Likewise.
111341         * modules/mbchar (Makefile.am): Likewise.
111342         * modules/md2 (Makefile.am): Likewise.
111343         * modules/md4 (Makefile.am): Likewise.
111344         * modules/md5 (Makefile.am): Likewise.
111345         * modules/memcasecmp (Makefile.am): Likewise.
111346         * modules/memchr (Makefile.am): Likewise.
111347         * modules/memcmp (Makefile.am): Likewise.
111348         * modules/memcoll (Makefile.am): Likewise.
111349         * modules/memcpy (Makefile.am): Likewise.
111350         * modules/memmem (Makefile.am): Likewise.
111351         * modules/memmove (Makefile.am): Likewise.
111352         * modules/mempcpy (Makefile.am): Likewise.
111353         * modules/memrchr (Makefile.am): Likewise.
111354         * modules/memset (Makefile.am): Likewise.
111355         * modules/memxor (Makefile.am): Likewise.
111356         * modules/mkancesdirs (Makefile.am): Likewise.
111357         * modules/mkdir (Makefile.am): Likewise.
111358         * modules/mkdir-p (Makefile.am): Likewise.
111359         * modules/mkdtemp (Makefile.am): Likewise.
111360         * modules/mkstemp (Makefile.am): Likewise.
111361         * modules/mktime (Makefile.am): Likewise.
111362         * modules/modechange (Makefile.am): Likewise.
111363         * modules/mountlist (Makefile.am): Likewise.
111364         * modules/nanosleep (Makefile.am): Likewise.
111365         * modules/openat (Makefile.am): Likewise.
111366         * modules/pagealign_alloc (Makefile.am): Likewise.
111367         * modules/physmem (Makefile.am): Likewise.
111368         * modules/poll (Makefile.am): Likewise.
111369         * modules/posixtm (Makefile.am): Likewise.
111370         * modules/posixver (Makefile.am): Likewise.
111371         * modules/putenv (Makefile.am): Likewise.
111372         * modules/quote (Makefile.am): Likewise.
111373         * modules/quotearg (Makefile.am): Likewise.
111374         * modules/raise (Makefile.am): Likewise.
111375         * modules/read-file (Makefile.am): Likewise.
111376         * modules/readline (Makefile.am): Likewise.
111377         * modules/readlink (Makefile.am): Likewise.
111378         * modules/readtokens (Makefile.am): Likewise.
111379         * modules/readutmp (Makefile.am): Likewise.
111380         * modules/realloc (Makefile.am): Likewise.
111381         * modules/regex (Makefile.am): Likewise.
111382         * modules/rename (Makefile.am): Likewise.
111383         * modules/rename-dest-slash (Makefile.am): Likewise.
111384         * modules/rijndael (Makefile.am): Likewise.
111385         * modules/rmdir (Makefile.am): Likewise.
111386         * modules/rpmatch (Makefile.am): Likewise.
111387         * modules/safe-read (Makefile.am): Likewise.
111388         * modules/safe-write (Makefile.am): Likewise.
111389         * modules/same (Makefile.am): Likewise.
111390         * modules/save-cwd (Makefile.am): Likewise.
111391         * modules/savedir (Makefile.am): Likewise.
111392         * modules/setenv (Makefile.am): Likewise.
111393         * modules/settime (Makefile.am): Likewise.
111394         * modules/sha1 (Makefile.am): Likewise.
111395         * modules/sig2str (Makefile.am): Likewise.
111396         * modules/snprintf (Makefile.am): Likewise.
111397         * modules/stdlib-safer (Makefile.am): Likewise.
111398         * modules/stpcpy (Makefile.am): Likewise.
111399         * modules/stpncpy (Makefile.am): Likewise.
111400         * modules/strcase (Makefile.am): Likewise.
111401         * modules/strcasestr (Makefile.am): Likewise.
111402         * modules/strchrnul (Makefile.am): Likewise.
111403         * modules/strcspn (Makefile.am): Likewise.
111404         * modules/strdup (Makefile.am): Likewise.
111405         * modules/strerror (Makefile.am): Likewise.
111406         * modules/strftime (Makefile.am): Likewise.
111407         * modules/strndup (Makefile.am): Likewise.
111408         * modules/strnlen (Makefile.am): Likewise.
111409         * modules/strpbrk (Makefile.am): Likewise.
111410         * modules/strsep (Makefile.am): Likewise.
111411         * modules/strstr (Makefile.am): Likewise.
111412         * modules/strtod (Makefile.am): Likewise.
111413         * modules/strtoimax (Makefile.am): Likewise.
111414         * modules/strtok_r (Makefile.am): Likewise.
111415         * modules/strtol (Makefile.am): Likewise.
111416         * modules/strtoll (Makefile.am): Likewise.
111417         * modules/strtoul (Makefile.am): Likewise.
111418         * modules/strtoull (Makefile.am): Likewise.
111419         * modules/strtoumax (Makefile.am): Likewise.
111420         * modules/strverscmp (Makefile.am): Likewise.
111421         * modules/time_r (Makefile.am): Likewise.
111422         * modules/timegm (Makefile.am): Likewise.
111423         * modules/tmpfile-safer (Makefile.am): Likewise.
111424         * modules/unistd-safer (Makefile.am): Likewise.
111425         * modules/unlinkdir (Makefile.am): Likewise.
111426         * modules/userspec (Makefile.am): Likewise.
111427         * modules/utime (Makefile.am): Likewise.
111428         * modules/utimecmp (Makefile.am): Likewise.
111429         * modules/utimens (Makefile.am): Likewise.
111430         * modules/vasnprintf (Makefile.am): Likewise.
111431         * modules/vasprintf (Makefile.am): Likewise.
111432         * modules/vsnprintf (Makefile.am): Likewise.
111433         * modules/xalloc (Makefile.am): Likewise.
111434         * modules/xgetcwd (Makefile.am): Likewise.
111435         * modules/xnanosleep (Makefile.am): Likewise.
111436         * modules/xreadlink (Makefile.am): Likewise.
111437         * modules/xstrtod (Makefile.am): Likewise.
111438         * modules/xstrtol (Makefile.am): Likewise.
111439         * modules/xstrtold (Makefile.am): Likewise.
111440         * modules/yesno (Makefile.am): Likewise.
111442 2006-10-12  Jim Meyering  <jim@meyering.net>
111444         * m4/getloadavg.m4: Revert the change below.
111446         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
111447         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
111448         fail with a symlink, which is what coreutils' ./bootstrap now
111449         creates by default.
111451 2006-10-12  Bruno Haible  <bruno@clisp.org>
111453         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
111454         mingw.
111455         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
111456         MSVC and mingw explicitly.
111458 2006-10-11  Simon Josefsson  <jas@extundo.com>
111459             Bruno Haible  <bruno@clisp.org>
111461         Add support for multiple gnulib-tool invocations in the scope of a
111462         single configure.ac file.
111463         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
111464         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
111465         with the same contents as the _LIBADD variable.
111466         (func_emit_initmacro_start, func_emit_initmacro_end,
111467         func_emit_initmacro_done): New functions.
111468         (func_import, func_create_testdir): Invoke them. Allow the identifiers
111469         gl_LIBOBJS and gl_LTLIBOBJS.
111471 2006-10-11  Bruno Haible  <bruno@clisp.org>
111473         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
111474         (func_create_testdir): Don't create po/Makefile.am, don't invoke
111475         autoreconf. Instead, invoke autopoint explicitly but move back the
111476         *.m4 files from gnulib.
111478 2006-10-11  Bruno Haible  <bruno@clisp.org>
111480         * gnulib-tool (func_usage): Make module names after --create-testdir
111481         optional.
111482         (func_create_testdir): If no module was specified, use nearly all
111483         modules.
111485 2006-10-12  Jim Meyering  <jim@meyering.net>
111487         Big performance improvement for fts-based tools that use FTS_NOSTAT.
111488         Avoid spurious inode-mismatch problems on non-POSIX file systems.
111489         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
111490         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
111491         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
111492         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
111493         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
111494         (fts_set_stat_required): New function.
111495         (fts_open): Defer the calls to fts_stat, if possible or requested.
111496         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
111497         into fts_stat itself.
111498         (fts_read): Perform any required (deferred) fts_stat call.
111499         (fts_build): Likewise, for the directory we're about to open and read.
111500         In the readdir loop, carefully decide whether each entry will require
111501         an eventual call to fts_stat, using dirent.d_type info if available.
111502         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
111503         a command line argument into this function.  Update all callers.
111504         Map a return value of FTS_DOT to FTS_D for a command line argument.
111505         * modules/fts (Depends-on): Add d-type.  Alphabetize.
111506         Thanks to Miklos Szeredi for his tenacity and for the initial
111507         bug report about "find" failing on a FUSE-based file system.
111509         * lib/fts.c (fts_open): Use consistent indentation.
111511 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
111513         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
111514         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
111515         reported by Jim Meyering.  All uses of cache variables renamed
111516         to match Autoconf's.
111517         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
111518         the other one.
111520         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
111521         Fix misspelling in diagnostic.
111523 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
111525         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
111526         defined.  Problem reported by Matthew Woehlke.
111528         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
111529         Add support for Tandem NonStop R series.
111530         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
111531         Use new macro.
111533         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
111534         (has_trailing_slash): Omit size arg; all callers changed.
111535         Omit 'inline', since it doesn't help performance and we'd
111536         need to configure it.
111537         Don't count //, ///, etc. as having a trailing slash.
111538         As a side effect, this removes a C99ism reported by Matthew Woehlke.
111539         (rpl_rename_dest_slash): On failure, use rename's errno rather
111540         than (in some cases) an incorrect or junk errno.
111541         Simplify code by removing need to compute length; this does
111542         cause it to make two passes instead of one over the file name,
111543         but it's worth it.
111545         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
111546         change, since Autoconf's version may no longer be appropriate now
111547         that we are using CVS Autoconf's version.  Add support for Tandem.
111549 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
111550             Bruno Haible  <bruno@clisp.org>
111552         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
111553         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
111554         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
111555         gl_AC_TYPE_LONG_LONG.
111557         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
111558         instead of HAVE_LONG_LONG.
111559         * lib/printf-args.c (printf_fetchargs): Likewise.
111560         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
111561         * lib/vasnprintf.c (VASNPRINTF): Likewise.
111562         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
111563         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
111564         gl_AC_TYPE_LONG_LONG.
111566 2006-10-11  Bruno Haible  <bruno@clisp.org>
111568         * m4/longlong.m4: Add comments.
111569         * m4/ulonglong.m4: Likewise.
111571 2006-10-10  Bruno Haible  <bruno@clisp.org>
111573         Make it possible to #define stpcpy, strdup to aliases.
111574         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
111575         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
111577 2006-10-10  Bruno Haible  <bruno@clisp.org>
111579         Make it possible to #define gcd to an alias.
111580         * lib/gcd.c: Include config.h.
111582 2006-10-10  Bruno Haible  <bruno@clisp.org>
111584         Make it possible to #define c_isascii to an alias.
111585         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
111586         defined. Undefine the macros before defining them, to avoid gcc
111587         warnings.
111588         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
111589         define NO_C_CTYPE_MACROS early.
111591 2006-10-10  Bruno Haible  <bruno@clisp.org>
111593         Make it possible to #define set_program_name to an alias.
111594         * lib/progname.c: Don't undefine set_program_name; instead, undefine
111595         ENABLE_RELOCATABLE early.
111597 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
111599         Port to Tandem NSK OSS, which has 64-bit signed int but at most
111600         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
111601         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
111602         More generally, don't assume that 64-bit signed int is available
111603         if unsigned int is, and vice versa.
111604         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
111605         unsigned symbols, not on their signed counterparts.
111606         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
111607         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
111608         (UINT64_C, UINTMAX_C):
111609         Likewise.
111610         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
111611         unsigned counterparts.
111612         (Have_long_long, Unsigned): New macros.
111613         (Int): Renamed from INT.
111614         (strtoimax): Use the new macros.
111615         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
111616         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
111617         * modules/inttypes (inttypes.h): Substitute
111618         HAVE_UNSIGNED_LONG_LONG_INT.
111619         * modules/stdint (stdint.h): Likewise.
111620         (Files): Add m4/ulonglong.m4.
111622 2006-10-10  Bruno Haible  <bruno@clisp.org>
111624         Fix a gcc -Wshadow warning.
111625         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
111626         to 'bucket'.
111627         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
111628         gl_linked_indexof_from_to): Likewise.
111629         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
111630         Likewise.
111631         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
111632         Likewise.
111633         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
111634         Reported by Eric Blake.
111636 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
111638         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
111639         for NetBSD.  Problem reported by Bruno Haible.
111641 2006-10-09  Jim Meyering  <jim@meyering.net>
111643         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
111644         Patch from Bruno Haible.
111646 2006-10-09  Jim Meyering  <jim@meyering.net>
111648         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
111649         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
111650         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
111652 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
111654         Don't include <config.h> twice; this doesn't work in some cases,
111655         e.g., when config.h has "#define intmax_t long long int" and
111656         we include <config.h>, <inttypes.h>, <config.h> in that order.
111657         Problem reported by Matthew Woehlke in:
111658         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
111659         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
111660         * lib/fts-cycle.c: Don't include config.h.
111661         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
111662         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
111663         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
111664         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
111665         inttypes.h.
111666         * lib/xstrtoumax.c: Likewise.
111667         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
111668         __strtol and the like, so that this module is more like its siblings.
111669         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
111670         Remove; no longer needed now that we assume gnulib inttypes.h.
111672 2006-10-08  Bruno Haible  <bruno@clisp.org>
111674         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
111675         option.
111677 2006-10-07  Jim Meyering  <jim@meyering.net>
111679         * modules/inttypes (inttypes.h): Revert what seems to have been
111680         an inadvertent part of today's change: use "|", not "/" in the
111681         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
111683 2006-10-07  Bruno Haible  <bruno@clisp.org>
111685         * modules/sublist: New file.
111687 2006-10-07  Bruno Haible  <bruno@clisp.org>
111689         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
111690         * modules/argz (argz.h): Likewise.
111691         * modules/arpa_inet (arpa/inet.h): Likewise.
111692         * modules/byteswap (byteswap.h): Likewise.
111693         * modules/configmake (configmake.h): Likewise.
111694         * modules/fcntl (fcntl.h): Likewise.
111695         * modules/fnmatch (fnmatch.h): Likewise.
111696         * modules/getopt (getopt.h): Likewise.
111697         * modules/glob (glob.h): Likewise.
111698         * modules/inttypes (inttypes.h): Likewise.
111699         * modules/netinet_in (netinet/in.h): Likewise.
111700         * modules/poll (poll.h): Likewise.
111701         * modules/stdbool (stdbool.h): Likewise.
111702         * modules/stdint (stdint.h): Likewise.
111703         * modules/sys_select (sys/select.h): Likewise.
111704         * modules/sys_socket (sys/socket.h): Likewise.
111705         * modules/sys_stat (sys/stat.h): Likewise.
111706         * modules/sysexits (sysexits.h): Likewise.
111707         * modules/unistd (unistd.h): Likewise.
111708         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111709         Add a "DO NOT EDIT" comment to the generated file.
111710         (func_import): Likewise for gnulib-comp.m4.
111712 2006-10-07  Bruno Haible  <bruno@clisp.org>
111714         * lib/gl_sublist.h: New file.
111715         * lib/gl_sublist.c: New file.
111717 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
111719         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
111720         name (relative to the original working directory) and the file
111721         name component (relative to the temporary working directory).  All
111722         callers changed.
111723         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
111724         * lib/mkdir-p.c (make_dir_parents): Likewise.
111725         * lib/mkdir-p.h (make_dir_parents): Likewise.
111727 2006-10-06  Eric Blake  <ebb9@byu.net>
111729         Define several macros for use by the clean-temp module.
111730         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
111731         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
111732         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
111734         * lib/clean-temp.h (close_stream_temp): New declaration.
111735         * lib/clean-temp.c (includes): Pull in headers according to what
111736         other modules are in use.
111737         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
111739 2006-10-06  Bruno Haible  <bruno@clisp.org>
111741         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
111742         instead of fopen, fwriteerror.
111744 2006-10-06  Bruno Haible  <bruno@clisp.org>
111746         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
111747         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
111748         int.
111749         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
111750         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
111751         Return an error indicator.
111752         Suggested by Eric Blake.
111754 2006-10-06  Bruno Haible  <bruno@clisp.org>
111756         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
111757         Reported by Eric Blake.
111759 2006-10-06  Bruno Haible  <bruno@clisp.org>
111761         * modules/closeout (Description): Mention stderr too.
111763 2006-10-06  Bruno Haible  <bruno@clisp.org>
111764         and Paul Eggert  <eggert@cs.ucla.edu>
111766         * lib/closeout.c (close_stdout): Also close stderr.
111767         * lib/closeout.h: Update comment.
111769 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
111771         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
111772         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
111773         * lib/dirchownmod.c: Include lchown.h.
111774         * lib/lchown.c: Don't include files that lchown.h now includes.
111775         Don't declare chown, since lchown.h now does that.
111776         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
111777         (lchown): Define to rpl_chown if lchown is declared but
111778         does not exist.  Declare using a prototype if lchown is not
111779         declared.  Add a copyright notice.
111780         * lib/mkstemp.h: Include <unistd.h>.
111781         * lib/openat.c: Include lchown.h.
111783         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
111784         we now test for that separately.
111785         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
111786         rather than O_NOFOLLOW, when testing whether it's possible to
111787         avoid a race condition reliably.
111788         * lib/savewd.c (savewd_chdir): Likewise.
111790         Remove macros that are no longer needed now that stdint.h is
111791         reliable.
111792         * lib/fsusage.c (UINTMAX_MAX): Remove.
111793         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
111794         * lib/utimecmp.c (SIZE_MAX): Remove.
111796         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
111798         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
111799         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
111800         O_NOATIME works.
111802 2006-10-05  Bruno Haible  <bruno@clisp.org>
111804         * lib/gl_list.h (gl_sortedlist_search_from_to,
111805         gl_sortedlist_indexof_from_to): New declarations.
111806         (gl_list_implementation): New fields sortedlist_search_from_to,
111807         sortedlist_indexof_from_to.
111808         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
111809         inline functions.
111810         * lib/gl_list.c (gl_sortedlist_search_from_to,
111811         gl_sortedlist_indexof_from_to): New functions.
111812         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
111813         function.
111814         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
111815         (gl_array_sortedlist_search_from_to): New function.
111816         (gl_array_list_implementation): Update.
111817         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
111818         function.
111819         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
111820         (gl_carray_sortedlist_search_from_to): New function.
111821         (gl_carray_list_implementation): Update.
111822         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
111823         gl_linked_sortedlist_indexof_from_to): New functions.
111824         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
111825         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
111826         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
111827         gl_tree_sortedlist_indexof_from_to): New functions.
111828         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
111829         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
111830         Update.
111831         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
111832         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
111833         Update.
111835 2006-10-05  Bruno Haible  <bruno@clisp.org>
111837         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
111838         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
111839         (struct gl_list_implementation): Add fields search_from_to,
111840         indexof_from_to. Remove fields search, indexof.
111841         (gl_list_search): Use the search_from_to method.
111842         (gl_list_search_from, gl_list_search_from_to): New functions.
111843         (gl_list_indexof): Use the indexof_from_to method.
111844         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
111845         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
111846         (gl_list_search_from, gl_list_search_from_to): New functions.
111847         (gl_list_indexof): Use the indexof_from_to method.
111848         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
111849         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
111850         gl_array_indexof. Add start_index, end_index arguments.
111851         (gl_array_search_from_to): Renamed from gl_array_search. Add
111852         start_index, end_index arguments.
111853         (gl_array_remove, gl_array_list_implementation): Update.
111854         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
111855         gl_carray_indexof. Add start_index, end_index arguments.
111856         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
111857         start_index, end_index arguments.
111858         (gl_carray_remove, gl_carray_list_implementation): Update.
111859         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
111860         gl_linked_search. Add start_index, end_index arguments.
111861         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
111862         start_index, end_index arguments.
111863         (gl_linked_remove): Update.
111864         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
111865         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
111866         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
111867         field to 'size_t'.
111868         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
111869         gl_tree_search. Add start_index, end_index arguments.
111870         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
111871         start_index, end_index arguments.
111872         (gl_tree_remove): Update.
111873         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
111874         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
111875         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
111876         function.
111877         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
111878         gl_tree_search. Add start_index, end_index arguments.
111879         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
111880         start_index, end_index arguments.
111881         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
111882         Update.
111883         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
111885 2006-10-05  Bruno Haible  <bruno@clisp.org>
111887         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
111889         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
111890         fwriteerror_temp): New declarations.
111891         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
111892         (descriptors): New variable.
111893         (cleanup): First, close the descriptors.
111894         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
111895         fclose_temp, fwriteerror_temp): New functions.
111897 2006-10-04  Jim Meyering  <jim@meyering.net>
111899         * lib/fts.c (fts_open): Tiny comment change.
111901 2006-10-04  Bruno Haible  <bruno@clisp.org>
111903         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
111904         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
111905         gl_LOCK_BODY.
111906         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
111907         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
111908         gl_LOCK_EARLY_BODY.
111909         (gl_LOCK): Require gl_LOCK_BODY.
111911 2006-10-04  Bruno Haible  <bruno@clisp.org>
111913         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
111914         (gl_oset_search_atleast): New declaration.
111915         (struct gl_oset_implementation): Add field 'search_atleast'.
111916         (gl_oset_search_atleast): New inline function.
111917         * lib/gl_oset.c (gl_oset_search_atleast): New function.
111918         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
111919         (gl_array_oset_implementation): Update.
111920         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
111921         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
111922         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
111924 2006-10-04  Bruno Haible  <bruno@clisp.org>
111926         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
111928 2006-10-03  Bruno Haible  <bruno@clisp.org>
111930         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
111931         from gl_avltreehash_list_implementation.
111933 2006-10-03  Bruno Haible  <bruno@clisp.org>
111935         * lib/gl_oset.c (gl_oset_add): Fix return type.
111937 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
111939         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
111941 2006-10-02  Eric Blake  <ebb9@byu.net>
111943         * modules/strnlen (Depends-on): Add extensions.
111945 2006-10-02  Eric Blake  <ebb9@byu.net>
111947         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
111948         definition in 2.60+.
111950 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
111952         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
111953         checks.
111955 2006-10-02  Bruno Haible  <bruno@clisp.org>
111957         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
111958         to the AUTOMAKE_OPTIONS.
111959         Reported by Jim Meyering.
111961 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
111963         Work around bug in Solaris 10 /proc file system:
111964         /proc/self/fd/NNN/.. isn't the parent directory of
111965         the directory whose file descriptor is NNN.  This needs to
111966         be worked around at run time, not compile time, since a
111967         program might be built on Solaris 8, where things work, and
111968         run on Solaris 10.
111969         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
111970         to use the following interface instead:
111971         (OPENAT_BUFFER_SIZE): New macro.
111972         (openat_proc_name): New function.
111973         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
111974         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
111975         Likewise.
111976         * lib/openat-proc.c: New file.
111977         * modules/openat (Files): Add lib/openat-proc.c.
111978         (Depends-on): Add same-inode, stdbool.
111979         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
111981 2006-09-29  Bruno Haible  <bruno@clisp.org>
111983         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
111984         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
111985         argument. Set stdout_closed before testing for ferror, not after.
111986         (fwriteerror, fwriteerror_no_ebadf): New functions.
111988 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111990         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
111992 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
111994         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
111995         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
111997 2006-09-28  Jim Meyering  <jim@meyering.net>
111999         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
112000         Include <unistd.h>.
112002 2006-09-28  Bruno Haible  <bruno@clisp.org>
112004         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
112005         * modules/linkedhash-list (Depends-on): Likewise.
112006         * modules/rbtreehash-list (Depends-on): Likewise.
112008 2006-09-28  Bruno Haible  <bruno@clisp.org>
112010         * lib/strndup.h: Simplify the redefinition of strndup.
112011         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
112012         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
112014 2006-09-28  Bruno Haible  <bruno@clisp.org>
112016         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
112017         * lib/gl_linkedhash_list.c: Likewise.
112018         * lib/gl_rbtreehash_list.c: Likewise.
112020 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
112022         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
112023         getaddrinfo.
112025         * lib/__fpending.h: Don't include <stdio_ext.h> unless
112026         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
112027         it causes <stdio_ext.h> to cause a compile-time error.
112028         Problem reported by Nelson H. F. Beebe.
112029         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
112030         of HAVE_DECL___PENDING.
112032         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
112033         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
112034         declaration.
112036 2006-09-27  Jim Meyering  <jim@meyering.net>
112038         This file could end up with a definition for a function
112039         named __strndup, rather than rpl_strndup on a system with
112040         incomplete weak_alias support.
112041         * lib/strndup.c (strndup): Rename from __strndup.
112042         Remove #defines that used to map __strndup to strndup.
112043         Don't use K&R prototypes.
112044         Remove LIBC-related code, since this file is not sync'd with glibc.
112045         * lib/strndup.h: Revamp, accordingly.
112046         * m4/strndup.m4: Modernize.
112048 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
112050         * modules/savewd (Depends-on): Add 'raise'.
112051         * lib/savewd.c: Include <signal.h>, for 'raise'.
112053 2006-09-26  Jim Meyering  <jim@meyering.net>
112055         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
112056         when we detect Darwin 8.7.0's acl_get_file bug.
112057         Rearrange to perform the new (below) run-test while $LIBS
112058         contains any acl-related library.  Set USE_ACL at the end.
112059         (gl_ACL_GET_FILE): New function.
112061 2006-09-26  Eric Blake  <ebb9@byu.net>
112063         * lib/verror.c: Include <config.h> unconditionally.
112065 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
112067         * modules/clock-time (Maintainer): Add self.
112068         * modules/getlogin_r (Depends-on): Add extensions.
112070 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112072         * modules/clock-time: New module.
112073         * modules/nanosleep (Depends-on): Add clock-time.
112074         * modules/gethrxtime (Depends-on): Likewise.
112075         * modules/gettime (Depends-on): Likewise.
112076         * modules/settime (Depends-on): Likewise.
112078         * modules/fts-lgpl: Depend on openat.
112079         * modules/mkancesdirs: Depend on savewd.
112080         * modules/mkdir-p: Likewise.
112082 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112084         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
112086         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
112087         `gl_have_arbitrary_file_name_length_limit' to
112088         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
112089         actually works between configure runs.
112091 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112092             Bruno Haible  <bruno@clisp.org>
112094         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
112096 2006-09-25  Jim Meyering  <jim@meyering.net>
112098         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
112099         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
112101 2006-09-25  Eric Blake  <ebb9@byu.net>
112103         * gnulib-tool (func_import, func_create_testdir): Fix typos in
112104         exec's in 2006-09-18 patch when shuffling fds.
112106 2006-09-25  Bruno Haible  <bruno@clisp.org>
112108         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
112109         Reported by Jim Meyering.
112111 2006-09-24  Jim Meyering  <jim@meyering.net>
112113         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
112114         compare a pointer against a literal "0".  That caused failures with
112115         at least HP-UX's hpcc.
112117 2006-09-22  Simon Josefsson  <jas@extundo.com>
112119         * modules/gc-sha1:
112120         * modules/gc-md4:
112121         * modules/gc-hmac-sha1:
112122         * modules/gc-hmac-md5:
112123         * modules/gc-des:
112124         * modules/gc-arcfour: Distribute more files.
112126 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112128         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
112129         (gl_linked_iterator_from_to): Initialize struct completely.
112130         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
112131         (gl_tree_iterator_from_to): Likewise
112132         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
112133         * lib/gl_array_list.c [lint] (gl_array_iterator)
112134         (gl_array_iterator_from_to): Likewise.
112135         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
112136         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
112137         (gl_carray_iterator_from_to): Likewise.
112139         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
112140         * lib/md4.c (md4_process_block): Remove unused variable.
112141         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
112142         parentheses for clarity.
112144 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112146         * modules/bison-i18n (Depends-on): Add gettext.
112148 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112150         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
112151         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
112152         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
112153         also add missing comma that caused broken test.
112154         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
112155         stdlib.h, for `abort'.
112156         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
112157         variables.
112158         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
112159         include unistd.h if present, for `rmdir'.
112160         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
112161         variables.
112162         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
112163         in the process include standard headers for prototypes.
112164         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
112165         gets declared on GNU/Linux.
112166         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
112167         unistd.h, for `rmdir'.
112168         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
112170         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
112171         always true.
112172         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
112174         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
112176 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112178         * gnulib-tool (func_version): Create output all at once.  This
112179         may help avoid triggering unnecessary SIGPIPEs, and at any
112180         rate it doesn't hurt.
112182 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112183             Bruno Haible  <bruno@clisp.org>
112185         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
112186         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
112187         * m4/signed.m4 (bh_C_SIGNED): Likewise.
112189         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
112190         (gl_FUNC_VASPRINTF): Invoke it.
112192 2006-09-22  Bruno Haible  <bruno@clisp.org>
112194         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
112195         getloadavg.c as first argument.
112197 2006-09-22  Bruno Haible  <bruno@clisp.org>
112199         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
112200         at the beginning of the gl_INIT macro.
112201         * modules/getloadavg (configure.ac): Pass $gl_source_base to
112202         gl_GETLOADAVG.
112204 2006-09-22  Bruno Haible  <bruno@clisp.org>
112206         * gnulib-tool (func_create_megatestdir): Don't include the config-h
112207         module.
112208         Suggested by Ralf Wildenhues.
112210 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
112212         Import this patch from libc:
112214         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
112216         * lib/regex_internal.c (re_string_reconstruct): Handle
112217         offset < pstr->valid_raw_len && pstr->offsets_needed case.
112218         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
112219         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
112220         re_string_context_at.
112222         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
112223         now requires it.
112224         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
112225         gl_REGEX now does it for us.
112226         (gl_REGEX): Add test taken from
112227         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
112229         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
112230         Check that large offsets work.  Modernize Autoconf usages.
112231         Prefer "yes" to mean a good thing rather than a bad.
112232         Don't put "#define mkstemp" in config.h, as this might interfere
112233         with standard system headers that "#define mkstemp mkstemp64".
112235         * modules/mkstemp (Depends-on): Add extensions, so that
112236         mkstemp is visible on some platforms.
112237         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
112238         (Include): Change to "mkstemp.h" from <stdlib.h>.
112239         (Files): Add mkstemp.h.
112241         * lib/mkstemp.h: New file, since some standard headers
112242         #define mkstemp.
112243         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
112244         Include "mkstemp.h".
112245         Make the _LIBC code resemble glibc original more,
112246         e.g., use K&R style.
112247         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
112248         (mkstemp): Remove, since mkstemp.h does this for us.
112249         * lib/stdlib--.h: Include mkstemp.h.
112251         Import this patch from libc:
112253         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
112255         * lib/tempname.c (__gen_tempname): Change attempts_min
112256         into a macro.  Use preprocessor to decide how to initialize
112257         attempts [Coverity CID 67].
112259 2006-09-20  Bruno Haible  <bruno@clisp.org>
112261         * lib/mkdtemp.c: Import from libc.
112262         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
112263                 * sysdeps/posix/tempname.c (__gen_tempname): Change
112264                 attempts_min into a macro.  Use preprocessor to decide how to
112265                 initialize attempts [Coverity CID 67].
112266         2001-11-27  Paul Eggert  <eggert@twinsun.com>
112267                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
112268                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
112270 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112272         * gnulib-tool (func_exit): New function, to allow to pass the
112273         exit status portably through the trap.  Use everywhere.
112274         (--help, --version): Signal a write error.
112275         (trap): catch SIGPIPE, for write errors.
112276         Exit at the end of the trap, with the correct exit status.
112278 2006-09-19  Karl Berry  <karl@gnu.org>
112280         * doc/gnulib.texi: note about the license texinfo files.
112282 2006-09-19  Eric Blake  <ebb9@byu.net>
112284         * gnulib-tool: Avoid space-tab.
112286 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
112288         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
112289         that prevented coreutils 6.1 from building.  Problem reported
112290         by Petter Reinholdtsen.
112292 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
112294         * gnulib-tool (avoidlist): Fix typo that broke options like
112295         --avoid=lock that are used by coreutils bootstrap.
112297 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
112299         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
112300         more systematically.
112302 2006-09-18  Jim Meyering  <jim@meyering.net>
112304         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
112306 2006-09-18  Bruno Haible  <bruno@clisp.org>
112308         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
112310 2006-09-18  Bruno Haible  <bruno@clisp.org>
112312         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
112313         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
112314         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
112315         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
112316         * m4/gettext.m4: Require autoconf >= 2.52.
112317         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
112318         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
112319         of gl_cv_header_inttypes_h.
112321 2006-09-18  Bruno Haible  <bruno@clisp.org>
112323         * lib/javaversion.c: Include configmake.h.
112325 2006-09-18  Bruno Haible  <bruno@clisp.org>
112327         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
112328         avoid that the while loops be executed in a subshell.
112330 2006-09-18  Bruno Haible  <bruno@clisp.org>
112332         * MODULES.html.sh (func_module): Break long lines.
112333         Suggested by Bruce Korb <bkorb@gnu.org>.
112335 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112337         Speed up by a factor of 1.12.
112338         * gnulib-tool (nl): New variable.
112339         (func_import): Rewrite include directive extraction to only read each
112340         directive once.
112342 2006-09-17  Bruno Haible  <bruno@clisp.org>
112344         * modules/javaversion (Makefile.am): Remove DEFS setting.
112345         (Depends-on): Add configmake, for PKGDATADIR definition.
112347 2006-09-17  Bruno Haible  <bruno@clisp.org>
112349         * gnulib-tool (func_create_testdir): Rewrite all files at once.
112351 2006-09-17  Bruno Haible  <bruno@clisp.org>
112353         * gnulib-tool (func_append): New function, stolen from libtool.m4.
112354         (func_modules_transitive_closure, func_modules_add_dummy,
112355         func_modules_to_filelist, func_import, func_create_testdir,
112356         func_create_megatestdir, ...): Use it wherever possible.
112357         Suggested by Ralf Wildenhues.
112359 2006-09-16  Karl Berry  <karl@gnu.org>
112361         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
112362         to avoid sectioning errors.
112363         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
112364         [ifinfo]: blank line after @center-ed titles.
112365         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
112366         Spell FSF address consistently with others.
112367         (These changes approved by rms.)
112369 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112371         Speed up by a factor of 1.61.
112372         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
112373         already checked module names again.
112375 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112377         Speed up by a factor of 1.13.
112378         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
112379         for new_files, and the input to func_add_or_update.
112381 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112383         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
112384         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
112386 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
112388         * modules/mkancesdirs (Depends-on): Add fcntl.
112389         * modules/savewd: New file.
112390         * MODULES.html.sh (File system functions): Add savewd.
112392         * modules/configmake (Makefile.am): Add support for the
112393         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
112395 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
112397         * m4/savewd.m4: New file.
112399 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
112401         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
112402         (dirchownmod): New arg FD.  All callers changed.
112403         Use FD rather than opening the directory ourself, as opening is
112404         now the caller's responsibility.
112405         * lib/dirchownmod.h: Likewise.
112406         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
112407         hosts that require <sys/types.h> before <sys/stat.h>.  Include
112408         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
112409         (test_dir): Remove.
112410         (mkancesdirs): Return length of prefix of FILE that has already
112411         been made, or -2 if there is a child doing the work.  Redo
112412         algorithm so that it is O(N) rather than O(N**2).  Optimize away
112413         ".", and treat ".." specially since it might stray back into
112414         already-created areas.  Use a subprocess if necessary.  New arg
112415         WD; all users changed.  MAKE_DIR function should now return 1
112416         if it creates a directory that is not readable.  Return -2 if
112417         a child process is spun off.
112418         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
112419         Adjust signature to match code.
112420         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
112421         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
112422         all users changed.
112423         * lib/savewd.c, lib/savewd.h: New files.
112425 2006-09-15  Jim Meyering  <jim@meyering.net>
112427         * modules/rename-dest-slash: New module.
112428         * MODULES.html.sh (posix_compat): Add it here.
112430         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
112432 2006-09-15  Jim Meyering  <jim@meyering.net>
112434         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
112435         file.
112437         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
112439 2006-09-15  Jim Meyering  <jim@meyering.net>
112441         * lib/rename-dest-slash.c (has_trailing_slash): Use
112442         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
112443         (rpl_rename_dest_slash): Perform the cheaper trailing slash
112444         test before testing whether SRC is a directory.
112445         Suggestions from Bruno Haible.
112447         Avoid a warning about an unused variable.
112448         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
112449         into the #ifdef block where it's used.
112451         * lib/rename-dest-slash.c: New file.
112453 2006-09-14  Bruno Haible  <bruno@clisp.org>
112455         * lib/allocsa.c: Include <config.h> unconditionally.
112456         * lib/asnprintf.c: Likewise.
112457         * lib/asprintf.c: Likewise.
112458         * lib/c-strcasecmp.c: Likewise.
112459         * lib/c-strcasestr.c: Likewise.
112460         * lib/c-strncasecmp.c: Likewise.
112461         * lib/c-strstr.c: Likewise.
112462         * lib/classpath.c: Likewise.
112463         * lib/clean-temp.c: Likewise.
112464         * lib/concatpath.c: Likewise.
112465         * lib/copy-file.c: Likewise.
112466         * lib/csharpcomp.c: Likewise.
112467         * lib/csharpexec.c: Likewise.
112468         * lib/execute.c: Likewise.
112469         * lib/fatal-signal.c: Likewise.
112470         * lib/findprog.c: Likewise.
112471         * lib/fwriteerror.c: Likewise.
112472         * lib/gl_array_list.c: Likewise.
112473         * lib/gl_array_oset.c: Likewise.
112474         * lib/gl_avltree_list.c: Likewise.
112475         * lib/gl_avltree_oset.c: Likewise.
112476         * lib/gl_avltreehash_list.c: Likewise.
112477         * lib/gl_carray_list.c: Likewise.
112478         * lib/gl_linked_list.c: Likewise.
112479         * lib/gl_linkedhash_list.c: Likewise.
112480         * lib/gl_list.c: Likewise.
112481         * lib/gl_oset.c: Likewise.
112482         * lib/gl_rbtree_list.c: Likewise.
112483         * lib/gl_rbtree_oset.c: Likewise.
112484         * lib/gl_rbtreehash_list.c: Likewise.
112485         * lib/imaxabs.c: Likewise.
112486         * lib/imaxdiv.c: Likewise.
112487         * lib/javacomp.c: Likewise.
112488         * lib/javaexec.c: Likewise.
112489         * lib/javaversion.c: Likewise.
112490         * lib/linebreak.c: Likewise.
112491         * lib/localcharset.c: Likewise.
112492         * lib/lock.c: Likewise.
112493         * lib/mbchar.c: Likewise.
112494         * lib/mbswidth.c: Likewise.
112495         * lib/mkdtemp.c: Likewise.
112496         * lib/pipe.c: Likewise.
112497         * lib/printf-args.c: Likewise.
112498         * lib/printf-parse.c: Likewise.
112499         * lib/progname.c: Likewise.
112500         * lib/progreloc.c: Likewise.
112501         * lib/readlink.c: Likewise.
112502         * lib/sh-quote.c: Likewise.
112503         * lib/stpcpy.c: Likewise.
112504         * lib/stpncpy.c: Likewise.
112505         * lib/strcasecmp.c: Likewise.
112506         * lib/strcasestr.c: Likewise.
112507         * lib/strcspn.c: Likewise.
112508         * lib/striconv.c: Likewise.
112509         * lib/strncasecmp.c: Likewise.
112510         * lib/strnlen1.c: Likewise.
112511         * lib/strstr.c: Likewise.
112512         * lib/strtok_r.c: Likewise.
112513         * lib/tls.c: Likewise.
112514         * lib/tmpdir.c: Likewise.
112515         * lib/unicodeio.c: Likewise.
112516         * lib/unsetenv.c: Likewise.
112517         * lib/vasnprintf.c: Likewise.
112518         * lib/vasprintf.c: Likewise.
112519         * lib/wait-process.c: Likewise.
112520         * lib/xallocsa.c: Likewise.
112521         * lib/xsetenv.c: Likewise.
112522         * lib/xstriconv.c: Likewise.
112524 2006-09-13  Simon Josefsson  <jas@extundo.com>
112526         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
112527         that internally, suggested by Ralf Wildenhues
112528         <Ralf.Wildenhues@gmx.de>.
112530 2006-09-13  Simon Josefsson  <jas@extundo.com>
112532         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
112533         @LIBOBJS@.
112534         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
112536 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
112538         * lib/_fpending.c: Include <config.h> unconditionally, since we no
112539         longer worry about uses that don't define HAVE_CONFIG_H.
112540         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
112541         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
112542         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
112543         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
112544         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
112545         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
112546         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
112547         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
112548         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
112549         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
112550         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
112551         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
112552         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
112553         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
112554         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
112555         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
112556         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
112557         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
112558         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
112559         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
112560         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
112561         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
112562         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
112563         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
112564         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
112565         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
112566         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
112567         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
112568         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
112569         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
112570         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
112571         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
112572         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
112573         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
112574         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
112575         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
112576         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
112577         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
112578         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
112579         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
112580         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
112581         Likewise.
112583 2006-09-13  Eric Blake  <ebb9@byu.net>
112585         * lib/getopt.c: Fix typo in last commit.
112587 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
112589         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
112590         dgettext.
112592 2006-09-12  Jim Meyering  <jim@meyering.net>
112594         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
112595         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
112596         Reported by Nelson H. F. Beebe.
112598 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
112600         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
112601         program_invocation_name and program_invocation_short_name are
112602         initialized.
112603         * lib/argp-namefrob.h: Move declarations of program_invocation_name
112604         and program_invocation_short_name to argp.h, so they are visible
112605         to user programs.
112606         * lib/argp.h: Likewise
112608 2006-09-10  Bruno Haible  <bruno@clisp.org>
112610         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
112611         m4/inttypes_h.m4, m4/uintmax_t.m4.
112613 2006-09-10  Bruno Haible  <bruno@clisp.org>
112615         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
112616         gl_AC_TYPE_UINTMAX_T.
112618 2006-09-10  Bruno Haible  <bruno@clisp.org>
112620         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
112622 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
112624         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
112625         convention.  Text proposed by Bruno Haible.
112626         (struct argp_option): Document the use of N_() wrappers.
112628         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
112629         '\v', and translate the two parts separately, instead of feeding
112630         the whole string to gettext.  This allows to exclude
112631         '\v' from the strings visible to the translator by writing doc
112632         strings as N_("..") "\v" N_("..").
112634 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
112636         * config/srclist.txt: Undo latest change; the bug was fixed.
112638 2006-09-09  Bruno Haible  <bruno@clisp.org>
112640         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
112641         assignments if building a library without libtool.
112642         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
112643         in func_emit_lib_Makefile_am.
112644         (func_import): When building a static library libfoo.a, arrange to
112645         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
112646         (func_create_testdir): Likewise.
112647         * modules/gc (configure.ac, Makefile.am): If building statically,
112648         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
112649         * modules/iconvme (configure.ac, Makefile.am): Likewise.
112650         * modules/striconv (configure.ac, Makefile.am): Likewise.
112651         Based on a suggestion by Ralf Wildenhues.
112653 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
112655         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
112656         Check for unistd.h too, since Autoconf doesn't assume POSIX.
112657         Also:
112659         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
112660         Add year_2050_test to catch glibc bug 2821
112661         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
112663         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
112664         Prefer #ifdef to #if.
112666         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
112667         Return from 'main' instead of calling 'exit'.
112669 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
112671         * lib/mktime.c (guess_time_tm): Fix bug where mktime
112672         returned the maximum time_t value rather than (time_t) -1.
112673         Problem originally reported by William Bardwell
112674         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
112676         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
112677         Moved to here ...
112678         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
112679         ... from here.
112681 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
112683         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
112684         2821 is fixed.
112686 2006-09-08  Jim Meyering  <jim@meyering.net>
112688         Don't make generated files read-only.  That would bother too many
112689         people.  However, do retain the ability to work when targets are
112690         read-only: remove the destination and temporary files before writing
112691         them (when generated via sed or echo), or by using the -f option for
112692         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
112693         * modules/alloca-opt, modules/argz, modules/arpa_inet:
112694         * modules/byteswap, modules/configmake, modules/fcntl:
112695         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
112696         * modules/localcharset, modules/netinet_in, modules/poll:
112697         * modules/stdbool, modules/stdint, modules/sys_select:
112698         * modules/sys_socket, modules/sys_stat, modules/sysexits:
112700 2006-09-08  Jim Meyering  <jim@meyering.net>
112702         Avoid new build failure on FreeBSD 6.0.
112703         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
112704         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
112705         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
112707 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112709         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
112711 2006-09-07  Jim Meyering  <jim@meyering.net>
112713         Fix global typo in last change: use chmod u-w, not chmod u-x.
112714         Spotted by Paul Eggert and Bruce Korb.
112715         * modules/alloca-opt, modules/argz, modules/arpa_inet:
112716         * modules/byteswap, modules/configmake, modules/fcntl:
112717         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
112718         * modules/localcharset, modules/netinet_in, modules/poll:
112719         * modules/stdbool, modules/stdint, modules/sys_select:
112720         * modules/sys_socket, modules/sys_stat, modules/sysexits:
112722 2006-09-06  Jim Meyering  <jim@meyering.net>
112724         Make generated files be read-only.
112725         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
112726         Ensure that each generated file is now read-only.
112727         * modules/argz: Likewise.
112728         * modules/arpa_inet: Likewise.
112729         * modules/byteswap: Likewise.
112730         * modules/configmake: Likewise.
112731         * modules/fcntl: Likewise.
112732         * modules/fnmatch: Likewise.
112733         * modules/getopt: Likewise.
112734         * modules/glob: Likewise.
112735         * modules/inttypes: Likewise.
112736         * modules/netinet_in: Likewise.
112737         * modules/poll: Likewise.
112738         * modules/stdbool: Likewise.
112739         * modules/stdint: Likewise.
112740         * modules/sys_select: Likewise.
112741         * modules/sys_socket: Likewise.
112742         * modules/sys_stat: Likewise.
112743         * modules/sysexits: Likewise.
112744         * modules/localcharset: Same as above, but continue using temporary
112745         file named "t-$@" (why different?) rather than the "$@-t" used
112746         everywhere else.
112748         * modules/sysexits (Makefile.am): Replace literal occurrences
112749         of "sysexit.h" more readable, and more consistent, "$@".
112751 2006-09-06  Bruno Haible  <bruno@clisp.org>
112753         * modules/striconv: New file.
112754         * modules/xstriconv: New file.
112755         * MODULES.html.sh (Internationalization functions): Add striconv,
112756         xstriconv.
112758 2006-09-06  Bruno Haible  <bruno@clisp.org>
112760         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
112761         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
112762         not using libtool correctly.
112764 2006-09-06  Bruno Haible  <bruno@clisp.org>
112766         * lib/striconv.h: New file.
112767         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
112768         iconvstring.c.
112769         * lib/xstriconv.h: New file.
112770         * lib/xstriconv.c: New file.
112772 2006-09-06  Bruno Haible  <bruno@clisp.org>
112774         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
112775         lib_..._LDFLAGS.
112777 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112779         * lib/argz_.h: Sync from Libtool.
112781         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
112782                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
112784         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
112786 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
112788         * modules/trim: New file.
112790 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
112792         * lib/trim.h: New file.
112793         * lib/trim.c: New file.
112795 2006-09-05  Bruno Haible  <bruno@clisp.org>
112797         * MODULES.html.sh (String handling): Add trim.
112799 2006-09-04  Karl Berry  <karl@gnu.org>
112801         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
112802         until next release.
112804 2006-09-03  Bruno Haible  <bruno@clisp.org>
112806         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
112807         correctly.
112809 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
112811         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
112812         not gl_GETLOADAVG.  Omit unneeded semicolons.
112813         Problems reported by Ralf Wildenhues in
112814         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
112815         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
112816         at the end, which is the usual gnulib style.
112818         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
112819         of doing all the work ourselves.
112820         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
112821         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
112823 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
112825         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
112826         Problem reported by Ralf Wildenhues in
112827         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
112829         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
112830         HAVE_STRUCT_STATFS_F_FSTYPENAME.
112832 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
112834         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
112835         yesterday's patch by changing test -n to test -z.
112837 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
112839         * modules/getloadavg (Files): Add m4/getloadavg.m4.
112840         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
112841         the former is now obsolescent.
112843         * modules/chdir-long (Depends-on): Add fcntl.
112845 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
112847         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
112848         obsolescent, and programs should use gnulib instead.
112849         * m4/getloadavg.m4: New file, with contents taken from Autoconf
112850         but with prefixes changed.
112852 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
112854         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
112855         or stdbool.h, because they might not exist while configuring.
112857         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
112858         Don't include unistd.h or limits.h; not needed, since chdir-long.h
112859         does that for us.
112860         (O_DIRECTORY): Remove.
112862 2006-08-31  Eric Blake  <ebb9@byu.net>
112864         * gnulib-tool: Don't let emacs change spaces to TAB.
112866 2006-08-31  Bruno Haible  <bruno@clisp.org>
112868         * gnulib-tool: When calling func_import more than once, do it in a
112869         subshell.
112870         Reported by Eric Blake <ebb9@byu.net>.
112872 2006-08-31  Bruno Haible  <bruno@clisp.org>
112874         * gnulib-tool (nl): Remove variable.
112875         (sed_transform_lib_file): Use more robust test for config-h module.
112876         (func_import): Fix typo in 2006-08-25 patch.
112878 2006-08-31  Bruno Haible  <bruno@clisp.org>
112880         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
112881         specified, augment Makefile.am variables instead of assigning them.
112883 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
112885         Work around a bug in both the Linux and SunOS 64-bit kernels:
112886         nanosleep mishandles sleeps for longer than 2**31 seconds.
112887         Problem reported by Frank v Waveren in
112888         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
112889         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
112890         Check for nanosleep bug.
112891         (LIB_NANOSLEEP): Append clock_gettime library if needed.
112893 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
112895         Work around a bug in both the Linux and SunOS 64-bit kernels:
112896         nanosleep mishandles sleeps for longer than 2**31 seconds.
112897         Problem reported by Frank v Waveren in
112898         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
112899         * lib/nanosleep.c (BILLION): New constant.
112900         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
112901         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
112902         implementation.
112904 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
112906         * modules/nanosleep (Depends-on): Add gettime.
112908 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
112909         and Simon Josefsson  <jas@extundo.com>
112910         and Oskar Liljeblad  <oskar@osk.mine.nu>
112912         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
112913         * gnulib-tool (func_import): New license type 'unmodifiable license
112914         text'.
112915         * modules/fdl: Use it.  Longer description.
112916         * module/gpl, module/lgpl: New files.
112918 2006-08-30  Jim Meyering  <jim@meyering.net>
112920         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
112921         shadowing the parameter.
112923 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112925         Sync from Libtool:
112927         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112929         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
112930         sharing with gnulib.  Report by Eric Blake.
112932 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
112934         * modules/isapipe: New file.
112935         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
112937 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
112939         * modules/configmake (Makefile.am): Add a comment, and omit
112940         the CONFIGMAKE_ prefix from generated macro names.  Suggested
112941         by Bruno Haible.
112943 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
112945         * m4/isapipe.m4: New file.
112947 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
112949         * lib/isapipe.c, lib/isapipe.h: New files.
112951 2006-08-29  Jim Meyering  <jim@meyering.net>
112953         * modules/configmake (Makefile.am): Make configmake.h depend on
112954         Makefile.  Otherwise, a stale configmake.h could hang around.
112956 2006-08-29  Eric Blake  <ebb9@byu.net>
112958         * lib/error.c (error_at_line, print_errno_message): Match libc, after
112959         resolution of upstream bug 3044.
112961 2006-08-29  Bruno Haible  <bruno@clisp.org>
112963         * modules/localcharset (Depends-on): Add configmake.
112964         (Makefile.am): Remove setting of LIBDIR through DEFS.
112966 2006-08-29  Bruno Haible  <bruno@clisp.org>
112968         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
112969         defined.
112971 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
112973         * modules/fcntl: New file.
112974         * modules/chdir-safer (Depends-on): Add fcntl.
112975         * modules/fts: Likewise.
112976         * modules/mkdir-p: Likewise.
112978         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
112979         This undoes the most recent change, since we're now addressing the
112980         problem in a different way.
112982         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
112983         into output, since the output might be called Makefile.am even
112984         if $makefile_name is something different.
112985         (func_import): Use $makefile_am rather than
112986         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
112987         empty.
112989         * modules/inttypes (Files): Add m4/inttypes-h.m4.
112991 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
112993         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
112994         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
112995         recent change to stdint.m4, since we're now addressing the problem in a
112996         different way.
112998 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
113000         * m4/fcntl_h.m4: New file.
113002 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
113004         * lib/fcntl_.h: New file.
113005         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
113006         the fcntl module.
113007         * lib/dirchownmod.c: Likewise.
113008         * lib/fts.c: Likewise.
113010         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
113011         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
113012         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
113013         just before including <inttypes.h>, to avoid circular inclusion.
113015 2006-08-28  Jim Meyering  <jim@meyering.net>
113017         * doc/visibility.texi: Actually read and correct the grammar of the
113018         sentence affected by yesterday's change.
113020 2006-08-28  Eric Blake  <ebb9@byu.net>
113022         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
113023         needs wrapper.
113025 2006-08-28  Eric Blake  <ebb9@byu.net>
113027         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
113029 2006-08-28  Eric Blake  <ebb9@byu.net>
113031         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
113033 2006-08-28  Bruno Haible  <bruno@clisp.org>
113035         * modules/c-strstr: New file, from GNU gettext.
113036         * MODULES.html.sh (String handling): Add c-strstr.
113038 2006-08-28  Bruno Haible  <bruno@clisp.org>
113040         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
113041         macros.
113042         Reported by Eric Blake.
113044 2006-08-28  Bruno Haible  <bruno@clisp.org>
113046         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
113047         (VASNPRINTF): Return a string of length > INT_MAX without failing.
113048         * lib/vasprintf.c: Include errno.h, limits.h.
113049         (EOVERFLOW): New fallback definition.
113050         (vasprintf): Test here whether the string length is > INT_MAX.
113051         * lib/vsnprintf.c: Include errno.h, limits.h.
113052         (EOVERFLOW): New fallback definition.
113053         (vsnprintf): Fix bug when generated string was too long for the buffer.
113054         Test here whether the string length is > INT_MAX.
113056 2006-08-28  Bruno Haible  <bruno@clisp.org>
113058         * lib/inttypes_.h (SCNX*): Remove definitions.
113059         Reported by Eric Blake.
113061 2006-08-28  Bruno Haible  <bruno@clisp.org>
113063         * lib/c-strstr.h: New file, from GNU gettext.
113064         * lib/c-strstr.c: New file, from GNU gettext.
113066 2006-08-28  Bruno Haible  <bruno@clisp.org>
113068         * gnulib-tool: Reorder some statements.
113070 2006-08-28  Bruno Haible  <bruno@clisp.org>
113072         * gnulib-tool: New option --makefile-name.
113073         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
113074         $makefile_name.
113075         (func_import): Write $makefile_name to the cache file, and read it from
113076         there unless explicitly specified. Use $makefile_name as file name
113077         instead of Makefile.am. Adjust the recommendations accordingly.
113079 2006-08-28  Bruno Haible  <bruno@clisp.org>
113081         * gnulib-tool (func_verify_module): Check against misapplying patch.
113083 2006-08-28  Bruno Haible  <bruno@clisp.org>
113085         * gnulib-tool (func_relativize, func_relconcat): New functions.
113086         Give an error if --local-dir is given with --update.
113087         Remove trailing slashes from $local_gnulib_dir.
113088         (func_import): Store the relativized $local_gnulib_dir in
113089         gnulib-cache.m4, and read it from there if not specified explicitly.
113091 2006-08-28  Bruno Haible  <bruno@clisp.org>
113093         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
113094         is the current directory. Respect also $local_gnulib_dir.
113096 2006-08-28  Bruno Haible  <bruno@clisp.org>
113097             Simon Josefsson  <jas@extundo.com>
113099         BeOS portability.
113100         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
113102 2006-08-27  Jim Meyering  <jim@meyering.net>
113104         * doc/visibility.texi: Remove duplicate word: "pointer".
113106 2006-08-26  Bruno Haible  <bruno@clisp.org>
113108         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
113109         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
113110         (Makefile.am): Create inttypes.h from inttypes_.h.
113111         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
113113         * modules/imaxabs: New file.
113115         * modules/imaxdiv: New file.
113117 2006-08-26  Bruno Haible  <bruno@clisp.org>
113119         * m4/inttypes.m4: New file.
113120         * m4/_inttypes_h.m4: Remove file.
113121         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
113122         PRI_MACROS_BROKEN.
113123         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
113125         * m4/imaxabs.m4: New file.
113127         * m4/imaxdiv.m4: New file.
113129 2006-08-26  Bruno Haible  <bruno@clisp.org>
113131         * lib/inttypes_.h: New file.
113132         * lib/inttypes.h: Remove file.
113133         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
113135         * lib/imaxabs.c: New file.
113137         * lib/imaxdiv.c: New file.
113139 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
113141         New config-h module, so that "make" output needn't be cluttered
113142         by -DHAVE_CONFIG_H.
113143         * MODULES.html.sh (Support for building libraries and executables):
113144         Add config-h.
113145         * modules/config-h: New file.
113146         * gnulib-tool (nl, sed_transform_lib_file): New vars.
113147         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
113148         the config-h module is used.
113150         New configmake module, so that "make" output needn't be cluttered
113151         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
113152         * MODULES.html.sh (Support for building libraries and executables):
113153         Add configmake.
113154         * modules/configmake: New file.
113156 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
113158         * m4/config-h.m4: New file.
113160 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
113162         * config/srclist.txt: Add elisp-comp.
113164 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
113166         * MODULES.html.sh (Support for building libraries and executables):
113167         Add elisp-comp.
113168         * build-aux/elisp-comp: New file.
113169         * modules/elisp-comp: New file.
113171 2006-08-24  Bruno Haible  <bruno@clisp.org>
113173         * gnulib-tool (func_create_testdir): Use non-default values of
113174         sourcebase and m4base.
113176 2006-08-24  Bruno Haible  <bruno@clisp.org>
113178         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
113179         HTML structure.
113181 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
113183         * modules/openat (Depends-on): Add lchown.
113185 2006-08-23  Bruno Haible  <bruno@clisp.org>
113187         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
113188         of gl_LOCK_EARLY instead of gl_LOCK.
113190 2006-08-23  Bruno Haible  <bruno@clisp.org>
113192         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
113193         on OSF/1 to no.
113194         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
113196 2006-08-23  Bruno Haible  <bruno@clisp.org>
113198         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
113199         as unusable.
113201         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
113202         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
113203         (gl_LOCK): New macro.
113205 2006-08-22  Simon Josefsson  <jas@extundo.com>
113207         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
113208         to md5 module.
113210 2006-08-22  Simon Josefsson  <jas@extundo.com>
113212         * MODULES.html.sh: Add "Support for maintaining and release
113213         projects".
113215         * build-aux/gnupload: New file, from coreutils.
113217 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
113219         Avoid the need for AC_LIBSOURCES in m4 macros.
113220         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
113221         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
113222         * modules/check-version (EXTRA_DIST): Add check-version.h.
113223         * modules/crc (EXTRA_DIST): Add crc.h.
113224         * modules/des (EXTRA_DIST): Add des.h.
113225         * modules/gc (EXTRA_DIST): Add gc.h.
113226         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
113227         * modules/getline (EXTRA_DIST): Add getline.h.
113228         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
113229         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
113230         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
113231         * modules/md2 (EXTRA_DIST): Add md2.h.
113232         * modules/md4 (EXTRA_DIST): Add md4.h.
113233         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
113234         * modules/read-file (EXTRA_DIST): Add read-file.h.
113235         * modules/readline (EXTRA_DIST): Add readline.h.
113236         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
113237         rijndael-api-fst.h.
113239 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
113241         * m4/rijndael.m4 (gl_ARCFOUR):
113242         * m4/arctwo.m4 (gl_ARCTWO):
113243         * m4/check-version.m4 (gl_CHECK_VERSION):
113244         * m4/crc.m4 (gl_CRC):
113245         * m4/des.m4 (gl_DES):
113246         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
113247         * m4/gc.m4 (gl_GC):
113248         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
113249         * m4/getline.m4 (gl_FUNC_GETLINE):
113250         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
113251         * m4/hmac-md5.m4 (gl_HMAC_MD5):
113252         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
113253         * m4/md2.m4 (gl_MD2):
113254         * m4/md4.m4 (gl_MD4):
113255         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
113256         * m4/read-file.m4 (gl_FUNC_READ_FILE):
113257         * m4/readline.m4 (gl_FUNC_READLINE):
113258         * m4/rijndael.m4 (gl_RIJNDAEL):
113259         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
113260         to get the necessary .h files and whatnot.
113262 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
113264         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
113265         gnulib rather than the other way around.
113266         * config/srclistvars.sh (COREUTILS): Remove.
113268 2006-08-22  Jim Meyering  <jim@meyering.net>
113270         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
113272         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
113274 2006-08-22  Eric Blake  <ebb9@byu.net>
113276         * modules/regexprops-generic: New file.
113277         * MODULES.html.sh (Support for building documentation): List it.
113279 2006-08-22  Eric Blake  <ebb9@byu.net>
113281         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
113282         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
113283         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
113284         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
113286 2006-08-22  Bruno Haible  <bruno@clisp.org>
113288         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
113289         and lib_LTLIBRARIES like the other lib_* variables.
113291 2006-08-22  Bruno Haible  <bruno@clisp.org>
113293         * build-aux/x-to-1.in: New file, from GNU gettext.
113295 2006-08-22  Bruno Haible  <bruno@clisp.org>
113297         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
113298         <utmpx.h> exists.
113300 2006-08-22  Bruno Haible  <bruno@clisp.org>
113302         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
113303         <utmpx.h> exists.
113305 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
113307         BeOS portability.
113308         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
113309         exist.
113310         Problem reported by Bruno Haible.
113312 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
113314         Avoid the need for AC_LIBSOURCES in m4 macros.
113315         * modules/acl (EXTRA_DIST): Add acl.h.
113316         * modules/argmatch (Files): Add m4/argmatch.m4.
113317         (configure.ac): Add gl_ARGMATCH.
113318         (EXTRA_DIST): Renamed from lib_SOURCES, for
113319         consistency with the other modules.  Remove argmatch.c.
113320         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
113321         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
113322         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
113323         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
113324         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
113325         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
113326         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
113327         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
113328         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
113329         * modules/closeout (EXTRA_DIST): Add closeout.h.
113330         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
113331         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
113332         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
113333         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
113334         dirname.h; remove basename.c and stripslash.c.
113335         * modules/exclude (EXTRA_DIST): Add exclude.h.
113336         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
113337         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
113338         * modules/file-type (EXTRA_DIST): Add file-type.h.
113339         * modules/filemode (EXTRA_DIST): Add filemode.h.
113340         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
113341         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
113342         * modules/fpending (EXTRA_DIST): Add __fpending.h.
113343         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
113344         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
113345         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
113346         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
113347         * modules/getdate (EXTRA_DIST): Add getdate.c.
113348         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
113349         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
113350         * modules/getpass (EXTRA_DIST): Add getpass.h.
113351         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
113352         * modules/group-member (EXTRA_DIST): Add group-member.h.
113353         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
113354         * modules/hash (EXTRA_DIST): Add hash.h.
113355         * modules/human (EXTRA_DIST): Add human.h.
113356         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
113357         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
113358         * modules/lchown (EXTRA_DIST): Add lchown.h.
113359         * modules/long-options (EXTRA_DIST): Add long-options.h.
113360         * modules/lstat (EXTRA_DIST): Add lstat.h.
113361         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
113362         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
113363         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
113364         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
113365         * modules/memxor (EXTRA_DIST): Add memxor.h.
113366         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
113367         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
113368         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
113369         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
113370         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
113371         * modules/physmem (EXTRA_DIST): Add physmem.h.
113372         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
113373         * modules/posixver (EXTRA_DIST): Add posixver.h.
113374         * modules/quote (EXTRA_DIST): Add quote.h.
113375         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
113376         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
113377         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
113378         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
113379         regex_internal.h regexec.c.
113380         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
113381         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
113382         * modules/same (EXTRA_DIST): Add same.h.
113383         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
113384         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
113385         * modules/savedir (EXTRA_DIST): Add savedir.h.
113386         * modules/sha1 (EXTRA_DIST): Add sha1.h.
113387         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
113388         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
113389         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
113390         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
113391         * modules/strdup (EXTRA_DIST): Add strdup.h.
113392         * modules/strftime (EXTRA_DIST): Add strftime.h.
113393         * modules/strndup (EXTRA_DIST): Add strndup.h.
113394         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
113395         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
113396         * modules/time_r (EXTRA_DIST): Add time_r.h.
113397         * modules/timespec (EXTRA_DIST): Add timespec.h.
113398         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
113399         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
113400         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
113401         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
113402         * modules/userspec (EXTRA_DIST): Add userspec.h.
113403         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
113404         * modules/utimens (EXTRA_DIST): Add utimens.h.
113405         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
113406         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
113407         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
113408         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
113409         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
113410         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
113411         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
113412         * modules/yesno (EXTRA_DIST): Add yesno.h.
113414 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
113416         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
113418         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
113419         * m4/dev-ino.m4, same-inode.m4: Remove.
113421         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
113422         * m4/acl.m4 (AC_FUNC_ACL):
113423         * m4/backupfile.m4 (gl_BACKUPFILE):
113424         * m4/c-strtod.m4 (gl_C99_STRTOLD):
113425         * m4/canon-host.m4 (gl_CANON_HOST):
113426         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
113427         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
113428         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
113429         * m4/cloexec.m4 (gl_CLOEXEC):
113430         * m4/close-stream.m4 (gl_CLOSE_STREAM):
113431         * m4/closeout.m4 (gl_CLOSEOUT):
113432         * m4/dirfd.m4 (gl_FUNC_DIRFD):
113433         * m4/dirname.m4 (gl_DIRNAME):
113434         * m4/exclude.m4 (gl_EXCLUDE):
113435         * m4/exitfail.m4 (gl_EXITFAIL):
113436         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
113437         * m4/file-type.m4 (gl_FILE_TYPE):
113438         * m4/filemode.m4 (gl_FILEMODE):
113439         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
113440         * m4/fpending.m4 (gl_FUNC_FPENDING):
113441         * m4/fprintftime.m4 (gl_FPRINTFTIME):
113442         * m4/fts.m4 (gl_FUNC_FTS):
113443         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
113444         * m4/getdate.m4 (gl_GETDATE):
113445         * m4/gethrxtime.m4 (gl_GETHRXTIME):
113446         * m4/getpagesize.m4 (gl_GETPAGESIZE):
113447         * m4/getpass.m4 (gl_FUNC_GETPASS):
113448         * m4/gettime.m4 (gl_GETTIME):
113449         * m4/getugroups.m4 (gl_GETUGROUPS):
113450         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
113451         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
113452         * m4/hard-locale.m4 (gl_HARD_LOCALE):
113453         * m4/hash.m4 (gl_HASH):
113454         * m4/idcache.m4 (gl_IDCACHE):
113455         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
113456         * m4/lchown.m4 (gl_FUNC_LCHOWN):
113457         * m4/long-options.m4 (gl_LONG_OPTIONS):
113458         * m4/lstat.m4 (gl_FUNC_LSTAT):
113459         * m4/md5.m4 (gl_MD5):
113460         * m4/memcasecmp.m4 (gl_MEMCASECMP):
113461         * m4/memcoll.m4 (gl_MEMCOLL):
113462         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
113463         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
113464         * m4/memxor.m4 (gl_MEMXOR):
113465         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
113466         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
113467         * m4/modechange.m4 (gl_MODECHANGE):
113468         * m4/mountlist.m4 (gl_MOUNTLIST):
113469         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
113470         * m4/openat.m4 (gl_FUNC_OPENAT):
113471         * m4/pathmax.m4 (gl_PATHMAX):
113472         * m4/physmem.m4 (gl_PHYSMEM):
113473         * m4/posixtm.m4 (gl_POSIXTM):
113474         * m4/posixver.m4 (gl_POSIXVER):
113475         * m4/quote.m4 (gl_QUOTE):
113476         * m4/quotearg.m4 (gl_QUOTEARG):
113477         * m4/readtokens.m4 (gl_READTOKENS):
113478         * m4/readutmp.m4 (gl_READUTMP):
113479         * m4/regex.m4 (gl_REGEX):
113480         * m4/safe-read.m4 (gl_SAFE_READ):
113481         * m4/safe-write.m4 (gl_SAFE_WRITE):
113482         * m4/same.m4 (gl_SAME):
113483         * m4/save-cwd.m4 (gl_SAVE_CWD):
113484         * m4/savedir.m4 (gl_SAVEDIR):
113485         * m4/settime.m4 (gl_SETTIME):
113486         * m4/sha1.m4 (gl_SHA1):
113487         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
113488         * m4/stat-macros.m4 (gl_STAT_MACROS):
113489         * m4/stat-time.m4 (gl_STAT_TIME):
113490         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
113491         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
113492         * m4/strdup.m4 (gl_FUNC_STRDUP):
113493         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
113494         * m4/strndup.m4 (gl_FUNC_STRNDUP):
113495         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
113496         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
113497         * m4/time_r.m4 (gl_TIME_R):
113498         * m4/timespec.m4 (gl_TIMESPEC):
113499         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
113500         * m4/unlinkdir.m4 (gl_UNLINKDIR):
113501         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
113502         * m4/userspec.m4 (gl_USERSPEC):
113503         * m4/utimecmp.m4 (gl_UTIMECMP):
113504         * m4/utimens.m4 (gl_UTIMENS):
113505         * m4/xalloc.m4 (gl_XALLOC):
113506         * m4/xgetcwd.m4 (gl_XGETCWD):
113507         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
113508         * m4/xreadlink.m4 (gl_XREADLINK):
113509         * m4/xstrtod.m4 (gl_XSTRTOD):
113510         * m4/yesno.m4 (gl_YESNO):
113511         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
113512         to get the necessary .h files and whatnot.
113514 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
113515             Bruno Haible  <bruno@clisp.org>
113517         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
113518         /bin/sh understanding of '!' conditional negation.
113520 2006-08-21  Jim Meyering  <jim@meyering.net>
113522         * modules/openat (Depends-on): Really alphabetize.
113524         * modules/acl (Depends-on): Add error and quote.
113526         * check-module (find_included_lib_files): Add at-func.c to the
113527         ok-to-include-more-than-once white list.
113529         * modules/openat (Depends-on): Add lstat.  Alphabetize.
113531 2006-08-21  Bruno Haible  <bruno@clisp.org>
113533         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113534         Emit a pkgdata_DATA variable only if some snippets add contents to it.
113535         Reported by Martin Lambers <marlam@marlam.de>.
113537 2006-08-21  Bruno Haible  <bruno@clisp.org>
113539         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
113540         specify an installation location, don't emit a noinst_LIBRARIES or
113541         noinst_LTLIBRARIES assignment.
113543 2006-08-21  Bruno Haible  <bruno@clisp.org>
113545         BeOS portability.
113546         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
113547         BeOS has mbrtowc() but no <wctype.h>.
113549 2006-08-21  Bruno Haible  <bruno@clisp.org>
113551         BeOS portability.
113552         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
113553         exist.
113555 2006-08-21  Bruno Haible  <bruno@clisp.org>
113557         BeOS portability.
113558         * lib/mbchar.h: Include <wctype.h> only if it exists.
113560 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
113562         Remove files that are no longer needed by their respective modules.
113563         * m4/obstack.m4: Remove.
113564         * m4/strerror_r.m4: Remove.
113565         * m4/uint32_t.m4: Remove.
113566         * m4/uintptr_t.m4: Remove.
113567         * m4/ullong_max.m4: Remove.
113568         * m4/xstrtoimax.m4: Remove.
113569         * m4/xstrtoumax.m4: Remove.
113571         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
113572         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
113573         dependencies now capture this.
113575         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
113576         Do not use AC_LIBSOURCES, since gnulib modules now do this.
113577         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
113578         * m4/human.m4 (gl_HUMAN): Likewise.
113579         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
113580         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
113582         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
113584         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
113585         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
113586         stdint.
113587         * m4/human.m4 (gl_HUMAN): Likewise.
113588         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
113589         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
113590         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
113591         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
113592         * m4/xstrtol (gl_XSTRTOL): Likewise.
113594         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
113595         AC_TYPE_LONG_LONG_INT.
113596         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
113597         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
113598         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
113599         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
113601         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
113602         on stdbool.
113604         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
113605         (gl_PREREQ_XSTRTOUL): Remove.
113607         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
113609         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
113610         mode.
113612 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
113614         Add and change modules to make it easier for coreutils to use
113615         gnulib-tool.
113616         * modules/backupfile (Files): Remove m4/d-ino.m4.
113617         (Depends-on): Add d-ino.
113618         * modules/cycle-check (Depends-on): Add stdint.
113619         (lib_SOURCES): Add cycle-check.h.
113620         * modules/d-ino: New module.
113621         * modules/d-type: New module.
113622         * modules/error (Files): Remove m4/strerror_r.m4.
113623         * modules/filemode (Files): Add m4/st_dm_mode.m4.
113624         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
113625         m4/inttypes_h.m4, m4/uintmax_t.m4.
113626         (Depends-on): Add stdint.
113627         (lib_SOURCES): Add fsusage.h.
113628         * modules/getcwd (Files): Remove d-ino.m4.
113629         (Depends-on): Add d-ino.
113630         * modules/getndelim2 (Depends-on): Add stdint.
113631         * modules/glob (Files): Remove m4/d-type.m4.
113632         (Depends-on): Add d-type.
113633         * modules/host-os: New module.
113634         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
113635         m4/inttypes_h.m4, m4/uintmax_t.m4.
113636         * Depends-on: Add stdint.
113637         (lib_SOURCES): Add human.h.
113638         * modules/inttostr (Files): Remove m4/intmax_t.m4,
113639         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
113640         m4/uintmax_t.m4, m4/ulonglong.m4.
113641         (Depends-on): Add stdint.
113642         (EXTRA_DIST): Add inttostr.h.
113643         * modules/lchmod: New module.
113644         * modules/link-follow: New module.
113645         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
113646         (Depends-on): Add lchmod.
113647         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
113648         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
113649         (Depends-on): Add stdint.
113650         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
113651         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
113652         (Depends-on): Add stdint.
113653         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
113654         * modules/perl: New module.
113655         * modules/regex (Depends-on): Add stdint.
113656         * modules/rmdir-errno: New module.
113657         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
113658         m4/intmax_t.m4.
113659         (Depends-on): Add stdint.
113660         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
113661         m4/uintmax_t.m4.
113662         (Depends-on): Add stdint.
113663         * modules/unlink-busy: New module.
113664         * modules/utimecmp (Depends-on): Add stdint.
113665         * modules/uptime: New module.
113666         * modules/winsz-ioctl: New module.
113667         * modules/winsz-termios: New module.
113668         * modules/xnanosleep (Depends-on): Add nanosleep.
113669         * modules/ullong_max: Remove.
113670         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
113671         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
113672         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
113673         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
113674         (Depends-on): Add inttypes.
113675         (lib_SOURCES): Add xstrtol.h.
113676         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
113677         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
113678         * MODULES.html.sh: Move 'assert' into the assert section.
113679         Move 'dummy' into the linking section.
113680         Remove ullong_max.
113681         Add section for compatibility checks for POSIX:2001 functions,
113682         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
113683         winsz-ioctl, and winsz-termios into it.
113684         Add lchmod.
113685         Add top-level Misc section and put host-os, perl, and uptime
113686         into it.
113688 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
113690         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
113691         now assume the stdint module.  Do not include inttypes.h.
113692         * lib/fsusage.h: Likewise.
113693         * lib/getndelim2.c: Likewise.
113694         * lib/human.h: Likewise.
113695         * lib/inttostr.h: Likewise.
113696         * lib/obstack.c: Likewise.
113697         * lib/regex_internal.h: Likewise.
113698         * lib/tempname.c: Likewise.
113699         * lib/utimecmp.c: Likewise.
113700         * lib/xstrtol.h: Likewise.
113702         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
113704         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
113705         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
113706         * lib/xtime.h: Likewise.
113708 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
113710         * modules/openat (Files): Add lib/fchmodat.c.
113711         Fixes problem reported by Jay Youngman.
113713 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
113715         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
113716         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
113718 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
113719             Bruno Haible  <bruno@clisp.org>
113721         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
113722         and is a script that invokes bison. Tighten the code. Add comments.
113724 2006-08-18  Jim Meyering  <jim@meyering.net>
113726         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
113727         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
113728         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
113729         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
113731 2006-08-18  Bruno Haible  <bruno@clisp.org>
113733         * modules/bison-i18n: New file.
113734         * MODULES.html.sh (Internationalization functions): Add it.
113736 2006-08-18  Bruno Haible  <bruno@clisp.org>
113738         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
113739         sys/statvfs.h. When getmntinfo was found, check its declaration and
113740         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
113742 2006-08-18  Bruno Haible  <bruno@clisp.org>
113744         * m4/bison-i18n.m4: New file, from bison.
113746 2006-08-18  Bruno Haible  <bruno@clisp.org>
113748         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
113749         (ME_DUMMY): Treat "kernfs" as a dummy.
113750         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
113752 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
113754         Update from coreutils.
113756         2006-08-15  Jim Meyering  <jim@meyering.net>
113758         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
113760         2006-01-17  Jim Meyering  <jim@meyering.net>
113762         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
113764         2006-01-11  Jim Meyering  <jim@meyering.net>
113766         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
113767         Check for the lchmod function.
113769 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
113771         Update from coreutils.
113773         * lib/__fpending.h: Add copyright notice.
113774         * lib/fprintftime.h: Likewise.
113775         * lib/savedir.c: Use (C) in copyright notice.
113776         * lib/savedir.h: Likewise.
113778         2006-08-15  Jim Meyering  <jim@meyering.net>
113780         * lib/at-func.c: New file, with the logic of all emulated at-functions.
113781         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
113782         in support of the EXPECTED_ERRNO macro.
113783         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
113784         definitions.  Instead, define the appropriate symbols and include
113785         "at-func.c".
113786         * lib/mkdirat.c (mkdirat): Likewise.
113787         * lib/fchmodat.c (fchmodat): Likewise.
113788         (ENOSYS): Remove definition.
113789         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
113790         it.  Don't include "unistd--.h" -- it wasn't ever used.
113792         2006-01-17  Jim Meyering  <jim@meyering.net>
113794         Rewrite fts.c not to change the current working directory,
113795         by using openat, fstatat, fdopendir, etc..
113797         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
113798         (HAVE_OPENAT_SUPPORT): Define.
113799         [_LIBC] (fchdir): Don't undef or define; no longer used.
113800         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
113801         Now, this `function' always succeeds, and consumes its file descriptor
113802         parameter -- so callers must not close such FDs.  Update callers.
113803         (diropen_fd, opendirat, cwd_advance_fd): New functions.
113804         (diropen): Add parameter, SP.  Adjust all callers.
113805         Implement using diropen_fd, rather than open.
113806         (fts_open): Initialize new member, fts_cwd_fd.
113807         Remove fts_rft-setting code.
113808         (fts_close): Close fts_cwd_fd, if necessary.
113809         (__opendir2): Define in terms of opendir or opendirat,
113810         depending on whether the FST_NOCHDIR flag is set.
113811         (fts_build): Since fts_safe_changedir consumes its FD, and since
113812         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
113813         and close the dup'd file descriptor upon failure.
113814         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
113815         (fts_safe_changedir): Tweak semantics to reflect that this function
113816         now calls cwd_advance_fd and hence consumes its FD argument.
113817         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
113818         [struct FTS] (fts_rft): Remove now-unused member.
113819         [struct FTS] (fts_cycle.state): Improve comment.
113821         * lib/openat.c (openat_needs_fchdir): New function.
113822         * lib/openat.h (openat_needs_fchdir): Declare it.
113824 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
113826         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
113827         Problem and fix reported by Pádraig Brady in
113828         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
113830 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
113832         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
113834 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
113836         * lib/memcoll.c (memcoll): Optimize for the common case where the
113837         arguments are bytewise equal.
113839 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
113841         * doc/regexprops-generic.texi: Add a copyright notice.
113843 2006-08-15  Bruno Haible  <bruno@clisp.org>
113845         * modules/tmpdir (License): Change to LGPL.
113847 2006-08-15  Bruno Haible  <bruno@clisp.org>
113849         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
113850         module.
113852 2006-08-14  Simon Josefsson  <jas@extundo.com>
113854         * config/srclist.txt: Add gnupload.
113856 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
113858         Change copyright notice from LGPL 2 to GPL 2, since that's the
113859         standard form used in the gnulib repository.
113860         * tests/test-lock.c: Likewise.
113861         * tests/test-stdint.c: Likewise.
113862         * tests/test-tls.c: Likewise.
113864         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
113865         prelude-manager.  User shorter URLs for GNU projects, without '?'.
113866         Add copyright notice.
113868         * check-module: Add copyright notice.  Output a copyright
113869         notice if "--version" is specified.
113870         * modules/COPYING: New file.
113871         * tests/test-getaddrinfo.c: Add copyright notice.
113872         * tests/test-verify.c: Likewise.
113874 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
113876         Change copyright notice from LGPL 2 to GPL 2, since that's the
113877         standard form used in the gnulib repository.
113878         * lib/lock.c: LGPL -> GPL.
113879         * lib/lock.h: Likewise.
113880         * lib/strnlen1.c: Likewise.
113881         * lib/strnlen1.h: Likewise.
113882         * lib/tls.c: Likewise.
113883         * lib/tls.h: Likewise.
113884         * lib/tmpdir.c: Likewise.
113886         * lib/TODO: Remove; this belongs only in coreutils.
113888 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
113890         Add copyright notices to long-enough files that lack them, since
113891         otherwise the files aren't clearly free.  Use the same notice that
113892         getdate.texi already uses.
113893         * doc/alloca-opt.texi: Add copyright notice.
113894         * doc/alloca.texi: Likewise.
113895         * doc/ctime.texi: Likewise.
113896         * doc/functions.texi: Likewise.
113897         * doc/gcd.texi: Likewise.
113898         * doc/gnulib-tool.texi: Likewise.
113899         * doc/inet_ntoa.texi: Likewise.
113900         * doc/visibility.texi: Likewise.
113902         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
113903         * doc/quote.texi: Add copyright notice.
113905         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
113906         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
113907         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
113908         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
113909         is now obsolete, and give a pointer to the Sun list.
113910         Add copyright notice.
113912 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
113914         * config/srclistvars.sh: Add copyright notice.
113916 2006-08-14  Eric Blake  <ebb9@byu.net>
113918         Import the following change from libc:
113920         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
113922         Upstream bug 2997.
113923         * lib/misc/error.c: Add space between program name and message if file
113924         name is missing.
113926 2006-08-12  Karl Berry  <karl@gnu.org>
113928         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
113929         remove, these originate in gnulib now.
113931 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113933         * doc/Makefile (standards.info standards.html standards.dvi):
113934         Also depend on make-stds.texi.
113936 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
113938         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
113939         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
113941         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
113942         in wchar_t.  Problem reported by Eric Blake.
113944         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
113945         LEN is smaller than SIZE.  Suggested by Bruno Haible.
113946         Also, help the compiler to keep LEN in a register.
113948 2006-08-11  Eric Blake  <ebb9@byu.net>
113950         * users.txt: Sort.  Add tar.
113952 2006-08-11  Bruno Haible  <bruno@clisp.org>
113954         * users.txt: New file.
113956 2006-08-11  Bruno Haible  <bruno@clisp.org>
113958         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
113959         before <wchar.h>. Needed for OSF/1 and BSD/OS.
113961 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
113963         * modules/snprintf (Depends-on): Remove minmax.
113964         (Maintainer): Add self and Bruno.
113966 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
113968         * lib/.cppi-disable: Add snprintf.h, socket_.h.
113969         * lib/snprintf.c: Include <errno.h> and <limits.h>.
113970         (EOVERFLOW): Define if the system does not.
113971         Do not include "minmax.h"; it wasn't used.
113972         (snprintf): Don't assume size_t promotes to an unsigned type.
113973         Fix bug when generated string was too long for the buffer: the
113974         buffer's contents are supposed to be the initial prefix of the
113975         output.  Don't assume vasnprintf returns EOVERFLOW if the size
113976         exceeds INT_MAX; do the check ourselves.
113978         Import the following changes from libc:
113980         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
113982         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
113983         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
113984         set wc to the byte which couldn't be converted.
113985         (re_string_reconstruct): Don't clear valid_raw_len before calling
113986         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
113987         tip_context using re_string_context_at.
113989         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
113991         * lib/posix/regex.h: g++ still cannot handled [restrict].
113993         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
113995         * lib/posix/regex.h: Remove special handling for VMS.
113997 2006-08-10  Jim Meyering  <jim@meyering.net>
113999         * modules/same-inode: New module.
114000         * modules/dev-ino: New module.
114001         * modules/cycle-check: Depend on these modules, rather than simply
114002         including their .h files.
114003         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
114004         required via m4/cycle-check.m4.
114005         * modules/same: Depend on new same-inode module, rather than
114006         including same-inode.h.
114007         * modules/chdir-safer: New file.
114009         * modules/chown (Depends-on): Add stat-macros.
114011 2006-08-10  Jim Meyering  <jim@meyering.net>
114013         * m4/cycle-check.m4: New file.
114014         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
114015         * m4/dev-ino.m4, m4/same-inode.m4: New files.
114017 2006-08-10  Eric Blake  <ebb9@byu.net>
114019         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
114020         in from original proposal.
114022 2006-08-10  Eric Blake  <ebb9@byu.net>
114023         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
114025         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
114026         namespace.
114028 2006-08-10  Bruno Haible  <bruno@clisp.org>
114030         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
114031         as well.
114033 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114035         Sync from coreutils.
114037         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
114039         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
114040         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
114042 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114044         * modules/restrict: Remove; no longer needed now that we assume
114045         Autoconf 2.59 or later.
114046         * MODULES.html.sh: Remove 'restrict'.
114047         * modules/argp (Depends-on): Remove 'restrict'.
114048         * modules/base64 (Depends-on): Likewise.
114049         * modules/gc (Depends-on): Likewise.
114050         * modules/getaddrinfo (Depends-on): Likewise.
114051         * modules/glob (Depends-on): Likewise.
114052         * modules/inet_ntop (Depends-on): Likewise.
114053         * modules/inet_pton (Depends-on): Likewise.
114054         * modules/memxor (Depends-on): Likewise.
114055         * modules/regex (Depends-on): Likewise.
114056         * modules/strtok_r (Depends-on): Likewise.
114057         * modules/time_r (Depends-on): Likewise.
114059 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114061         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
114062         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
114063         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
114064         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
114065         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
114066         * m4/memxor.m4 (gl_MEMXOR): Likewise.
114067         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
114068         gl_C_RESTRICT replaced by AC_C_RESTRICT.
114070         Merge from coreutils.
114071         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
114072         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
114073         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
114074         * m4/time_r.m4 (gl_TIME_R): Likewise.
114076 2006-08-09  Karl Berry  <karl@gnu.org>
114078         * config/srclist.txt: no more gettext-tools, per Bruno.
114080 2006-08-08  Eric Blake  <ebb9@byu.net>
114082         * modules/verror: New module.
114083         * MODULES.html.sh: Document it.
114085 2006-08-08  Eric Blake  <ebb9@byu.net>
114087         * lib/verror.h, lib/verror.c: New files.
114089 2006-08-08  Eric Blake  <ebb9@byu.net>
114091         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
114092         verror_at_line output complies with GNU Coding Standards even when
114093         file is NULL.
114095 2006-08-07  Bruno Haible  <bruno@clisp.org>
114097         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
114098         versions of AIX.
114099         Reported by Ralf Wildenhues.
114101 2006-08-07  Bruno Haible  <bruno@clisp.org>
114103         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
114104         in an AC_DEFUN. Needed so that the autoconf snippets can use
114105         AC_REQUIRE.
114107 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114109         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114110         Initialize pkgdata_DATA.
114111         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
114112         overriding it.
114114 2006-08-06  Eric Blake  <ebb9@byu.net>
114116         * lib/error.h: Fold in some upstream changes from glibc.
114117         * lib/error.c: Likewise.
114119 2006-08-04  Bruno Haible  <bruno@clisp.org>
114121         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114122         Make the mostlyclean-local rule depend on mostlyclean-generic.
114123         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
114125 2006-07-31  Bruno Haible  <bruno@clisp.org>
114127         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
114128         <stdlib.h>, <string.h>.
114130 2006-07-30  Bruno Haible  <bruno@clisp.org>
114132         * modules/readlink (License): Change to LGPL.
114134 2006-07-30  Bruno Haible  <bruno@clisp.org>
114136         * modules/javaversion (Makefile.am): Distribute javaversion.java and
114137         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
114138         set PKGDATADIR to point to it.
114140 2006-07-30  Bruno Haible  <bruno@clisp.org>
114142         * modules/csharpexec (configure.ac): Comment out macro invocation.
114143         * modules/javaexec (configure.ac): Likewise.
114144         * modules/javacomp-script (configure.ac): Likewise.
114146         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
114148 2006-07-30  Bruno Haible  <bruno@clisp.org>
114150         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
114151         linked-list.
114153 2006-07-30  Bruno Haible  <bruno@clisp.org>
114155         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
114157 2006-07-30  Bruno Haible  <bruno@clisp.org>
114159         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114160         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
114161         get removed.
114163 2006-07-29  Bruno Haible  <bruno@clisp.org>
114165         Make it possible for gnulib-tool to work with locally modified or
114166         augmented gnulib repositories.
114167         * gnulib-tool (func_usage): Document --local-dir option.
114168         (local_gnulib_dir): New variable.
114169         Handle --local-dir option.
114170         (func_lookup_file): New function.
114171         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
114172         (func_get_description, func_get_filelist, func_get_description,
114173         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
114174         func_get_automake_snippet, func_get_include_directive,
114175         func_get_license, func_get_maintainer): Use func_lookup_file.
114176         (func_import, func_create_testdir): Use func_lookup_file.
114178 2006-07-29  Bruno Haible  <bruno@clisp.org>
114180         * modules/setenv (Depends-on): Add unistd.
114182 2006-07-29  Bruno Haible  <bruno@clisp.org>
114184         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
114186 2006-07-29  Bruno Haible  <bruno@clisp.org>
114188         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
114190 2006-07-29  Bruno Haible  <bruno@clisp.org>
114192         * gnulib-tool (import, update): If there is no Makefile.am, look at
114193         aclocal.m4, instead of bailing out.
114195 2006-07-29  Bruno Haible  <bruno@clisp.org>
114197         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
114198         Categorize the options by when they are useful.
114200 2006-07-29  Bruno Haible  <bruno@clisp.org>
114202         * gnulib-tool (func_usage): Document option --no-libtool.
114203         Handle option --no-libtool.
114204         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
114205         for changed semantics of $libtool variable.
114206         (func_import): Likewise. If libtool is not used, show this through
114207         an option --no-libtool.
114208         (func_create_testdir): Update.
114210 2006-07-29  Bruno Haible  <bruno@clisp.org>
114212         * gnulib-tool (func_import): Extend error message about missing
114213         --doc-base.
114215 2006-07-29  Bruno Haible  <bruno@clisp.org>
114217         * gnulib-tool (func_import): Don't create the $docbase directory if
114218         there is no file to store there.
114220 2006-07-29  Bruno Haible  <bruno@clisp.org>
114222         * gnulib-tool (autoconf_minversion): If a --dir option is given and
114223         relevant, look for configure.ac there, not in the current directory.
114224         Also use a simple search for AC_PREREQ, not "autoconf --trace".
114226 2006-07-29  Bruno Haible  <bruno@clisp.org>
114228         * gnulib-tool (SORT): New variable.
114229         (func_usage): Undocument --assume-autoconf option.
114230         Remove --assume-autoconf option handling.
114231         (autoconf_minversion): Determine from the contents of configure.ac.
114232         (func_import): Remove autoconf_minversion handling.
114233         Suggested by Eric Blake.
114235 2006-07-29  Bruno Haible  <bruno@clisp.org>
114237         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
114239 2006-07-29  Bruno Haible  <bruno@clisp.org>
114241         * config/srclist.txt (*setenv.[ch]): Remove rules.
114243 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114245         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
114247 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114249         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
114250         arpa/inet.h.
114252 2006-07-28  Simon Josefsson  <jas@extundo.com>
114254         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
114255         * modules/inet_pton (Depends-on): Likewise.
114257 2006-07-28  Simon Josefsson  <jas@extundo.com>
114259         * m4/netinet_in_h.m4: New file.
114261 2006-07-28  Simon Josefsson  <jas@extundo.com>
114263         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
114264         #include's.
114266 2006-07-28  Simon Josefsson  <jas@extundo.com>
114268         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
114269         #include's.
114271 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
114273         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
114274         setgid on directories only if they set these bits.
114275         * lib/modechange.h: Remove obsolete comment about masks.
114277 2006-07-28  Eric Blake  <ebb9@byu.net>
114279         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
114280         macro expansion.
114282 2006-07-28  Bruno Haible  <bruno@clisp.org>
114284         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
114286 2006-07-28  Bruno Haible  <bruno@clisp.org>
114288         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
114290 2006-07-28  Bruno Haible  <bruno@clisp.org>
114292         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
114293         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
114294         Define fallbacks.
114295         Avoids link error on FreeBSD 4.x.
114296         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
114298         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
114299         encoding.
114300         * lib/mbswidth.c (iswcntrl): Likewise.
114302 2006-07-27  Bruno Haible  <bruno@clisp.org>
114304         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
114305         test.
114307 2006-07-27  Bruno Haible  <bruno@clisp.org>
114309         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
114310         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
114311         defined.
114313 2006-07-26  Eric Blake  <ebb9@byu.net>
114315         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
114317 2006-07-26  Eric Blake  <ebb9@byu.net>
114319         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
114320         like mingw that lack mkstemp.
114321         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
114322         avoid compilation warning on mingw.
114324 2006-07-26  Bruno Haible  <bruno@clisp.org>
114326         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
114327         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
114328         INT_FAST*_MIN, INTPTR_MIN.
114330 2006-07-25  Bruno Haible  <bruno@clisp.org>
114332         * modules/version-etc (Depends-on): Add stdarg.
114334 2006-07-25  Bruno Haible  <bruno@clisp.org>
114336         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
114337         complex commands.
114339 2006-07-25  Bruno Haible  <bruno@clisp.org>
114341         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
114342         defined in <stdarg.h> or config.h.
114344 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
114346         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
114347         (gl_STDIO_SAFER): Remove.
114349 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
114351         * MODULES.html.sh (File stream based Input/Output):
114352         Add fopen-safer, tmpfile-safer; remove stdio-safer.
114353         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
114354         * modules/fopen-safer, modules/tmpfile-safer: New files.
114355         * modules/stdio-safer: Remove.
114357 2006-07-24  Bruno Haible  <bruno@clisp.org>
114359         * modules/tmpdir: New file.
114360         * MODULES.html.sh (File system functions): Add it.
114362 2006-07-24  Bruno Haible  <bruno@clisp.org>
114364         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
114365         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
114367 2006-07-24  Bruno Haible  <bruno@clisp.org>
114369         * modules/clean-temp: New file.
114371 2006-07-24  Bruno Haible  <bruno@clisp.org>
114373         * m4/tmpdir.m4: New file, from GNU gettext.
114375 2006-07-24  Bruno Haible  <bruno@clisp.org>
114377         * lib/tmpdir.h: New file, from GNU gettext.
114378         * lib/tmpdir.c: New file, from GNU gettext.
114380 2006-07-24  Bruno Haible  <bruno@clisp.org>
114382         * lib/clean-temp.h: New file, from GNU gettext.
114383         * lib/clean-temp.c: New file, from GNU gettext.
114385 2006-07-23  Eric Blake  <ebb9@byu.net>
114387         * modules/stdio-safer (Files): Add tmpfile-safer.c.
114388         (Depends-on): Add binary-io.
114390 2006-07-23  Eric Blake  <ebb9@byu.net>
114392         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
114394 2006-07-23  Eric Blake  <ebb9@byu.net>
114396         * lib/tmpfile-safer.c: New file.
114397         * lib/stdio-safer.h (fopen_safer): Add prototype.
114398         * lib/stdio--.h (tmpfile): Make safer.
114400 2006-07-23  Bruno Haible  <bruno@clisp.org>
114402         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
114403         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
114404         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
114405         gl_linked_remove_at): Use it.
114407 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114408         and Simon Josefsson <jas@extundo.com>
114410         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
114412         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
114414 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
114416         * modules/close-stream: New file.
114417         * modules/closeout (Description): Make it clear that it exits
114418         with a diagnostic on error.
114419         (Depends-on): Add close-stream.  Remove fpending, stdbool.
114420         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
114422 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
114424         * m4/close-stream.m4: New file.
114426 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
114428         * lib/close-stream.c, lib/close-stream.h: New files.
114430 2006-07-22  Bruno Haible  <bruno@clisp.org>
114432         Merge from GNU gettext 0.15.
114434         2006-05-01  Bruno Haible  <bruno@clisp.org>
114436                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
114438         2006-07-22  Bruno Haible  <bruno@clisp.org>
114440                 * modules/javaversion: New file.
114441                 * MODULES.html.sh (Java): Add javaversion.
114443         2006-03-12  Bruno Haible  <bruno@clisp.org>
114445                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
114447         2005-12-04  Bruno Haible  <bruno@clisp.org>
114449                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
114450                 (untested).
114452         2006-06-21  Bruno Haible  <bruno@clisp.org>
114454                 Avoid warnings from recent versions of mcs.
114455                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
114456                 -o, -L, -r any more. Use options documented since mcs-1.0
114457                 instead. Similarly for -g.
114459         2005-12-04  Bruno Haible  <bruno@clisp.org>
114461                 * build-aux/csharpcomp.sh.in: Suffix for resources is
114462                 .resources, not .resource.
114464         2005-07-09  Bruno Haible  <bruno@clisp.org>
114466                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
114467                 add a .dll suffix.
114468                 Reported by Mark Junker <mjscod@gmx.de>.
114470         2006-07-22  Bruno Haible  <bruno@clisp.org>
114472                 * modules/gettext: Upgrade to gettext-0.15.
114473                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
114474                 m4/visibility.m4.
114475                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
114477 2006-07-22  Bruno Haible  <bruno@clisp.org>
114479         Merge from GNU gettext 0.15.
114481         2006-03-25  Bruno Haible  <bruno@clisp.org>
114483                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
114485         2006-07-21  Bruno Haible  <bruno@clisp.org>
114487                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
114488                 "1.1".
114490         2006-05-09  Bruno Haible  <bruno@clisp.org>
114492                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
114493                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
114494                 for the conftestver execution.
114496         2006-05-01  Bruno Haible  <bruno@clisp.org>
114498                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
114499                 optional target-version argument. Verify that the compiler
114500                 groks source of the specified source-version, or add -source
114501                 option as necessary. Verify that the compiler produces
114502                 bytecode in the specified target-version, or add -target and
114503                 -source options as necessary. Make the result of the test
114504                 available as variable CONF_JAVAC. Also log error output in
114505                 config.log.
114507         2006-03-11  Bruno Haible  <bruno@clisp.org>
114509                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
114511         2006-05-09  Bruno Haible  <bruno@clisp.org>
114513                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
114514                 CLASSPATH_SEPARATOR to a semicolon.
114516         2006-03-12  Bruno Haible  <bruno@clisp.org>
114518                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
114519                 available as variable CONF_JAVA, for subsequent autoconf
114520                 tests. Also log error output in config.log.
114522         2006-07-19  Bruno Haible  <bruno@clisp.org>
114524                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
114525                 that getline works on glibc2 systems. Needed to avoid trouble
114526                 in relocatable.c.
114527                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
114529         2005-12-04  Bruno Haible  <bruno@clisp.org>
114531                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
114532                 launcher (untested).
114534         2005-12-04  Bruno Haible  <bruno@clisp.org>
114536                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
114538         2006-07-22  Bruno Haible  <bruno@clisp.org>
114540                 * gettext.m4: Update from GNU gettext-0.15.
114541                 * nls.m4: Likewise.
114542                 * po.m4: Likewise.
114543                 * inttypes-pri.m4: Likewise.
114544                 * inttypes-h.m4: Renamed from inttypes.m4.
114545                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
114547 2006-07-22  Bruno Haible  <bruno@clisp.org>
114549         Merge from GNU gettext 0.15.
114551         2005-07-05  Bruno Haible  <bruno@clisp.org>
114553                 * printf-args.c (printf_fetchargs): Work around broken
114554                 definition of wint_t on mingw.
114556         2005-02-12  Bruno Haible  <bruno@clisp.org>
114558                 * xallocsa.h: Add extern "C" for C++.
114560         2006-05-17  Bruno Haible  <bruno@clisp.org>
114562                 Cygwin portability.
114563                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
114565         2006-04-30  Bruno Haible  <bruno@clisp.org>
114567                 * progreloc.c: Include <mach-o/dyld.h> if available.
114568                 (find_executable): Use _NSGetExecutablePath when possible.
114570         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
114572                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
114573                 function.
114575         2005-12-29  Bruno Haible  <bruno@clisp.org>
114577                 * progreloc.c (set_program_name_and_installdir): Fix
114578                 compilation error.
114580         2005-12-04  Bruno Haible  <bruno@clisp.org>
114582                 Cygwin portability.
114583                 * progreloc.c: Include <windows.h> also on Cygwin.
114584                 (find_executable): Add support for Cygwin.
114585                 (set_program_name_and_installdir): Handle also platforms with
114586                 nonempty EXEEXT.
114588         2006-07-11  Bruno Haible  <bruno@clisp.org>
114590                 * javacomp.c: Fix a comment.
114591                 Reported by Jim Meyering.
114593         2006-04-30  Bruno Haible  <bruno@clisp.org>
114595                 * javacomp.h (compile_java_class): Add source_version,
114596                 target_version arguments.
114597                 * javacomp.c: Rewritten to choose only a compiler that
114598                 respects the specified source_version and target_version.
114600         2006-06-27  Bruno Haible  <bruno@clisp.org>
114602                 Assume correct S_ISDIR macro.
114603                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
114605         2006-07-22  Bruno Haible  <bruno@clisp.org>
114607                 * javaversion.h: New file, from GNU gettext.
114608                 * javaversion.c: New file, from GNU gettext.
114609                 * javaversion.java: New file, from GNU gettext.
114610                 * javaversion.class: New file, from GNU gettext.
114612         2006-05-17  Bruno Haible  <bruno@clisp.org>
114614                 Cygwin portability.
114615                 * javaexec.c (execute_java_class): Test for jview program
114616                 also on Cygwin.
114618         2006-04-09  Bruno Haible  <bruno@clisp.org>
114620                 * fatal-signal.c: Don't include string.h.
114621                 (at_fatal_signal): Use a copying loop instead of memcpy.
114623         2005-12-04  Bruno Haible  <bruno@clisp.org>
114625                 * csharpexec.c: Add support for 'clix' launcher (untested).
114626                 (execute_csharp_using_sscli): New function.
114627                 (execute_csharp_program): Call it.
114629         2006-06-21  Bruno Haible  <bruno@clisp.org>
114631                 Avoid warnings from recent versions of mcs.
114632                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
114633                 -o, -L, -r any more. Use options documented since mcs-1.0
114634                 instead. Similarly for -g.
114636         2005-07-09  Bruno Haible  <bruno@clisp.org>
114638                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
114639                 add a .dll suffix.
114640                 Reported by Mark Junker <mjscod@gmx.de>.
114642         2006-06-17  Bruno Haible  <bruno@clisp.org>
114644                 * config.charset: Update for NetBSD 3.0.
114646         2006-05-17  Bruno Haible  <bruno@clisp.org>
114648                 Cygwin portability.
114649                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
114651         2006-05-16  Bruno Haible  <bruno@clisp.org>
114653                 * localcharset.c [CYGWIN]: Include <windows.h>.
114654                 (get_charset_aliases): For Cygwin, return the same CPxxx
114655                 aliases list as under WIN32.
114656                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
114657                 the environment variables. Fall back to GetACP().
114659         2006-04-05  Bruno Haible  <bruno@clisp.org>
114661                 * config.charset: Update Juan Manuel Guerrero's address.
114663         2005-02-12  Bruno Haible  <bruno@clisp.org>
114665                 * allocsa.h: Add extern "C" for C++.
114667         2005-02-10  Bruno Haible  <bruno@clisp.org>
114669                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
114670                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
114672         2006-07-22  Bruno Haible  <bruno@clisp.org>
114674                 * gettext.h: Update to GNU gettext-0.15.
114676 2006-07-22  Bruno Haible  <bruno@clisp.org>
114678         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
114679         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
114680         lib-prefix.m4, longdouble.m4, ssize_t.m4.
114682 2006-07-21  Eric Blake  <ebb9@byu.net>
114684         * modules/stdlib-safer: New file.
114685         * MODULES.html.sh (File stream based Input/Output): Add
114686         stdlib-safer.
114688 2006-07-21  Eric Blake  <ebb9@byu.net>
114690         * lib/stdlib-safer.h: New file from coreutils, required by
114691         stdlib--.h.
114693 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
114695         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
114697 2006-07-20  Bruno Haible  <bruno@clisp.org>
114699         * gnulib-tool: Recognize new option --assume-autoconf.
114700         (autoconf_minversion): New variable.
114701         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
114703 2006-07-20  Bruno Haible  <bruno@clisp.org>
114705         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
114707 2006-07-19  Derek R. Price  <derek@ximbiot.com>
114709         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
114710         Reindent and repaginate.
114712 2006-07-19  Derek Price  <derek@ximbiot.com>
114714         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
114715         Correct grammar.
114717 2006-07-17  Bruno Haible  <bruno@clisp.org>
114719         * modules/list: New file.
114720         * modules/array-list: New file.
114721         * modules/carray-list, modules/carray-list-tests: New files.
114722         * modules/linked-list, modules/linked-list-tests: New files.
114723         * modules/avltree-list, modules/avltree-list-tests: New files.
114724         * modules/rbtree-list, modules/rbtree-list-tests: New files.
114725         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
114726         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
114727         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
114728         * modules/oset: New file.
114729         * modules/array-oset: New file.
114730         * modules/avltree-oset, modules/avltree-oset-tests: New files.
114731         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
114732         * tests/test-carray_list.c: New file.
114733         * tests/test-linked_list.c: New file.
114734         * tests/test-avltree_list.c: New file.
114735         * tests/test-rbtree_list.c: New file.
114736         * tests/test-linkedhash_list.c: New file.
114737         * tests/test-avltreehash_list.c: New file.
114738         * tests/test-rbtreehash_list.c: New file.
114739         * tests/test-avltree_oset.c: New file.
114740         * tests/test-rbtree_oset.c: New file.
114741         * MODULES.html.sh (Container data structures): New section.
114743 2006-07-17  Bruno Haible  <bruno@clisp.org>
114745         * m4/gl_list.m4: New file.
114747 2006-07-17  Bruno Haible  <bruno@clisp.org>
114749         * lib/gl_list.h: New file.
114750         * lib/gl_list.c: New file.
114751         * lib/gl_array_list.h: New file.
114752         * lib/gl_array_list.c: New file.
114753         * lib/gl_carray_list.h: New file.
114754         * lib/gl_carray_list.c: New file.
114755         * lib/gl_linked_list.h: New file.
114756         * lib/gl_linked_list.c: New file.
114757         * lib/gl_anylinked_list1.h: New file.
114758         * lib/gl_anylinked_list2.h: New file.
114759         * lib/gl_avltree_list.h: New file.
114760         * lib/gl_avltree_list.c: New file.
114761         * lib/gl_anyavltree_list1.h: New file.
114762         * lib/gl_anyavltree_list2.h: New file.
114763         * lib/gl_rbtree_list.h: New file.
114764         * lib/gl_rbtree_list.c: New file.
114765         * lib/gl_anyrbtree_list1.h: New file.
114766         * lib/gl_anyrbtree_list2.h: New file.
114767         * lib/gl_anytree_list1.h: New file.
114768         * lib/gl_anytree_list2.h: New file.
114769         * lib/gl_linkedhash_list.h: New file.
114770         * lib/gl_linkedhash_list.c: New file.
114771         * lib/gl_anyhash_list1.h: New file.
114772         * lib/gl_anyhash_list2.h: New file.
114773         * lib/gl_avltreehash_list.h: New file.
114774         * lib/gl_avltreehash_list.c: New file.
114775         * lib/gl_rbtreehash_list.h: New file.
114776         * lib/gl_rbtreehash_list.c: New file.
114777         * lib/gl_anytreehash_list1.h: New file.
114778         * lib/gl_anytreehash_list2.h: New file.
114780         * lib/gl_oset.h: New file.
114781         * lib/gl_oset.c: New file.
114782         * lib/gl_array_oset.h: New file.
114783         * lib/gl_array_oset.c: New file.
114784         * lib/gl_avltree_oset.h: New file.
114785         * lib/gl_avltree_oset.c: New file.
114786         * lib/gl_rbtree_oset.h: New file.
114787         * lib/gl_rbtree_oset.c: New file.
114788         * lib/gl_anytree_oset.h: New file.
114790 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
114792         * m4/mkancesdirs.m4: New file.
114793         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
114794         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
114795         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
114796         it.
114798 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
114800         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
114801         * lib/mkancesdirs.h: New files.
114802         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
114803         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
114804         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
114805         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
114806         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
114807         callers changed.  Revamp internals significantly, by not
114808         attempting to create directories that are temporarily more
114809         permissive than the final results.  Do not attempt to use
114810         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
114811         This removes some race conditions, fixes some bugs, and simplifies
114812         things.  Use new dirchownmod function to do owner and mode changes.
114813         * lib/mkdir-p.h: Likewise.
114814         * lib/modechange.c (octal_to_mode): New function.
114815         (struct mode_change): New member mentioned.
114816         (make_node_op_equals): New arg mentioned.  All callers changed.
114817         (mode_compile): Keep track of which mode bits the user has explicitly
114818         mentioned.
114819         (mode_adjust): New arg DIR, so that we implement the X op correctly.
114820         New arg PMODE_BITS, to keep track of which mode bits the user
114821         mentioned; it treats S_ISUID and S_ISGID speciall.
114822         All callers changed.
114823         * lib/modechange.h: Likewise.
114825 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
114827         * MODULES.html.sh: Add mkancestors.
114828         * modules/mkancesdirs: New module.
114829         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
114830         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
114831         The chdir-safer and afs files are now orphans; I'll remove them
114832         unless someone speaks up.
114833         Add lib/dirchownmod.c, lib/dirchownmod.h.
114834         (Depends-on): Remove alloca, chown, save-cwd, dirname.
114835         Add lchown, mkancesdirs.
114836         (Maintainer): Add self.
114838 2006-07-15  Karl Berry  <karl@gnu.org>
114840         * gnulib-tool: help message wording/arrangement.
114842 2006-07-14  Simon Josefsson  <jas@extundo.com>
114844         * doc/gnulib.texi (Libtool and Windows): New section.
114846 2006-07-12  Simon Josefsson  <jas@extundo.com>
114848         * modules/gendocs (License): Fix license, approved by Karl.
114850 2006-07-12  Eric Blake  <ebb9@byu.net>
114852         * MODULES.html.sh: Add gendocs.
114854 2006-07-11  Eric Blake  <ebb9@byu.net>
114856         * modules/fdl: New module, to install doc/fdl.texi.
114857         * MODULES.html.sh: Add new section for documentation modules.
114858         * gnulib-tool: Avoid space-tab.
114859         (--doc-base): New option, to manage files from doc.
114861 2006-07-11  Eric Blake  <ebb9@byu.net>
114863         * m4/absolute-header.m4: Fix comments to match recent change.
114865 2006-07-11  Eric Blake  <ebb9@byu.net>
114867         * gnulib-tool: List --doc-base before --tests-base.
114869 2006-07-11  Derek R. Price  <derek@ximbiot.com>
114871         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
114873 2006-07-11  Bruno Haible  <bruno@clisp.org>
114875         * README: Mention where to put documentation.
114877 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114879         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
114881 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
114883         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
114884         to stdint.m4.
114886 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
114888         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
114889         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
114890         "no/such/file/stdint.h" when there is no such file, so that
114891         the resulting C code can be parsed by dodgy compilers.
114892         Problems reported by Bob Proulx.
114894 2006-07-10  Derek R. Price  <derek@ximbiot.com>
114896         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
114897         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
114898         macros into the GNU _D_EXACT_NAMLEN.
114899         * lib/savedir.c:  Likewise.
114900         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
114902 2006-07-10  Derek R. Price  <derek@ximbiot.com>
114903         and Paul Eggert  <eggert@cs.ucla.edu>
114905         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
114906         * m4/savedir.m4:
114907         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
114908         macros into the GNU _D_EXACT_NAMLEN.
114910 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
114912         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
114913         around the absolute name, to work around a problem with the HP-UX
114914         11.23 native C compiler, reported by Bob Proulx.
114916 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
114918         * doc/maintain.texi, make-stds.texi: Sync from
114919         <http://savannah.gnu.org/projects/gnustandards>.
114921 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
114923         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
114925 2006-07-09  Jim Meyering  <jim@meyering.net>
114927         * m4/glob.m4: Remove a doubled word in a comment.
114929 2006-07-09  Jim Meyering  <jim@meyering.net>
114931         * lib/argp-pv.c: Remove a doubled word in a comment.
114932         * lib/check-version.c (check_version): Likewise.
114933         * lib/javacomp.c (compile_java_class): Likewise.
114935 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
114937         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
114938         for the benefit of people using Autoconf 2.60.  If you want to
114939         support older Autoconf versions you can copy m4/onceonly_2_57.m4
114940         (or m4/onceonly.m4, if pre-2.57) manually.
114942 2006-07-08  Jim Meyering  <jim@meyering.net>
114944         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
114945         comment.
114946         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
114947         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
114948         comment.
114950 2006-07-08  Jim Meyering  <jim@meyering.net>
114952         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
114954 2006-07-07  Simon Josefsson  <jas@extundo.com>
114956         * tests/test-crc.c: Change expected crc value, the test vector
114957         were probably computed using the old broken crc.c?
114959 2006-07-06  Simon Josefsson  <jas@extundo.com>
114961         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
114962         now the canonical place for the M4 file).
114964         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
114965         from the sys_socket dependency now.
114967         * modules/inet_pton (Files): Ditto.
114969         * modules/inet_ntop (Files): Ditto.
114971 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
114973         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
114974         not gl_PREREQ_GETUSERSHELL.
114976 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114978         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
114979         with only one argument, for Autoconf 2.60.
114980         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
114981         expand to nothing, so add a shell command to avoid syntax error.
114982         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
114984 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114986         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
114988 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
114990         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
114991         no longer needed.  Check for isblank decl.
114992         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
114993         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
114994         of existence.
114996 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
114998         * lib/getloadavg.c: Use __VMS, not VMS.
114999         * lib/getopt.c: Likewise.
115000         * lib/getpagesize.h: Likewise.
115001         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
115002         and probably does not work.
115004 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
115006         * lib/.cppi-disable: Add wcwidth.
115007         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
115008         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
115009         (ISGRAPH): Remove.  All uses changed to isgraph.
115010         (FOLD) [!defined _LIBC]: Remove special case.
115011         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
115012         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
115013         HAVE_ISBLANK.
115014         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
115015         case.
115017 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
115019         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
115020         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
115021         brackets.  Other minor changes to suppress some compiler
115022         warnings.
115024 2006-07-06  Derek R. Price  <derek@ximbiot.com>
115025         and Paul Eggert  <eggert@cs.ucla.edu>
115027         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
115028         of invoking obsolescent AC_HEADER_DIRENT macro.
115029         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
115030         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
115031         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
115032         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
115033         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
115034         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
115035         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
115036         * m4/readdir.m4: Remove; no longer needed.
115038 2006-07-06  Derek R. Price  <derek@ximbiot.com>
115039         and Paul Eggert  <eggert@cs.ucla.edu>
115041         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
115042         Don't worry about this obsolete case any more.
115043         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
115044         directories.
115045         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
115046         worry about this obsolete case any more.
115047         * lib/fts.c: Likewise.
115048         * lib/getcwd.c: Likewise.
115049         * lib/glob.h: Likewise.
115050         * lib/savedir.c: Likewise.
115052 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
115054         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
115055         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
115056         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
115057         needed.
115058         All uses removed.
115059         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
115060         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
115061         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
115062         needed.
115063         * m4/getdate.m4 (gl_GETDATE): Likewise.
115064         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
115065         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
115066         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
115067         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
115068         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
115069         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
115070         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
115071         needed.
115073 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
115075         * lib/memcasecmp.c: Include <limits.h>.
115076         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
115077         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
115078         Don't assume isdigit succeeds only on '0' through '9'.
115080 2006-07-05  Eric Blake  <ebb9@byu.net>
115082         * modules/getaddrinfo (Depends-on): Add snprintf.
115084 2006-07-05  Eric Blake  <ebb9@byu.net>
115086         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
115087         to avoid 'header present but could not be compiled' on cygwin.
115089 2006-07-05  Eric Blake  <ebb9@byu.net>
115091         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
115092         missing from netdb.h.
115093         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
115095 2006-07-05  Derek R. Price  <derek@ximbiot.com>
115097         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
115098         no longer needed.
115099         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
115100         * m4/getdate.m4 (gl_GETDATE): Likewise.
115101         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
115102         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
115103         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
115104         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
115105         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
115107 2006-07-05  Derek R. Price  <derek@ximbiot.com>
115109         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
115110         All uses of is_space replaced by isspace.
115111         * lib/exit.h: Don't talk about STDC_HEADERS.
115112         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
115113         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
115114         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
115115         replaced by isprint etc.
115116         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
115117         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
115118         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
115119         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
115120         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
115121         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
115123 2006-07-05  Bruno Haible  <bruno@clisp.org>
115125         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
115126         the function exists, before testing against AIX.
115127         Reported by Martin Lambers <marlam@marlam.de>.
115129 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
115131         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
115132         From Mark D. Baushke.
115134 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
115136         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
115137         to the absolute name, not just one, to bypass Sun C 5.8's
115138         "warning: #include of /usr/include/... may be non-portable".
115140 2006-07-04  Eric Blake  <ebb9@byu.net>
115142         * modules/dirname-tests: New test module.
115143         * tests/test-dirname.c: New file, replacing dirname.c
115144         TEST_DIRNAME section that was recently deleted.
115146 2006-07-04  Bruno Haible  <bruno@clisp.org>
115148         Assume ANSI C header files and <ctype.h> functions.
115149         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
115150         (mbsnwidth): Use isprint, iscntrl instead.
115152 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
115154         Merge from coreutils.
115155         * MODULES.html.sh: Add xstrtold.
115156         * modules/xstrtold: New file.
115157         * modules/cycle-check (Files): Add lib/same-inode.h.
115158         * modules/dirname (Files): Add m4/double-slash-root.m4.
115159         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
115160         * modules/mkdir-p (Files): Add lib/same-inode.h.
115161         * modules/same (Files): Add lib/same-inode.h.
115163 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
115165         * m4/absolute-header.m4: Renamed from full-header-path.m4.
115166         This is to keep the terminology clean; POSIX talks about
115167         "absolute pathnames", not "full pathnames", but the GNU
115168         Coding Standards say to use "path" for something else;
115169         so use "absolute" to keep both sides happy.
115170         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
115171         Set gl_absolute_header, not gl_full_header_path.
115172         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
115173         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
115174         All uses changed.
115176         Merge from coreutils.
115178         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
115180         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
115181         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
115182         want to require the building of c-strtod.o.
115183         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
115184         needs -lm directly.
115185         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
115187         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
115189         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
115190         --as-needed option if available.  Problem reported by Albert Chin in
115191         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
115192         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
115193         cc merely issues a bunch of annoying warnings for --as-needed
115194         (this problem was reported by Bob Proulx).  Also, try linking with
115195         -lm to detect a bug in binutils 2.16 (this problem was reported
115196         by Ralf Wildenhues).
115198         2006-06-18  Jim Meyering  <jim@meyering.net>
115200         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
115201         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
115202         macro.
115203         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
115204         also check for glibc-2.4's abort-inducing bug.
115206         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
115207         Low-probability clean-up should be to use rmdir to get rid of
115208         the just-created directory, not unlink.
115210         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
115211         configure fail, and request a bug report to inform us about it.
115212         Add a comment that, barring reports to the contrary, in 2007 we'll
115213         assume ftruncate is universally available.
115215         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
115217         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
115219         2006-03-12  Jim Meyering  <jim@meyering.net>
115221         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
115222         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
115223         * m4/same.m4 (gl_SAME): Likewise.
115224         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
115226         2006-03-11  Eric Blake  <ebb9@byu.net>
115228         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
115229         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
115230         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
115231         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
115233 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
115235         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
115236         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
115237         reported by Mark D. Baushke, one in
115238         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
115240         Merge from coreutils.
115242         * lib/.cppi-disable: Add stdint_.h.
115243         * lib/.cvsignore: Add stdint.h.
115245         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
115247         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
115248         both double and long double versions.
115249         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
115250         * lib/xstrtold.c: New file.
115251         * lib/xstrtod.h (xstrtold): New decl.
115253         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
115255         * lib/filemode.c (setst): Remove.
115256         (strmode): Rewrite to avoid setst.  This makes the code shorter,
115257         (arguably) clearer, and the generated code is a bit smaller on my
115258         Debian GNU/Linux stable x86 host.
115260         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
115262         * lib/filemode.c: Include "filemode.h" first, to test the interface.
115263         Assume that filemode.h includes sys/types.h and sys/stat.h.
115264         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
115265         (ftypelet): Reorder to put common cases first, for efficiency.
115266         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
115267         to do 'M'.
115268         (strmode): Renamed from mode_string, and now stores 12 bytes instead
115269         of 10, for compatibility with FreeBSD.  All callers changed.
115270         (filemodestring): Now stores 12 bytes instead of 10, and sets file
115271         types that can't be deduced solely from st_mode.  First arg is now a
115272         const pointer.
115273         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
115274         (strmode): Renamed from mode_string.
115275         (filemodestring): New decl.
115276         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
115277         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
115278         needed.
115279         (S_ISPORT, S_ISWHT): New macros, if not already defined.
115281         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
115283         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
115284         fsusage.h now does that.  Include fsusage.h first, to test interface.
115285         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
115286         at most one method (the old code could have generated decls that
115287         didn't conform to C89, not that this was ever exercised).
115288         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
115290         2006-03-19  Jim Meyering  <jim@meyering.net>
115292         Work even in a chroot where d_ino values for entries in "/"
115293         don't match the stat.st_ino values for the same names.
115294         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
115295         number, iterate through all entries again, using lstat instead.
115296         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
115297         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
115299         * lib/getcwd.c (__getcwd): Clarify a comment.
115300         Use memcpy in place of a call to strcpy.
115302         2006-03-12  Jim Meyering  <jim@meyering.net>
115304         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
115305         matches that of the current directory (which we're about to chdir ".."
115306         out of), then save the dev-ino of the parent, instead.
115308         * lib/same-inode.h (SAME_INODE): New file/macro.
115309         * lib/chdir-safer.c (SAME_INODE): Remove definition.
115310         Include "same-inode.h", instead.
115311         * lib/same.c: Likewise.
115312         * lib/cycle-check.h: Include "same-inode.h".
115313         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
115314         * lib/cycle-check.c (SAME_INODE): Remove definition.
115315         * lib/root-dev-ino.h: Include "same-inode.h".
115317         2006-03-11  Eric Blake  <ebb9@byu.net>
115319         * lib/same.c (same_name): s/base_name/last_component/
115320         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
115321         * lib/filenamecat.c (file_name_concat): Likewise.
115323         2006-03-11  Eric Blake  <ebb9@byu.net>,
115324                     Paul Eggert  <eggert@cs.ucla.edu>
115326         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
115327         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
115328         drive prefix.
115329         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
115330         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
115331         (last_component): New method.
115332         * lib/dirname.c (dir_len): Determine when drive letters need a
115333         subsequent slash.  Preserve // when it is special.
115334         (dir_name): Don't append dot when drive letter is absolute.
115335         [TEST_DIRNAME]: Move into a full-blown gnulib test.
115336         * lib/basename.c (base_name): New semantics - malloc the result.
115337         Preserve // when it is special.  Preserve relative files that look
115338         like drive letters.
115339         (base_len): Preserve // when it is special.
115340         (last_component): New method, similar to old base_name semantics.
115341         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
115342         base_name.  Strip redundant slashes from ///.
115344 2006-07-03  Jim Meyering  <jim@meyering.net>
115346         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
115347         macro is used before the first cycle_check call.
115349 2006-07-03  Eric Blake  <ebb9@byu.net>
115351         * modules/dirname (Depends-on): Add xstrndup.
115353 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
115355         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
115356         test cases, so that config.log is a bit easier to follow.
115358 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
115360         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
115361         both are 64 bits, since this seems to be the tradition, and this
115362         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
115363         we ever run into a host that prefers long long to long in this
115364         case, we'll need another configure-time test.  Problem reported by
115365         Jim Meyering.
115367 2006-07-02  Eric Blake  <ebb9@byu.net>
115369         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
115371 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
115373         * modules/inttypes (Depends-on): No longer depends on stdint.
115374         * modules/stdint (Description): Say more about assumptions.
115375         Say that the fast types might differ.  Say macros are used.
115376         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
115377         (Makefile.am): Revise list of substituted symbols to match
115378         new stdint.m4.
115379         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
115380         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
115381         * tests/test-stdint.c (verify_same_types)
115382         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
115383         the code conforms to C99/C89.
115384         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
115385         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
115387 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
115389         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
115390         but fix a bug, by requiring at least 64 bits.
115391         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
115392         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
115393         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
115394         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
115396         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
115397         changes.  Make 2.59 a prerequisite.  Check and substitute for
115398         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
115399         inttypes.h.  Do not use special include files; just use the
115400         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
115401         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
115402         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
115403         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
115404         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
115405         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
115406         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
115407         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
115408         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
115409         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
115410         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
115411         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
115412         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
115413         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
115414         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
115415         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
115416         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
115417         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
115418         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
115419         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
115420         WINT_MAX.  Check for C99 conformance more strictly, by detecting
115421         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
115422         not check for things that C99 does not require, e.g., int8_t.  If
115423         a test isn't needed unless <stdint.h> isn't working, and is
115424         unlikely to be needed for any other reason, then don't do it
115425         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
115426         size_t, since we assume C89 freestanding at least.  Do not check
115427         for sig_atomic_t, wchar_t, or wint_t, since the code now does
115428         the right thing even if the types are not defined.  Instead use:
115429         (gl_STDINT_TYPE_PROPERTIES): New macro.
115430         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
115431         testing whether <sys/types.h> clashes, as Autoconf does this for
115432         us now.  All uses removed.
115433         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
115434         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
115435         (gl_CHECK_TYPE_SAME):
115436         Remove; no longer needed.
115437         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
115438         exists, since we'll return 0 anyway in that case.
115439         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
115441 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
115443         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
115444         possible collision with system files.
115445         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
115446         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
115447         WCHAR_MIN and WCHAR_MAX in this case.
115448         (<stddef.h>): Do not include; no longer needed.
115449         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
115450         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
115451         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
115452         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
115453         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
115454         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
115455         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
115456         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
115457         !defined(__c99))]: Include in this case too, since it's harmless
115458         now.
115459         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
115460         dangerous to do so.
115461         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
115462         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
115463         (_STDINT_MIN, _STDINT_MAX): New macros.
115464         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
115465         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
115466         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
115467         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
115468         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
115469         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
115470         macros, not typedefs; this simplifies things quite a bit.
115471         Use long int for all types narrower than int64_t.
115472         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
115473         Define in terms of long long int or int64_t or long int,
115474         not int64_t or int32_t.  This saves some compile-time testing.
115475         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
115476         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
115477         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
115478         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
115479         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
115480         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
115481         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
115482         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
115483         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
115484         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
115485         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
115486         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
115487         undef any previous version and define our own version, for
115488         simplicity and consistency with the new macros for types.
115489         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
115490         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
115491         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
115492         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
115493         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
115494         @WINT_T_SUFFIX@ to keep things simple here.
115495         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
115496         Simplify by assuming typical 8/16/32/64 host, since we're
115497         already doing that elsewhere anyway.
115498         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
115499         and assume long long int is 64 bits if available.  This
115500         speeds up 'configure'.
115502 2006-07-01  Eric Blake  <ebb9@byu.net>
115504         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
115505         Reported by Andreas Buening.
115507 2006-07-01  Eric Blake  <ebb9@byu.net>
115509         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
115511 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
115513         * lib/getaddrinfo.c: fixed typo
115515 2006-06-29  Jim Meyering  <jim@meyering.net>
115517         * modules/strftime (Maintainer): Add my name, since with the
115518         FPRINTFTIME changes strftime.c has forked from glibc.
115520 2006-06-29  Eric Blake  <ebb9@byu.net>
115522         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
115524 2006-06-29  Eric Blake  <ebb9@byu.net>
115526         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
115528 2006-06-29  Eric Blake  <ebb9@byu.net>
115530         * lib/stat_.h: New file.
115532 2006-06-29  Eric Blake  <ebb9@byu.net>
115534         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
115535         unused static function.
115537 2006-06-29  Eric Blake  <ebb9@byu.net>
115539         * doc/functions.texi (Function Portability): Document missing lstat
115540         on mingw.
115542 2006-06-29  Eric Blake  <ebb9@byu.net>
115544         * MODULES.html.sh: Add sys_stat.
115545         * modules/sys_stat: New module.
115546         * modules/mkstemp (Depends-on): Add sys_stat.
115548 2006-06-29  Derek R. Price  <derek@ximbiot.com>
115550         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
115552 2006-06-29  Derek R. Price  <derek@ximbiot.com>
115554         * m4/c-bs-a.m4: Removed.
115556 2006-06-29  Derek R. Price  <derek@ximbiot.com>
115558         * lib/strftime.c: Assume strftime() exists.
115560 2006-06-29  Derek Price  <derek@ximbiot.com>
115562         * modules/c-bs-a: Removed - \a is C89.
115563         * MODULES.html.sh: Remove c-bs-a.
115565 2006-06-29  Bruno Haible  <bruno@clisp.org>
115567         * modules/wcwidth (License): Change to LGPL.
115569 2006-06-28  Simon Josefsson  <jas@extundo.com>
115571         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
115572         on _WIN32.
115574         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
115575         getnameinfo.
115577 2006-06-28  Simon Josefsson  <jas@extundo.com>
115579         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
115581 2006-06-28  Simon Josefsson  <jas@extundo.com>
115583         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
115584         functions there.  It will succeed on Windows XP, but on Windows
115585         2000 and (presumably) earlier, it will fail, and use the internal
115586         re-implementation.
115587         (use_win32_p): New function.
115588         (getaddrinfo): Use strtoul on servname, to support numeric ports.
115589         Support AI_NUMERICSERV to disable getservbyname.
115590         (getnameinfo): New function, only supports
115591         NI_NUMERICHOST|NI_NUMERICSERV for now.
115593         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
115594         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
115595         getnameinfo.
115597 2006-06-28  Eric Blake  <ebb9@byu.net>
115599         * modules/wcwidth: New file.
115600         * modules/mbchar (Depends-on): Add wcwidth.
115601         * modules/mbswidth (Depends-on): Add wcwidth.
115602         * MODULES.html.sh: Add wcwidth.
115604 2006-06-28  Eric Blake  <ebb9@byu.net>
115606         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
115607         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
115609 2006-06-28  Eric Blake  <ebb9@byu.net>
115611         * lib/xvasprintf.h: Fix comments.
115613 2006-06-28  Eric Blake  <ebb9@byu.net>
115615         * lib/mbchar.h (wcwidth): Include wcwidth.h.
115616         * lib/mbswidth.c (wcwidth): Move from here...
115617         * lib/wcwidth.h: ...to this new file.
115619 2006-06-28  Derek R. Price  <derek@ximbiot.com>
115621         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
115623         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
115624         it's obsolete.
115625         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
115627 2006-06-28  Derek R. Price  <derek@ximbiot.com>
115629         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
115630         Autoconf 2.60 says this stuff was obsolete.
115632 2006-06-28  Bruno Haible  <bruno@clisp.org>
115634         * modules/wcwidth (Files): Add m4/wchar_t.m4.
115636 2006-06-28  Bruno Haible  <bruno@clisp.org>
115638         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
115639         gt_TYPE_WCHAR_T.
115641 2006-06-28  Bruno Haible  <bruno@clisp.org>
115643         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
115644         declaration for wcwidth.
115645         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
115647 2006-06-28  Bruno Haible  <bruno@clisp.org>
115649         * lib/mkdtemp.c [MINGW]: Include <io.h>.
115650         (mkdir): Define using _mkdir.
115652 2006-06-28  Bruno Haible  <bruno@clisp.org>
115654         * lib/getaddrinfo.h: Fix POSIX URL.
115655         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
115656         _WIN32.
115657         (use_win32_p): Make static.
115658         (getaddrinfo): Reject service name if it is empty or does not consist
115659         solely of decimal digits, or if its value is > 65535.
115660         (getnameinfo): Remove useless casts.
115662 2006-06-27  Simon Josefsson  <jas@extundo.com>
115664         * modules/sys_select: New file, suggested by Bruno Haible, Paul
115665         Eggert and Martin Lambers.
115667 2006-06-27  Simon Josefsson  <jas@extundo.com>
115669         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
115670         Eggert and Martin Lambers.
115672 2006-06-27  Bruno Haible  <bruno@clisp.org>
115674         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
115675         result to 0, not to empty.
115676         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
115678 2006-06-27  Bruno Haible  <bruno@clisp.org>
115680         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
115682 2006-06-26  Simon Josefsson  <jas@extundo.com>
115684         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
115685         present.
115687 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
115689         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
115690         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
115691         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
115693 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
115695         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
115697 2006-06-26  Bruno Haible  <bruno@clisp.org>
115699         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
115701 2006-06-26  Bruno Haible  <bruno@clisp.org>
115703         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
115705 2006-06-26  Bruno Haible  <bruno@clisp.org>
115707         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
115708         SGI C compiler in pre-C99 mode.
115709         Suggested by Mark D. Baushke and Larry Jones.
115711 2006-06-26  Bruno Haible  <bruno@clisp.org>
115713         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
115714         WCHAR_MAX.
115715         Reported by Mark D. Baushke and Larry Jones.
115717 2006-06-26  Bruno Haible  <bruno@clisp.org>
115719         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
115720         in pre-C99 mode.
115721         Suggested by Mark D. Baushke and Larry Jones.
115723 2006-06-23  Simon Josefsson  <jas@extundo.com>
115724             Bruno Haible  <bruno@clisp.org>
115726         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
115727         Emit mostlyclean-local rule.
115728         (func_emit_tests_Makefile_am): Likewise.
115729         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
115731 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
115733         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
115735 2006-06-23  Bruno Haible  <bruno@clisp.org>
115737         * tests/test-stdint.c: Update to match ISO C 99 Technical
115738         Corrigendum 1.
115740 2006-06-23  Bruno Haible  <bruno@clisp.org>
115742         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
115744 2006-06-23  Bruno Haible  <bruno@clisp.org>
115746         * lib/stdint_.h: Treat IRIX like OpenBSD.
115748 2006-06-23  Bruno Haible  <bruno@clisp.org>
115750         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
115751         ISO C 99 Technical Corrigendum 1.
115753 2006-06-22  Simon Josefsson  <jas@extundo.com>
115755         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
115756         MinGW.
115758 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
115760         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
115761         needed.  Some compiler complained about some of them.  Problem reported
115762         by Larry Jones in
115763         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
115765 2006-06-21  Simon Josefsson  <jas@extundo.com>
115767         * tests/test-getaddrinfo.c: New file.
115769         * modules/getaddrinfo-tests: New file.
115771         * MODULES.html.sh: Add inet_pton.
115773         * modules/inet_pton: New file.
115775 2006-06-21  Simon Josefsson  <jas@extundo.com>
115777         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
115778         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
115779         of using the (limited) gnulib implementation on Windows XP.
115781         * m4/inet_pton.m4: New file.
115783 2006-06-21  Simon Josefsson  <jas@extundo.com>
115785         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
115786         variable.
115788         * lib/socket_.h: Don't define WINVER.
115790         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
115791         slightly modified to work in gnulib.
115793 2006-06-21  Simon Josefsson  <jas@extundo.com>
115795         * doc/gnulib.texi (Windows sockets): Add.
115797 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
115799         * lib/read-file.c (fread_file): Start with buffer allocation of
115800         0 bytes rather than 1 byte; this simplifies the code.
115801         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
115802         code to free buffer and save/restore errno.
115803         (internal_read_file): Remove unused local.
115805 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
115807         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
115808         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
115809         Problem reported by Denis Excoffier in
115810         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
115812 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115814         * modules/sys_socket, modules/socklen: Include sys/types since
115815         FreeBSD 4.x's sys/socket.h needs it.
115817 2006-06-19  Simon Josefsson  <jas@extundo.com>
115819         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
115821 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
115823         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
115825 2006-06-19  Bruno Haible  <bruno@clisp.org>
115827         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
115828         and FULL_PATH_INTTYPES_H in angle brackets.
115829         Reported by Mark D. Baushke <mdb@gnu.org>.
115831 2006-06-17  Eric Blake  <ebb9@byu.net>
115833         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
115834         errno.
115836 2006-06-17  Bruno Haible  <bruno@clisp.org>
115838         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
115839         <sys/inttypes.h>.
115841 2006-06-17  Bruno Haible  <bruno@clisp.org>
115843         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
115844         whether errno is declared. Assume <errno.h> declares errno.
115846 2006-06-17  Bruno Haible  <bruno@clisp.org>
115848         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
115850 2006-06-17  Bruno Haible  <bruno@clisp.org>
115852         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
115853         problem on Solaris 2.5.1.
115855 2006-06-16  Eric Blake  <ebb9@byu.net>
115857         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
115858         * lib/unicodeio.c [!defined errno]: Likewise.
115859         * lib/strtol.c [!defined errno]: Likewise.
115860         * lib/strtod.c [!defined errno]: Likewise.
115862 2006-06-15  Eric Blake  <ebb9@byu.net>
115864         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
115866 2006-06-15  Eric Blake  <ebb9@byu.net>
115868         * config/srclist.txt (ssize_t.m4): Lose sync.
115870 2006-06-15  Bruno Haible  <bruno@clisp.org>
115872         * modules/stdint (Files): Include m4/full-header-path.m4,
115873         m4/size_max.m4, m4/wchar_t.m4.
115874         (Makefile.am): Many more substitutions.
115875         * modules/stdint-tests: New file.
115876         * tests/test-stdint.c: New file.
115878 2006-06-15  Bruno Haible  <bruno@clisp.org>
115880         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
115881         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
115882         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
115883         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
115884         gl_CHECK_TYPE_SAME): New macros.
115886 2006-06-15  Bruno Haible  <bruno@clisp.org>
115888         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
115890 2006-06-15  Bruno Haible  <bruno@clisp.org>
115892         * lib/stdint_.h: Rewritten to be fully auto-configured.
115893         Fixes bug on HP-UX/IA64.
115895 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
115897         * lib/getdate.y (__attribute__): Don't define if already defined.
115898         Problem reported by Larry Jones.
115899         * lib/utimens.c (__attribute__): Likewise.
115901 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
115903         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
115904         reported by Andreas Schwab.
115906 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115907             Bruno Haible  <bruno@clisp.org>
115909         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
115910         check for the declaration of strnlen and a run test that exposes the
115911         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
115912         rpl_strndup.
115914 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115915             Bruno Haible  <bruno@clisp.org>
115917         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
115919 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115921         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
115922         compile test, for Tru64 4.0D.
115924 2006-05-28  Karl Berry  <karl@gnu.org>
115926         * config/srclist.txt (printf-args.c): lose sync.
115928 2006-05-26  Martin Lambers  <marlam@marlam.de>
115930         * lib/getpass.c: Updates the test for the native W32 API, and adds
115931         missing includes, thus fixing compilation warnings.
115933 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
115935         * lib/exclude.c (exclude_fnmatch): New function.
115936         (excluded_file_name): Call exclude_fnmatch.
115937         * lib/exclude.h (excluded_file_name): New prototype
115939 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
115941         * lib/tempname.c (small_open, large_open): New macros.
115942         (__open, __open64) [!_LIBC]: Remove.
115943         (__gen_tempname): Use small_open and large_open instead of __open
115944         and __open64.  This fixes a portability bug on HP-UX 11.11i
115945         reported by Simon Wing-Tang in
115946         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
115948 2006-05-24  Bruno Haible  <bruno@clisp.org>
115950         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
115951         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
115952         Reported by Thorsten Maerz <torte@netztorte.de> via
115953         Aaron Stone <aaron@serendipity.cx>.
115955 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
115957         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
115958         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
115959         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
115960         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
115961         not really conditional on the cache.
115962         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
115964 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
115966         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
115967         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
115968         (my_usleep): Don't mishandle maximum value.
115970 2006-05-19  Jim Meyering  <jim@meyering.net>
115972         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
115974 2006-05-17  Bruno Haible  <bruno@clisp.org>
115976         Cygwin portability.
115977         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
115979 2006-05-17  Bruno Haible  <bruno@clisp.org>
115981         * lib/stdint_.h: Fix recognition of Cygwin.
115983 2006-05-15  Bruno Haible  <bruno@clisp.org>
115985         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
115986         on libtool patch by Ralf Wildenhues.
115988 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
115990         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
115991         test for C99 conformance; (bool) 0.5 is an integer constant
115992         expression, but (bool) -0.5 is not.  Problem reported by Fedor
115993         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
115995 2006-05-11  Simon Josefsson  <jas@extundo.com>
115997         * m4/xvasprintf.m4: Fix obvious typo.
115999 2006-05-11  Jim Meyering  <jim@meyering.net>
116001         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
116002         James Lemley.
116004 2006-05-10  Simon Josefsson  <jas@extundo.com>
116006         * lib/md4.c: Typo fix, update copyright years.
116007         (K1, K2): Don't use L because it turn computations into 64-bit on
116008         64-bit platforms.
116010 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
116012         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
116013         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
116014         unwanted sign propagation, e.g., on hosts with 64-bit int.
116015         There still are some problems with reeelly weird theoretical hosts
116016         (e.g., 33-bit int) but it's not worth worrying about now.
116017         * lib/sha1.c (rol): Likewise.
116018         (K1, K2, K3, K4): Remove unnecessary L suffix.
116020 2006-05-10  Bruno Haible  <bruno@clisp.org>
116022         * lib/des.c: Cast to avoid warnings.
116024 2006-05-09  Bruno Haible  <bruno@clisp.org>
116026         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
116027         (Depends-on): Depend also on xsize, stdarg.
116028         (configure.ac): Add gl_XVASPRINTF.
116030 2006-05-09  Bruno Haible  <bruno@clisp.org>
116032         * m4/xvasprintf.m4: New file.
116034 2006-05-09  Bruno Haible  <bruno@clisp.org>
116036         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
116037         (EOVERFLOW): Define fallback value.
116038         (xstrcat): New function.
116039         (xvasprintf): Recognize the special case of a string concatenation.
116041 2006-05-08  Eric Blake  <ebb9@byu.net>
116043         * gnulib-tool (func_version): Base copyright year on CVS date.
116044         (func_emit_copyright_notice): New function.
116045         (func_emit_lib_Makefile_am): Use it.
116046         (func_emit_tests_Makefile_am): Likewise.
116047         (func_import): Likewise.
116049 2006-05-08  Bruno Haible  <bruno@clisp.org>
116051         * modules/stdarg: New file.
116052         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
116054 2006-05-08  Bruno Haible  <bruno@clisp.org>
116056         * m4/stdarg.m4: New file, from GNU gettext.
116058 2006-05-08  Bruno Haible  <bruno@clisp.org>
116060         * config/srclist.txt (build-aux/config.rpath): different from latest
116061         release.
116063 2006-05-08  Bruno Haible  <bruno@clisp.org>
116065         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
116067 2006-05-05  Jim Meyering  <jim@meyering.net>
116069         * m4/warning.m4: New file, derived from bison's file by the same name.
116071 2006-05-03  Bruno Haible  <bruno@clisp.org>
116073         * lib/stdint_.h: Shorter URL.
116074         * lib/inttypes.h: Likewise.
116076 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
116078         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
116080 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
116082         * lib/verify.h: Document the internals better.  Most of this change
116083         was written by Bruno Haible.
116085 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
116087         * doc/verify.texi: New file, partly based on a proposal by
116088         Bruno Haible.
116090 2006-05-02  Bruno Haible  <bruno@clisp.org>
116092         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
116093         test from here...
116094         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
116096 2006-04-29  Bruno Haible  <bruno@clisp.org>
116098         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
116099         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
116101 2006-04-29  Bruno Haible  <bruno@clisp.org>
116103         * gnulib-tool: Make --update option actually work.
116105 2006-04-29  Bruno Haible  <bruno@clisp.org>
116107         * doc/gcd.texi: New file.
116108         * doc/gnulib.texi: Include it.
116110 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
116112         * lib/getdate.y (get_date): When adding relative date, start with the
116113         initial time, not with the result of the first mktime call.
116115 2006-04-25  Bruno Haible  <bruno@clisp.org>
116117         * gnulib-tool (func_import): Output the include directives in three
116118         blocks, sorted separately.
116119         Reported by Ben Pfaff <blp@cs.stanford.edu>.
116121 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
116123         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
116124         to define main with arguments, for C++.  Reported by Eric Blake.
116125         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
116126         Prefer 'int main ()' to 'int main (void)', for C++.
116127         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
116128         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
116129         for 'main', for C99 and C++.
116131 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
116133         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
116134         Don't assume that exit status -1 is valid.
116135         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
116136         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
116137         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
116138         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
116139         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
116140         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
116141         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
116142         functions can be used without declaring them, or that you can
116143         exit with status -1.
116144         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
116146 2006-04-24  Karl Berry  <karl@gnu.org>
116148         * config/srclist.txt (longdouble.m4): sync lost.
116150 2006-04-24  Eric Blake  <ebb9@byu.net>
116152         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
116154 2006-04-24  Bruno Haible  <bruno@clisp.org>
116156         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
116157         poll() implementation in AIX.
116158         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116160 2006-04-24  Bruno Haible  <bruno@clisp.org>
116162         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
116163         assigned exactly once.
116165 2006-04-23  Claudio Fontana  <claudio@gnu.org>
116166             Bruno Haible  <bruno@clisp.org>
116168         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
116169         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
116170         for AM_CPPFLAGS.
116172 2006-04-23  Bruno Haible  <bruno@clisp.org>
116174         * modules/copy-file: Depend on unistd.
116175         * modules/execute: Likewise.
116176         * modules/fatal-signal: Likewise.
116177         * modules/findprog: Likewise.
116178         * modules/mkdtemp : Likewise.
116179         * modules/pipe: Likewise.
116180         * modules/wait-process: Likewise.
116182 2006-04-23  Bruno Haible  <bruno@clisp.org>
116184         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
116185         condition was already detected.
116186         Reported by Ben Pfaff <blp@cs.stanford.edu>.
116188 2006-04-23  Bruno Haible  <bruno@clisp.org>
116190         * lib/copy-file.c: Include <unistd.h> unconditionally.
116191         * lib/execute.c: Likewise.
116192         * lib/fatal-signal.c: Likewise.
116193         * lib/findprog.c: Likewise.
116194         * lib/mkdtemp.c: Likewise.
116195         * lib/pipe.h: Likewise.
116196         * lib/pipe.c: Likewise.
116197         * lib/wait-process.h: Likewise.
116199 2006-04-23  Bruno Haible  <bruno@clisp.org>
116201         * gnulib-tool (func_usage): Fix --import description. Document
116202         --update.
116203         (func_import): Create temporary file in a temporary directory, if
116204         --dry-run is specified. Silence errors from 'grep' when there are no
116205         m4 files in $m4dir.
116206         (func_create_testdir): Silence errors from 'grep' when there are no
116207         m4 files in $m4dir.
116208         Reported by Karl Berry <karl@freefriends.org>.
116210 2006-04-20  Bruno Haible  <bruno@clisp.org>
116212         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
116213         one argument, so that the code will be portable to Autoconf 2.60.
116214         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
116215         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
116216         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
116218 2006-04-19  Derek Price  <derek@ximbiot.com>
116219             Eric Blake  <ebb9@byu.net>
116221         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
116222         rather than "/full/path.h".  Update comment to match.  Shorten &
116223         generalize m4_translit call via AS_TR_CPP.
116225 2006-04-19  Derek Price  <derek@ximbiot.com>
116226             Eric Blake  <ebb9@byu.net>
116228         * lib/inttypes.h: Correct grammar in comment.
116230 2006-04-18  Derek Price  <derek@ximbiot.com>
116231             Paul Eggert  <eggert@cs.ucla.edu>
116233         * modules/inttypes: New file.
116234         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
116236 2006-04-18  Derek Price  <derek@ximbiot.com>
116237             Paul Eggert  <eggert@cs.ucla.edu>
116239         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
116240         New files.
116242 2006-04-18  Derek Price  <derek@ximbiot.com>
116243             Paul Eggert  <eggert@cs.ucla.edu>
116245         * lib/inttypes.h: New file.
116246         * lib/strtoimax.c: Assume <inttypes.h>.
116248 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
116250         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
116251         isn't mounted.  Problem reported by Kir Kolyshkin.
116253 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
116255         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
116256         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
116257         Derek R. Price.
116258         * lib/regex.h (RE_DUP_MAX): Update comment to match current
116259         implementation.
116261 2006-04-12  Eric Blake  <ebb9@byu.net>
116263         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
116264         is now done automatically by the corresponding Autoconf macro.
116266 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
116268         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
116269         time_r.h.
116271 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116273         Merge regex changes from libc, removing some of our
116274         POSIX-conformance changes that were rejected and redoing them in a
116275         less-intrusive way.
116277         * lib/regcomp.c (re_compile_internal, init_dfa):
116278         Length arg is now size_t, not Idx.  All uses changed.
116279         (peek_token): Forward decl now says internal_function.
116280         (__re_error_msgid, __re_error_msgid_idx):
116281         Now static rather than extern with attribute_hidden.
116282         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
116283         For some reason libc prefers K&R style defns for external functions.
116284         (regerror) [!defined _LIBC]: Likewise.
116285         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
116286         (seek_collating_symbol_entry, lookup_collation_sequence_value):
116287         (build_range_exp, build_collating_symbol):
116288         Use K&R-style defn.
116289         (re_compile_fastmap): Use '\0' to memset, not 0.
116290         (utf8_sb_map): Make the calculations more obvious.
116291         (init_dfa, parse_bracket_exp, build_charclass_op):
116292         Call calloc and cast result, as glibc does.
116293         (init_word_char, fetch_token, peek_token, peek_token_bracket):
116294         (build_range_exp, build_collating_symbol):
116295         Now internal functions.
116297         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
116299         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
116300         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
116301         Don't depend on VMS; depend on __VMS instead, for POSIX
116302         namespace cleanness.
116303         (regoff_t): Define to ssize_t, not long int.
116305         Remove the REG_ macros named below.  Instead, make the old names
116306         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
116307         __USE_GNU_REGEX.
116308         (REG_BACKSLASH_ESCAPE_IN_LISTS):
116309         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
116310         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
116311         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
116312         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
116313         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
116314         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
116315         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
116316         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
116317         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
116318         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
116319         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
116320         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
116321         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
116322         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
116323         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
116324         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
116325         (REG_NREGS):
116326         Remove.  All uses replaced by the old RE_* names.
116327         (RE_BACKSLASH_ESCAPE_IN_LISTS):
116328         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
116329         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
116330         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
116331         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
116332         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
116333         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
116334         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
116335         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
116336         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
116337         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
116338         Don't bother having these macros be independent of each others'
116339         values, since they no longer exist in the POSIX name space.
116341         Rename the following member names back to their old names,
116342         unless !__USE_GNU_REGEX.  All uses changed back.
116343         (buffer): Renamed from re_buffer.
116344         (allocated): Renamed from re_allocated.
116345         (used): Renamed from re_used.
116346         (syntax): Renamed from re_syntax.
116347         (fastmap): Renamed from re_fastmap.
116348         (translate): Renamed from re_translate.
116349         (can_be_null): Renamed from re_can_be_null.
116350         (regs_allocated): Renamed from re_regs_allocated.
116351         (fastmap_accurate): Renamed from re_fastmap_accurate.
116352         (no_sub): Renamed from re_no_sub.
116353         (not_bol): Renamed from re_not_bol.
116354         (not_eol): Renamed from re_not_eol.
116355         (newline_anchor): Renamed from re_newline_anchor.
116356         (num_regs): Renamed from rm_num_regs.
116357         (start): Renamed from rm_start.
116358         (end): Renamed from rm_end.
116360         (free_state): Move up a bit.
116362         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
116363         #define to be empty.
116364         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
116365         when that is what is intended.
116366         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
116367         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
116368         (MAX): New macro.
116369         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
116370         All uses changed back to re_malloc, etc.  It's now the caller's
116371         responsibility to check for overflow; all callers changed.
116372         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
116373         (re_x2nrealloc): Remove.
116374         (free_state): Remove decl.
116376         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
116377         (re_set_registers, re_exec):
116378         Use K&R-style defn.
116380         2006-01-31  Roland McGrath  <roland@redhat.com>
116382         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
116383         Reported by Mike Frysinger <vapier@gentoo.org>.
116385         2006-01-15  Andreas Jaeger  <aj@suse.de>
116387         [BZ #1950]
116388         * lib/regex_internal.c (re_string_reconstruct): Adjust for
116389         build_wcs_upper_buffer change.
116390         (build_wcs_upper_buffer): Change return type.
116392         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
116394         * lib/regex_internal.h: Include <stdint.h> if available.
116396         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
116398         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
116400         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
116402         * lib/regcomp.c: Adjust for changed secondary hash function.
116404         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
116406         * lib/regex.h: Pretty printing.
116407         Clean up namespace a bit.
116409         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
116411         * lib/regexec.c (update_cur_sifted_state, check_arrival,
116412         check_arrival_add_next_nodes): Avoid using uninitialized variable.
116414         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
116415                     Ulrich Drepper  <drepper@redhat.com>
116417         [BZ #1302]
116418         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
116419         changed.
116420         (bitset_word_t): Renamed from bitset_word.  All uses changed.
116422         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
116424         [BZ #281]
116425         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
116426         * lib/regcomp.c: Remove unnecessary uses of
116427         unsigned RE_TRANSLATE_TYPE.
116428         * lib/regex_internal.h: Likewise.
116429         * lib/regex_internal.c: Likewise.
116430         * lib/regexec.c: Likewise.
116431         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
116433         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
116435         * lib/regexec.c (find_recover_state): Remove unnecessary
116436         initialization.
116437         (transit_state_bkref): Make DFA a const pointer.
116438         (get_subexp): Likewise.
116439         (check_arrival): Likewise.
116440         (update_cur_sifted_state): Likewise.
116441         (re_search_internal): Likewise.
116442         (prune_impossible_nodes): Likewise.
116443         (acquire_init_state_context): Likewise.
116444         (proceed_next_node): Likewise.
116445         (set_regs): Likewise.
116446         (free_fail_stack_return): Likewise.
116447         (check_arrival_expand_ecl): Mark DFA parameter as const.
116448         (check_arrival_expand_ecl_sub): Likewise.
116449         (check_subexp_limits): Likewise.
116450         (sub_epsilon_src_nodes):  Likewise.
116451         (add_epsilon_src_nodes):  Likewise.
116452         (merge_state_array): Likewise.
116453         (update_regs): Likewise.
116454         (build_trtable): Likewise.
116455         (sift_states_backward): Mark MCTX parameter as const.
116456         (build_sifted_states): Likewise.
116457         (update_cur_sifted_state): Likewise.
116458         (sift_states_mkref): Likewise.
116459         (check_arrival_expand_ecl): Mark eclosure as const.
116460         (check_dst_limits_calc_pos_1): Likewise.
116461         * lib/regex_internal.h (re_match_context_t): Make dfa a const
116462         pointer.
116464         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
116466         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
116467         (transit_state_sb): Likewise.
116468         (transit_state_mb): Likewise.
116469         (sift_states_iter_mb): Likewise.
116470         (check_arrival_add_next_nodes): Likewise.
116471         (check_node_accept_bytes): Change first parameter to pointer-to-const.
116472         [_LIBC] (re_search_2_stub): Use mempcpy.
116474         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
116475         mbrtowc for very simple UTF-8 case.
116477         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
116478         a pointer-to-const.
116479         (re_acquire_state_context): Likewise.
116480         * lib/regex_internal.h: Adjust prototypes.
116482         * lib/regex.c: Prevent using C++ compilers.
116484         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
116485         (re_acquire_state_context): Likewise.
116487 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116489         * modules/regex (Depends-on): Add ssize_t.
116491 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116493         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
116494         translation table.
116496 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116498         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
116500 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
116501             Bruno Haible  <bruno@clisp.org>
116503         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
116504         <sys/types.h> and <inttypes.h>.
116506 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116508         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
116509         `__error_t_defined', so argp.h will not typedef the former.
116511 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
116513         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
116514         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
116515         glibc names.  Even if glibc is changed to conform to POSIX, the
116516         traditional names will be available anyway, since regex depends on
116517         the extensions module.  Also, fix a longstanding typo in the
116518         implementation of Spencer ERE test #75 from grep 2.3.  Problems
116519         reported by Emanuele Giaquinta.  Also, change sense of cached
116520         variable, so that the message makes sense.
116522 2006-03-24  Simon Josefsson  <jas@extundo.com>
116524         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
116525         including some doc fixes.
116526         (base64_encode_alloc): Fix +1 bug on allocation failures.
116528 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116530         * lib/base64.c (base64_encode): Do not read past end of array with
116531         unsanitized input on systems with CHAR_BIT > 8.
116533 2006-03-24  Eric Blake  <ebb9@byu.net>
116535         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
116537 2006-03-22  Karl Berry  <karl@gnu.org>
116539         * config/srclist.txt (*setenv.[ch]): get from coreutils.
116540         * config/srclistvars.sh (COREUTILS): new var.
116542 2006-03-17  Jim Meyering  <jim@meyering.net>
116544         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
116545         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
116547 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
116549         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
116550         no longer needs it.  Instead, check that regoff_t is as least
116551         as wide as ptrdiff_t.
116553         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
116554         so that our regex.h stays compatible with the installed regex.
116555         This is helpful for installers who configure --without-included-regex.
116556         Problem reported by Emanuele Giaquinta.
116558 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
116560         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
116561         Typedef to long int, not to off_, as POSIX will likely change
116562         in that direction.
116564 2006-03-15  Eric Blake  <ebb9@byu.net>
116566         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
116568 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
116570         * lib/argp-help.c (validate_uparams): Fix typo
116571         * lib/argp-parse.c (argp_default_options): Consistently begin help
116572         messages with a lowercase letter.
116574 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
116576         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
116577         overrun buffers and shouldn't be used (much as gets shouldn't be
116578         used).
116579         * lib/time_r.c (asctime_r, ctime_r): Likewise.
116581 2006-03-08  Simon Josefsson  <jas@extundo.com>
116583         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
116584         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116586 2006-03-08  Simon Josefsson  <jas@extundo.com>
116588         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
116589         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116591 2006-03-08  Simon Josefsson  <jas@extundo.com>
116593         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
116594         signal that configure disabled the device.
116596 2006-03-08  Simon Josefsson  <jas@extundo.com>
116598         * build-aux/maint.mk: Fix refresh-po, to handle no translated
116599         languages.
116601 2006-03-07  Simon Josefsson  <jas@extundo.com>
116603         * modules/getopt (Depends-on): Add unistd.
116605         * modules/unistd: New file.
116607 2006-03-07  Simon Josefsson  <jas@extundo.com>
116609         * modules/gc-random: New file.
116611 2006-03-07  Simon Josefsson  <jas@extundo.com>
116613         * m4/unistd_h.m4: New file.
116615 2006-03-07  Simon Josefsson  <jas@extundo.com>
116617         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
116618         test to be side-effect free by storing the result in the cache
116619         variable gl_cv_lib_readline, and moving the assignment of
116620         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
116621         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116623 2006-03-07  Simon Josefsson  <jas@extundo.com>
116625         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
116626         error on missing devices (the functions will return an error).
116628         * m4/gc.m4: Move random stuff to gc-random.m4
116630 2006-03-07  Simon Josefsson  <jas@extundo.com>
116632         * lib/unistd_.h: New file.
116634 2006-03-07  Simon Josefsson  <jas@extundo.com>
116636         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
116638 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
116640         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
116641         Problem reported by Juan Manuel Guerrero.
116643 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
116645         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
116646         the unistd module.
116647         * lib/getlogin_r.c: Likewise.
116648         * lib/getlogin_r.h: Likewise.
116649         * lib/glob.c: Likewise.
116650         * lib/pagealign_alloc.c: Likewise.
116651         * lib/unistd_.h: Remove; no longer needed.
116653 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
116655         * MODULES.html.sh (Support for systems lacking POSIX:2001):
116656         Add unistd.
116657         * modules/c-stack (Depends-on): Add unistd.
116658         * modules/getlogin_r: Likewise.
116659         * modules/glob: Likewise.
116660         * modules/pagealign_alloc: Likewise.
116661         * modules/unistd (Files): Remove lib/unistd_.h.
116662         (EXTRA_DIST): Remove.
116663         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
116664         need unistd_.h.
116665         (MOSTLYCLEANFILES): Remove unistd.h-t.
116667 2006-03-03  Simon Josefsson  <jas@extundo.com>
116669         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
116671 2006-03-03  Simon Josefsson  <jas@extundo.com>
116673         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
116674         libidn and bison.
116676 2006-03-03  Simon Josefsson  <jas@extundo.com>
116678         * build-aux/maint.mk: Add indent target.
116680 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
116682         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
116683         our replacement poll.h in any case, to avoid a differing
116684         declaration from a system header.  Seen on AIX.
116686 2006-03-01  Simon Josefsson  <jas@extundo.com>
116688         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
116689         <kasal@ucw.cz>.
116691 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
116693         * modules/gettime (Depends-on): Add extensions module.
116694         * modules/nanosleep (Depends-on): Likewise.
116695         * modules/settime (Depends-on): Likewise.
116697 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
116699         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
116700         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
116701         pedantically.
116702         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
116703         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
116705         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
116706         not "==".  Reported by Ralf Wildenhues.
116708 2006-03-01  Karl Berry  <karl@gnu.org>
116710         * doc/Copyright/request-*: new files, synced from gnuorg.
116712 2006-03-01  Karl Berry  <karl@gnu.org>
116714         * config/srclist.txt (Copyright/*): new entries.
116716 2006-02-28  Simon Josefsson  <jas@extundo.com>
116718         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
116720 2006-02-27  Simon Josefsson  <jas@extundo.com>
116722         * lib/base64.h: Indent #define's.  From Jim Meyering
116723         <jim@meyering.net>.
116725 2006-02-27  Jim Meyering  <jim@meyering.net>
116727         Revert the change of 2006-02-24, so these files can continue
116728         to be sync'd from gettext.
116729         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
116730         of `config.h'.
116732 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
116734         * modules/intprops: New file.
116735         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
116736         Add intprops.
116737         * modules/getloadavg (Files): Remove lib/intprops.h.
116738         (Depends-on): Add intprops.
116739         * modules/human: Likewise.
116740         * modules/inttostr: Likewise.
116741         * modules/openat: Likewise.
116742         * modules/sig2str: Likewise.
116743         * modules/userspec: Likewise.
116744         * modules/utimecmp: Likewise.
116745         * modules/xnanosleep: Likewise.
116746         * modules/xstrtol: Likewise.
116748 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
116750         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
116751         * modules/lock-tests (TESTS): Use $(EXEEXT).
116752         * modules/tls-tests: Likewise.
116753         * modules/argp-tests: Likewise.
116754         (check_PROGRAMS): New var, replacing...
116755         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
116757 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116759         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
116760         `config.h'.
116762 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
116764         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
116766 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116768         Sync from coreutils.
116769         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
116770         gl_CHDIR_SAFER.
116772 2006-02-22  Jim Meyering  <jim@meyering.net>
116774         Sync from coreutils.
116775         * m4/chdir-safer.m4: New file.
116777 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
116779         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
116780         AT_FDCWD exceeds INT_MAX.
116781         * lib/openat.h (AT_FDCWD): Likewise.
116783 2006-02-17  Eric Blake  <address@hidden>
116785         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
116787 2006-02-16  Simon Josefsson  <jas@extundo.com>
116789         * modules/getaddrinfo (Depends-on): Add sys_socket.
116791 2006-02-15  Simon Josefsson  <jas@extundo.com>
116793         * build-aux/maint.mk: Add dsyntax-check rule.
116795 2006-02-15  Eric Blake  <ebb9@byu.net>
116797         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
116798         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
116799         'present but cannot compile' warnings on cygwin.
116800         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
116801         use ws2tcpip.h if sys/socket.h works.
116802         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
116803         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
116805 2006-02-14  Simon Josefsson  <jas@extundo.com>
116807         * modules/maintainer-makefile (Files): Rename.
116809         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
116810         and (the local) Makefile.cfg to maint-cfg.mk.
116812         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
116813         to the latter.
116815         * modules/maintainer-makefile: New module.
116817         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
116818         severaly stripped to make it possible to build it up from scratch
116819         with reliable tests.
116821         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
116822         fixes to permit overriding the default actions when configure and
116823         makefile are not available.
116825 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
116827         Sync from coreutils.
116828         * modules/lstat (Depends-on): Don't depend on xalloc.
116829         (License): Change from GPL to LGPL, since this is now simply a
116830         replacement for a libc function.
116832 2006-02-14  Jim Meyering  <jim@meyering.net>
116834         Sync from coreutils.
116836         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
116837         failure on deficient systems, and simplify gnulib lgpl dependencies.
116838         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
116839         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
116841         * lib/xalloc-die.c: Remove unused definition of N_.
116843 2006-02-14  Jim Meyering  <jim@meyering.net>
116845         Sync from coreutils.
116846         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
116847         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
116848         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
116849         double-quote uses of that variable, to accommodate the rare case in
116850         which getmntent is available in none of the libraries checked.  This
116851         happens at least on FreeBSD 5.0.
116853 2006-02-13  Simon Josefsson  <jas@extundo.com>
116855         * gnulib-tool (Usage): Fix --import, from
116856         karl@freefriends.org (Karl Berry).
116858 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
116860         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
116862 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
116864         * lib/argp-namefrob.h: Restore changes accidentally lost during the
116865         "autoupdate" on 2005-12-12.
116867 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
116869         * modules/closeout (Depends-on): Remove atexit.
116871 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
116873         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
116874         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
116876 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
116878         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
116879         __EXTENSIONS__ if this causes compilation to fail.  Problem
116880         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
116881         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
116883 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
116885         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
116886         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
116887         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
116888         All uses changed.
116890 2006-01-26  Simon Josefsson  <jas@extundo.com>
116892         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
116893         prototype is visible on mingw32.
116895         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
116896         for mingw32.
116898         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
116899         mingw32).
116901 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
116903         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
116904         attempt to open for write; this always fails, at least on POSIX
116905         hosts.  This reinstates the 2006-01-09 change, which was
116906         inadvertently removed.
116908 2006-01-26  Bruno Haible  <bruno@clisp.org>
116910         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
116911         Reported by Paul Eggert.
116913 2006-01-26  Bruno Haible  <bruno@clisp.org>
116914             Paul Eggert  <eggert@cs.ucla.edu>
116916         * lib/stdbool_.h (_Bool)
116917         [(! (defined __cplusplus || defined __BEOS__)
116918           && !defined __GNUC__
116919           && !(defined __HP_cc || defined __xlc__
116920                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
116921                || defined __sgi))]:
116922         #define to signed char in these cases too; this simplifies
116923         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
116924         etc., separately) and makes it more conservative.
116926 2006-01-25  Simon Josefsson  <jas@extundo.com>
116928         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
116929         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
116930         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
116932 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
116934         * lib/argp-namefrob.h: Bugfix. Remove stray #
116936 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
116938         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
116939         so that we test the test.
116940         Check for yet another HP-UX cc bug involving *bool |= bool.
116942 2006-01-25  Karl Berry  <karl@gnu.org>
116944         * config/srclist.txt (vasnprintf.c): sync lost.
116946 2006-01-25  Jim Meyering  <jim@meyering.net>
116948         Sync from the stable (b5) branch of coreutils:
116950         * lib/fts.c (fts_children): Don't let close() clobber errno from
116951         failed fchdir().
116953         * lib/fts.c (fts_stat): When following a symlink-to-directory,
116954         don't necessarily interpret stat-fails+lstat-succeeds as indicating
116955         a dangling symlink.  That can also happen at least for ELOOP.
116956         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
116957         FYI, this bug predates the inclusion of fts.c in coreutils.
116959         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
116960         in their own block, so pre-c99 compilers don't object.
116962         Avoid the double-free (first in fts_read, second in fts_close) that
116963         would occur when an `active' directory is made inaccessible (e.g.,
116964         via chmod a-x) during a traversal.
116965         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
116966         before returning.  Reproduce this failure by
116967         mkdir -p a/b; cd a; chmod a-x . b
116968         Reported by Stavros Passas.
116970 2006-01-25  Jim Meyering  <jim@meyering.net>
116972         * lib/fileblocks.c: Remove more useless parentheses.
116973         * lib/readutmp.h: Likewise.
116975 2006-01-25  Bruno Haible  <bruno@clisp.org>
116977         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
116978         warnings.
116979         Reported by Paul Eggert.
116981 2006-01-25  Bruno Haible  <bruno@clisp.org>
116983         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
116984         rid of a trap command. For Solaris sh.
116985         Reported by Mark D. Baushke <mdb@gnu.org>.
116987 2006-01-24  Simon Josefsson  <jas@extundo.com>
116989         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
116990         Bruno.
116992 2006-01-24  Karl Berry  <karl@gnu.org>
116994         * config/srclist.txt (argp-namefrob.h): sync lost.
116996 2006-01-24  Jim Meyering  <jim@meyering.net>
116998         * modules/openat (Files): Add lib/intprops.h.
116999         From Mark D. Baushke.
117001 2006-01-24  Jim Meyering  <jim@meyering.net>
117003         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
117004         Reported by Mark D. Baushke.
117006 2006-01-24  Jim Meyering  <jim@meyering.net>
117008         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
117010 2006-01-24  Bruno Haible  <bruno@clisp.org>
117012         * modules/strnlen (Maintainer): Change from glibc to all.
117014 2006-01-24  Bruno Haible  <bruno@clisp.org>
117016         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
117017         Patch by Paul Eggert.
117019 2006-01-24  Bruno Haible  <bruno@clisp.org>
117021         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
117022         already has it.
117023         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
117024         2005-11-26.
117026         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
117027         'signed char' to avoid problems with the built-in _Bool type.
117028         Reported by Paul Eggert on 2005-11-26.
117030 2006-01-24  Bruno Haible  <bruno@clisp.org>
117032         * gnulib-tool (func_import): Avoid constructing complicated sed
117033         expressions inside backquote.
117034         Report and solution by Mark D. Baushke <mdb@gnu.org>.
117036 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
117038         These changes imported from libc.
117039         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
117040         test and two separate function calls.
117041         * lib/strndup.c (__strndup): Add libc_hidden_def.
117043 2006-01-23  Simon Josefsson  <jas@extundo.com>
117045         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
117046         Remove the test_*_SOURCES variable: automake infers it by default.
117047         * modules/tls-tests: Likewise.
117049 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
117051         Work around porting bugs reported by Dieter in
117052         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
117053         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
117054         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
117055         Include "getopt.h" first, to check interface.
117056         (getenv): Declare only if defined HAVE_DECL_GETENV &&
117057         !HAVE_DECL_GETENV.
117058         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
117059         (__strndup): Revert to K&R-style function dfns, the glibc style.
117060         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
117061         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
117062         Include strnlen.h first, to get prototype properly.
117063         (strnlen): Renamed from __strnlen.
117064         Remove weak alias.
117066 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
117068         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
117070 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
117072         * config/srclist.txt: Adjust to reflect glibc reorganization.
117073         This affects only comments.
117075 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
117077          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
117078          Reported by Bruce Korb <bkorb@gnu.org>.
117080 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
117082         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
117083         to pacify gcc -Wswitch-default.
117085 2006-01-22  Bruno Haible  <bruno@clisp.org>
117087         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
117088         temporary buffer for sprintf, take into account the precision also
117089         for 'd', 'i', 'u', 'o', 'x', 'X'.
117091 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
117093         * modules/argp-tests: New module
117094         * tests/test-argp.c: New file
117095         * tests/test-argp-2.sh: New file
117097 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
117099         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
117100         (__argp_base_name): Removed
117101         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
117102         typo.
117103         (__argp_base_name): Provide macro definition or extern declaration
117104         depending on the configuration
117106 2006-01-20  Simon Josefsson  <jas@extundo.com>
117108         * modules/inet_ntop (Depends-on): Depend on sys_socket.
117110 2006-01-20  Simon Josefsson  <jas@extundo.com>
117112         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
117114 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
117116         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
117117         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
117118         Suggested by Bruno Haible.
117120 2006-01-20  Karl Berry  <karl@gnu.org>
117122         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
117123         until changes propagate, I guess.
117125 2006-01-19  Simon Josefsson  <jas@extundo.com>
117127         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
117129 2006-01-19  Simon Josefsson  <jas@extundo.com>
117131         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
117133 2006-01-19  Simon Josefsson  <jas@extundo.com>
117135         * gnulib-tool: Set check_PROGRAMS.
117137         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
117138         modules/des-tests, modules/gc-arcfour-tests,
117139         modules/gc-arctwo-tests, modules/gc-des-tests,
117140         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
117141         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
117142         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
117143         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
117144         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
117145         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
117146         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
117147         test_*_SOURCES.
117149 2006-01-18  Simon Josefsson  <jas@extundo.com>
117151         * modules/socklen (Depends-on): Depend on sys_socket.
117153 2006-01-18  Simon Josefsson  <jas@extundo.com>
117155         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
117156         modules/des-tests, modules/gc-arcfour-tests,
117157         modules/gc-arctwo-tests, modules/gc-des-tests,
117158         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
117159         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
117160         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
117161         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
117162         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
117163         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
117164         $(EXEEXT) to automake TESTS variable, for mingw32.
117166 2006-01-17  Simon Josefsson  <jas@extundo.com>
117168         * modules/socklen (Include): Need sys/socket.h.
117170 2006-01-17  Bruno Haible  <bruno@clisp.org>
117172         * modules/ssize_t (Include): Add <sys/types.h>.
117174 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
117176         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
117177         it's not portable and it doesn't work with cross-compiles.
117178         Problem reported by Bruno Haible.  Fix missing-$ typo in
117179         'test "gl_cv_ignore_unused_libraries" ...' that prevented
117180         -zignore from being used with Sun's C compiler.
117182 2006-01-12  Simon Josefsson  <jas@extundo.com>
117184         * lib/base64.c: Fix warning, reported by Bruno Haible
117185         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
117187 2006-01-12  Bruno Haible  <bruno@clisp.org>
117189         * modules/ldd: New file.
117190         * build-aux/ldd.sh.in: New file.
117191         * MODULES.html.sh (Support for building libraries and executables): Add
117192         ldd.
117194 2006-01-12  Bruno Haible  <bruno@clisp.org>
117196         * m4/ldd.m4: New file.
117198 2006-01-12  Bruno Haible  <bruno@clisp.org>
117200         * gnulib-tool (func_import, func_create_testdir): Don't go into an
117201         endless loop while replacing $auxdir with build-aux.
117203 2006-01-11  Simon Josefsson  <jas@extundo.com>
117205         * lib/stdint_.h (SIZE_MAX): Add missing (.
117207 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
117209         Sync from coreutils.
117210         * lib/md5.c: Fix commentary typos.
117211         (alignof, UNALIGNED_P): No need for a GCC-specific version.
117212         * lib/md5.h (__attribute__): Remove; unused.
117213         * lib/sha1.c: Fix commentary to match md5 better.
117214         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
117215         so that we don't need to worry about alignment.  All uses changed.
117216         This merges the 2005-10-28 md5 change into sha1.
117218 2006-01-11  Jim Meyering  <jim@meyering.net>
117220         Sync from coreutils.
117221         * lib/md5.c (OP): Fix spacing.
117223 2006-01-11  Bruno Haible  <bruno@clisp.org>
117225         Ensure automatic ordering between gl_LOCK and gl_ARGP.
117226         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
117227         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
117229 2006-01-11  Bruno Haible  <bruno@clisp.org>
117231         Ensure automatic ordering between gl_LOCK and gl_ARGP.
117232         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
117233         the "early" section as well.
117235 2006-01-11  Bruno Haible  <bruno@clisp.org>
117237         Avoid "ar: no archive members specified" error on MacOS X.
117238         * gnulib-tool (func_modules_add_dummy): New function.
117239         (func_import, func_create_testdir): Invoke it.
117241 2006-01-11  Bruno Haible  <bruno@clisp.org>
117243         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
117244         with $auxdir in AC_CONFIG_FILES statements.
117246 2006-01-11  Bruno Haible  <bruno@clisp.org>
117248         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
117249         Initialize also noinst_HEADERS to empty.
117251 2006-01-11  Bruno Haible  <bruno@clisp.org>
117253         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
117254         variables.
117255         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
117256         autoreconf.
117258 2006-01-11  Bruno Haible  <bruno@clisp.org>
117260         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
117261         overridable by the user.
117262         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117264 2006-01-10  Simon Josefsson  <jas@extundo.com>
117266         * modules/sys_socket: New file.
117268 2006-01-10  Simon Josefsson  <jas@extundo.com>
117270         * m4/sys_socket_h.m4: New file.
117272 2006-01-10  Simon Josefsson  <jas@extundo.com>
117274         * lib/socket_.h: New file.
117276 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
117278         * modules/readutmp (Maintainer): Add myself.
117280 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
117282         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
117283         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
117284         People who are still concerned with buggy memcmp implementations
117285         can invoke gl_FUNC_MEMCMP themselves.
117287 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
117289         * lib/regex_internal.h (BITSET_WORD_BITS):
117290         Work around a bug in 64-bit PGC (before version 6.1-2), where the
117291         preprocessor mishandles large unsigned values as if they were signed.
117292         Problem reported by Claudio Fontana in
117293         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
117295 2006-01-10  Jim Meyering  <jim@meyering.net>
117297         Avoid the double-free (first in fts_read, second in fts_close) that
117298         would occur when an `active' directory is made inaccessible (e.g.,
117299         via chmod a-x) during a traversal.
117300         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
117301         before returning.  Reproduce this failure by
117302         mkdir -p a/b; cd a; chmod a-x . b
117303         Reported by Stavros Passas.
117305         Sync from coreutils.
117306         * lib/sha1.c: Tweak grammar in a comment.
117308 2006-01-10  Jim Meyering  <jim@meyering.net>
117310         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
117311         Patch by Joerg Sonnenberger.
117313 2006-01-10  Bruno Haible  <bruno@clisp.org>
117315         * modules/readutmp: Depend on module free.
117316         * modules/strtok_r: Depend on module restrict.
117318 2006-01-10  Bruno Haible  <bruno@clisp.org>
117320         * modules/gettext (configure.ac): Add an invocation of
117321         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
117323 2006-01-10  Bruno Haible  <bruno@clisp.org>
117325         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
117326         Reported by Werner Lemberg <wl@gnu.org>.
117328 2006-01-10  Bruno Haible  <bruno@clisp.org>
117330         * lib/localcharset.c: Update from GNU gettext.
117332 2006-01-10  Bruno Haible  <bruno@clisp.org>
117334         * lib/argp.h (__const): Remove macro. Use const instead.
117335         * lib/argp-fmtstream.h (__const): Likewise.
117336         * lib/glob_.h (__const): Remove macro.
117337         * lib/glob-libc.h: Use const instead of __const.
117339 2006-01-10  Bruno Haible  <bruno@clisp.org>
117341         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
117342         variable.
117343         Needed to avoid an automake error regarding the 'gettext' module.
117345 2006-01-09  Simon Josefsson  <jas@extundo.com>
117347         * modules/inet_ntop (Depends-on): Add restrict.
117349 2006-01-09  Simon Josefsson  <jas@extundo.com>
117351         * modules/gc-rijndael-tests (License): Put under LGPL.
117353         * modules/gc-des-tests (License): Likewise.
117355         * modules/gc-arcfour-tests (License): Likewise.
117357         * modules/gc-arctwo-tests (License): Likewise.
117359         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
117361         * modules/gc-hmac-sha1-tests (Files): Likewise.
117363         * modules/gc-hmac-md5-tests (License): Likewise.
117365         * modules/gc-sha1-tests (License): Likewise.
117367         * modules/gc-md5-tests (License): Likewise.
117369         * modules/gc-md4-tests (License): Likewise.
117371         * modules/gc-md2-tests (License): Likewise.
117373         * modules/gc-tests (License): Likewise.
117375         * modules/des-tests (License): Likewise.
117377         * modules/md4-tests (License): Likewise.
117379         * modules/md2-tests (License): Likewise.
117381 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117383         Sync from coreutils:
117385         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
117386         * modules/lib-ignore: New file.
117387         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
117388         chdir-safer.m4, lchmod.m4.
117389         * modules/openat: Add mkdirat.c, openat-priv.h.
117391 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117393         Sync from coreutils.
117394         * m4/lib-ignore.m4: New file.
117395         * m4/lchmod.m4: New file.
117397 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117399         Sync from coreutils.
117400         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
117401         for write access: POSIX says that must fail.
117402         * lib/fts.c (diropen): Likewise.
117403         * lib/save-cwd.c (save_cwd): Likewise.
117404         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
117405         well, for minor improvements on hosts that lack O_DIRECTORY.
117406         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
117407         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
117408         Fall back on chown if open failed with EACCES.
117410         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
117411         Report an error at compile-time if only a 1-second nominal clock
117412         resolution is found.
117414         * lib/lchmod.h: New file.
117415         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
117416         (make_dir_parents): Use lchown rather than chown, and
117417         lchmod rather than chmod.
117419         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
117420         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
117421         "proc" reported by n0dalus.
117423         * lib/mountlist.c: Include <limits.h>.
117424         (dev_from_mount_options)
117425         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
117426         New function.  It no longer assumes "dev=" has the System V meaning
117427         on Linux (since it doesn't).  It also parses "dev=" more carefully.
117428         (read_file_system_list)
117429         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
117430         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
117431         dev= in that case.
117433         * lib/posixtm.h (PDS_PRE_2000): New macro.
117434         * lib/posixtm.c (year): Arg is now syntax_bits rather than
117435         allow_century.  All usages changed.  Reject dates outside the range
117436         1969-1999 if PDS_PRE_2000 is used.
117438 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117440         Sync from coreutils.
117441         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
117442         (Time of day items): Mention the possibility of leap seconds.
117443         Problem reported by Dr. David Alan Gilbert.
117445 2006-01-09  Jim Meyering  <jim@meyering.net>
117447         Sync from coreutils.
117449         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
117451         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
117453         * lib/modechange.c (mode_compile): Reject an invalid mode string
117454         that starts with an octal digit.  From Andreas Gruenbacher.
117456         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
117457         and dup to open_safer and dup_safer, respectively.
117458         (openat_permissive): Fix typo in comment.
117460         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
117461         "gettext.h"; either no longer needed or are guaranteed by openat.h.
117462         (_): Remove; no longer needed.
117463         (openat): Renamed from rpl_openat; no need for rpl_openat
117464         since openat.h renames openat for us.
117465         Replace most of the body with a call to openat_permissive,
117466         to avoid duplicate code.
117467         Port to (probably hypothetical) environments were mode_t is
117468         wider than int.
117469         (openat_permissive): Require mode arg, so that we can check
117470         types better.  Put it just after flags.  Change cwd failure
117471         indicator from pointer-to-bool to pointer-to-errno-value.
117472         All callers changed.
117473         Invoke openat_save_fail and/or openat_restore_fail if
117474         cwd_errno is null, so that openat can call us.
117475         (openat_permissive, fdopendir, fstatat, unlinkat):
117476         Simplify errno handling to avoid some duplicate code,
117477         as it's OK to set errno on success.
117478         * lib/openat.h: Revamp code so that function macros depend on
117479         __OPENAT_PREFIX only, not also on AT_FDCWD.
117480         (openat_ro): Remove.  Caller changed to use openat_permissive.
117481         (openat_permissive): Now a macro, if not a function.
117482         (openat_restore_fail, openat_save_fail): Now always functions,
117483         since mkdirat needs them even if __OPENAT_PREFIX is defined.
117485         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
117486         and openat.c.
117487         * lib/mkdirat.c: Include openat-priv.h.
117488         Remove definitions of macros defined therein.
117489         * lib/openat.c: Likewise.
117491         * lib/mkdirat.c (mkdirat): New file and function.
117492         * lib/openat.h (mkdirat): Declare.
117494         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
117496         * lib/openat.h (openat_permissive): Declare.
117497         (openat_ro): Define.
117499         * lib/openat.c (EXPECTED_ERRNO): New macro.
117500         (openat_permissive): New function -- used in remove.c rewrite.
117501         (all functions): Set errno just before returning, only if there
117502         was an actual failure.
117503         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
117505         Emulate openat-family functions using Linux's procfs, if possible.
117506         Idea and some code based on Ulrich Drepper's glibc changes.
117508         * lib/openat.c: (BUILD_PROC_NAME): New macro.
117509         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
117510         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
117511         before falling back on save_cwd and restore_cwd.
117512         (fdopendir, fstatat, unlinkat): Likewise.
117514         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
117515         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
117517         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
117518         as second argument to va_arg.  Otherwise, some versions of gcc
117519         warn that `if this code is reached, the program will abort'.
117521 2006-01-09  Jim Meyering  <jim@meyering.net>
117523         Sync from coreutils.
117524         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
117525         Require openat-priv.h.
117527 2006-01-09  Bruno Haible  <bruno@clisp.org>
117529         * modules/strnlen (Include): Use strnlen.h.
117531 2006-01-09  Bruno Haible  <bruno@clisp.org>
117533         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
117535 2006-01-09  Bruno Haible  <bruno@clisp.org>
117537         * lib/sysexit_.h (EX_OK): New macro.
117538         Suggested by Martin Lambers <marlam@marlam.de>.
117540 2006-01-09  Bruno Haible  <bruno@clisp.org>
117542         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
117543         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
117545 2006-01-09  Bruno Haible  <bruno@clisp.org>
117547         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
117548         numbers.
117550 2006-01-09  Bruno Haible  <bruno@clisp.org>
117552         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
117553         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
117554         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
117555         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
117557 2006-01-09  Bruno Haible  <bruno@clisp.org>
117559         * build-aux/javacomp.sh.in: New file, moved from lib/.
117560         * modules/javacomp-script (Files): Update.
117561         (configure.ac): Add AC_CONFIG_FILES invocation.
117562         (EXTRA_DIST): Remove variable.
117564         * build-aux/javaexec.sh.in: New file, moved from lib/.
117565         * modules/javaexec (Files): Update.
117566         (configure.ac): Add AC_CONFIG_FILES invocation.
117567         (EXTRA_DIST): Remove javaexec.sh.in.
117569         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
117570         * modules/csharpcomp-script (Files): Update.
117571         (configure.ac): Add AC_CONFIG_FILES invocation.
117572         (EXTRA_DIST): Remove variable.
117574         * build-aux/csharpexec.sh.in: New file, moved from lib/.
117575         * modules/csharpexec (Files): Update.
117576         (configure.ac): Add AC_CONFIG_FILES invocation.
117577         (EXTRA_DIST): Remove csharpexec.sh.in.
117579 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
117581         Sync from coreutils.
117583         Add POSIX ACL support
117584         * lib/acl.h (copy_acl, set_acl): Add declarations.
117585         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
117586         systems other than Linux.
117587         (chmod_or_fchmod): New function: use fchmod when possible,
117588         and chmod otherwise.
117589         (file_has_acl): Add a POSIX ACL implementation, with a
117590         Linux-specific subcase.
117591         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
117592         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
117593         acls are unsupported.
117594         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
117595         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
117596         are unsupported.
117598 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
117600         Sync from coreutils.
117601         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
117603 2006-01-07  Bruno Haible  <bruno@clisp.org>
117605         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
117606         gl_EARLY.
117608 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
117610         * lib/strftime.c (tzname): Don't declare if it is already #defined.
117611         Problem reported for Mingw by Mark Junker.
117613 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
117615         * README: Gnulib normally doesn't generate a tarball.
117617 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
117619         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
117620         long int, not int, for nanosecond counts, so that people who are
117621         used to POSIX struct timespec won't be surprised.  Reported by Jim
117622         Meyering.
117624 2005-12-28  Bruno Haible  <bruno@clisp.org>
117626         * build-aux/config.rpath: Update from GNU gettext.
117628 2005-12-16  Jim Meyering  <jim@meyering.net>
117630         * modules/fprintftime: New module.
117631         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
117633 2005-12-16  Jim Meyering  <jim@meyering.net>
117635         * m4/fprintftime.m4: New file.
117637 2005-12-16  Jim Meyering  <jim@meyering.net>
117639         * lib/fprintftime.c, lib/fprintftime.h: New files.
117641 2005-12-15  Simon Josefsson  <jas@extundo.com>
117643         * modules/socklen (configure.ac): Fix M4 macro name, to align with
117644         new m4/socklen.m4.
117646 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
117648         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
117649         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
117651 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
117653         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
117654         * lib/argp-help.c (fill_in_uparams): Check if the constructed
117655         struct uparams is valid. Fall back to the default values if it is
117656         not.
117658 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117660         * modules/argp (Files): Add argp-pin.c
117661         (Depends-on): dirname
117662         (lib_SOURCES): Add argp-pin.c
117664 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117666         * m4/argp.m4:  Check if program_invocation_name and
117667         program_invocation_short_name are declared and define appropriate
117668         macros if they are not.
117670 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117672         * lib/argp-help.c (__argp_base_name): New function
117673         (__argp_short_program_name): Rewrite using __argp_base_name
117674         * lib/argp-namefrob.h: Define program_invocation_name and
117675         program_invocation_short_name if requested
117676         (__argp_base_name): Add prototype
117677         * lib/argp-parse.c (argp_def): Use gettext wrappers
117678         (argp_default_parser): Use __argp_base_name
117679         * lib/argp-pin.c: New file. Defines program_invocation_name and
117680         program_invocation_short_name on systems that lack them.
117682 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
117684         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
117685         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
117686         porting problem reported by Georg Schwarz in
117687         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
117689 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
117691         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
117692         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
117693         porting problem reported by Georg Schwarz in
117694         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
117696 2005-12-05  Bruno Haible  <bruno@clisp.org>
117698         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
117699         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
117700         Reported by Mark Junker <mjscod@gmx.de>.
117702 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
117704         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
117705         Use implementation from Albert Chin, with some
117706         comments/corrections by Stepan Kasal and myself.
117708 2005-12-02  Bruno Haible  <bruno@clisp.org>
117710         * gnulib-tool (func_import): Accept GPLed build tool modules when
117711         --lgpl is given.
117712         * modules/csharpcomp-script: New file.
117713         * modules/csharpcomp: Depend on it.
117714         * modules/javacomp-script: New file.
117715         * modules/javacomp: Depend on it.
117716         Suggested by Simon Josefsson.
117718 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
117720         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
117721         statement, to work around an HP-UX 10.20 compiler bug reported by
117722         Peter O'Gorman.
117724 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
117726         * modules/savedir (Depends-on): Add openat.
117728 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
117730         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
117731         (uintmax_t) [defined uintmax_t]: Do not declare.
117732         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
117733         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
117734         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
117735         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
117736         sake of portability to weird hosts that C allows (though we don't
117737         know of any practical examples).
117739         * lib/savedir.h (fdsavedir): New decl.
117740         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
117741         contains most of the former guts of savedir.
117742         (savedir): Use savedirstream.
117743         Include "openat.h".
117745 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
117747         * modules/obstack (Files): Add m4/ulonglong.m4.
117748         Problem reported by Davide Angelocola.
117750 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
117752         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
117753         coreutils no longer futzes with rounding modes.
117755 2005-11-14  Jim Meyering  <jim@meyering.net>
117757         * lib/mkstemp-safer.c: Include <config.h>, required for possible
117758         replacement of mkstemp.
117760 2005-11-10  Simon Josefsson  <jas@extundo.com>
117762         * lib/readline.c: Remove EOL.
117764 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
117766         * modules/gethrxtime (Depends-on): Add gettime.
117768 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
117770         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
117771         or gettimeofday; no longer needed.
117773 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
117775         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
117776         time business.
117777         (gethrxtime) [! (HAVE_NANOUPTIME
117778         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
117779         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
117780         our own approximation.
117782 2005-11-08  Eric Blake  <ebb9@byu.net>
117784         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
117786 2005-11-08  Eric Blake  <ebb9@byu.net>
117788         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
117790 2005-11-04  Bruno Haible  <bruno@clisp.org>
117792         * gnulib-tool: Implement --update mode.
117794 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
117796         Fix porting problem reported by Theodoros V. Kalamatianos.
117797         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
117798         Don't assume that futimes failing means we must fail.
117800 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
117802         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
117803         variables to suggest the intended function of the PATH_MAX check.
117805 2005-10-30  Kean Johnston  <jkj@sco.com>
117807         Trivial changes to support SCO systems.
117808         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
117809         as PATH_MAX.
117810         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
117811         where __ptr is null when no I/O is pending.
117813 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
117815         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
117816         leave errno alone.  Problem reported by Dmitry V. Levin.
117818 2005-10-28  Simon Josefsson  <jas@extundo.com>
117820         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
117821         Test more.
117823         * tests/test-gc-md2.c, tests/test-md2.c: New files.
117825         * modules/md2, modules/md2-tests: New files.
117827 2005-10-28  Simon Josefsson  <jas@extundo.com>
117829         * m4/inet_ntop.m4: More tests.
117831         * m4/gc-md2.m4, md2.m4: New file.
117833 2005-10-28  Simon Josefsson  <jas@extundo.com>
117835         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
117836         "restrict" keywords, as per POSIX.  Protect the function
117837         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
117838         Don't use K&R prototypes.  Check the sprintf return values.
117839         Re-define EAFNOSUPPORT if not present.  Indent.
117841         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
117842         suggested by Bruno Haible <bruno@clisp.org>.
117844         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
117846         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
117848         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
117849         libgcrypt).
117851         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
117853         * lib/md2.h, lib/md2.c: New files.
117855 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
117857         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
117858         errno alone.  Problem reported by Frederic Jolliton.
117860 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
117862         * modules/verify (License): Change from GPL to LGPL.  This is a
117863         tiny module and there are apparently near-equivalents that are
117864         under the BSD license.
117866 2005-10-24  Simon Josefsson  <jas@extundo.com>
117868         * modules/sha1: Relicense to LGPL.
117870 2005-10-24  Simon Josefsson  <jas@extundo.com>
117872         * lib/md4.h: Shrink buffer size, now that we changed the type.
117874 2005-10-23  Simon Josefsson  <jas@extundo.com>
117876         * gnulib-tool (func_import): Fix --tests-base.
117878 2005-10-22  Simon Josefsson  <jas@extundo.com>
117880         * modules/arcfour (Depends-on): Need stdint.
117882 2005-10-22  Simon Josefsson  <jas@extundo.com>
117884         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
117885         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
117887 2005-10-22  Simon Josefsson  <jas@extundo.com>
117889         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
117890         suggested by Bruno Haible <bruno@clisp.org>.
117892 2005-10-22  Simon Josefsson  <jas@extundo.com>
117894         * lib/crc.h: Include stddef.h, for size_t.
117896 2005-10-22  Simon Josefsson  <jas@extundo.com>
117898         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
117899         arcfour_context struct (simplify test vector testing in GNU
117900         Shishi).
117902 2005-10-21  Simon Josefsson  <jas@extundo.com>
117904         * modules/des, modules/des-tests: New files.
117906         * modules/gc-des, modules/gc-des-tests: New files.
117908         * tests/test-des.c, tests/test-gc-des.c: New file.
117910 2005-10-21  Simon Josefsson  <jas@extundo.com>
117912         * modules/arctwo, modules/arctwo-tests: New files.
117914         * tests/test-arctwo.c: New file.
117916         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
117918         * tests/test-gc-arctwo.c: New file.
117920 2005-10-21  Simon Josefsson  <jas@extundo.com>
117922         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
117923         Bruno Haible <bruno@clisp.org>.
117925         * m4/gc-des.m4: New file.
117927 2005-10-21  Simon Josefsson  <jas@extundo.com>
117929         * m4/arctwo.m4: New file.
117931         * m4/gc-arctwo.m4: New file.
117933 2005-10-21  Simon Josefsson  <jas@extundo.com>
117935         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
117936         block.
117938 2005-10-21  Simon Josefsson  <jas@extundo.com>
117940         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
117941         <bruno@clisp.org>.
117943         * lib/hmac-sha1.c (hmac_sha1): Likewise.
117945         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
117946         Bruno Haible <bruno@clisp.org>.
117948         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
117949         <bruno@clisp.org>.
117951 2005-10-21  Simon Josefsson  <jas@extundo.com>
117953         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
117955 2005-10-21  Simon Josefsson  <jas@extundo.com>
117957         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
117959 2005-10-21  Simon Josefsson  <jas@extundo.com>
117961         * lib/des.h, lib/des.c: New files.
117963         * lib/gc-gnulib.c: Support DES.c
117965 2005-10-21  Simon Josefsson  <jas@extundo.com>
117967         * lib/arctwo.h, lib/arctwo.c: New files.
117969         * lib/gc-gnulib.c: Support ARCTWO.
117971 2005-10-21  Simon Josefsson  <jas@extundo.com>
117973         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
117974         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117976 2005-10-21  Simon Josefsson  <jas@extundo.com>
117978         * gnulib-tool (func_import, func_create_testdir): Define automake
117979         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
117980         Makefile.am snippet),
117981         suggested by Bruno Haible <bruno@clisp.org>.
117983         * modules/gc (Makefile.am): Use it.
117985 2005-10-21  Bruno Haible  <bruno@clisp.org>
117987         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
117988         patch.
117990 2005-10-19  Simon Josefsson  <jas@extundo.com>
117992         * tests/test-gc-rijndael.c: New file.
117994         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
117996 2005-10-19  Simon Josefsson  <jas@extundo.com>
117998         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
117999         interface too.
118001 2005-10-19  Simon Josefsson  <jas@extundo.com>
118003         * tests/test-gc-arcfour.c: New file.
118005         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
118007 2005-10-19  Simon Josefsson  <jas@extundo.com>
118009         * modules/gc-md4, modules/gc-md4-tests: New file.
118011         * tests/test-gc-md4.c: New file.
118013 2005-10-19  Simon Josefsson  <jas@extundo.com>
118015         * m4/gc-md4.m4: New file.
118017 2005-10-19  Simon Josefsson  <jas@extundo.com>
118019         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
118020         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
118021         <kasal@ucw.cz>.
118023 2005-10-19  Simon Josefsson  <jas@extundo.com>
118025         * m4/gc-arcfour.m4: New file.
118027         * m4/gc-rijndael.m4: New file.
118029 2005-10-19  Simon Josefsson  <jas@extundo.com>
118031         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
118033 2005-10-19  Simon Josefsson  <jas@extundo.com>
118035         * lib/gc-gnulib.c: Support ARCFOUR.
118037 2005-10-19  Simon Josefsson  <jas@extundo.com>
118039         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
118040         support.
118042         * lib/gc.h: Add ECB enum type.
118044         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
118046 2005-10-18  Simon Josefsson  <jas@extundo.com>
118048         * tests/test-md5.c: New file.
118050         * modules/md5-tests: New file.
118052 2005-10-18  Simon Josefsson  <jas@extundo.com>
118054         * tests/test-md4.c: New file.
118056         * modules/md4, modules/md4-tests: New files.
118058 2005-10-18  Simon Josefsson  <jas@extundo.com>
118060         * m4/md4.m4: New file.
118062 2005-10-18  Simon Josefsson  <jas@extundo.com>
118064         * lib/md4.h, lib/md4.c: New files, based on md5.?.
118066 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
118068         * gnulib-tool (func_create_testdir): Omit the second check whether
118069         BUILT_SOURCES in nonempty.
118071 2005-10-17  Simon Josefsson  <jas@extundo.com>
118073         * tests/test-rijndael.c: New file.
118075 2005-10-17  Simon Josefsson  <jas@extundo.com>
118077         * modules/sha1: Depend on stdint instead of md5.
118079         * modules/md5: Depend on stdint, remove uint32_t.
118081 2005-10-17  Simon Josefsson  <jas@extundo.com>
118083         * modules/gc-sha1-tests: New file.
118085         * tests/test-gc-sha1.c: New file.
118087 2005-10-17  Simon Josefsson  <jas@extundo.com>
118089         * m4/md5.m4: Remove call to uint32_t.m4.
118091 2005-10-17  Simon Josefsson  <jas@extundo.com>
118093         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
118095         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
118096         md5.h.
118098         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
118100         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
118102 2005-10-17  Simon Josefsson  <jas@extundo.com>
118104         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
118106 2005-10-17  Simon Josefsson  <jas@extundo.com>
118108         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
118110 2005-10-17  Simon Josefsson  <jas@extundo.com>
118112         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
118114         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
118116 2005-10-17  Bruno Haible  <bruno@clisp.org>
118118         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
118119         that it can also be used in a test.
118121 2005-10-16  Bruno Haible  <bruno@clisp.org>
118123         * gnulib-tool (func_emit_tests_Makefile_am): Also define
118124         TESTS_ENVIRONMENT, so that individual tests can augment it.
118126         * gnulib-tool (func_create_testdir): Use an intermediate target for
118127         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
118128         macros, like $(ALLOCA_H), which cannot be passed through the command
118129         line.
118131 2005-10-15  Simon Josefsson  <jas@extundo.com>
118133         * modules/rijndael-tests: New file.
118135         * modules/rijndael: New file.
118137 2005-10-15  Simon Josefsson  <jas@extundo.com>
118139         * m4/rijndael.m4: New file.
118141 2005-10-15  Simon Josefsson  <jas@extundo.com>
118143         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
118145         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
118147 2005-10-14  Simon Josefsson  <jas@extundo.com>
118149         * tests/test-arcfour.c: New file.
118151         * modules/arcfour, modules/arcfour-tests: New files.
118153 2005-10-14  Simon Josefsson  <jas@extundo.com>
118155         * m4/arcfour.m4: New file.
118157 2005-10-14  Simon Josefsson  <jas@extundo.com>
118159         * lib/arcfour.h, lib/arcfour.c: New files.
118161 2005-10-14  Roland McGrath  <roland@redhat.com>
118163         Import from libc.  [BZ #1331]
118164         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
118165         macro argument.
118166         Reported by Matej Vela <vela@debian.org>.
118168 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
118170         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
118171         include <wchar.h>; no longer needed.
118173 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
118175         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
118177 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
118178         and  Ulrich Drepper  <drepper@redhat.com>
118180         Import from libc.
118181         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
118182         instead of inline stream orientation test and two separate
118183         function calls.  Pay no attention to USE_IN_LIBIO.
118185 2005-10-13  Simon Josefsson  <jas@extundo.com>
118187         * modules/gc-hmac-md5-tests: New file.
118189         * tests/test-gc-hmac-sha1.c: New file.
118191         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
118193         * modules/gc-hmac-md5-tests: New file.
118195         * tests/test-gc-md5.c: New file.
118197         * modules/gc-md5-tests: New file.
118199 2005-10-13  Simon Josefsson  <jas@extundo.com>
118201         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
118202         Move memory allocation outside of loop.
118204 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
118206         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
118207         intermediate directory is in a read-only file system.  Problem
118208         reported by Eric Blake.
118210 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
118212         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
118214 2005-10-12  Simon Josefsson  <jas@extundo.com>
118216         * tests/test-hmac-sha1.c: New file.
118218         * modules/hmac-sha1-tests: New file.
118220         * modules/hmac-sha1: New file.
118222 2005-10-12  Simon Josefsson  <jas@extundo.com>
118224         * modules/gc-sha1: New file.
118226 2005-10-12  Simon Josefsson  <jas@extundo.com>
118228         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
118230         * tests/test-gc-pbkdf2-sha1.c: New file.
118232 2005-10-12  Simon Josefsson  <jas@extundo.com>
118234         * modules/gc-md5, modules/gc-hmac-md5: New files.
118236         * modules/gc (Files): Remove md5, memxor and hmac files.
118238 2005-10-12  Simon Josefsson  <jas@extundo.com>
118240         * m4/gc-pbkdf2-sha1.m4: New file.
118242         * m4/gc-hmac-sha1.m4: New file.
118244         * m4/gc-sha1: New file.
118246         * m4/hmac-sha1.m4: New file.
118248 2005-10-12  Simon Josefsson  <jas@extundo.com>
118250         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
118252         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
118254 2005-10-12  Simon Josefsson  <jas@extundo.com>
118256         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
118257         suggested by Bruno Haible <bruno@clisp.org>.
118259 2005-10-12  Simon Josefsson  <jas@extundo.com>
118261         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
118263 2005-10-12  Simon Josefsson  <jas@extundo.com>
118265         * lib/gc-pbkdf2-sha1.c: New file.
118267         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
118269 2005-10-12  Simon Josefsson  <jas@extundo.com>
118271         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
118273         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
118275 2005-10-12  Simon Josefsson  <jas@extundo.com>
118277         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
118278         GC_USE_HMAC_MD5, respectively.
118280         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
118281         (gc_md5): Fix typo.
118283         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
118285         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
118287         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
118289 2005-10-12  Bruno Haible  <bruno@clisp.org>
118291         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
118292         Reported by Stepan Kasal <kasal@ucw.cz>.
118294 2005-10-11  Simon Josefsson  <jas@extundo.com>
118296         * tests/test-crc.c: New file.
118298         * modules/crc, modules/crc-tests: New files.
118300 2005-10-11  Simon Josefsson  <jas@extundo.com>
118302         * m4/crc.m4: New file.
118304 2005-10-11  Simon Josefsson  <jas@extundo.com>
118306         * lib/gc.h: Add gc_hash and gc_hash_buffer.
118308         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
118310         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
118312 2005-10-11  Simon Josefsson  <jas@extundo.com>
118314         * lib/crc.h, lib/crc.c: New files.
118316         * lib/gc.h (gc_hash_buffer): Add doc.
118318 2005-10-11  Bruno Haible  <bruno@clisp.org>
118320         * modules/c-strcasestr: New file.
118321         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
118323 2005-10-11  Bruno Haible  <bruno@clisp.org>
118325         * modules/c-strcase: New file.
118326         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
118328 2005-10-11  Bruno Haible  <bruno@clisp.org>
118330         * lib/strcasecmp.c: Include limits.h.
118331         (strcasecmp): Avoid integer overflow on exotic platforms.
118332         * lib/strncasecmp.c: Include limits.h.
118333         (strncasecmp): Avoid integer overflow on exotic platforms.
118334         Reported by Paul Eggert.
118336 2005-10-11  Bruno Haible  <bruno@clisp.org>
118338         * lib/c-strcasestr.h: New file, from GNU gettext.
118339         * lib/c-strcasestr.c: New file, from GNU gettext.
118341 2005-10-11  Bruno Haible  <bruno@clisp.org>
118343         * lib/c-strcase.h: New file, from GNU gettext.
118344         * lib/c-strcasecmp.c: New file, from GNU gettext.
118345         * lib/c-strncasecmp.c: New file, from GNU gettext.
118347 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
118349         * modules/mempcpy (License): GPL -> LGPL.
118350         * modules/strchrnul (License): Likewise.
118351         * modules/sysexits (License): Likewise.
118353 2005-10-08  Simon Josefsson  <jas@extundo.com>
118355         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
118357 2005-10-07  Simon Josefsson  <jas@extundo.com>
118359         * m4/memxor.m4: Remove gl_C_RESTRICT call.
118361 2005-10-06  Simon Josefsson  <jas@extundo.com>
118363         * tests/test-hmac-md5.c: New file.
118365         * modules/hmac-md5-tests: New file.
118367         * modules/hmac-md5: New file.
118369 2005-10-06  Simon Josefsson  <jas@extundo.com>
118371         * m4/hmac-md5.m4: New file.
118373         * m4/memxor.m4: Require gl_C_RESTRICT.
118375 2005-10-06  Simon Josefsson  <jas@extundo.com>
118377         * lib/memxor.c (memxor): Avoid casts and warnings.
118379 2005-10-06  Simon Josefsson  <jas@extundo.com>
118381         * lib/hmac-md5.c: New file.
118383         * lib/hmac.h: New file.
118385 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
118387         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
118388         promotes to int, not unsigned int, to catch the AIX 5.3
118389         compiler bug.
118391 2005-10-05  Simon Josefsson  <jas@extundo.com>
118393         * modules/memxor: New file.
118395         * modules/iconv (Files): Move config.rpath to havelib, it is used
118396         there.
118398         * modules/havelib (Files): Add config.rpath.
118400 2005-10-05  Simon Josefsson  <jas@extundo.com>
118402         * m4/memxor.m4: New file.
118404 2005-10-05  Simon Josefsson  <jas@extundo.com>
118406         * lib/memxor.c (memxor): Fix compiler error.
118408         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
118409         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
118411         * lib/memxor.h, lib/memxor.c: New files.
118413         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
118414         we assume all systems have it, suggested by Jim Meyering
118415         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
118416         any systems lack sys/socket.h; mingw32 is known to lack it, but we
118417         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
118418         same reasons.
118420 2005-10-05  Simon Josefsson  <jas@extundo.com>
118422         * config/srclist.txt: Add glibc bug 1423 for md5.h.
118424 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
118426         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
118427         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
118428         needed, since the source code now assumes these .h files.
118430 2005-10-05  Derek Price  <derek@ximbiot.com>
118432         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
118434 2005-10-05  Bruno Haible  <bruno@clisp.org>
118436         * modules/stdint (License): Change to LGPL.
118438 2005-10-04  Simon Josefsson  <jas@extundo.com>
118440         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
118441         D. Baushke" <mdb@gnu.org>.
118443 2005-10-04  Bruno Haible  <bruno@clisp.org>
118445         * lib/verify.h (verify_true): Provide alternative definition for C++.
118447 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
118449         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
118450         (SSIZE_MAX): New macro, if not already defined.
118451         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
118452         than 2 GiB.
118454 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
118456         Sync from coreutils.
118457         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
118458         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
118459         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
118460         ULLONG_MAX doesn't work with 2.7.2.1.
118462 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
118464         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
118465         From Ben Pfaff.
118467         * modules/exclude (Depends-on): Depend on verify.
118468         * modules/strtoimax (Depends-on): Likewise.
118469         * modules/utimecmp (Depends-on): Likewise.
118471 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
118473         * lib/exclude.c: Include verify.h.
118474         (verify): Remove.  All callers changed to use verify.h's version.
118475         * lib/strtoimax.c: Likewise.
118476         * lib/utimecmp.c: Likewis.e
118478         Sync from coreutils.
118479         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
118480         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
118481         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
118482         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
118483         bother returning ENOSYS if settimeofday or stime fails; just let
118484         them return whatever errno they want to return.
118485         * lib/utimens.c: Include unistd.h, for dup2.
118486         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
118487         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
118489 2005-10-02  Jim Meyering  <jim@meyering.net>
118491         Sync from coreutils.
118492         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
118493         from glibc-2.2.5 that fails for read-only files.
118495 2005-10-02  Jim Meyering  <jim@meyering.net>
118497         Sync from coreutils.
118498         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
118499         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
118500         `#if HAVE_CONFIG_H'.
118501         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
118502         Remove AT_FDCWD test.
118503         Do not consume the fd unless successful.
118504         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
118505         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
118506         block, so that we don't even try to compile it if settimeofday is
118507         available.  This works around a compilation failure on OSF1 V5.1,
118508         due to stime requiring a `long int*' while tv_sec is `int'.
118510 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
118512         Sync from coreutils.
118513         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
118514         against `yes', rather than just testing for nonempty.
118516 2005-10-01  Simon Josefsson  <jas@extundo.com>
118518         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
118519         and Darwin.
118521         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
118522         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
118523         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
118524         freeaddrinfo and gai_strerror are declared by the POSIX headers.
118525         Check if struct addrinfo is declared.
118527 2005-10-01  Simon Josefsson  <jas@extundo.com>
118529         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
118530         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
118531         AI_* and EAI_* definitions.  Protect function declarations.
118533 2005-10-01  Jim Meyering  <jim@meyering.net>
118535         Sync from coreutils.
118537         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
118538         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
118539         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
118540         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
118541         in the inet and nsl libraries.  Required on Solaris 5.7.
118543 2005-10-01  Jim Meyering  <jim@meyering.net>
118545         Sync from coreutils.
118546         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
118547         in the inet and nsl libraries.  Required on Solaris 5.7.
118549 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
118551         * lib/getdelim.c (getdelim): Remove unused variables.
118553 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
118555         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
118556         so that the code works even with ancient cpp.  Portability problem
118557         with GCC 2.7.2.1 reported by Thomas M.Ott.
118559 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
118561         * modules/regex (Depends-on): Add strcase.
118563         * modules/gethostname (Licence): Change from GPL to LGPL, since
118564         gethostname.c is a trivial implementation of a standard library
118565         function.
118566         * modules/poll (License): Change from GPL to LGPL, since it's
118567         derived from LGPL code.
118569 2005-09-27  Jim Meyering  <jim@meyering.net>
118571         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
118572         HAVE_CONFIG_H.
118574         * lib/intprops.h (signed_type_or_expr__): Define.
118575         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
118576         for unsigned types.
118578 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
118580         * lib/verify.h (verify_expr): Remove, replacing with:
118581         (verify_true): New macro that returns true instead of void.
118582         (verify_type__): Remove.
118583         (verify): Use verify_true rather than verify_type__.
118585 2005-09-26  Bruno Haible  <bruno@clisp.org>
118587         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
118588         is necessary.
118589         (lib_SOURCES): Remove mbchar.c.
118590         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
118591         (Files): Add m4/mbrtowc.m4.
118592         * modules/mbiter: Likewise.
118593         * modules/mbuiter: Likewise.
118595 2005-09-26  Bruno Haible  <bruno@clisp.org>
118597         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
118598         compile mbchar.c if they are not both present.
118599         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
118600         * m4/mbiter.m4 (gl_MBITER): Likewise.
118601         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
118602         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
118603         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
118605 2005-09-25  Jim Meyering  <jim@meyering.net>
118607         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
118608         also uses socklen_t.
118610 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
118612         * lib/utimens.c (ENOSYS): Define if not already defined.
118613         (futimens): Support having a null PATH if the file descriptor
118614         is nonnegative.
118616         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
118617         Remove.
118618         (__attribute): Define to empty unless GCC 3.1 or later.
118619         This works around a core dump on OpenBSD 3.4, which has GCC
118620         2.95.3, which dumps core when given __attribute__(()).  It also
118621         simplifies other tests, since we really don't want to bother with
118622         worrying about which ancient version of GCC supported what.
118623         Original problem reported by Yoann Vandoorselaere, with part of
118624         the fix suggested by Derek Price.
118626 2005-09-24  Jim Meyering  <jim@meyering.net>
118628         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
118629         so we can once again use a positive bitfield width of 1 -- now we
118630         don't have to explain why we were using a bitfield width of 2.
118632 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
118634         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
118635         and similarly for the other external symbols.  Problem reported
118636         by James Gallager.
118638         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
118639         bug reported by Jim Meyering.
118641         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
118642         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
118643         not needed, since socklen is a prerequisite module.
118645 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
118647         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
118648         Problem reported by Eric Blake.
118649         (getaddrinfo): Initialize se so that it's not garbage.
118650         Redo internal storage allocation so that it doesn't make unportable
118651         assumptions about alignment.
118652         Fix a memory leak.
118654         * lib/utimens.c (futimens): Use futimesat if available.
118655         Prefer it to futimes since it doesn't have the futimes bug.
118657         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
118658         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
118659         Instead, declare a function that returns a pointer to an array,
118660         and use verify_type__ to declare the size of the array.
118661         Problem and germ of a solution reported by Bruno Haible.
118662         (verify_type__): Use 2, not 1, for bitfield size, to avoid
118663         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
118665 2005-09-23  Jim Meyering  <jim@meyering.net>
118667         Sync from coreutils.
118668         Correct build failure (socklen_t not defined) on at least
118669         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
118670         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
118672 2005-09-23  Jim Meyering  <jim@meyering.net>
118674         * modules/getaddrinfo (Depends-on): Add socklen.
118676 2005-09-23  Bruno Haible  <bruno@clisp.org>
118678         * tests/test-verify.c: New file.
118680 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118682         Sync from coreutils.
118684         * modules/argmatch (Depends-on): Add verify.
118685         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
118686         unistd-safer.
118687         * modules/save-cwd (Depends-on): Likewise.
118689         * modules/openat (Files): Add lib/openat-die.c.
118690         (Depends-on): Remove error, exitfail.
118691         Add dirname.
118693         * modules/verify: New file.
118694         * MODULES.html.sh (Diagnostics <assert.h>): New section,
118695         with "verify" module.
118697 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118699         Sync from coreutils.
118701         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
118702         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
118703         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
118704         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
118705         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
118706         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
118707         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
118708         Don't bother checking for string.h, stdlib.h, unistd.h.
118709         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
118710         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
118711         module's job.
118712         * m4/jm-macros.m4 (gl_MACROS): Likewise.
118713         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
118715         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
118716         (gl_GETDATE): Use it.
118718         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
118720 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118722         Sync from coreutils.
118724         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
118725         stat-time.h.
118726         * lib/argmatch.h: Include verify.h
118727         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
118728         (ARGMATCH_ASSERT): Remove; unused.
118729         * lib/canonicalize.c: Assume STDC_HEADERS.
118730         * lib/exclude.c: Include "strcase.h".
118731         * lib/regex_internal.h [!defined _LIBC]: Likewise.
118732         * lib/getusershell.c: Include stdio--.h rather than stdio.h
118733         and stdio-safer.h.
118734         (getusershell): Call fopen, not fopen_safer.
118735         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
118736         Do not include unistd-safer.h.
118737         (save_cwd): Don't call fd_safer; no longer needed
118738         now that we include fcntl--.h.
118740         * lib/getdate.y (relative_time): New type.
118741         (RELATIVE_TIME_0): New constant.
118742         (parser_control): Use relative_time instead of doing it ourselves.
118743         (%union): Add new relative_time rel member.
118744         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
118745         Now typeless.
118746         (relunit, relunit_snumber): Now of type rel.
118747         (zone, rel, relunit, get_date): Adjust to above changes.
118749         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
118750         Do not include unistd-safer.h.
118751         (getloadavg): Don't call fd_safer; no longer needed
118752         now that we include fcntl--.h.
118754         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
118755         (make_dir_parents): Treat ENOSYS like EEXIST.
118757         Improve quality of diagnostics on restore_cwd failure.
118758         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
118759         (make_dir_parents): Last arg is now int * (for errno), not bool *.
118760         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
118761         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
118762         each time through the loop.  Do not diagnose restore_cwd failure;
118763         that is the caller's job (and perhaps the caller does not care).
118765         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
118766         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
118767         If the file already exists but is not a directory, don't bother
118768         to try to make its parents.
118769         Close potential file descriptor leak if we can't chdir("/") (!).
118770         Don't always return true if chdir($PWD) fails; return true only
118771         if the requested action was done successfully (except for the
118772         chdir($PWD)).
118773         Don't log final directory unless we actually made it.
118774         Refactor to avoid duplicate code to fix up permissions.
118775         Don't attempt to fix up parent permissions if chdir($PWD) fails.
118777         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
118778         to make it a bit faster and (I hope) clearer.
118779         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
118780         Fix bug in formats like %2N.
118782         * lib/verify.h: New file.
118784 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118786         Sync from coreutils.
118787         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
118789 2005-09-22  Jim Meyering  <jim@meyering.net>
118791         Sync from coreutils.
118793         * m4/lstat.m4 (gl_FUNC_LSTAT):
118794         Use AC_LIBSOURCES to require lstat.c and lstat.h.
118795         Remove obsolete comment.
118796         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
118797         * m4/xstrtod.m4: Likewise.
118799         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
118801 2005-09-22  Jim Meyering  <jim@meyering.net>
118803         Sync from coreutils.
118805         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
118807         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
118808         the .tm_year member, since otherwise gcc-4.0 would now warn about
118809         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
118811         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
118812         order to avoid an unsuppressible warning from gcc on 64-bit systems.
118814         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
118815         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
118816         when run in a time zone for which daylight savings time is in effect
118817         for the starting date.
118819         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
118820         stop us from restricting permissions of just-created absolute-named
118821         directories.
118822         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
118823         to restore initial working directory.
118824         * lib/mkdir-p.c (make_dir_parents): New parameter:
118825         different_working_dir, to tell caller if/when we change the working
118826         directory and are unable to return to the initial one.
118827         * lib/mkdir-p.h (make_dir_parents): Update prototype.
118828         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
118829         `return false'.  This fixes a bug introduced on 2004-07-30.
118831         * lib/openat.c (fdopendir): Be sure to close the supplied
118832         file descriptor before returning.  This makes our replacement
118833         implementation a little closer to Solaris's, where fdopendir
118834         ties the file descriptor to the returned DIR* pointer.
118835         * lib/openat.c (unlinkat): New function.
118836         * lib/openat.h (unlinkat): Add prototype.
118837         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
118838         (openat_restore_fail): Rename from openat_restore_die.
118839         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
118841         Provide an alternative to exiting immediately upon save_cwd or
118842         restore_cwd failure.  Now, an application can arrange e.g.,
118843         to perform a longjump in that case.
118844         * lib/openat.c: Include dirname.h.
118845         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
118846         (rpl_openat, fdopendir, fstatat): Call openat_save_die
118847         and openat_restore_die rather than calling error directly.
118848         Don't include "error.h" or "exitfail.h"; they're no longer needed.
118850         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
118851         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
118852         define.
118854         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
118855         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
118856                             int utc, int nanoseconds);
118857         Background:
118858         date should not have to allocate a megabyte of virtual memory to
118859         handle a format argument like +%1048575T.  When implemented with
118860         strftime, it must allocate such a buffer, use strftime to fill it
118861         in, print it, then free it.
118862         With fprintftime, it simply prints everything and exits.
118863         With no need for memory allocation, that's one fewer way to fail.
118864         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
118865         optional field width, not before, so we accept %9:z, not %:9z.
118866         (my_strftime): Be sure to use L_('x') for literals.
118868         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
118869         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
118870         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
118871         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
118872         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
118873         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
118874         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
118875         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
118876         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
118877         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
118878         * lib/xgethostname.c, lib/xreadlink.c:
118879         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
118881         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
118882         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
118883         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
118884         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
118885         and don't include <sys/file.h>).
118887 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
118889         Sync from coreutils.
118891         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
118892         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
118893         [!LDAV_DONE]: Avoid unused variable warning.
118895 2005-09-21  Bruno Haible  <bruno@clisp.org>
118897         * lib/unicodeio.h (unicode_to_mb): New declaration.
118899 2005-09-20  Derek Price  <derek@ximbiot.com>
118901         * lib/getaddrinfo.c: Don't include <netdb.h> included from
118902         getaddrinfo.h.
118904 2005-09-20  Bruno Haible  <bruno@clisp.org>
118906         * gnulib-tool: Remove trailing slashes from the values specified for
118907         --source-base, --m4-base, --tests-base, --aux-dir.
118908         Suggested by Simon Josefsson <jas@extundo.com>.
118910 2005-09-20  Bruno Haible  <bruno@clisp.org>
118912         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
118913         func_modules_to_filelist, func_import, func_create_testdir): Make all
118914         sorting results locale-independent, so that gnulib-cache.m4 doesn't
118915         change when gnulib-tool is invoked in a different locale.
118917 2005-09-19  Simon Josefsson  <jas@extundo.com>
118919         * m4/socklen.m4: Fix typo.
118921 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
118923         Use a consistent style for including <config.h>.
118924         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
118925         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
118926         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
118927         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
118928         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
118929         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
118930         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
118931         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
118932         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
118933         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
118934         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
118935         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
118936         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
118937         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
118938         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
118939         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
118940         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
118941         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
118942         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
118943         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
118944         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
118945         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
118946         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
118947         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
118948         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
118949         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
118950         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
118951         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
118952         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
118953         lib/xstrtoumax.c, lib/yesno.c:
118954         Standardize inclusion of config.h.
118955         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
118956         lib/inttostr.h:  Removed inclusion of config.h from header files.
118957         * lib/inttostr.c:  Adjusted in-tree users.
118958         * lib/timespec.h: Remove superfluous warning to include config.h.
118959         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
118960         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
118961         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
118962         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
118963         config.h with HAVE_CONFIG_H.
118965 2005-09-19  Jim Meyering  <jim@meyering.net>
118967         * modules/pathmax (License): Change to LGPL.
118969 2005-09-19  Derek Price  <derek@ximbiot.com>
118971         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
118973 2005-09-19  Bruno Haible  <bruno@clisp.org>
118975         * gnulib-tool (import): Provide default for --tests-base.
118977 2005-09-19  Bruno Haible  <bruno@clisp.org>
118979         * doc/quote.texi: New file, extracted from gnulib.texi.
118980         * doc/ctime.texi: New file, extracted from gnulib.texi.
118981         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
118982         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
118983         * doc/gnulib.texi: Include them.
118985 2005-09-18  Bruno Haible  <bruno@clisp.org>
118987         Portability fix.
118988         * gnulib-tool (func_readlink): New function.
118989         (func_ln_if_changed): Use it.
118991 2005-09-18  Bruno Haible  <bruno@clisp.org>
118993         * gnulib-tool: Support --with-tests also with --import.
118994         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
118995         (func_import): Use variables $testsbase and $inctests. Emit a
118996         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
118997         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
118998         SUBDIRS += $testsdir.
118999         (func_create_testdir): Update.
119001 2005-09-18  Bruno Haible  <bruno@clisp.org>
119003         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
119004         instead of $dry_run.
119005         (func_cp_if_changed, func_mv_if_changed): Remove functions.
119006         (func_ln_if_changed): Don't handle dry-run here.
119007         (func_import): In dry-run mode, detect more precisely which actions
119008         would be performed, and don't use "...ing" verbs.
119010 2005-09-18  Bruno Haible  <bruno@clisp.org>
119012         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
119013         (func_import): Use join on two temporary files instead of three nested
119014         loops, in order to determine which files are new or old.
119016 2005-09-18  Bruno Haible  <bruno@clisp.org>
119018         * gnulib-tool (func_import): Comment out code that spits out the
119019         new files with --dry-run.
119021 2005-09-18  Bruno Haible  <bruno@clisp.org>
119023         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
119025 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
119027         * lib/stat-time.h: New file.
119028         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
119029         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
119030         in a different way.
119031         (timespec_cmp): New function.
119032         * lib/utimecmp.c: Include stat-time.h.
119033         (SYSCALL_RESOLUTION): Depend on whether various struct stat
119034         members exist, not on the obsolescent ST_MTIM_NSEC.
119035         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
119037 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
119039         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
119041 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
119043         * MODULES.html.sh (File system functions): Add stat-time.
119044         * modules/stat-time: New file.
119045         * modules/timespec (Files): Remove m4/st_mtim.m4; this
119046         is now done in a different way, by the stat-time module.
119047         * modules/utimecmp (Depends-on): Add stat-time.
119049 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
119051         * m4/st_mtim.m4: Remove.  Superseded by...
119052         * m4/stat-time.m4: New file.
119053         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
119054         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
119056 2005-09-15  Derek Price  <derek@ximbiot.com>
119058         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
119060 2005-09-15  Derek Price  <derek@ximbiot.com>
119062         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
119063         * lib/regex_internal.c: Ditto, using this...
119064         (__GNUC_PREREQ): ...new macro.
119065         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
119066         using...
119067         (__GNUC_PREREQ): ...this new macro.
119069         * lib/strstr.h: Include string.h. Define strstr as a macro here.
119071 2005-09-15  Derek Price  <derek@ximbiot.com>
119072             Paul Eggert  <eggert@cs.ucla.edu>
119074         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
119075         changes, consolidating in...
119076         * lib/regex_internal.h: ...this file.
119078 2005-09-13  Jim Meyering  <jim@meyering.net>
119080         * lib/canon-host.c: Filter through gnu indent and reword comments
119081         slightly.
119082         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
119084 2005-09-13  Derek Price  <derek@ximbiot.com>
119086         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
119087         failure.
119088         Reported by Jim Meyering  <jim@meyering.net>.
119090 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
119092         * lib/base64.c: Typo.
119093         (base64_encode): Put b64str in initialized data section.
119095 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
119097         Merge glibc and coreutils changes into gnulib, plus a few
119098         extra fixes.
119099         * lib/md5.c: Use #error rather than a string.
119100         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
119101         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
119102         (__attribute__): Define to empty for non recent-GCC.
119103         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
119104         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
119105         Renamed from their non-__ counterparts, with new macros replacing
119106         them if not _LIBC.  Add __THROW attribute.
119107         (rol): Remove.
119108         (struct md5_ctx): Align buffer if using GCC.
119109         * lib/sha1.h (struct sha1_ctx): Likewise.
119110         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
119111         The old name was backwards.
119112         (NOTSWAP): Remove; not used.
119113         (rol): New macro, moved here from md5.h.
119114         (sha1_process_block): Remove a FIXME that doesn't make sense.
119116 2005-09-12  Derek Price  <derek@ximbiot.com>
119118         Return usable errors from canon-host.
119119         * lib/canon-host.h: New file.
119120         * lib/canon-host.c (canon_host): Wrap...
119121         (canon_host_r): ...this new function, which now relies exclusively on
119122         getaddrinfo.
119123         (ch_strerror): New function.
119124         (last_cherror): New global.
119125         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
119126         interface.
119127         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
119128         void *.
119129         (freeaddrinfo): Free ai->ai_canonname when set.
119131 2005-09-12  Derek Price  <derek@ximbiot.com>
119133         Make canon-host require getaddrinfo.
119134         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
119135         AC_LIBSOURCE canon-host.h.  Call...
119136         (gl_PREREQ_CANON_HOST): ...this new function, which requires
119137         gl_GETADDRINFO.
119138         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
119140 2005-09-12  Derek Price  <derek@ximbiot.com>
119142         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
119143         LGPL.
119144         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
119146 2005-09-12  Derek Price  <derek@ximbiot.com>
119148         * lib/gai_strerror.c: Include config.h when available.  Include
119149         getaddrinfo.h before other headers to test interface.
119150         Reported by Larry Jones <lawrence.jones@ugs.com>.
119152 2005-09-12  Derek Price  <derek@ximbiot.com>
119153             Paul Eggert  <eggert@cs.ucla.edu>
119155         * modules/glob (Files): Add glob-libc.h.
119157 2005-09-12  Derek Price  <derek@ximbiot.com>
119158             Paul Eggert  <eggert@cs.ucla.edu>
119160         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
119161         glob_.h, glob-libc.h.
119162         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
119164 2005-09-12  Derek Price  <derek@ximbiot.com>
119165             Paul Eggert  <eggert@cs.ucla.edu>
119167         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
119168         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
119169         protecting things that should be done only in gnulib contexts.
119170         * lib/glob_.h: New file, containing only the glob things needed for
119171         gnulib.
119172         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
119173         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
119174         (glob, globfree, glob_pattern_p): Now defined simply in terms of
119175         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
119176         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
119177         and to respect the namespace rules better.
119179 2005-09-08  Simon Josefsson  <jas@extundo.com>
119181         * modules/socklen: New file.
119183 2005-09-08  Simon Josefsson  <jas@extundo.com>
119185         * m4/socklen.m4: New file.
119187 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
119189         * modules/utimens (Files): Add m4/utimbuf.m4, since
119190         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
119191         Reported by Sergey Poznyakoff.
119193 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
119195         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
119196         definitions, since that's the preferred style in glibc.
119197         Fix a minor spacing issue, and update copyright notice to match
119198         glibc's.
119200 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
119202         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
119204 2005-09-06  Simon Josefsson  <jas@extundo.com>
119206         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
119207         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
119209 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
119211         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
119212         warning.
119214 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
119216         * config/srclist.txt: Add glibc bug 1302.
119218 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
119220         Change bitset word type from unsigned int to unsigned long int,
119221         as this has better performance on typical 64-bit hosts.
119222         Port bitset code to hosts with unusual word sizes.
119223         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
119224         (build_collating_symbol):
119225         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
119226         argument is a bitset.  This is merely a style issue, but it makes
119227         it clearer that an entire array is expected.
119228         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
119229         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
119230         Port to the case where bitset_word is not the same as unsigned int.
119231         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
119232         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
119233         Likewise.
119234         * lib/regexec.c (check_dst_limits_calc_pos_1,
119235         check_subexp_matching_top):
119236         (build_trtable, group_nodes_into_DFAstates):
119237         Likewise.
119238         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
119239         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
119240         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
119241         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
119242         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
119243         * lib/regcomp.c (optimize_subexps, lower_subexp):
119244         Work even if bitset_word has holes in its bitwise representation.
119245         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
119246         * lib/regexec.c (check_dst_limits_calc_pos_1,
119247         check_subexp_matching_top):
119248         Likewise.
119249         * lib/regex_internal.c (re_string_reconstruct):
119250         Don't assume UCHAR_MAX == 255.
119251         * lib/regex_internal.h (bitset_set_all): Likewise.
119252         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
119253         All uses changed.
119254         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
119255         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
119256         All uses changed.
119257         (BITSET_WORD_MAX): New macro.
119258         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
119259         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
119260         (bitset_empty, bitset_copy):
119261         Prefer sizeof (bitset) to multiplying it out ourselves.
119262         (bitset_not_merge): Remove; unused.
119263         (bitset_contain): Return bool, not unsigned int with one bit on.
119264         All callers changed.
119265         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
119266         alignment than re_node_set; do this by defining a new internal
119267         type struct dests_alloc and using it to allocate memory.
119269 2005-09-05  Bruno Haible  <bruno@clisp.org>
119271         * gnulib-tool (func_import): Fix comparison in handling of symbolic
119272         links.
119274 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
119276         * modules/size_max (Makefile.am): Add size_max.h
119278 2005-09-04  Derek Price  <derek@ximbiot.com>
119280         * gnulib-tool (func_import): Fix reversed $symbolic logic.
119282 2005-09-03  Simon Josefsson  <jas@extundo.com>
119284         * gnulib-tool: Fix typo.
119286 2005-09-03  Simon Josefsson  <jas@extundo.com>
119288         * config/srclist.txt: Add glibc bug 1293.
119290 2005-09-03  Derek Price  <derek@ximbiot.com>
119292         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
119293         From Larry Jones <lawrence.jones@ugs.com>.
119295 2005-09-02  Simon Josefsson  <jas@extundo.com>
119297         * modules/socklen: New file.
119299 2005-09-02  Simon Josefsson  <jas@extundo.com>
119301         * modules/havelib: New module.
119303         * modules/gettext, modules/iconv, modules/lock, modules/readline:
119304         Use havelib.
119306 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
119308         Check for arithmetic overflow when calculating sizes, to prevent
119309         some buffer-overflow issues.  These patches are conservative, in the
119310         sense that when I couldn't determine whether an overflow was possible,
119311         I inserted a run-time check.
119312         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
119313         macros.
119314         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
119315         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
119316         (re_xnrealloc, re_x2nrealloc): New inline functions.
119317         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
119318         parse_bracket_exp):
119319         (build_equiv_class, build_charclass): Check for arithmetic overflow
119320         in size expression calculations.
119321         * lib/regex_internal.c (re_string_realloc_buffers):
119322         (build_wcs_upper_buffer, re_node_set_add_intersect):
119323         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
119324         (re_dfa_add_node, register_state): Likewise.
119325         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
119326         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
119327         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
119328         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
119330 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
119332         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
119333         m4/ulonglong.m4.  Problem reported by Martin Lambers.
119335 2005-09-02  Bruno Haible  <bruno@clisp.org>
119337         Support for lib vs. lib64 distinction on biarch platforms.
119338         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
119339         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
119340         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
119342 2005-09-02  Bruno Haible  <bruno@clisp.org>
119344         * gnulib-tool (import): In the other first-use case, provide defaults
119345         as well.
119347 2005-09-02  Bruno Haible  <bruno@clisp.org>
119349         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
119350         patches not yet found in the latest gettext release.
119352 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
119354         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
119355         to avoid a collision with bits/local_lim.h in glibc.
119356         All uses changed.  Problem reported by Dmitry V. Levin in
119357         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
119359         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
119360         bugs in int versus size_t comparisons.
119361         (re_string_context_at): Fix bug where the code assumed that
119362         Idx is signed.
119364         Use bool where appropriate.
119365         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
119366         All callers changed.
119367         (calc_eclosure_iter): Likewise, for ROOT arg.
119368         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
119369         (build_charclass_op): Likewise, for NON_MATCH arg.
119370         * lib/regex_internal.c (re_string_allocate, re_string_construct):
119371         (re_string_construct_common): Likewise, for ICASE arg.
119372         * lib/regexec.c (re_search_2_stub, re_search_stub):
119373         Likewise, for RET_LEN arg.
119374         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
119375         (set_regs): Likewise, for FL_BACKTRACK arg.
119376         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
119377         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
119378         (calc_eclosure_iter, parse_bracket_exp):
119379         Use bool for internal variables that are booleans.
119380         * lib/regexec.c (re_search_internal, check_matching,
119381         proceed_next_node):
119382         (set_regs, build_sifted_states, sift_states_bkref):
119383         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
119384         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
119385         (find_collation_sequence_value):
119386         Likewise.
119387         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
119388         (re_node_set_compare):
119389         Return bool, not int. All callers changed.
119390         * lib/regexec.c (check_halt_node_context, check_dst_limits):
119391         (build_trtable, check_node_accept): Likewise.
119392         * lib/regex_internal.h: Include stdbool.h.
119394         Fix bugs uncovered when converting to bool.
119395         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
119396         failure instead of charging ahead blindly.
119397         * lib/regex_internal.c (register_state): Likewise.
119398         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
119399         for freeing internal storage.
119400         (group_nodes_into_DFA_states): Use unsigned int, not int, for
119401         bitset pieces used as boolean, to avoid undefined behavior
119402         on hosts that do int overflow checking.
119404 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
119406         * config/srclist.txt: Add glibc bugs 1285-1287.
119408 2005-09-01  Jim Meyering  <jim@meyering.net>
119410         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
119411         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
119412         Require gl_STAT_MACROS, too.
119414 2005-09-01  Bruno Haible  <bruno@clisp.org>
119416         * gnulib-tool (import): In the first-use case, provide defaults.
119418 2005-09-01  Bruno Haible  <bruno@clisp.org>
119420         * gnulib-tool (func_import): Remove the .tmp files.
119422 2005-09-01  Bruno Haible  <bruno@clisp.org>
119424         * gnulib-tool (func_import): Fix handling of symbolic links.
119426 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119428         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
119429         old glibc regex code mishandles strings longer than 2**31 bytes.
119430         This patch fixes this when the regex code is used in gnulib
119431         (i.e., outside glibc).
119433         This patch should not affect the use of the regex code inside
119434         glibc.  No doubt this problem also needs to be handled for glibc
119435         as well, but the result will be an incompatible change to the
119436         glibc ABI, and the old ABI will have to be supported too.  That
119437         can be the subject for another patch.
119439         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
119440         governing whether the rest of this patch is active.  By default,
119441         the macro is disabled and the patch has no effect.
119442         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
119443         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
119444         (struct re_pattern_buffer, re_search, re_search_2, re_match):
119445         (re_match_2, re_set_registers): Use the new types.
119446         * lib/regex_internal.h (Idx, re_hashval_t): New types.
119447         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
119448         New macros.
119449         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
119450         (re_string_context_at, bin_tree_t, re_dfastate_t):
119451         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
119452         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
119453         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
119454         (re_string_char_size_at, re_string_wchar_at):
119455         (re_string_elem_size_at):
119456         Use the new types and macros to port to 64-bit hosts.
119457         Use unsigned types for internal values, so that the code
119458         mostly works even for arrays larger than SSIZE_MAX.
119459         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
119460         (search_duplicated_node, calc_eclosure_iter, fetch_number):
119461         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
119462         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
119463         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
119464         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
119465         (calc_inveclosure, parse_dup_op, build_range_exp):
119466         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
119467         (fetch_number, create_token_tree, mark_opt_subexp):
119468         Likewise.
119469         * lib/regex_internal.c (re_string_construct_common,
119470         create_ci_newstate):
119471         (create_cd_newstate, re_string_allocate, re_string_construct):
119472         (re_string_realloc_buffers, build_wcs_upper_buffer):
119473         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
119474         (re_string_reconstruct, re_string_peek_byte_case):
119475         (re_string_fetch_byte_case, re_string_context_at):
119476         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
119477         (re_node_set_init_copy, re_node_set_add_intersect):
119478         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
119479         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
119480         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
119481         (re_acquire_state, re_acquire_state_context, register_state):
119482         Likewise.
119483         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
119484         search_cur_bkref_entry):
119485         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
119486         (re_search_internal, re_search_2_stub, re_search_stub)
119487         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
119488         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
119489         (update_cur_sifted_state, check_dst_limits):
119490         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
119491         (check_subexp_limits, sift_states_bkref, merge_state_array):
119492         (check_subexp_matching_top, get_subexp, get_subexp_sub):
119493         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
119494         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
119495         (expand_bkref_cache, check_node_accept_bytes):
119496         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
119497         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
119498         (acquire_init_state_context, check_halt_node_context):
119499         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
119500         (sift_states_backward, clean_state_log_if_needed):
119501         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
119502         (find_recover_state, transit_state_sb, transit_state_mb):
119503         (transit_state_bkref, build_trtable, match_ctx_clean):
119504         Likewise.
119505         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
119506         to work around an assumption that REG_MISSING is negative.
119508         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
119509         (seek_collating_symbol_entry) [defined _LIBC]:
119510         (lookup_collation_sequence_value) [defined _LIBC]:
119511         (build_range_exp, build_collating_symbol) [defined _LIBC]:
119512         Use prototypes rather than old-style function definitions.
119513         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
119514         (transit_state_sb) [0]:
119515         (find_collation_sequence_value) [defined _LIBC]: Likewise.
119517         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
119518         rm_eo.
119520         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
119521         (optimize_subexps, lower_subexp):
119522         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
119523         since the signed shift might overflow.  Use 1u<<31 instead.
119524         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
119525         Likewise.
119526         * lib/regexec.c (check_dst_limits_calc_pos_1,
119527         check_subexp_matching_top): Likewise.
119529         * lib/regcomp.c (optimize_subexps, lower_subexp):
119530         Use CHAR_BIT rather than 8, for clarity.
119531         * lib/regexec.c (check_dst_limits_calc_pos_1):
119532         (check_subexp_matching_top): Likewise.
119533         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
119534         have to worry about portability issues when shifting it left.
119535         Remove no-longer-needed test for table_size > 0.
119536         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
119537         in a word, as the resulting behavior is undefined.
119538         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
119539         in one case, a <= should have been an <, and in another case the
119540         whole test was missing.
119541         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
119542         the standard name CHAR_BIT.
119543         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
119544         this is not true on one's complement and signed-magnitude hosts.
119546         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
119547         next_last_offset.
119548         (struct re_dfa_t): Remove unused member states_alloc.
119549         * lib/regcomp.c (init_dfa): Don't initialize unused members.
119551 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119553         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
119554         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
119555         and large-file glibc and in 32-bit large-file Solaris.
119557 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119559         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
119560         lengths fit in regoff_t; this isn't true if regoff_t is the same
119561         width as size_t.
119562         * lib/regex.c (re_search_internal): 5th arg is LAST_START
119563         (= START + RANGE) instead of RANGE.  This avoids overflow
119564         problems when regoff_t is the same width as size_t.
119565         All callers changed.
119566         (re_search_2_stub): Check for overflow when adding the
119567         sizes of the two strings.
119568         (re_search_stub): Check for overflow when adding START
119569         to RANGE; if it occurs, substitute the extreme value.
119571 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119573         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
119575 2005-08-31  Jim Meyering  <jim@meyering.net>
119577         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
119578         a pointer-to-const.
119579         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
119580         (register_state): Likewise.
119581         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
119582         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
119583         (group_nodes_into_DFAstates): Likewise.
119585 2005-08-31  Jim Meyering  <jim@meyering.net>
119587         * check-module: Add a FIXME comment.
119589 2005-08-31  Eric Blake  <ebb9@byu.net>
119591         * modules/unistd-safer (Files): Add unistd--.h.
119592         * modules/stdio-safer (Files): Add stdio--.h.
119594 2005-08-31  Derek Price  <derek@ximbiot.com>
119596         * lib/getdelim.c (getdelim): Return EOF on EOF.
119597         Reported by Larry Jones <lawrence.jones@ugs.com>.
119599 2005-08-31  Bruno Haible  <bruno@clisp.org>
119601         Avoid unnecessary diffs in the generated lib/Makefile.am.
119602         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
119603         the generated files.
119604         (func_import): Don't set cmd.
119606 2005-08-31  Bruno Haible  <bruno@clisp.org>
119608         * lib/strstr.c: Include <stddef.h>, for NULL.
119609         * lib/strcasestr.c: Likewise.
119610         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
119612 2005-08-31  Bruno Haible  <bruno@clisp.org>
119614         * gnulib-tool: New option --macro-prefix.
119615         (func_import): Use macro_prefix.
119616         (import): Handle option --macro-prefix.
119618 2005-08-31  Bruno Haible  <bruno@clisp.org>
119620         * gnulib-tool (import): Rename most ac_* variables to cached_*.
119621         Also use new variables cached_lgpl, cached_libtool.
119623 2005-08-31  Bruno Haible  <bruno@clisp.org>
119625         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
119626         always instantiating them.
119628 2005-08-31  Bruno Haible  <bruno@clisp.org>
119630         * gnulib-tool (func_import): Read the previous cached settings
119631         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
119632         earlier added by gnulib but are now dropped. Warn when a gnulib file
119633         overwrites a non-gnulib file.
119635 2005-08-31  Bruno Haible  <bruno@clisp.org>
119637         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
119638         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
119639         projects that don't keep autogenerated files in CVS. Put into
119640         actioncmd only the specified modules, not the transitive closure.
119642 2005-08-31  Bruno Haible  <bruno@clisp.org>
119644         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
119645         Create directories that shall be filled.
119646         (import): Don't look for gl_* macros in configure.ac. Recurse across
119647         all directories containing a gnulib-cache.m4 files, if meaningful.
119649 2005-08-31  Bruno Haible  <bruno@clisp.org>
119651         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
119652         (import): Set seen_libtool when we see gl_LIBTOOL.
119654 2005-08-31  Bruno Haible  <bruno@clisp.org>
119656         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
119657         declaration macro definitions from generated gnulib.m4.
119659 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
119661         * lib/iconvme.h: Add prototype for iconv_alloc.
119663 2005-08-29  Simon Josefsson  <jas@extundo.com>
119665         * lib/iconvme.c: Fix errno.
119667 2005-08-29  Bruno Haible  <bruno@clisp.org>
119669         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
119670         that it works when the directory contains spaces.
119672 2005-08-29  Bruno Haible  <bruno@clisp.org>
119674         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
119676 2005-08-29  Bruno Haible  <bruno@clisp.org>
119678         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
119679         Emit more advice.
119681 2005-08-29  Bruno Haible  <bruno@clisp.org>
119682         and Stepan Kasal  <kasal@ucw.cz>
119684         * check-module: If more parameters are given, check each of them
119685         separately; add more exceptions, as noted by Jim Meyering.
119686         (check_module): New procedure.
119687         (%exempt_header): Now contains all exceptions.
119689 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
119691         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
119693 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
119695         * lib/iconvme.c: Split iconv_string into iconv_alloc.
119697 2005-08-28  Bruno Haible  <bruno@clisp.org>
119699         * m4/gnulib-tool.m4: New file.
119701 2005-08-27  Jim Meyering  <jim@meyering.net>
119703         * modules/unistd-safer (Files): Add pipe-safer.c.
119704         * modules/fcntl-safer (Files): Add creat-safer.c.
119706 2005-08-27  Jim Meyering  <jim@meyering.net>
119708         * m4/stdlib-safer.m4: New file.  From coreutils.
119709         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
119710         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
119711         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
119712         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
119713         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
119715 2005-08-27  Jim Meyering  <jim@meyering.net>
119717         * lib/fopen-safer.c: Merge minor changes from coreutils.
119718         * lib/dup-safer.c: Likewise.
119719         * lib/fd-safer.c: Likewise.
119721         Merge from coreutils.
119722         * lib/stdio--.h: New file.
119723         * lib/stdlib--.h: New file.
119724         * lib/mkstemp-safer.c: New file.
119726         GNU tar needs these.
119727         * lib/pipe-safer.c: New file.
119728         * lib/creat-safer.c: New file.
119729         * lib/fcntl--.h (creat): Define to creat_safer.
119730         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
119731         * lib/unistd--.h (pipe): Define to pipe_safer.
119732         * lib/unistd-safer.h: Declare pipe_safer.
119734 2005-08-26  Simon Josefsson  <jas@extundo.com>
119736         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
119737         Haible <bruno@clisp.org>.
119739 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
119741         * lib/regex_internal.h: Remove all references to
119742         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
119743         or better.
119744         (bitset_not, bitset_merge, bitset_not_merge):
119745         (bitset_mask, re_string_allocate, re_string_construct):
119746         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
119747         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
119748         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
119749         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
119750         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
119751         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
119752         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
119753         (re_acquire_state_context):
119754         Remove unnecessary forward decls.
119755         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
119756         Put __attribute at function definition,
119757         now that the function decl has been removed.
119758         * lib/regex_internal.c (re_string_peek_byte_case):
119759         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
119760         Likewise.
119762 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
119764         * m4/regex.m4: Add AC_PREREQ(2.50).
119765         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
119767 2005-08-25  Simon Josefsson  <jas@extundo.com>
119769         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
119770         __fsetlocking.
119772 2005-08-25  Simon Josefsson  <jas@extundo.com>
119774         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
119775         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
119776         GLIBC specific code.
119778 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119780         Make regex safe for g++.  This fixes one real bug (an "err"
119781         that should have been "*err").  g++ problem reported by
119782         Sam Steingold.
119783         * lib/regex_internal.h (re_calloc): New macro, consistent with
119784         re_malloc etc.  All callers of calloc changed to use re_calloc.
119785         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
119786         not int.  All callers changed.
119787         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
119788         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
119789         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
119790         (find_recover_state): Change "err" to "*err"; this fixes what
119791         appears to be a real bug.
119792         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
119793         versus int.
119795 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119797         * modules/regex (Depends-on): Add malloc, since the code
119798         assumes that !malloc(0) means failure.
119800 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119802         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
119804         alloca modernization/simplification for regex.
119805         * lib/regex.c: Remove portability cruft for alloca.  This no longer
119806         needs to be at the start of the file, and can be moved into
119807         regex_internal.h and simplified.
119808         * lib/regex_internal.h: Include <alloca.h>.
119809         (__libc_use_alloca) [!defined _LIBC]: New macro.
119810         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
119811         now works outside glibc.
119813 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119815         * config/srclist.txt: Add glibc bugs 1241, 1245.
119817 2005-08-25  Jim Meyering  <jim@meyering.net>
119819         * lib/open-safer.c: Include <config.h>.
119820         Otherwise, we'd lose LARGEFILE support in any file using
119821         e.g. "fcntl--.h"
119823 2005-08-25  Bruno Haible  <bruno@clisp.org>
119825         * m4/minmax.m4: Require autoconf 2.52.
119826         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
119827         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
119828         alternatives of translit over the alphabet.
119829         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
119831 2005-08-24  Simon Josefsson  <jas@extundo.com>
119833         * tests/test-getpass.c: New file.
119835 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
119837         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
119838         for GNU regex features.
119840 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
119842         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
119843         * lib/regex.h (regerror): Likewise.
119845         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
119846         requires this.  (The code never needed it.)
119848         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
119849         All uses of recently-renamed identifiers changed to use the new,
119850         POSIX-compliant names.  The code will build and run just fine
119851         without these changes, but it's better to eat our own dog food
119852         and use the standard-conforming names.
119854         * lib/regex.h: Fix a multitude of POSIX name space violations.
119855         These changes have an effect only for programs that define
119856         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
119857         do not change anything for programs compiled in the normal way.
119858         Also, there is no effect on the ABI.
119860         (_REGEX_SOURCE): New macro.
119861         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
119862         defined and _GNU_SOURCE is not; this fixes a name space violation.
119864         Rename the following macros to obey POSIX requirements.
119865         The old names are still visible as macros if _REGEX_SOURCE is defined.
119866         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
119867         RE_BACKSLASH_ESCAPE_IN_LISTS.
119868         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
119869         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
119870         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
119871         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
119872         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
119873         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
119874         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
119875         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
119876         (REG_INTERVALS): renamed from RE_INTERVALS.
119877         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
119878         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
119879         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
119880         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
119881         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
119882         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
119883         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
119884         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
119885         RE_UNMATCHED_RIGHT_PAREN_ORD.
119886         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
119887         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
119888         (REG_DEBUG): renamed from RE_DEBUG.
119889         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
119890         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
119891         unusual, since we can't clash with the POSIX REG_ICASE.
119892         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
119893         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
119894         (REG_NO_SUB): renamed from RE_NO_SUB.
119895         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
119896         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
119897         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
119898         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
119899         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
119900         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
119901         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
119902         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
119903         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
119904         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
119905         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
119906         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
119907         RE_SYNTAX_POSIX_MINIMAL_BASIC.
119908         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
119909         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
119910         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
119911         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
119912         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
119913         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
119914         (REG_FIXED): Renamed from REGS_FIXED.
119915         (REG_NREGS): Renamed from RE_NREGS.
119917         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
119918         of other REG_* macros, since POSIX says the user is allowed to
119919         #undef these macros selectively.
119921         (reg_errcode_t): Update comment stating what other tables need
119922         to be consistent.
119924         Rename the following enum values to obey POSIX requirements.
119925         The old names are still visible as macros.
119926         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
119927         is not defined, since GNU is supposed to be a superset of POSIX as
119928         much as possible, and since we want reg_errcode_t to be a signed
119929         type for implementation consistency.
119930         (_REG_NOERROR): Renamed from REG_NOERROR.
119931         (_REG_NOMATCH): Renamed from REG_NOMATCH.
119932         (_REG_BADPAT): Renamed from REG_BADPAT.
119933         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
119934         (_REG_ECTYPE): Renamed from REG_ECTYPE.
119935         (_REG_EESCAPE): Renamed from REG_EESCAPE.
119936         (_REG_ESUBREG): Renamed from REG_ESUBREG.
119937         (_REG_EBRACK): Renamed from REG_EBRACK.
119938         (_REG_EPAREN): Renamed from REG_EPAREN.
119939         (_REG_EBRACE): Renamed from REG_EBRACE.
119940         (_REG_BADBR): Renamed from REG_BADBR.
119941         (_REG_ERANGE): Renamed from REG_ERANGE.
119942         (_REG_ESPACE): Renamed from REG_ESPACE.
119943         (_REG_BADRPT): Renamed from REG_BADRPT.
119944         (_REG_EEND): Renamed from REG_EEND.
119945         (_REG_ESIZE): Renamed from REG_ESIZE.
119946         (_REG_ERPAREN): Renamed from REG_ERPAREN.
119947         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
119948         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
119949         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
119950         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
119952         (_REG_RE_NAME, _REG_RM_NAME): New macros.
119953         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
119954         changed.  But support the old name if the new one is not defined
119955         and if _REGEX_SOURCE.
119957         Change the following member names in struct re_pattern_buffer.
119958         The old names are still supported if !_REGEX_SOURCE.
119959         The new names are always supported, regardless of _REGEX_SOURCE.
119960         (re_buffer): Renamed from buffer.
119961         (re_allocated): Renamed from allocated.
119962         (re_used): Renamed from used.
119963         (re_syntax): Renamed from syntax.
119964         (re_fastmap): Renamed from fastmap.
119965         (re_translate): Renamed from translate.
119966         (re_can_be_null): Renamed from can_be_null.
119967         (re_regs_allocated): Renamed from regs_allocated.
119968         (re_fastmap_accurate): Renamed from fastmap_accurate.
119969         (re_no_sub): Renamed from no_sub.
119970         (re_not_bol): Renamed from not_bol.
119971         (re_not_eol): Renamed from not_eol.
119972         (re_newline_anchor): Renamed from newline_anchor.
119974         Change the following member names in struct re_registers.
119975         The old names are still supported if !_REGEX_SOURCE.
119976         The new names are always supported, regardless of _REGEX_SOURCE.
119977         (rm_num_regs): Renamed from num_regs.
119978         (rm_start): Renamed from start.
119979         (rm_end): Renamed from end.
119981         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
119982         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
119983         Prepend __ to parameter names.
119985         Undo yesterday's changes.
119987 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
119989         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
119990         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
119991         lib/regex.c.
119993 2005-08-24  Jim Meyering  <jim@meyering.net>
119995         Sync from coreutils.
119996         * m4/fcntl-safer.m4: New file.
119998         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
119999         and object files for this module.
120001 2005-08-24  Jim Meyering  <jim@meyering.net>
120003         Sync from coreutils.
120004         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
120006 2005-08-24  Jim Meyering  <jim@meyering.net>
120008         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
120009         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
120011 2005-08-24  Jim Meyering  <jim@meyering.net>
120013         * modules/fcntl-safer: New module.
120014         * modules/fts (Depends-on): Add fcntl-safer.
120015         * MODULES.html.sh (File descriptor based Input/Output):
120016         Add fcntl-safer.
120018 2005-08-24  Bruno Haible  <bruno@clisp.org>
120020         Support for unit test modules.
120021         * modules/README: Mention tests modules.
120022         * modules/TEMPLATE-TESTS: New file.
120023         * gnulib-tool: New options --extract-tests-module, --with-tests and
120024         --tests-base (unused for the moment).
120025         (testsbase, inctests): New variables.
120026         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
120027         (func_verify_module): Exclude TEMPLATE-TESTS.
120028         (func_verify_nontests_module, func_verify_tests_module): New functions.
120029         (func_get_dependencies): Add implicit dependency for tests modules.
120030         (func_get_tests_module): New function.
120031         (func_modules_transitive_closure): When --with-tests was specified,
120032         include the unit tests as well, unless explicitly avoided.
120033         (func_emit_lib_Makefile_am): Ignore the tests modules here.
120034         (func_emit_tests_Makefile_am): New function.
120035         (func_create_testdir): When --with-tests was specified, emit a
120036         tests/ directory.
120037         * MODULES.html.sh (Future developments): Update.
120039 2005-08-24  Bruno Haible  <bruno@clisp.org>
120041         * modules/tls-tests: New file.
120042         * tests/test-tls.c: New file, from GNU gettext.
120044 2005-08-24  Bruno Haible  <bruno@clisp.org>
120046         * modules/lock-tests: New file.
120047         * tests/test-lock.c: New file, from GNU gettext.
120049 2005-08-24  Bruno Haible  <bruno@clisp.org>
120051         * lib/lock.h: Add multiple inclusion guard.
120052         * lib/tls.h: Add multiple inclusion guard.
120054 2005-08-24  Bruno Haible  <bruno@clisp.org>
120056         * gnulib-tool: Add support for the --aux-dir option to
120057         --create-testdir, --create-megatestdir, --test, --megatest.
120058         (func_create_testdir, func_create_megatestdir): Optionally emit a
120059         AC_CONFIG_AUX_DIR directive.
120060         (create-testdir, create-megatestdir, test, megatest): Provide a
120061         default value for $auxdir.
120063 2005-08-24  Bruno Haible  <bruno@clisp.org>
120065         * gnulib-tool (import): Use compound statement instead of subshell
120066         where possible.
120068 2005-08-24  Bruno Haible  <bruno@clisp.org>
120070         * gnulib-tool (import): Change --aux-dir default to "build-aux".
120072 2005-08-24  Bruno Haible  <bruno@clisp.org>
120074         * gnulib-tool (func_version): Update.
120076 2005-08-24  Bruno Haible  <bruno@clisp.org>
120078         * gnulib-tool (func_import, func_create_testdir,
120079         func_create_megatestdir): Quote all autoconf macro arguments.
120081 2005-08-24  Bruno Haible  <bruno@clisp.org>
120083         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
120084         option --force, because --force causes the aclocal.m4 of each
120085         subdirectory to be newer than the corresponding config.h.in.
120087 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
120089         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
120090         All contents moved to gl_REGEX.
120091         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
120092         assume that it does.
120094 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
120096         * lib/regex.h (REG_NOSYS)
120097         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
120098         Define, since POSIX requires it as of 2001.
120099         (_REG_ENOSYS)
120100         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
120101         New private symbol, used to keep the enum signed in all cases.
120102         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
120103         Youngman in
120104         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
120106         * lib/regex_internal.c (re_string_skip_chars, register_state):
120107         (calc_state_hash):
120108         Remove forward decls; no longer needed now that we use prototypes.
120109         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
120110         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
120111         (clean_state_log_if_needed): Likewise.
120113 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
120115         * config/srclist.txt: Add glibc bugs 1231-1233.
120117 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
120119         Fix problems reported by Sam Steingold in
120120         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
120121         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
120122         assumed that reg_errcode_t is a signed type, which is not
120123         necessarily true if _XOPEN_SOURCE is not defined.
120124         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
120125         since some compilers warn about it otherwise.
120127 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
120129         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
120130         (init_word_char, create_initial_state, duplicate_node_closure):
120131         (fetch_token, peek_token_bracket, build_range_exp):
120132         (build_collating_symbol): Remove forward decls; no longer needed
120133         now that we use prototypes.
120135         * lib/regcomp.c:
120136         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
120137         (re_compile_fastmap_iter, regcomp, regerror, regfree):
120138         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
120139         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
120140         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
120141         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
120142         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
120143         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
120144         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
120145         (build_range_exp, build_collating_symbol, parse_bracket_exp):
120146         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
120147         (build_charclass, build_charclass_op, fetch_number, create_tree):
120148         (create_token_tree, mark_opt_subexp, duplicate_tree):
120149         Use prototypes rather than old-style definitions.
120151         * lib/regex_internal.c:
120152         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
120153         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
120154         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
120155         (re_string_reconstruct, re_string_peek_byte_case):
120156         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
120157         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
120158         (re_node_set_init_copy, re_node_set_add_intersect):
120159         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
120160         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
120161         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
120162         (re_acquire_state, re_acquire_state_context, register_state):
120163         (create_ci_newstate, create_cd_newstate, free_state):
120164         Likewise.
120165         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
120166         re_search_2):
120167         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
120168         (re_search_internal, prune_impossible_nodes):
120169         (acquire_init_state_context, check_matching, static):
120170         (check_halt_node_context, check_halt_state_context, proceed_next_node):
120171         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
120172         (update_regs, sift_states_backward, build_sifted_states):
120173         (clean_state_log_if_needed, merge_state_array):
120174         (update_cur_sifted_state, add_epsilon_src_nodes):
120175         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
120176         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
120177         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
120178         (find_recover_state, check_subexp_matching_top, transit_state_mb):
120179         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
120180         (check_arrival, check_arrival_add_next_nodes):
120181         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
120182         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
120183         (check_node_accept_bytes, check_node_accept, extend_buffers):
120184         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
120185         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
120186         (sift_ctx_init):
120187         Likewise.
120189         * lib/regex_internal.h:
120190         (re_string_allocate, re_string_construct, re_string_reconstruct):
120191         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
120192         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
120193         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
120194         (re_string_context_at, re_string_peek_byte_case):
120195         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
120196         is defined, since we now use prototypes always.
120198         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
120199         C89 or better.  All uses removed.
120201 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
120203         * config/srclist.txt: Add glibc bugs 1220-1227.
120205 2005-08-20  Jim Meyering  <jim@meyering.net>
120207         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
120208         of unused local, dfa.
120210 2005-08-20  Bruno Haible  <bruno@clisp.org>
120212         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
120214 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120216         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
120217         (re_node_set_insert_last, re_dfa_add_node):
120218         Rename local variables to avoid GCC shadowing warnings.
120220 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120222         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
120223         [defined lint]: Suppress bogus uninitialized-variable warnings.
120225         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
120226         and let the caller return REG_ESPACE if out of space.  This
120227         removes an uninitialied-variable warning with GCC 4.0.1, and also
120228         avoids taking the address of a local variable.  All callers
120229         changed.
120231 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120233         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
120234         $LIBCSRC/posix/regexec.c.
120235         Add glibc bug 1217 for regcomp.c.
120237 2005-08-19  Jim Meyering  <jim@meyering.net>
120239         * lib/regexec.c (proceed_next_node): Redo local variables to
120240         avoid GCC shadowing warnings.
120242 2005-08-18  Bruno Haible  <bruno@clisp.org>
120244         * lib/strstr.c (strstr): Fix return value in multibyte case.
120245         * lib/strcasestr.c (strcasestr): Likewise.
120247 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
120249         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
120251 2005-08-17  Jim Meyering  <jim@meyering.net>
120253         Make the %s format (seconds since the epoch) work for a negative
120254         number and when used with a zero-padded field width, e.g. %015s.
120256         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
120257         label so that it precedes the code to set `digits'.  Otherwise,
120258         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
120259         print `00-22'.  Now, it prints `-0022', as it should.
120261 2005-08-17  Bruno Haible  <bruno@clisp.org>
120263         * modules/strstr (Files): Add m4/mbrtowc.m4.
120264         (Depends-on): Add mbuiter.
120266 2005-08-17  Bruno Haible  <bruno@clisp.org>
120268         * modules/strcasestr: New file.
120269         * MODULES.html.sh (String handling, based on ANSI C 89): Add
120270         strcasestr.
120272 2005-08-17  Bruno Haible  <bruno@clisp.org>
120274         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
120276 2005-08-17  Bruno Haible  <bruno@clisp.org>
120278         * modules/mbuiter: New file.
120279         * MODULES.html.sh (Extended multibyte and wide character utilities):
120280         Add mbuiter.
120282 2005-08-17  Bruno Haible  <bruno@clisp.org>
120284         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
120285         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
120287 2005-08-17  Bruno Haible  <bruno@clisp.org>
120289         * m4/strcasestr.m4: New file.
120291 2005-08-17  Bruno Haible  <bruno@clisp.org>
120293         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
120294         * lib/strstr.c: Completely rewritten, with multibyte locale support.
120296 2005-08-17  Bruno Haible  <bruno@clisp.org>
120298         * lib/strcasestr.h: New file.
120299         * lib/strcasestr.c: New file.
120301 2005-08-17  Bruno Haible  <bruno@clisp.org>
120303         * lib/strcasecmp.c: Use mbuiter.h.
120305 2005-08-17  Bruno Haible  <bruno@clisp.org>
120307         * lib/mbuiter.h: New file.
120309 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
120311         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
120312         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
120313         and gl_GETOPT are both invoked via different paths (as happens
120314         with GNU tar CVS because it uses both argp and getopt), the former
120315         wins.
120317 2005-08-16  Bruno Haible  <bruno@clisp.org>
120319         * modules/tls: New file.
120320         * MODULES.html.sh (Multithreading): Add tls.
120322 2005-08-16  Bruno Haible  <bruno@clisp.org>
120324         * modules/strnlen1: New file.
120325         * MODULES.html.sh (String handling): Add strnlen1.
120327 2005-08-16  Bruno Haible  <bruno@clisp.org>
120329         * modules/strcase (Files): Add m4/mbrtowc.m4.
120330         (Depends-on): Add strnlen1, mbchar.
120332 2005-08-16  Bruno Haible  <bruno@clisp.org>
120334         * modules/mbiter: New file.
120335         * MODULES.html.sh (Extended multibyte and wide character utilities):
120336         Add mbiter.
120338 2005-08-16  Bruno Haible  <bruno@clisp.org>
120340         * modules/mbfile: New file.
120341         * MODULES.html.sh (Extended multibyte and wide character utilities):
120342         Add mbfile.
120344 2005-08-16  Bruno Haible  <bruno@clisp.org>
120346         * modules/mbchar: New file.
120347         * MODULES.html.sh (Extended multibyte and wide character utilities):
120348         New section.
120350 2005-08-16  Bruno Haible  <bruno@clisp.org>
120352         * m4/tls.m4: New file, from GNU gettext.
120354 2005-08-16  Bruno Haible  <bruno@clisp.org>
120356         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
120357         always.
120358         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
120360 2005-08-16  Bruno Haible  <bruno@clisp.org>
120362         * m4/mbiter.m4: New file.
120364 2005-08-16  Bruno Haible  <bruno@clisp.org>
120366         * m4/mbfile.m4: New file.
120368 2005-08-16  Bruno Haible  <bruno@clisp.org>
120370         * m4/mbchar.m4: New file.
120372 2005-08-16  Bruno Haible  <bruno@clisp.org>
120374         * lib/tls.h: New file, from GNU gettext.
120375         * lib/tls.c: New file, from GNU gettext.
120377 2005-08-16  Bruno Haible  <bruno@clisp.org>
120379         * lib/strnlen1.h: New file.
120380         * lib/strnlen1.c: New file.
120382 2005-08-16  Bruno Haible  <bruno@clisp.org>
120384         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
120385         (mbi_init): Update.
120386         (mbi_avail, mbi_advance): Let the iteration end before the terminating
120387         NUL byte, not after it.
120389 2005-08-16  Bruno Haible  <bruno@clisp.org>
120391         * lib/strcase.h (strcasecmp): Add note in comments.
120392         * lib/strncasecmp.c: Use code from strcasecmp.c.
120393         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
120394         (strcasecmp): Work correctly in multibyte locales.
120396 2005-08-16  Bruno Haible  <bruno@clisp.org>
120398         * lib/mbiter.h: New file.
120400 2005-08-16  Bruno Haible  <bruno@clisp.org>
120402         * lib/mbfile.h: New file.
120404 2005-08-16  Bruno Haible  <bruno@clisp.org>
120406         * lib/mbchar.h: New file.
120407         * lib/mbchar.c: New file.
120409 2005-08-16  Bruno Haible  <bruno@clisp.org>
120411         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
120412         the valid ones. Makes the comparison operations transitive:
120413         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
120414         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
120416 2005-08-15  Simon Josefsson  <jas@extundo.com>
120418         * modules/ssize_t (License): Change to 'unlimited'.
120420         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
120422 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
120424         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
120425         Add comments for each pending glibc patch.
120427 2005-08-15  Bruno Haible  <bruno@clisp.org>
120429         * lib/regex.h (__restrict_arr): Don't define to __restrict if
120430         __cplusplus is defined.
120432 2005-08-14  Jim Meyering  <jim@meyering.net>
120434         Sync from coreutils.
120436         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
120437         Use the hash-table-based cycle-detection code not just when
120438         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
120439         Reported by James Youngman in
120440         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
120441         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
120442         FTS_TIGHT_CYCLE_CHECK.
120443         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
120444         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
120445         once again.
120446         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
120447         * lib/fts.c (fd_safer): Remove decl.
120448         Include fcntl--.h rather than unistd-safer.h
120449         (fts_safe_changedir): Don't call fd_safer; no longer needed
120450         now that we include fcntl--.h.
120452 2005-08-12  Simon Josefsson  <jas@extundo.com>
120454         * modules/getndelim2: Use ssize_t module.
120455         * modules/getnline: Likewise.
120456         * modules/safe-read: Likewise.
120457         * modules/xreadlink: Likewise.
120459         * modules/ssize_t: New file.
120461 2005-08-12  Simon Josefsson  <jas@extundo.com>
120463         * m4/readline.m4: Look for termcap, curses or ncurses if required.
120465 2005-08-12  Simon Josefsson  <jas@extundo.com>
120467         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
120468         ssize_t.
120470 2005-08-12  Simon Josefsson  <jas@extundo.com>
120472         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
120473         readline, getdelim and check_version.
120474         (Support for systems lacking ISO C 99: Sizes of integer types):
120475         Add size_max.
120477 2005-08-12  Bruno Haible  <bruno@clisp.org>
120479         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
120481 2005-08-11  Simon Josefsson  <jas@extundo.com>
120483         * modules/readline: New file.
120485         * modules/strnlen (Files): Add strnlen.h.
120487 2005-08-11  Simon Josefsson  <jas@extundo.com>
120489         * m4/readline.m4: New file.
120491 2005-08-11  Simon Josefsson  <jas@extundo.com>
120493         * lib/readline.h, readline.c: New file.
120495 2005-08-11  Simon Josefsson  <jas@extundo.com>
120497         * doc/gnulib.texi (Initial import, Finishing touches): Mention
120498         gl_AVOID.
120500 2005-08-11  Bruno Haible  <bruno@clisp.org>
120502         * lib/strnlen.h (strnlen): Change parameter name to match comment.
120504 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
120506         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
120508 2005-08-10  Simon Josefsson  <jas@extundo.com>
120510         * tests/test-iconvme.c: New file.
120512 2005-08-10  Simon Josefsson  <jas@extundo.com>
120514         * m4/strnlen.m4: New file.
120516         * m4/strndup.m4: Don't check for strnlen declaration, done in
120517         strnlen.m4.
120519 2005-08-10  Simon Josefsson  <jas@extundo.com>
120521         * lib/strndup.c: Use strnlen.h.
120523         * lib/strnlen.h: New file.
120525 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
120527         * README: Typos.
120529 2005-08-02  Simon Josefsson  <jas@extundo.com>
120531         * modules/readline: New file.
120533 2005-08-02  Simon Josefsson  <jas@extundo.com>
120535         * modules/getdelim: New file.
120537         * modules/getline: Rewrite, don't use getndelim2.
120539 2005-08-02  Simon Josefsson  <jas@extundo.com>
120541         * m4/getline.m4: Separate out getdelim stuff into separate module.
120543         * m4/getdelim.m4: New file.
120545 2005-08-02  Simon Josefsson  <jas@extundo.com>
120547         * lib/getline.h, getline.c: Rewrite.
120549         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
120551 2005-07-31  Bruno Haible  <bruno@clisp.org>
120553         * lib/lock.h (gl_lock_initializer): New macro.
120554         (gl_lock_define_initialized): Use it.
120555         (gl_rwlock_initializer): New macro.
120556         (gl_rwlock_define_initialized): Use it.
120557         (gl_recursive_lock_initializer): New macro.
120558         (gl_recursive_lock_define_initialized): Use it.
120560 2005-07-30  Karl Berry  <karl@gnu.org>
120562         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
120563         Report from Ben Pfaff, regarding getopt.
120565 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
120567         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
120568         normal way.
120569         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
120570         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
120571         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
120572         (gl_GETOPT): Use the new macros.  Most of the implementation
120573         is moved to the new macros.  This is for programs like Emacs
120574         that don't want all the functionality of gl_GETOPT.
120576 2005-07-26  Bruno Haible  <bruno@clisp.org>
120578         * m4/lock.m4: Update from GNU gettext.
120580 2005-07-26  Bruno Haible  <bruno@clisp.org>
120582         * lib/lock.h: Update from GNU gettext.
120583         * lib/lock.c: Update from GNU gettext.
120585 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
120587         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
120588         obsolescent AC_TRY_RUN.  Include the default includes files, for
120589         'exit'.
120591 2005-07-24  Bruno Haible  <bruno@clisp.org>
120593         * modules/visibility: New file.
120594         * MODULES.html.sh (Misc): Add visibility.
120596 2005-07-24  Bruno Haible  <bruno@clisp.org>
120598         * m4/visibility.m4: New file.
120600 2005-07-24  Bruno Haible  <bruno@clisp.org>
120602         * doc/visibility.texi: New file.
120604 2005-07-22  Bruno Haible  <bruno@clisp.org>
120606         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
120607         $(ALLOCA_H), redundant through BUILT_SOURCES.
120608         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
120609         redundant through BUILT_SOURCES.
120610         * modules/byteswap (Makefile.am): Remove explicit dependency on
120611         $(BYTESWAP_H), redundant through BUILT_SOURCES.
120612         * modules/fnmatch (Makefile.am): Remove explicit dependency on
120613         $(FNMATCH_H), redundant through BUILT_SOURCES.
120614         * modules/getopt (Makefile.am): Remove explicit dependency on
120615         $(GETOPT_H), redundant through BUILT_SOURCES.
120616         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
120617         redundant through BUILT_SOURCES.
120618         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
120619         redundant through BUILT_SOURCES.
120620         * modules/stdbool (Makefile.am): Remove explicit dependency on
120621         $(STDBOOL_H), redundant through BUILT_SOURCES.
120622         * modules/stdint (Makefile.am): Remove explicit dependency on
120623         $(STDINT_H), redundant through BUILT_SOURCES.
120624         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
120625         Remove explicit dependency on $(SYSEXITS_H).
120626         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
120628 2005-07-18  Simon Josefsson  <jas@extundo.com>
120630         * lib/check-version.c (check_version): Accept identical versions too.
120632 2005-07-18  Bruno Haible  <bruno@clisp.org>
120634         * modules/lock: New file.
120635         * MODULES.html.sh (Multithreading): New section.
120637 2005-07-18  Bruno Haible  <bruno@clisp.org>
120639         * m4/lock.m4: New file, from GNU gettext.
120641 2005-07-18  Bruno Haible  <bruno@clisp.org>
120643         * lib/lock.h: New file, from GNU gettext.
120644         * lib/lock.c: New file, from GNU gettext.
120646 2005-07-18  Bruno Haible  <bruno@clisp.org>
120648         * lib/lock.h (gl_once_t): New type.
120649         (gl_once_define, gl_once): New macros.
120650         * lib/lock.c (fresh_once): New variable.
120651         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
120652         functions.
120654 2005-07-16  Simon Josefsson  <jas@extundo.com>
120656         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
120657         workaround, suggested by Bruno.
120659 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
120661         * modules/xalloc (Depends-on): Add xalloc-die.
120662         * modules/xvasprintf (Depends-on): Add xalloc-die.
120664 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
120666         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
120667         with a minor change.
120669 2005-07-15  Bruno Haible  <bruno@clisp.org>
120671         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
120672         When using lib/poll.c, define poll as rpl_poll.
120674 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
120676         * modules/argp (Depends-on): Remove unlocked-io.
120678 2005-07-14  Derek Price  <derek@ximbiot.com>
120680         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
120681         for glob symlink bug.
120683 2005-07-14  Bruno Haible  <bruno@clisp.org>
120685         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
120686         Instead, test for *_unlocked function declarations directly.
120688 2005-07-11  Simon Josefsson  <jas@extundo.com>
120690         * modules/size_max: New file.
120692         * modules/xsize: Depend on size_max module for size_max.m4.
120694 2005-07-11  Simon Josefsson  <jas@extundo.com>
120696         * lib/size_max.h: New file.
120698 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
120700         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
120701         copyright symbol and the year.
120702         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
120703         (version_etc_va): Use parameterized copyright notice.
120704         Reword to conform to the current GNU coding standards.
120706 2005-07-11  Karl Berry  <karl@gnu.org>
120708         * doc/gnulib.texi (Quoting): new node.
120709         (Initial import): more info, from Patrice.
120711 2005-07-11  Bruno Haible  <bruno@clisp.org>
120713         * gnulib-tool (func_usage): Document option --avoid.
120714         (Command line options): Handle --avoid.
120715         (func_acceptable): New function.
120716         (func_modules_transitive_closure): Use it.
120718 2005-07-11  Bruno Haible  <bruno@clisp.org>
120720         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
120721         Reported by Jim Meyering.
120723 2005-07-10  Bruno Haible  <bruno@clisp.org>
120725         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
120726         Needed when size_t is smaller than 'unsigned int'.
120727         Reported by Paul Eggert.
120729 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
120731         * modules/argp (Depends-on): Add unlocked-io
120733 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
120735         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
120736         block of defines.
120738 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
120740         * config/srclist.txt: Comment out regcomp.c, since we have a porting
120741         fix now.
120743 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
120744         and Paul Eggert  <eggert@cs.ucla.edu>
120746         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
120747         in wint_t, not wchar_t.  Remove now-unnecessary cast.
120749 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120751         * modules/regex (Files): Add lib/regex_internal.c,
120752         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
120753         (Depends-on): Add extensions.
120754         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
120756 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120758         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
120759         pathconf.
120760         * m4/same.m4 (gl_SAME): Likewise.
120761         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
120763         * m4/regex.m4: Adjust to new libc regex implementation.
120764         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
120765         all the .c and .h parts of (the new) regex.
120766         Quote the m4 stuff better.
120767         Check for RE_ICASE bug of old gnulib.
120768         Check for REG_STARTEND of recent libc.
120769         Rename local variables from jm_* to gl_*.
120770         Quote operand of "test -f".
120771         Say "recent enough" version of libc, not "version 2".
120772         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
120773         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
120774         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
120775         Remove check for btowc, isascii.
120776         Require AM_LANGINFO_CODESET.
120778 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120780         * lib/regex.c, regex.h: Sync from libc.
120781         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
120782         * lib/regexec.c:
120783         New files, synced from libc, except that regex_internal.h
120784         currently has a small porting fix.
120786 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120788         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
120789         regex_internal.c, regexec.c.
120790         Add regex_internal.h too, but as a comment, since the libc version
120791         is currently broken in gnulib mode.
120793 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
120795         Support programs like Emacs that use gnulib but not gettext.
120796         * MODULES.html.sh (Internationalization functions): Add gettext-h.
120797         * modules/gettext-h: New file.
120798         * modules/gettext (Files): Remove lib/gettext.h.
120799         (Depends-on): Add gettext-h.
120800         (Makefile.am): Remove lib_SOURCES.
120801         * modules/argmatch, modules/c-stack, modules/closeout:
120802         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
120803         * modules/execute, modules/file-type, modules/getaddrinfo:
120804         * modules/getopt, modules/human, modules/javacomp:
120805         * modules/javaexec, modules/mkdir-p, modules/obstack:
120806         * modules/openat, modules/pagealign_alloc, modules/pipe:
120807         * modules/quotearg, modules/regex, modules/rpmatch:
120808         * modules/unicodeio, modules/userspec, modules/version-etc:
120809         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
120810         * modules/xsetenv:
120811         Depend on gettext-h, not gettext.
120813 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
120815         * gnulib-tool (func_import): Add support for 'public domain' license.
120816         * modules/alloca, modules/atexit, modules/memmove:
120817         Now public domain, not GPL.
120818         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
120819         * modules/realloc, modules/strerror, modules/strtod:
120820         Now LGPL, not GPL.
120822 2005-07-05  Bruno Haible  <bruno@clisp.org>
120824         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
120825         autoconf CVS. Needed for mingw.
120827 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
120829         Remove the dependency of the strftime module on the tzset module.
120830         * modules/strftime (Depends-on): Remove dependency on tzset.
120832 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
120834         Remove the dependency of the strftime module on the tzset module.
120835         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
120836         gl_FUNC_TZSET_CLOBBER.
120838 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
120840         Remove the dependency of the strftime module on the tzset module.
120841         * lib/strftime.c (my_strftime)
120842         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
120843         Copy the input structure, to work around some of the bug with
120844         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
120845         Solaris releases, you should also use the tzset module, but we won't
120846         require it as a dependency any more since we don't want LGPLed code
120847         to depend on GPLed code.
120849 2005-07-02  Jim Meyering  <jim@meyering.net>
120851         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
120852         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
120853         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
120854         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
120856 2005-07-02  Jim Meyering  <jim@meyering.net>
120858         * lib/backupfile.c (backup_args): Change a `0' to NULL.
120860 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
120862         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
120863         declares only 'struct timespec;' (!).
120865 2005-07-01  Jim Meyering  <jim@meyering.net>
120867         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
120868         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
120869         * lib/save-cwd.c, tempname.c:
120870         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
120871         and don't include <sys/file.h>).
120873 2005-06-29  Jim Meyering  <jim@meyering.net>
120875         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
120876         type name.  Use the variable name instead.
120877         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
120878         Likewise.
120880 2005-06-28  Simon Josefsson  <jas@extundo.com>
120882         * modules/check-version (Files): Add check-version.m4.
120884 2005-06-28  Simon Josefsson  <jas@extundo.com>
120886         * m4/check-version.m4: New file, suggested by Jim Meyering
120887         <jim@meyering.net>.
120889 2005-06-28  Simon Josefsson  <jas@extundo.com>
120891         * lib/check-version.h, lib/check-version.c: New files.
120893 2005-06-28  Simon Josefsson  <jas@extundo.com>
120895         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
120896         collision with global variable.  Better indentation.  Don't
120897         increment buffer pointer beyond buffer end.  Based on comments
120898         from Paul Eggert <eggert@cs.ucla.edu>.
120900         * lib/base64.h: Indent.
120902 2005-06-28  Simon Josefsson  <jas@extundo.com>
120904         * doc/gnulib.texi (Library version handling): New section.
120906 2005-06-28  Jim Meyering  <jim@meyering.net>
120908         * check-module (find_included_lib_files): Hard-code another
120909         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
120910         but modules/fts-lgpl (correctly) does not list those files.
120912         * modules/canonicalize (Files): Add lib/pathmax.h.
120914 2005-06-25  Simon Josefsson  <jas@extundo.com>
120916         * modules/check-version: New file.
120918 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
120920         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
120921         initializer of struct addrinfo, as an indication that we don't
120922         care how many members the structure has.
120924 2005-06-24  Derek Price  <derek@ximbiot.com>
120925         and Bruno Haible  <bruno@clisp.org>
120927         Remove stat module & update lstat.
120928         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
120929         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
120930         * m4/stat.m4: Remove this file.
120932 2005-06-24  Derek Price  <derek@ximbiot.com>
120933         and Bruno Haible  <bruno@clisp.org>
120935         Remove stat module & update lstat.
120936         * lib/stat.c: Remove this file...
120937         (slash_aware_lstat): ...moving this content and its support...
120938         * lib/lstat.c (rpl_lstat): ...into here.
120939         * lib/lstat.h: New file.
120941 2005-06-24  Derek Price  <derek@ximbiot.com>
120942         and Bruno Haible  <bruno@clisp.org>
120944         Remove stat module & update lstat.
120945         * config/srclist.txt (libc sources): Remove stat.
120947 2005-06-24  Derek Price  <derek@ximbiot.com>
120948         and Bruno Haible  <bruno@clisp.org>
120950         Remove stat module & update lstat.
120951         * MODULES.html.sh (stat): Remove.
120952         * MODULES.html: Regenerated.
120953         * modules/lstat (Description): Correct function name.
120954         (Files): Add "lstat.h".
120955         (Depends-on): Remove stat, add xalloc, stat-macros.
120956         * modules/stat: Remove this file.
120957         (Include): Add "lstat.h", remove <sys/stat.h>.
120959 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
120961         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
120962         (ranged_convert): Don't save conversion in a temporary struct.
120963         This causes a warning with GCC 4.0.0, and anyway in the typical
120964         case it's not worth the extra 100 bytes or so of code.
120965         (ranged_convert, __mktime_internal): When calling a function via a
120966         pointer P, use P () rather than (*P) (), as we now assume C89 or
120967         better.
120969 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
120971         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
120972         "who -r" failed to give output.  Problem reported by Tim Waugh.
120974         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
120975         (xcalloc): Use it to avoid needless tests.
120976         Problem reported by Jim Meyering.
120978 2005-06-20  Derek Price  <derek@ximbiot.com>
120980         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
120981         unnecessary for Autoconfs > 2.59c.
120983 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120985         * lib/argp.h (__option_is_short): Check upper limit of
120986         __key. Isprint() requires its argument to have the value
120987         of an unsigned char or EOF.
120989 2005-06-16  Jim Meyering  <jim@meyering.net>
120991         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
120992         when either N or S is zero.
120994 2005-06-16  Derek Price  <derek@ximbiot.com>
120996         * m4/bison.m4: Declare YACC & YFLAGS precious.
120998 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
121000         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
121001         multibyte string or pattern, fall back on unibyte matching.
121002         Problem reported by James Youngman.
121004 2005-06-08  Bruno Haible  <bruno@clisp.org>
121006         * modules/csharpcomp: New file.
121007         * MODULES.html.sh (C#): Add csharpcomp.
121009 2005-06-08  Bruno Haible  <bruno@clisp.org>
121011         * m4/csharpcomp.m4: New file, from GNU gettext.
121013 2005-06-08  Bruno Haible  <bruno@clisp.org>
121015         * lib/csharpcomp.h: New file, from GNU gettext.
121016         * lib/csharpcomp.c: New file, from GNU gettext.
121017         * lib/csharpcomp.sh.in: New file, from GNU gettext.
121019 2005-06-08  Bruno Haible  <bruno@clisp.org>
121021         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
121022         warning on mingw.
121024 2005-06-07  Derek Price  <derek@ximbiot.com>
121026         Sync from CVS.
121027         * lib/glob_.h: Indent nested #ifdef.
121029 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
121031         Sync from coreutils.
121032         Use "file name" when talking about file names, instead of "filename"
121033         or "path", as per the GNU coding standards.
121034         * lib/mkdir-p.c: Renamed from makepath.c.
121035         (make_dir_parents): Renamed from make_path.  All callers changed.
121036         * lib/mkdir-p.h: Likewise.  All includers changed.
121037         * lib/filenamecat.c: Renamed from path-concat.c.
121038         (file_name_concat): Renamed from path_concat.  All callers changed.
121039         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
121040         * lib/filenamecat.h: Likewise.  All includers changed.
121041         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
121042         in comments or local variable names.
121043         * lib/basename.c: Likewise.
121044         * lib/canonicalize.c, canonicalize.h: Likewise.
121045         * lib/dirname.c, dirname.h: Likewise.
121046         * lib/euidaccess.c: Likewise.
121047         * lib/exclude.c: Likewise
121048         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
121049         * lib/fsusage.c, fsuage.h: Likewise.
121050         * lib/fts.c, fts_.h: Likewise.
121051         * lib/getcwd.c: Likewise.
121052         * lib/getloadavg.c: Likewise.
121053         * lib/mkstemp.c: Likewise.
121054         * lib/mountlist.c, mountlist.h: Likewise.
121055         * lib/openat.c, openat.h: Likewise.
121056         * lib/readlink-stub.c: Likewise.
121057         * lib/readutmp.c, readutmp.h: Likewise.
121058         * lib/rename.c: Likewise.
121059         * lib/rmdir.c: Likewise.
121060         * lib/same.c: Likewise.
121061         * lib/savedir.c: Likewise.
121062         * lib/stripslash.c: Likewise.
121063         * lib/tempname.c: Likewise.
121064         * lib/xreadlink.c: Likewise.
121065         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
121066         All uses changed.
121067         * lib/exclude.h: Likewise.
121069         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
121070         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
121071         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
121072         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
121073         * lib/pathmax.h: Include <limits.h> unconditionally, since other
121074         files have been getting away with it for years (MORE/BSD 4.3
121075         is extinct now).
121076         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
121077         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
121079         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
121080         Define to 256, not 255, as per modern POSIX.
121082 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
121084         Sync from coreutils.
121085         Use "file name" when talking about file names, instead of "filename"
121086         or "path", as per the GNU coding standards.
121087         * MODULES.html.sh: mkdir-p renamed from makepath.
121088         filenamecat renamed from path-concat.
121089         * modules/filenamecat: Renamed from modules/path-concat.
121090         (Files): filenamecat.h and filenamecat.c renamed from
121091         path-concat.h and path-concat.c.
121092         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
121093         (Include): filenamecat.h, not path-concat.h.
121094         * modules/mkdir-p: Renamed from modules/makepath.
121095         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
121096         makepath.c.
121097         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
121098         (Include): mkdir-p.h, not makepath.h.
121100 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
121102         Sync from coreutils.
121103         * m4/mkdir-p.m4: Renamed from makepath.m4.
121104         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
121105         Rename files from makepath.c to mkdir-p.c, and from
121106         makepath.h to mkdir-p.h.
121107         * m4/filenamecat.m4: Renamed from path-concat.m4.
121108         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
121109         Rename files from path-concat.c to filenamecat.c,
121110         and from path-concat.h to filenamecat.h.
121111         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
121112         "file name" in local variables or comments.
121113         * m4/rename.m4: Likewise.
121115 2005-06-01  Bruno Haible  <bruno@clisp.org>
121117         * modules/csharpexec: New file.
121118         * MODULES.html.sh (C#): New section.
121120 2005-06-01  Bruno Haible  <bruno@clisp.org>
121122         * m4/csharp.m4: New file, from GNU gettext.
121123         * m4/csharpexec.m4: New file, from GNU gettext.
121125 2005-06-01  Bruno Haible  <bruno@clisp.org>
121127         * lib/csharpexec.h: New file, from GNU gettext.
121128         * lib/csharpexec.c: New file, from GNU gettext.
121129         * lib/csharpexec.sh.in: New file, from GNU gettext.
121131 2005-05-31  Derek Price  <derek@ximbiot.com>
121132             Paul Eggert  <eggert@cs.ucla.edu>
121134         Sync from cvs.
121135         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
121137 2005-05-31  Derek Price  <derek@ximbiot.com>
121138             Paul Eggert  <eggert@cs.ucla.edu>
121140         Sync from cvs.
121141         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
121143 2005-05-29  Derek Price  <derek@ximbiot.com>
121145         * config/srclist.txt (glob_.h, glob.c): Add these files.
121147 2005-05-29  Derek Price  <derek@ximbiot.com>
121149         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
121150         * modules/glob: New file.
121151         * modules/getlogin_r: Add link to POSIX spec in description.
121153 2005-05-29  Derek Price  <derek@ximbiot.com>
121154             Paul Eggert  <eggert@cs.ucla.edu>
121156         * m4/glob.m4: New file.
121158 2005-05-29  Derek Price  <derek@ximbiot.com>
121159             Paul Eggert  <eggert@cs.ucla.edu>
121161         * lib/glob_.h, lib/glob.c: New files.
121163 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
121165         * modules/fts (Files): Remove m4/inttypes-pri.m4.
121166         * modules/fts-lgpl (Depends-on): Remove gettext.
121168 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
121170         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
121171         and don't require gt_INTTYPES_PRI.
121173 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
121175         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
121177         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
121178         the configuration hassle isn't worth it.
121179         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
121180         (LONGEST_MODIFIER, PRIuMAX): Remove.
121182 2005-05-27  Bruno Haible  <bruno@clisp.org>
121184         * lib/getlogin_r.h: Remove second include of <stddef.h>.
121186 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
121188         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
121189         _POSIX_PTHREAD_SEMANTICS for Solaris.
121191 2005-05-25  Derek Price  <derek@ximbiot.com>
121193         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
121195 2005-05-25  Derek Price  <derek@ximbiot.com>
121196             Paul Eggert  <eggert@cs.ucla.edu>
121198         * modules/getlogin_r, m4/getlogin_r.m4: New files.
121199         * lib/getlogin_r.c, getlogin_r.h: New files.
121201 2005-05-25  Bruno Haible  <bruno@clisp.org>
121202             Derek Price  <derek@ximbiot.com>
121204         * lib/getlogin_r.h: Simplify API documentation.
121206 2005-05-23  Derek Price  <derek@ximbiot.com>
121208         * modules/minmax (Files): Add m4/minmax.m4.
121209         (configure.ac): Add gl_MINMAX.
121211 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
121213         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
121214         so that unistd-safer.h (GPL'ed code) need not be included.
121216 2005-05-22  Bruno Haible  <bruno@clisp.org>
121218         * m4/minmax.m4: New file.
121219         Based on a patch by Derek Price <derek@ximbiot.com>.
121221 2005-05-22  Bruno Haible  <bruno@clisp.org>
121223         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
121224         (INT64_MIN): Fix definition.
121225         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
121227         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
121228         NEED_SIGNED_INT_TYPES.
121230         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
121231         HAVE_SYSTEM_INTTYPES.
121233 2005-05-22  Bruno Haible  <bruno@clisp.org>
121235         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
121236         Also include <sys/param.h> if it defines MIN, MAX.
121237         Based on a patch by Derek Price <derek@ximbiot.com>.
121239 2005-05-21  Jim Meyering  <jim@meyering.net>
121241         * modules/fts (Files): Add m4/inttypes-pri.m4.
121242         (Depends-on): Add lstat and remove gettext.  Alphabetize.
121244 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
121246         New fts module.
121247         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
121248         (setup_dir, free_dir): New functions.
121249         (enter_dir, leave_dir): Define trivial
121250         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
121251         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
121252         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
121253         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
121254         Move to fts-cycle.c.
121255         (fts_open): Use setup_dir.
121256         (fts_close): Use free_dir.
121257         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
121258         This adds a label and some gotos, but the alternatives were messier.
121259         Check for memory allocation failure when entering a dir.
121260         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
121261         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
121262         (FTS): New member fts_cycle, that is a union that contains the
121263         old active_dir_ht and cycle_state.  All uses changed to mention
121264         fts_cycle.ht and fts_cycle.state.
121265         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
121266         fts.c, with the following changes:
121267         (setup_dir, free_dir): New functions.
121268         (enter_dir): Now returns bool.  Return true if successful, false
121269         if memory exhausted.  All callers changed.
121270         Do not bother partly cleaning up on
121271         memory allocation failure; that is free_dir's job.
121272         However, free ad if hash_insert fails, to avoid memory leak.
121273         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
121274         fts->fts_options to see which union member to use.
121276 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
121278         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
121279         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
121281 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
121283         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
121285 2005-05-20  Jim Meyering  <jim@meyering.net>
121287         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
121288         Now a macro, to pacify GCC.
121290 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
121292         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
121293         of -1.
121295 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
121297         * lib/chown.c (rpl_chown): Return -1 on failure.
121299 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
121301         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
121302         Don't check for stddef.h.
121303         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
121304         don't use its results.
121305         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
121306         since we include them unconditionally.  Don't require
121307         AM_STDBOOL_H, since stdbool is a prerequisite.
121308         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
121309         since we assume C89 or better.
121310         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
121311         as we don't use their results.
121312         Don't check for fchdir, memmove, memset, strrchr, as we use
121313         them unconditionally.
121314         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
121315         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
121317 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
121319         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
121320         Include <stddef.h> unconditionally, since we assume C89 now.
121321         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
121322         * lib/fts.c: Include fts_.h first, to check interface.
121323         Do not include intprops.h; no longer needed.
121324         Include cycle-check.h and hash.h, since fts_.h no longer does.
121325         Remove unnecessary casts of closedir to void.
121326         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
121327         decide whether to decrement nlinks.
121328         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
121329         (FTS): Use struct hash_table * instead of Hash_table, so that
121330         we no longer need to include hash.h here.
121332 2005-05-18  Jim Meyering  <jim@meyering.net>
121334         * modules/dirfd (License): Change to LGPL.  Most of the code
121335         is already in the public domain.
121337 2005-05-18  Jim Meyering  <jim@meyering.net>
121339         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
121340         Reported by Yoann Vandoorselaere.
121342 2005-05-17  Jim Meyering  <jim@meyering.net>
121344         * m4/fts.m4: New file, from coreutils.
121346 2005-05-17  Jim Meyering  <jim@meyering.net>
121348         * lib/fts.c, lib/fts_.h: New files, from coreutils.
121350 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
121352         Sync from coreutils.
121353         * m4/unlinkdir.m4: New file.
121355 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
121357         Sync from coreutils.
121358         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
121359         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
121360         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
121361         White space changes only.
121362         * lib/makepath.c (make_path): Port to hosts where leading "//" is
121363         special.
121364         * lib/yesno.c: Include getline.h, not ctype.h.
121365         (yesno): Don't remove leading white space; POSIX doesn't allow it.
121366         Use getline to remove arbitrary restriction on response length.
121368 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
121370         * config/srclist-update: Spell out "Street" in FSF postal
121371         mail address; this is the style the FSF seems to prefer.
121373         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
121374         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
121375         this updates FSF postal mail address.
121377         Sync from coreutils.
121378         * modules/unlinkdir: New file.
121379         * modules/yesno (Depends-on): Add getline.
121380         * MODULES.html.sh (File system functions): Add unlinkdir.
121382 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121384         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
121385         lib/strsep.h:
121386         Change the initial comment to refer to GPL, not LGPL.
121387         gnulib-tool will change it to LGPL as needed.
121389         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
121390         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
121391         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
121392         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
121393         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
121394         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
121395         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
121396         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
121397         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
121398         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
121399         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
121400         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
121401         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
121402         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
121403         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
121404         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
121405         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
121406         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
121407         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
121408         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
121409         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
121410         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
121411         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
121412         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
121413         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
121414         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
121415         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
121416         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
121417         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
121418         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
121419         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
121420         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
121421         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
121422         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
121423         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
121424         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
121425         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
121426         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
121427         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
121428         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
121429         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
121430         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
121431         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
121432         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
121433         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
121434         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
121435         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
121436         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
121437         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
121438         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
121439         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
121440         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
121441         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
121442         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
121443         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
121444         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
121445         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
121446         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
121447         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
121448         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
121449         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
121450         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
121451         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
121452         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
121453         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
121454         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
121455         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
121456         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
121457         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
121458         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
121459         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
121460         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
121461         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
121462         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
121463         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
121464         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
121465         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
121466         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
121467         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
121468         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
121469         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
121470         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
121471         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
121472         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
121473         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
121474         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
121475         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
121476         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
121477         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
121478         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
121479         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
121480         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
121481         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
121482         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
121483         lib/yesno.c, lib/yesno.h:
121484         Update FSF postal mail address.
121486 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121488         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
121489         tests/test-memmem.c, tests/test-stpncpy.c:
121490         Update FSF postal mail address.
121492 2005-05-13  Bruno Haible  <bruno@clisp.org>
121494         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
121495         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
121496         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
121497         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
121498         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
121499         Add support for 64-bit integers in the MSVC compiler.
121501 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121503         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
121505 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
121507         * gnulib-tool (func_import): Sort and uniquify recommended includes.
121509 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
121511         * doc/getdate.texi (General date syntax): Don't say that date
121512         date --iso-8601=ns generates acceptable dates; it doesn't yet.
121513         Problem reported by Nic Ferrier.
121515 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121517         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
121518         specified in ai_socktype. Fix invalid ai_protocol
121519         check. ai_protocol is usually set to 0 or depending on
121520         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
121521         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
121522         ai_socktype / ai_protocol in the returned addrinfo structure.
121524 2005-05-10  Simon Josefsson  <jas@extundo.com>
121526         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
121527         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
121529 2005-05-10  Karl Berry  <karl@gnu.org>
121531         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
121532         (from http://www.gnu.org/licenses).
121533         * doc/COPYING.LIB: also rename to COPYING.LESSER.
121534         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
121535         fdl.texi suffices.
121537 2005-05-10  Karl Berry  <karl@gnu.org>
121539         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
121540         (COPYING.DOC): remove.
121542         * config/srclist-update: new FSF address.
121544 2005-05-10  Derek Price  <derek@ximbiot.com>
121546         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
121547         possible.
121549 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121550             Bruno Haible  <bruno@clisp.org>
121552         * modules/inet_ntop: New file.
121553         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
121554         inet_ntop.
121556 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121557             Bruno Haible  <bruno@clisp.org>
121559         * m4/inet_ntop.m4: New file.
121561 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121562             Bruno Haible  <bruno@clisp.org>
121564         * lib/inet_ntop.h: New file.
121565         * lib/inet_ntop.c: New file, from glibc with modifications.
121567 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
121569         * modules/time_r (License): Change to LGPL.
121570         * modules/extensions (License): Change to LGPL.  Actually,
121571         the license is more permissive than that, but currently gnulib-tool
121572         doesn't know how to handle more-permissive licenses.
121574         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
121575         Problem reported by Dave Love.
121577 2005-05-08  Jim Meyering  <jim@meyering.net>
121579         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
121580         blank.
121582 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
121584         * modules/argmatch (Depends-on): Add stdbool.
121585         * modules/backupfile (Depends-on): Likewise.
121586         * modules/chdir-long (Depends-on): Likewise.
121587         * modules/closeout (Depends-on): Likewise.
121588         * modules/cycle-check (Depends-on): Likewise.
121589         * modules/dirname (Depends-on): Likewise.
121590         * modules/fnmatch (Depends-on): Likewise.
121591         * modules/fsusage (Depends-on): Likewise.
121592         * modules/fwriteerror (Depends-on): Likewise.
121593         * modules/getcwd (Depends-on): Likewise.
121594         * modules/getloadavg (Depends-on): Likewise.
121595         * modules/hard-locale (Depends-on): Likewise.
121596         * modules/makepath (Depends-on): Likewise.
121597         * modules/mountlist (Depends-on): Likewise.
121598         * modules/nanosleep (Depends-on): Likewise.
121599         * modules/posixtm (Depends-on): Likewise.
121600         * modules/quotearg (Depends-on): Likewise.
121601         * modules/readtokens (Depends-on): Likewise.
121602         * modules/readtokens0 (Depends-on): Likewise.
121603         * modules/readutmp (Depends-on): Likewise.
121604         * modules/save-cwd (Depends-on): Likewise.
121605         * modules/strftime (Depends-on): Likewise.
121606         * modules/userspec (Depends-on): Likewise.
121607         * modules/utimecmp (Depends-on): Likewise.
121608         * modules/xgetcwd (Depends-on): Likewise.
121609         * modules/xnanosleep (Depends-on): Likewise.
121610         * modules/xstrtod (Depends-on): Likewise.
121611         * modules/yesno (Depends-on): Likewise.
121613 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
121615         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
121616         needless checks.
121618 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121620         Merge from coreutils.  Among other things,
121621         add bulletproofing for cases where stdin, stdout, or stderr are closed.
121622         * lib/fd-safer.c: New file.
121623         * lib/fcntl-safer.h, open-safer.c: Remove.
121624         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
121625         * lib/dup-safer.c: Include unistd-safer.h first.
121626         Don't include errno.h.
121627         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
121628         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
121629         * lib/file-type.c: Rely on file-type.h change.
121630         * lib/getloadavg.c: Include unistd-safer.h.
121631         (getloadavg): Use safer open.
121632         * lib/getusershell.c: Include "stdio-safer.h".
121633         (getusershell): Use safer fopen.
121634         * lib/long-options.c (long_options): Use NULL rather than 0.
121635         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
121636         'free'.
121637         * lib/modechange.c: Likewise.
121638         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
121639         (MODE_DONE): New constant.
121640         (struct mode_change): Remove 'next' member.
121641         (make_node_op_equals): New function; like the old one of the
121642         same name, except it allocates an array.
121643         (mode_compile, mode_create_from_ref): Use it.
121644         (mode_compile): Allocate result as an array, not a linked list.
121645         Parse octal string ourself, so that we catch mistakes like "+0".
121646         (mode_adjust): Arg is an array, not a linked list.
121647         * lib/modechange.c: Include stat-macros.h, xalloc.h.
121648         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
121649         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
121650         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
121651         Remove.  This is now stat-macros.h's job.
121652         (talloc): Remove.  All callers replaced by xalloc, so that
121653         our invokers don't have to worry about reporting memory failures.
121654         (make_node_op_equals): Remove.
121655         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
121656         New constants.
121657         (struct mode_change): Moved here from modechange.h.
121658         (mode_append_entry): Remove.
121659         (mode_compile): Remove MASKED_OPS arg, since it encouraged
121660         apps to have incorrect behavior.  Use simpler algorithm for head
121661         and tail.  Don't futz with umask; that's now the job of mode_adjust.
121662         Detect more invalid usages rather than having somewhat-random behavior.
121663         Don't insert an "a=" action, as that leads to incorrect behavior.
121664         (mode_compile, mode_create_from_ref): Return NULL on error instead
121665         of an enum, since now there's only one way to have an error.  All
121666         callers changed.
121667         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
121668         at the correct time.  Simplify calculation of "+u" and its ilk.
121669         Don't mishandle "+X".
121670         (mode_free): Remove "register" and localize decls.
121671         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
121672         (struct mode_change): Move to modechange.c; callers don't
121673         need to see this stuff.
121674         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
121675         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
121676         (mode_change, mode_adjust): Reflect the new signatures noted above.
121677         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
121678         that might redefine system include files.
121679         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
121680         (my_usleep): Use NULL rather than (void *) 0.
121681         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
121682         Use siginterrupt to specify that system calls should be interrupted.
121683         (rpl_nanosleep): Move initialization of suspended closer to call of
121684         my_usleep.
121685         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
121686         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
121687         (desirable_utmp_entry): New function.
121688         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
121689         using x2nrealloc, to simplify logic.
121690         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
121691         size calculation.  Do not assume utmp file is a regular file.
121692         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
121693         (READ_UTMP_CHECK_PIDS): New constant.
121694         * lib/save-cwd.c: Include unistd-safer.h.
121695         (save_cwd): Use fd_safer.
121696         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
121697         [!_LIBC] Include "stat-macros.h" instead.
121698         * lib/unistd-safer.h (fd_safer): New decl.
121700 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121702         * modules/getloadavg (Depends-on): Add unistd-safer.
121703         * modules/getusershell (Depends-on): Add stdio-safer.
121704         * modules/lstat (Depends-on): Remove xalloc.
121705         * modules/mkstemp (Depends-on): Add stat-macros.
121706         * modules/modechange (Depends-on): Remove xstrtol.
121707         Add stat-macros, xalloc.
121708         * modules/save-cwd (Depends-on): Add unistd-safer.
121709         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
121710         * modules/unistd-safer (Files): Add lib/fd-safer.c
121711         (Makefile.am): Remove lib_SOURCES.
121713         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
121714         Remove fcntl-safer; unistd-safer supersedes it.
121716 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121718         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
121719         AC_HEADER_STAT.
121720         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
121721         (gl_PREREQ_CHOWN): Remove.
121722         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
121723         it.  Don't require AC_HEADER_STAT.
121724         (gl_PREREQ_LSTAT): Remove.
121725         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
121726         Don't require AC_HEADER_STAT.
121727         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
121728         (gl_PREREQ_RMDIR): Remove.
121729         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
121730         mention stat-macros.h or AC_HEADER_STAT, since we'll make
121731         the stat-macros module a prerequisite.
121732         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
121733         * m4/filemode.m4 (gl_FILEMODE): Likewise.
121734         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
121735         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
121736         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
121737         variable names.
121738         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
121739         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
121740         variable prefixes.
121741         * m4/fcntl-safer.m4: Remove.
121742         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
121743         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
121744         Invoke gl_PREREQ_FD_SAFER.
121745         (gl_PREREQ_FD_SAFER): New macro.
121746         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
121747         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
121748         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
121749         Remove duplicate call to AC_LIBOBJ(readutmp).
121750         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
121752         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
121753         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
121755 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121757         * MODULES.html.sh (Misc): Add byteswap.
121759 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121761         * modules/getcwd (Depends-on): Add extensions.
121762         * modules/openat (Depends-on): Likewise.
121764 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121766         * modules/byteswap: New file.
121768 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121770         * m4/byteswap.m4: New file.
121772 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121774         * lib/byteswap_.h: New file.
121776 2005-04-25  Karl Berry  <karl@gnu.org>
121778         * m4/gettext.m4: Update from GNU gettext 0.14.4.
121780 2005-04-25  Albert Chin  <china@thewrittenword.com>
121782         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
121783         Toolkit C bug.
121785 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
121787         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
121788         (func_ln_if_changed): Remove forcibly for no error message
121789         in case file does not exist.
121791 2005-04-19  Simon Josefsson  <jas@extundo.com>
121793         * gnulib-tool (Options): Make --symlink mean --symbolic.
121795 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
121797         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
121799 2005-04-16  Simon Josefsson  <jas@extundo.com>
121801         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
121803 2005-04-15  Simon Josefsson  <jas@extundo.com>
121805         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
121807 2005-04-15  Simon Josefsson  <jas@extundo.com>
121809         * gnulib-tool: Rename --symlink to --symbolic.
121811 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
121813         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
121814         symbolic links to files instead of copying/moving.  Add --aux-dir,
121815         specifying directory relative --dir where auxiliary build tools
121816         are placed.
121818 2005-04-14  Bruno Haible  <bruno@clisp.org>
121820         * modules/allocsa (License): Change to LGPL.
121821         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
121823 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
121825         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
121826         that "UTC +1 second" continues to work.  Problem reported
121827         by Dmitry V. Levin.
121828         (relunit_snumber): New rule.
121829         (relunit): Use it.
121831 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
121833         * lib/getdate.y (universal_time_zone_table): New constant.
121834         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
121835         universal_time_zone_table.
121836         (lookup_zone): Prefer universal_time_zone_table to
121837         local_time_zone_table, so that "GMT" time stamps are allowed in
121838         London during the summer.  Problem reported by Ian Abbott.
121840 2005-04-12  Jim Meyering  <jim@meyering.net>
121842         * lib/human.c (humblock): Set *options even when returning due to
121843         xstrtoumax conversion failure.  Thanks to a used-uninitialized
121844         warning from gcc-4.
121846 2005-04-09  Jim Meyering  <jim@meyering.net>
121848         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
121849         -Wuninitialized: initialize tm0.tm_year.
121851 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
121853         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
121854         count, since there's no maximum.  All uses changed.
121855         Add member dsts_seen.
121856         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
121857         not being INT_MAX.
121858         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
121859         Use pc_rels_seen to decide whether a date is absolute.
121861         * lib/getdate.y (number): Don't overwrite year.
121862         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
121863         check.
121865 2005-04-02  Simon Josefsson  <jas@extundo.com>
121867         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
121868         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
121870 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
121872         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
121873         where no absolute path name can be longer than PATH_MAX.
121875 2005-03-27  Jim Meyering  <jim@meyering.net>
121877         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
121879 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
121881         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
121882         "one's complement" -> "ones' complement" in comment, as per Knuth.
121883         "value of type" -> "type or expression" in comment.
121884         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
121886 2005-03-26  Jim Meyering  <jim@meyering.net>
121888         Comment nits.
121889         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
121890         Correct typos: s/or/of/.
121892 2005-03-26  Jim Meyering  <jim@meyering.net>
121894         * modules/check-include-files: Move to ../ and rename to...
121895         * check-module: ...this.
121897 2005-03-25  Jim Meyering  <jim@meyering.net>
121899         * modules/xvasprintf (Files): Add xalloc.h.
121901 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
121903         * modules/gettext (Files): config/config.rpath ->
121904         build-aux/config.rpath
121905         * modules/iconv (Files): Likewise.
121906         Problem reported by Oskar Liljeblad.
121908 2005-03-23  Jim Meyering  <jim@meyering.net>
121910         * modules/check-include-files: New script to check for
121911         missing dependencies, multiple includes, etc.
121913         * modules/c-strtold (Depends-on): Add xalloc.
121914         * modules/c-strtod (Depends-on): Add xalloc.
121915         * modules/hash (Depends-on): Add xalloc.
121916         (Files): Remove lib/xalloc.h.
121918         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
121919         * modules/userspec (Files): Add lib/inttostr.h.
121921 2005-03-23  Jim Meyering  <jim@meyering.net>
121923         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
121925 2005-03-22  Jim Meyering  <jim@meyering.net>
121927         * modules/stat-macros: New module.
121928         * modules/canonicalize, modules/euidaccess, modules/file-type,
121929         * modules/filemode, modules/lchown, modules/makepath,
121930         * modules/rmdir, modules/stat: Depend on new stat-macros module
121931         rather than listing lib/stat-macros.h manually.
121932         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
121934 2005-03-22  Jim Meyering  <jim@meyering.net>
121936         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
121938 2005-03-22  Bruno Haible  <bruno@clisp.org>
121940         * config/srclist.txt: Replace target directory 'config' with
121941         'build-aux'.
121942         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
121943         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
121944         ../build-aux/.
121946 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
121948         * modules/chdir-long (Depends-on): Add mempcpy.
121950         * modules/acl, modules/backupfile, modules/c-strtod,
121951         modules/c-strtold, modules/canon-host, modules/canonicalize,
121952         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
121953         modules/exclude, modules/exitfail, modules/file-type,
121954         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
121955         modules/getdate, modules/getline, modules/getpagesize,
121956         modules/getpass, modules/getugroups, modules/group-member,
121957         modules/hard-locale, modules/hash, modules/human, modules/idcache,
121958         modules/inttostr, modules/long-options, modules/makepath,
121959         modules/md5, modules/memcasecmp, modules/memcoll,
121960         modules/modechange, modules/mountlist, modules/path-concat,
121961         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
121962         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
121963         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
121964         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
121965         modules/strftime, modules/strndup, modules/strverscmp,
121966         modules/timespec, modules/unlocked-io, modules/userspec,
121967         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
121968         modules/yesno:
121969         Remove lib_SOURCES line from Makefile.am section, as this is now
121970         done automatically by the corresponding Autoconf macro.
121972 2005-03-21  Jim Meyering  <jim@meyering.net>
121974         Changes imported from coreutils.
121976         * lib/cycle-check.c: Don't include xalloc.h.
121978         * lib/path-concat.c: Don't include assert.h.
121979         (path_concat): Remove assertion that would have triggered
121980         for ABASE starting with more than one slash.
121981         Reported by Andreas Schwab.
121983         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
121984         properly when ABASE is an absolute file name.
121985         Correct the description of this function.
121986         Include <assert.h>.
121987         Add an assertion and a test driver.
121988         This fixes a bug introduced on 2004-07-02.
121989         Andreas Schwab reported the resulting failure of cp --parents:
121990         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
121992 2005-03-21  Jim Meyering  <jim@meyering.net>
121994         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
121995         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
121997 2005-03-21  Jim Meyering  <jim@meyering.net>
121998         and  Paul Eggert  <eggert@cs.ucla.edu>
122000         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
122001         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
122002         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
122003         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
122004         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
122005         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
122006         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
122007         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
122008         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
122009         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
122010         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
122011         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
122012         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
122013         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
122014         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
122015         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
122016         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
122017         for these modules.
122019 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
122021         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
122022         (which shouldn't happen), generate nothing instead of returning 0
122023         immediately, so that nstrftime (NULL, ...) doesn't return 0.
122025 2005-03-16  Bruno Haible  <bruno@clisp.org>
122027         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
122028         HAVE_LONGLONG_64BIT.
122030 2005-03-16  Bruno Haible  <bruno@clisp.org>
122032         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
122033         HAVE_LONGLONG_64BIT.
122035 2005-03-16  Bruno Haible  <bruno@clisp.org>
122037         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
122038         HAVE_LONGLONG_64BIT.
122040 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
122042         * lib/strftime.c (my_strftime): Prepend space to format so that we can
122043         reliably distinguish strftime failure from empty output on POSIX
122044         hosts.
122046 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
122048         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
122049         (iconv_string): Don't guess a size-zero buffer, as that might cause
122050         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
122051         result would be 'too large', where 'too large' is (heuristically)
122052         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
122053         overflow concerns.  This will prevent some unwanted malloc failures
122054         when the inputs are very large.
122056 2005-03-15  Karl Berry  <karl@gnu.org>
122058         * config/srclist.txt (config.rpath): from gettext.
122059         * config/config.rpath: update.
122061 2005-03-15  Bruno Haible  <bruno@clisp.org>
122063         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
122064         to 'negate'.
122066         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
122067         variable.
122069         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
122070         results.
122072 2005-03-14  Simon Josefsson  <jas@extundo.com>
122074         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
122075         <fx@gnu.org>.
122077 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
122079         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
122080         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
122081         intprops.h.
122082         * lib/strtol.c: Likewise.
122084 2005-03-14  Jim Meyering  <jim@meyering.net>
122086         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
122087         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
122088         to be nonzero so that we (and caller) can detect the difference
122089         between a valid zero-length expansion and an error return, even
122090         when the underlying strftime fails before writing anything into
122091         that location.
122093 2005-03-14  Bruno Haible  <bruno@clisp.org>
122095         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
122096         Update from GNU gettext 0.14.3.
122098 2005-03-10  Jim Meyering  <jim@meyering.net>
122100         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
122102 2005-03-10  Jim Meyering  <jim@meyering.net>
122104         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
122105         so that this module works on systems without fchdir.
122107 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
122109         Factor int-properties macros into a single file, except for
122110         glibc-related files.
122111         * lib/intprops.h: New file.
122112         * lib/getloadavg.c: Include it instead of limits.h.
122113         (INT_STRLEN_BOUND): Remove.
122114         * lib/human.c: Include intprops.h.
122115         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
122116         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
122117         302/1000.
122118         * lib/inttostr.h: Include intprops.h instead of limits.h.
122119         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
122120         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
122121         for consistency with intprops.h.
122122         (time_t_is_integer, twos_complement_arithmetic): Use them.
122123         * lib/sig2str.h: Include <signal.h>, intprops.h.
122124         (INT_STRLEN_BOUND): Remove.
122125         * lib/strftime.c (TYPE_SIGNED): Remove.
122126         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
122127         * lib/strtol.c: Adjust comments to match intprops.h.
122128         * lib/userspec.c: Include intprops.h.
122129         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
122130         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
122131         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
122132         instead of rolling our own expressions.
122133         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
122135         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
122136         instead of int.
122137         (my_strftime): Do not mishandle years close to INT_MAX, by doing
122138         the right thing even if adding 1900 would overflow.  Similarly
122139         for tm_mon + 1 and tm_yday + 1.
122140         Make %Y always equivalent to %C%y, and similarly for %G and %g.
122141         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
122142         (DO_SIGNED_NUMBER): New macro.
122143         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
122145 2005-03-07  Bruno Haible  <bruno@clisp.org>
122147         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
122149 2005-03-07  Bruno Haible  <bruno@clisp.org>
122151         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
122153 2005-03-04  Derek R. Price  <derek@ximbiot.com>
122155         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
122156         (func_import): Only replace files via --import when they have actually
122157         changed.
122159 2005-03-03  Derek R. Price  <derek@ximbiot.com>
122161         * m4/mmap-anon.m4: New file.
122162         * m4/pagealign_alloc.m4: New file.
122164 2005-03-03  Derek R. Price  <derek@ximbiot.com>
122165             Bruno Haible  <bruno@clisp.org>
122167         * modules/pagealign_alloc: New file.
122168         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
122170 2005-03-03  Derek R. Price  <derek@ximbiot.com>
122171             Bruno Haible  <bruno@clisp.org>
122173         * lib/pagealign_alloc.h: New file.
122174         * lib/pagealign_alloc.c: New file.
122176 2005-03-03  Bruno Haible  <bruno@clisp.org>
122178         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
122179         Use an all-permissive copyright notice, recommended by RMS.
122181 2005-03-02  Bruno Haible  <bruno@clisp.org>
122183         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
122184         of AIX, the replacement has to be done only after <string.h> is
122185         included, therefore not in config.h. stpncpy.h does the replacement,
122186         and stpncpy.c uses it.
122188 2005-03-02  Bruno Haible  <bruno@clisp.org>
122190         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
122191         stpncpy.c uses it.
122193 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
122195         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
122196         The workaround isn't strictly needed for POSIX conformance, and
122197         it's too much of a pain to configure and maintain.  We'll ask
122198         people to fix their kernels instead.
122199         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
122200         (NANOSLEEP_BUG_WORKAROUND): Remove.
122201         (xnanosleep): Remove the workaround.
122203 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
122205         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
122206         Reported by Derek Price.
122207         (Include): Add "timespec.h".
122209         * modules/xnanosleep (Depends-on): Remove gethrxtime.
122211 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
122213         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
122214         to detect nanosleep bug.
122216 2005-03-01  Bruno Haible  <bruno@clisp.org>
122218         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
122220 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
122222         * modules/gethrxtime: New file.
122223         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
122224         (Depends-on): Add gethrxtime.
122225         (configure.ac): Add gl_XNANOSLEEP.
122226         (Makefile.am): Remove lib_SOURCES line.
122228 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
122230         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
122231         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
122233 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
122235         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
122236         * lib/timespec.h (gettime): Return void, since it always
122237         succeeds now.  All uses changed.
122238         * lib/gettime.c (gettime): Likewise.
122239         [HAVE_NANOTIME]: Prefer nanotime.
122240         Assume gettimeofday succeeds, as POSIX requires.
122241         Assime time () succeeds, since other code already does.
122242         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
122243         (timespec_subtract): Remove.
122244         (NANOSLEEP_BUG_WORKAROUND): New constant.
122245         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
122246         things considerably.  Use it only on GNU/Linux hosts, since the
122247         workaround shouldn't be needed elsewhere.
122249 2005-02-24  Bruno Haible  <bruno@clisp.org>
122251         * modules/gettext (Files): Add m4/glibc2.m4.
122253 2005-02-24  Bruno Haible  <bruno@clisp.org>
122255         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
122256         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
122257         * m4/progtest.m4:
122258         Update from GNU gettext 0.14.2.
122259         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
122261 2005-02-24  Bruno Haible  <bruno@clisp.org>
122263         * lib/localcharset.c: Update from GNU gettext 0.14.2.
122264         * lib/config.charset: Update from GNU gettext 0.14.2.
122266 2005-02-24  Bruno Haible  <bruno@clisp.org>
122268         * lib/gettext.h: Update from GNU gettext 0.14.2.
122270 2005-02-23  Simon Josefsson  <jas@extundo.com>
122272         * m4/iconvme.m4: New file.
122274 2005-02-23  Jim Meyering  <jim@meyering.net>
122276         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
122277         change.
122278         Thanks to Bruno Haible for catching it.
122280 2005-02-22  Simon Josefsson  <jas@extundo.com>
122282         * modules/iconvme: New file.
122284         * MODULES.html.sh: Add iconvme.
122286 2005-02-22  Simon Josefsson  <jas@extundo.com>
122288         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
122290 2005-02-22  Simon Josefsson  <jas@extundo.com>
122292         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
122294 2005-02-22  Jim Meyering  <jim@meyering.net>
122296         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
122297         s/ifndef/ifdef/.
122299 2005-02-20  Neil Conway  <neilc@samurai.com>
122301         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
122302         returned by OSX/Darwin if the specified buffer is not large
122303         enough for the hostname.
122305 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122307         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
122308         pass it to _help, otherwise the latter coredumps trying to
122309         dereference state.root_argp.
122311 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
122313         * modules/chdir-long (Depends-on): Add memrchr.
122314         * modules/memrchr (Files): Add lib/memrchr.h.
122315         (Include): "memrchr.h".
122317 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
122319         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
122321 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
122323         * lib/memrchr.h: New file.
122324         * lib/chdir-long.c: Include it.
122325         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
122326         Don't bother including stddef.h.
122328 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
122330         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
122331         inclusion.
122332         Include <sys/types.h>, for dev_t.
122333         (ME_DUMMY, ME_REMOTE): Move from here....
122334         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
122335         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
122336         Dmitry V. Levin.
122337         Include mountlist.h first, to test the interface.
122339 2005-01-29  Bruno Haible  <bruno@clisp.org>
122341         * lib/progname.c (program_name): Initialize.
122342         Needed when linking statically on MacOS X.
122344 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
122346         Sync from coreutils.
122347         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
122348         (Depends-on): Add c-strtod.
122349         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
122351 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
122353         Sync from coreutils.
122354         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
122356         Remove files that are specific to coreutils.
122357         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
122359 2005-01-28  Bruno Haible  <bruno@clisp.org>
122361         * modules/javacomp: New file.
122362         * MODULES.html.sh (Java): Add javacomp.
122364 2005-01-28  Bruno Haible  <bruno@clisp.org>
122366         * m4/javacomp.m4: New file, from GNU gettext.
122368 2005-01-28  Bruno Haible  <bruno@clisp.org>
122370         * lib/javacomp.sh.in: New file, from GNU gettext.
122371         * lib/javacomp.h: New file, from GNU gettext.
122372         * lib/javacomp.c: New file, from GNU gettext.
122374 2005-01-26  Simon Josefsson  <jas@extundo.com>
122376         * lib/gai_strerror.c: Use GPL in header.
122378 2005-01-26  Bruno Haible  <bruno@clisp.org>
122380         * modules/javaexec: New file.
122381         * MODULES.html.sh (Java): Add javaexec.
122383 2005-01-26  Bruno Haible  <bruno@clisp.org>
122385         * m4/javaexec.m4: New file, from GNU gettext.
122387 2005-01-26  Bruno Haible  <bruno@clisp.org>
122389         * lib/javaexec.sh.in: New file, from GNU gettext.
122390         * lib/javaexec.h: New file, from GNU gettext.
122391         * lib/javaexec.c: New file, from GNU gettext.
122393 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122395         * modules/lchown (Depends-on): Remove lchown.h
122397 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122399         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
122400         must be defined if the header file was not found, in order
122401         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
122403 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122405         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
122406         initializers for struct pentry_state.
122407         (__argp_error): Check return value of __asprintf
122408         (__argp_failure): Translate error message
122410         * lib/argp-parse.c: Removed braces around the expansion of N_()
122412 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
122414         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
122415         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
122416         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
122417         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
122418         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
122419         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
122420         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
122421         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
122422         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
122423         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
122424         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
122425         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
122426         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
122427         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
122428         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
122429         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
122430         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
122431         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
122432         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
122433         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
122434         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
122435         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
122436         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
122437         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
122438         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
122439         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
122440         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
122441         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
122442         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
122443         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
122444         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
122445         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
122446         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
122447         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
122448         xstrtol.m4, xstrtoumax.m4, yesno.m4:
122449         Use an all-permissive copyright notice, recommended by RMS.
122451 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
122453         * modules/chdir-long (Depends-on): Remove mempcpy.
122455 2005-01-21  Jim Meyering  <jim@meyering.net>
122457         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
122458         same value as for Solaris 9.
122460         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
122461         component length.  This included changing the parameter to be
122462         of type `char *' rather than `char const *'.
122463         * lib/chdir-long.h (chdir_long): Update prototype.
122465         * lib/openat.c (fdopendir, fstatat): New functions.
122466         * lib/openat.h: Include headers required for use of DIR and struct
122467         stat.
122468         [AT_SYMLINK_NOFOLLOW]: Define.
122469         (fdopendir, fstatat): Add prototypes.
122471 2005-01-21  Bruno Haible  <bruno@clisp.org>
122473         * modules/classpath: New file.
122474         * MODULES.html.sh (Java): Add classpath.
122476 2005-01-21  Bruno Haible  <bruno@clisp.org>
122478         * lib/classpath.h: New file, from GNU gettext.
122479         * lib/classpath.c: New file, from GNU gettext.
122481 2005-01-20  Simon Josefsson  <jas@extundo.com>
122483         * modules/version-etc-fsf: New file.
122485 2005-01-20  Simon Josefsson  <jas@extundo.com>
122487         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
122488         * lib/version-etc.c: Remove version_etc_copyright.
122489         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
122490         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
122492 2005-01-20  Simon Josefsson  <jas@extundo.com>
122494         * lib/base64.h (isbase64): Add.
122496         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
122497         using a unsigned prototype, don't inline.
122498         (base64_decode): Use it.
122500 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
122502         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
122503         it.
122505 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
122507         * lib/save-cwd.c (save_cwd): Remove code to support the case
122508         where fchdir is missing or flaky.
122510 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
122512         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
122514 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
122516         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
122517         AC_LIBSOURCES now does this.
122518         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
122519         with new ullong_max module.
122521 2005-01-19  Bruno Haible  <bruno@clisp.org>
122523         * modules/sh-quote: New file.
122524         * MODULES.html.sh (Executing programs): Add sh-quote.
122526 2005-01-19  Bruno Haible  <bruno@clisp.org>
122528         * lib/sh-quote.h: New file, from GNU gettext.
122529         * lib/sh-quote.c: New file, from GNU gettext.
122531 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
122533         Merge from coreutils.
122534         * m4/ullong_max.m4: New file.
122535         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
122536         (gl_MACROS): Assume localeconv exists.
122538 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
122540         Merge changes from coreutils, as described below in several
122541         changelogs dated today.
122543         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
122544         (O_DIRECTORY): Remove; not needed here, since "." must be
122545         a directory.  All uses removed.
122546         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
122547         universal on Suns, and we also need to test for IRIX.
122548         Revamp code to use 'if' rather than '#if'.
122549         Avoid unnecessary comparison of cwd->desc to 0.
122551         * lib/utimens.c (futimens): Robustify the previous patch, by checking
122552         for known valid error numbers rather than observed invalid ones.
122554 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
122556         * modules/ullong_max: New file.
122558         * modules/chdir-long, modules/openat: New files.
122559         * modules/save-cwd (Depends-on): Depend on chdir-long.
122560         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
122562 2005-01-18  Jim Meyering  <jim@meyering.net>
122564         Merge from coreutils.
122565         * m4/chdir-long.m4, m4/openat.m4: New files.
122566         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
122567         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
122568         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
122569         is sane and DOES follow symlinks.  Besides, testing 20 different
122570         systems found no broken chown implementations.
122571         Prompted by a change in rsync's copy of this macro.
122572         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
122574         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
122576         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
122577         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
122578         NULL-means-set-to-current-time semantics.
122579         Remove temporary file immediately, rather than waiting
122580         for configure's at-exit trap code to do it.
122582 2005-01-18  Jim Meyering  <jim@meyering.net>
122584         * lib/version-etc.c (version_etc_copyright): Update copyright date.
122586         * lib/utimens.c (futimens): Account for the fact that futimes
122587         can also fail with errno == ENOSYS or errno == ENOENT.
122588         Patch from Dmitry V. Levin.
122590         Change the name of the robust chdir function from chdir to chdir_long.
122591         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
122592         (restore_cwd): Use chdir_long, not chdir.
122593         * lib/chdir-long.c: Renamed from chdir.c.
122594         * lib/chdir-long.h: Renamed from chdir.h.
122595         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
122596         Hurd.
122598 2005-01-18  Bruno Haible  <bruno@clisp.org>
122600         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
122601         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
122602         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
122603         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
122604         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
122605         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
122606         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
122607         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
122608         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
122609         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
122610         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
122611         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
122612         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
122613         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
122614         Use an all-permissive copyright notice, recommended by RMS.
122616 2005-01-18  Bob Proulx  <bob@proulx.com>
122618         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
122619         simplify offsetof() macro construct to avoid compile failure with
122620         native HP-UX 11.0 ANSI C compiler.
122622 2005-01-17  Bruno Haible  <bruno@clisp.org>
122624         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
122625         redundant because stpncpy.m4 takes care of it.
122627 2005-01-17  Bruno Haible  <bruno@clisp.org>
122629         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
122631 2005-01-17  Bruno Haible  <bruno@clisp.org>
122633         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
122634         used.
122636 2005-01-17  Bruno Haible  <bruno@clisp.org>
122638         * lib/fwriteerror.h (fwriteerror): Change specification to include
122639         fclose.
122640         * lib/fwriteerror.c: Include <stdbool.h>.
122641         (fwriteerror): At the end, close the file stream. Record whether
122642         stdout was already closed.
122644 2005-01-17  Bruno Haible  <bruno@clisp.org>
122646         * lib/execute.c (environ): Declare if needed.
122647         * lib/pipe.c (environ): Likewise.
122648         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
122650 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122652         * modules/argp: Depend on vsnprintf
122654 2005-01-10  Jim Meyering  <jim@meyering.net>
122656         * modules/closeout (Depends-on): Add atexit.
122658 2005-01-06  Bruno Haible  <bruno@clisp.org>
122660         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
122662 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
122664         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
122665         definitions to be after all include files, to avoid collisions.
122666         Problem reported by Bob Proulx.
122668 2005-01-04  Jim Meyering  <jim@meyering.net>
122670         Changes imported from coreutils.
122671         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
122672         as the mkstemp template, use a temporary directory and an
122673         8.3-friendly template to avoid trouble on systems like DJGPP.
122674         Reported by Juan M. Guerrero via Stepan Kasal.
122675         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
122676         close. Remove the temporary directory right away, rather than waiting
122677         for configure's at-exit trap code to do it.
122678         Suggestion from Stepan Kasal.
122680 2005-01-01  Simon Josefsson  <jas@extundo.com>
122682         * gnulib-tool: Print #include directives when --import'ing.
122684 2004-12-28  Simon Josefsson  <jas@extundo.com>
122686         * tests/test-base64.c: Include required header files.  Remove
122687         unused variables.
122689 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
122691         * modules/error (Depends-on): Remove gettext.
122693 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
122695         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
122696         not needed.  This removes a dependency on the gettext module.
122697         [defined _LIBC]: Do not include <libintl.h>; not needed.
122699 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
122701         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
122702         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
122704 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
122706         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
122707         HAVE_DECL_STRTOLD.
122709 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
122711         * modules/getdate (Depends-on): Remove alloca-opt.
122713 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
122715         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
122717 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
122719         * lib/argp-parse.c: Include <stddef.h>.
122720         (alignof, alignto): New macros.
122721         (parser_init): Don't assume that void * is aligned sufficiently
122722         for struct option.
122724         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
122725         need to extend the stack.
122726         (YYINITDEPTH): New macro, so that the initial stack isn't overly
122727         large.
122729 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122731         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
122733 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
122735         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
122736         (2004-10-24) change.  Apparently this was a false alarm.
122738         * modules/getdate: Depend on alloca-opt, not alloca.
122740 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
122742         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
122743         Remove now-obsolete comment about AIX.
122744         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
122745         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
122746         (YYMAXDEPTH): New macro.
122748 2004-12-18  Simon Josefsson  <jas@extundo.com>
122750         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
122752 2004-12-18  Bruno Haible  <bruno@clisp.org>
122754         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
122756 2004-12-18  Bruno Haible  <bruno@clisp.org>
122758         * lib/fatal-signal.c (fatal_signals): Make non-const.
122759         (init_fatal_signals): New function.
122760         (uninstall_handlers, install_handlers): Ignore signals that were set to
122761         SIG_IGN.
122762         (at_fatal_signal): Call init_fatal_signals.
122763         (init_fatal_signal_set): Likewise. Ignore signals that were set to
122764         SIG_IGN.
122765         Reported by Paul Eggert.
122767 2004-12-18  Bruno Haible  <bruno@clisp.org>
122769         * doc/alloca.texi: New file.
122770         * doc/alloca-opt.texi: New file.
122772 2004-12-17  Jim Meyering  <jim@meyering.net>
122774         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
122775         Otherwise, install-sh could exit with improper exit status when
122776         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
122778 2004-12-16  Simon Josefsson  <jas@extundo.com>
122780         * tests/test-base64.c: Add license.
122782 2004-12-15  Stepan Kasal  <address@hidden>
122784         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
122786 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
122788         * modules/getcwd (Files): Add m4/d-ino.m4.
122789         Suggested by Mark D. Baushke.
122791 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
122793         * lib/getdate.y (textint): New member "negative".
122794         (time_zone_hhmm): New function.
122795         Expect 14 shift-reduce conflicts, not 13.
122796         (o_colon_minutes): New rule.
122797         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
122798         (yylex): Set the "negative" member of signed numbers.
122800 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
122802         * doc/getdate.texi (Time of day items, Time zone items):
122803         Describe new formats +00:00, UTC+00:00.
122805 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
122807         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
122808         spurious "-l"s.  Problem reported by Stepan Kasal.
122810 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
122812         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
122813         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
122815 2004-12-04  Simon Josefsson  <jas@extundo.com>
122817         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
122818         Vandoorselaere <yoann@prelude-ids.org>.
122820 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
122822         Changes imported from coreutils.
122823         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
122824         exist.
122825         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
122827 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
122829         Changes imported from coreutils.
122830         * lib/hard-locale.c: Assume <locale.h> exists.
122831         Include "strdup.h".
122832         (GLIBC_VERSION): New macro.
122833         (hard_locale): Assume setlocale exists.
122834         Rewrite to avoid #ifdef.
122835         Use strdup rather than malloc + strcpy.
122836         * lib/human.c: Assume <locale.h> exists.
122837         (human_readable): Assume localeconv exists.
122839 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
122841         * modules/hard-locale (Depends-on): Add strdup.
122843 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
122845         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
122846         convert T2, not T.  (Imported from libc.)
122848 2004-11-30  Simon Josefsson  <jas@extundo.com>
122850         * modules/restrict (License): Change to LGPL.
122852 2004-11-30  Simon Josefsson  <jas@extundo.com>
122854         * m4/restrict.m4: Add copyright and copying conditions.
122856 2004-11-30  Simon Josefsson  <jas@extundo.com>
122858         * m4/base64.m4: New file.
122860 2004-11-30  Simon Josefsson  <jas@extundo.com>
122862         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
122863         base64.
122865         * tests/test-base64.c: New file.
122867         * modules/base64: New file.
122869 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
122871         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
122872         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
122874         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
122876 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
122878         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
122879         (__getcwd.c): Don't restore errno; glibc doesn't.
122880         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
122881         first, falling back to our code only if its results look suspicious.
122882         Ensure that the resulting buffer is only as large as necessary.
122884         * lib/readutmp.c: Include readutmp.h first.
122885         Include <errno.h>, since readutmp.h no longer does that.
122886         * lib/readutmp.h: Don't include <errno.h>,
122887         <sys/param.h>, <time.h>; not needed to establish interface.
122888         (errno): Remove decl.
122889         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
122890         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
122891         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
122893 2004-11-28  Simon Josefsson  <jas@extundo.com>
122895         * lib/base64.h, base64.c: New file.
122897 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
122899         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
122901 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
122903         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
122904         (Depends-on): Remove pathmax, same.  Add mempcpy.
122905         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
122906         (Makefile.am): Append getcwd.h to lib_SOURCES.
122907         (Include): Add getcwd.h.
122908         (Maintainer): Change from Jim Meyering to "all, glibc",
122909         since getdate now uses intended-for-glibc code.
122910         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
122911         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
122913 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
122915         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
122916         HP's ANSI C compiler.
122917         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
122918         Declaring int functions causes warnings on some modern systems and
122919         shouldn't be needed to compile on ancient ones.
122920         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
122921         defined.
122923         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
122924         with the following changes.
122925         (__set_errno): Parenthesize properly.
122926         Include <stdbool.h>.
122927         (MIN, MAX, MATCHING_INO): New macros.
122928         (__getcwd): Define with prototype, not K&R form.
122929         Use heuristics to allocate default buffer on stack if possible.
122930         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
122931         behavior, and to avoid the PATH_MAX limit when computing
122932         ../../../../...
122933         Use MATCHING_INO to compare inode number to file.
122934         Check for arithmetic overflow in size calculations.
122935         Fix bug in reallocation of dot array that caused getcwd to fail
122936         on directories nested deeper than 75.
122937         Be more careful about saving errno on error.
122938         Do not use realloc; use only free+malloc, as this is a bit
122939         more flexible and avoids a needless copy operation.
122940         Do not inspect st_dev and st_ino for symbolic links; POSIX
122941         doesn't specify the latter.
122942         Check for closedir errors.
122943         Avoid needless casts.
122944         Use "#ifdef weak_alias" around weak_alias, to be like other
122945         glibc code.
122946         The following changes to getcwd.c have effect only when used in
122947         gnulib; they have no effect inside glibc proper.
122948         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
122949         as alloca isn't used.
122950         (alloca, __alloca): Likewise.
122951         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
122952         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
122953         unconditionally, as gnulib assumes C89 or better.
122954         Do not include <sys/param.h>.
122955         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
122956         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
122957         better.
122958         (NULL) [!defined NULL]: Remove; we assume C89 or better.
122959         Include <dirent.h> in a way that is compatible with modern Autoconf.
122960         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
122961         New macros, if not already defined.
122962         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
122963         Use "_LIBC", not "defined _LIBC", for consistency.
122964         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
122965         a mempcpy module.
122966         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
122967         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
122968         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
122969         credit only to Jim Meyering and adjust the copyright dates.
122970         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
122971         <stdlib.h>, <unistd.h>, "pathmax.h".
122972         Instead, include "xgetcwd.h" (first) and "getcwd.h".
122973         (INITIAL_BUFFER_SIZE): Remove.
122974         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
122976 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
122978         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
122979         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
122980         Use the _ONCE methods, for efficiency.
122981         Check for fcntl.h.  In test program, include <errno.h>
122982         and <fcntl.h> if available.  Remove old K&R cruft from
122983         test program.  Check for common errors in GNU/Linux,
122984         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
122985         don't do AC_LIBOBJ, as that's getcwd.m4's job.
122986         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
122987         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
122988         name accordingly.
122989         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
122990         accommodate new getcwd.c.
122991         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
122992         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
122993         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
122994         that's all we need now.
122996 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122998         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
122999         argp-parse.c depends on getopt internals, that means we should
123000         always use our getopt, to be on the safe side.
123001         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
123002         order not to spoil the result of an eventual previous invocation
123003         of gl_GETOPT_SUBSTITUTE.
123005 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123007         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
123008         redefinition warnings. To avoid them, include the defines
123009         in `#if !defined __need_getopt ... #endif'. The only place
123010         where __getopt_argv_const is used is in definitions
123011         of getopt_long and getopt_long_only below, which are as well
123012         protected by `#ifndef __need_getopt'.
123013         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
123014         __need_getopt after including <stdio.h> and <unistd.h> These
123015         headers might have defined it.
123017 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
123019         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
123021 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
123023         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
123024         (futimens): New function, which uses futimes if available.
123025         (futimens, utimens): Support timespec==NULL, with same semantics
123026         as utime and utimens.
123027         * lib/utimens.h (futimens): New decl.
123029 2004-11-23  Jim Meyering  <jim@meyering.net>
123031         * lib/getopt_.h: Remove trailing blanks.
123033 2004-11-23  Jim Meyering  <jim@meyering.net>
123035         * lib/__fpending.c: Add comment.
123037 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
123039         * modules/canonicalize (Depends-on): Add xreadlink.
123040         Problem reported by James Youngman.
123042 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
123044         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
123045         New macros.
123046         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
123047         optopt): Use them instead of invoking ## directly; otherwise, the
123048         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
123050 2004-11-19  Bruno Haible  <bruno@clisp.org>
123052         * lib/strtok_r.c: Move comments from here...
123053         * lib/strtok_r.h: ... to here.
123055 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
123057         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
123058         implementations that mishandle size_t overflow.
123060 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
123062         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
123063         might fail.  Problem reported by Yoann Vandoorselaere.
123064         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
123065         implementations that mishandle size_t overflow.
123067 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123069         * modules/canon-host (Depends-on): Add strdup.
123071 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123073         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
123075 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123077         * lib/canon-host.c: Include "strdup.h".
123078         (canon_host): Use getaddrinfo if available, so that IPv6 works.
123079         Use strdup instead of malloc/strcpy to duplicate strings.
123081         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
123082         (human_space_before_unit): New constant.
123083         * lib/human.c (human_readable): Support it.
123085         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
123086         (xgetcwd): Set errno correctly when failing.
123087         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
123088         the failure is actually due to a PATH_MAX problem.
123090         Further getopt changes to make it more likely that glibc will
123091         buy the changes back.
123092         * lib/getopt.c (POSIXLY_CORRECT): New constant.
123093         (getopt): Use it, so to preserve glibc semantic
123094         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
123095         when compiling for libc.
123096         * lib/getopt_.h (__getopt_argv_const): Bring it back.
123097         (getopt_long, getopt_long_only): Use it.
123099         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
123100         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
123101         (getopt): Argv is now char * const *, as per standard.
123102         (_getopt_internal_r, _getopt_internal): Argv is now char **,
123103         not char *__getopt_argv_const *.
123104         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
123105         _getopt_long_only_r): Likewise.
123106         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
123107         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
123108         _getopt_long_r, _getopt_long_only_r): Likewise.
123109         * lib/getopt_.h (__getopt_argv_const): Remove.
123110         (getopt): Argv is now char * const *, as per standard.
123112         * lib/getdate.y (tORDINAL): New token.
123113         (day, relunit): Allow it for relative times.
123114         (relative_time_table): Use tORDINAL for ordinals.
123116 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123118         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
123119         Document that "second" isn't allowed as an ordinal number.
123121 2004-11-16  Jim Meyering  <jim@meyering.net>
123123         * modules/closeout (Depends-on): Add fpending.
123125 2004-11-15  Jim Meyering  <jim@meyering.net>
123127         * lib/closeout.c: Include "__fpending.h" once again.
123128         Include <stdbool.h>.
123129         (close_stdout): Don't fail just because stdout was closed initially,
123130         since some programs don't write to stdout in the normal course of
123131         operation (other than --version and --help), and we don't want this
123132         function to make e.g. `touch file >&-' fail.
123133         But do fail if it was closed and someone has tried to write to it.
123134         E.g., `printf foo >&-' must fail.
123136 2004-11-13  Jim Meyering  <jim@meyering.net>
123138         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
123140 2004-11-12  Simon Josefsson  <jas@extundo.com>
123142         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
123143         small doc fix is still pending.
123145 2004-11-11  Simon Josefsson  <jas@extundo.com>
123147         * modules/strtok_r: New file.
123149         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
123150         strtok_r.
123152 2004-11-11  Simon Josefsson  <jas@extundo.com>
123154         * m4/strtok_r.m4: New file.
123156         * m4/getopt.m4: Replace opterr.
123158 2004-11-11  Simon Josefsson  <jas@extundo.com>
123160         * lib/strtok_r.h, strtok_r.c: New file.
123162 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
123164         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
123165         of replacing opterr, getopt, etc.  This should handle the
123166         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
123168 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
123170         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
123171         we can stop lying to compilers about the constness of argv when we
123172         are compiled outside glibc.
123173         (getopt, getopt_long, getopt_long_only): Use it.
123174         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
123175         _getopt_internal, getopt): Likewise.
123176         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
123177         _getopt_long_only_r): Likewise.
123178         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
123179         _getopt_long_r, _getopt_long_only_r): Likewise.
123181         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
123182         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
123183         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
123184         the other external symbols.
123185         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
123186         declaration, since the above renaming now works around collisions.
123188 2004-11-11  Jim Meyering  <jim@meyering.net>
123190         * lib/linebreak.c: Remove trailing blanks.
123191         * lib/alloca_.h: Likewise.
123192         * lib/acosl.c: Likewise.
123193         * lib/euidaccess.c: Likewise.
123194         * lib/allocsa.h: Likewise.
123196 2004-11-10  Simon Josefsson  <jas@extundo.com>
123198         * m4/getaddrinfo.m4: New file.
123200 2004-11-10  Simon Josefsson  <jas@extundo.com>
123202         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
123204 2004-11-10  Simon Josefsson  <jas@extundo.com>
123206         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
123207         getaddrinfo.
123209         * modules/getaddrinfo: New file.
123211 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
123213         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
123215 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
123217         * lib/mktime.c (SHR): New macro, which is a portable
123218         substitute for >> that should work even on Crays.
123219         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
123220         Problem reported by Mark D. Baushke in
123221         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
123222         * lib/getdate.y (SHR): Likewise.
123223         (tm_diff): Use it.
123224         * lib/strftime.c (SHR): Likewise.
123225         (tm_diff): Use it.
123226         * lib/quotearg.c (struct quoting_options): Use unsigned int for
123227         quote_these_too, so that right shifts are well defined.  All uses
123228         changed.
123230 2004-11-10  Jim Meyering  <jim@meyering.net>
123232         Ensure that no close failure goes unreported.
123233         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
123234         return early when it seems there's nothing to flush.
123235         Don't include __fpending.h.
123237 2004-11-10  Jim Meyering  <jim@meyering.net>
123239         * modules/closeout (Depends-on): Remove fpending.
123241 2004-11-10  Jim Meyering  <jim@meyering.net>
123243         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
123245 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
123247         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
123248         gl_FUNC_STRFTIME.
123249         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
123250         and AC_REQUIRE when possible, to avoid duplicate checks.
123251         Check for <wchar.h>.
123253 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
123255         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
123257 2004-11-09  Bruno Haible  <bruno@clisp.org>
123259         * m4/sockpfaf.m4: New file.
123261 2004-11-05  Bruno Haible  <bruno@clisp.org>
123263         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
123264         Reported by Mark D. Baushke <mdb@cvshome.org>.
123266 2004-11-04  Bruno Haible  <bruno@clisp.org>
123268         2004-09-11  Bruno Haible  <bruno@clisp.org>
123269                 * allocsa.valgrind: New file.
123270         2004-02-06  Bruno Haible  <bruno@clisp.org>
123271                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
123272                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
123273                 Reported by Christopher Seip <chris.seip@hp.com>.
123275 2004-11-04  Bruno Haible  <bruno@clisp.org>
123277         * modules/allocsa (Files): Add lib/allocsa.valgrind.
123278         (Makefile.am): Distribute it.
123280 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
123282         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
123283         with errno == ERANGE if the buffer is too small.
123284         Problem reported by Mark D. Baushke.
123286 2004-11-03  Albert Chin  <china@thewrittenword.com>
123287             Paul Eggert  <eggert@cs.ucla.edu>
123289         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
123290         equivalent, substitute $ac_type for equivalent type rather than
123291         blindly using uint32_t *always* which won't work if uint32_t is not
123292         available.  Define _UINT32_T to work around typedef of uint32_t if
123293         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
123294         2.5.1.
123296 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
123298         * m4/jm-macros.m4: Sync from coreutils.
123299         (gl_MACROS): Check for mbrlen, for pathchk.
123300         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
123302 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
123304         * lib/xreadlink.c (MAXSIZE): New macro.
123305         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
123306         size does not exceed MAXSIZE.  Avoid cast.
123307         As suggested by Mark D. Baushke in
123308         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
123309         if readlink fails with buffer size just under MAXSIZE, try again
123310         with MAXSIZE.
123312 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
123314         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
123316 2004-11-02  Derek R. Price  <derek@ximbiot.com>
123317         and  Paul Eggert  <eggert@cs.ucla.edu>
123319         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
123320         (get_date): Overparenthesize to avoid GCC warning.
123322 2004-11-02  Bruno Haible  <bruno@clisp.org>
123324         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
123325         returns void.
123327 2004-11-02  Bruno Haible  <bruno@clisp.org>
123329         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
123330         function returns void.
123332 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
123334         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
123335         fflush_unlocked, flockfile, funlockfile, funlockfile,
123336         fputs_unlocked, putc_unlocked.
123338 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
123340         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
123341         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
123342         already declared.
123344 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
123346         * modules/getdate (Files): Add doc/getdate.texi.
123347         (Depends-on): Add setenv, xalloc.
123349 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
123351         * lib/getdate.y: Add support for TZ="foo" within a date string.
123352         Fix some bugs near time_t boundaries.  Reject dates with
123353         out-of-range components, e.g., "Sept 31".
123354         Include <stdlib.h>, "setenv.h", "xalloc.h".
123355         (ISDIGIT_LOCALE): Remove; unused.
123356         Note that the TZ and time functions used here are not reentrant.
123357         (mktime_ok, get_tz): New functions.
123358         (TZBUFSIZE): New constant.
123359         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
123360         This requires that we sometimes generate our own TZ="XXX..." setting.
123362 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
123364         * doc/getdate.texi: New file, from coreutils with modifications for
123365         the new TZ parsing.
123367 2004-10-27  Derek R. Price  <derek@ximbiot.com>
123369         * lib/mktime.c (not_equal_tm): Remove redundant check.
123371 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
123373         * modules/regex (lib_SOURCES): Add regex.c.
123374         Reported by James Youngman in
123375         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
123377 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
123379         * lib/getdate.y: Use Bison 1.875 features, and some minor
123380         code cleanups.  This change does not affect semantics.
123381         Don't include <stdlib.h>; no longer needed.
123382         Don't include unlocked-io.h; only the "#if TEST" code uses
123383         stdio, and performance isn't crucial there.
123384         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
123385         Bison 1.875 features as described below.
123386         All uses of "PC." replaced by "pc->".
123387         (YYSTYPE): Add a forward declaration.
123388         (yylex, yyerror): Use full prototypes in forward decls.
123389         Use "%pure-parser" rather than obsolescent "%pure_parser".
123390         Use %parse-param and %lex-param instead of obsolescent
123391         YYPARSE_PARAM and YYLEX_PARAM.
123392         (meridian_table, month_and_day_table, time_units_table,
123393         relative_time_table, time_zone_table, military_table,
123394         lookup_zone, lookup_word, get_date):
123395         Use NULL instead of 0 where appropriate.
123396         (to_hour): Avoid abort (), to avoid a dependency on
123397         stdlib.h.
123398         (yyerror, yylex): Now accepts parser_control * arg.
123399         (main) [TEST]: Use '\0' rather than 0 for char.
123401 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
123403         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
123405 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
123407         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
123408         It's now the caller's responsibility to handle the case where
123409         !HAVE_GETPAGESIZE && !defined getpagesize.
123411         * lib/mktime.c (leapyear): Arg is long int, not int.
123413 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
123415         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
123417 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
123419         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
123420         missing.  Problem reported by James Youngman.
123422 2004-10-16  Simon Josefsson  <jas@extundo.com>
123424         * gnulib-tool: Fix comments.  Fix parse problem.
123425         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
123427 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
123429         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
123430         implementation of getopt_long.  Problem reported by Alexander Taler in:
123431         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
123433 2004-10-15  Bruno Haible  <bruno@clisp.org>
123435         * gnulib-tool: Untabify. Initialize supplied_libname.
123436         (func_usage): More homogenous output.
123437         (func_modules_transitive_closure, func_modules_to_filelist,
123438         func_emit_lib_Makefile_am): New functions.
123439         (func_import): New function, extracted from big case statement. Use
123440         func_get_license, func_modules_transitive_closure,
123441         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
123442         opt_lgpl. Don't use test -a, as it's not portable.
123443         (func_create_testdir): Use func_modules_transitive_closure,
123444         func_modules_to_filelist, func_emit_lib_Makefile_am.
123446 2004-10-15  Bruno Haible  <bruno@clisp.org>
123448         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
123450 2004-10-15  Bruno Haible  <bruno@clisp.org>
123452         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
123453         the portions belonging to each module.
123454         Suggested by Derek Robert Price <derek@ximbiot.com>.
123456 2004-10-12  Simon Josefsson  <jas@extundo.com>
123458         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
123459         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
123460         to real functions.
123462 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123464         * modules/vsnprintf: New file.
123466 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123468         * m4/vsnprintf.m4: New file.
123470 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123472         * lib/vsnprintf.h: New file.
123473         * lib/vsnprintf.c: New file.
123475 2004-10-11  Bruno Haible  <bruno@clisp.org>
123477         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
123478         vsnprintf.
123480 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
123482         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
123484 2004-10-07  Bruno Haible  <bruno@clisp.org>
123486         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
123487         fits into the provided buffer.
123489 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
123491         * lib/diacrit.c, diacrit.h: Add GPL notice.
123493         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
123494         notice.
123495         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
123496         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
123497         This avoids a potential constant-folding bug.
123499 2004-10-05  Bruno Haible  <bruno@clisp.org>
123501         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
123502         for the declaration of strsep.
123504 2004-10-05  Bruno Haible  <bruno@clisp.org>
123506         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
123508 2004-10-04  Simon Josefsson  <jas@extundo.com>
123510         * modules/memmem: New file.
123511         * tests/test-memmem.c: New file.
123512         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
123514 2004-10-04  Simon Josefsson  <jas@extundo.com>
123516         * m4/memmem.m4: New file.
123518 2004-10-04  Simon Josefsson  <jas@extundo.com>
123520         * lib/memmem.h: New file.
123521         * lib/memmem.c: New file, taken from glibc.
123523 2004-10-04  Simon Josefsson  <jas@extundo.com>
123525         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
123526         '#ifdef USE_UNLOCKED_IO'.
123528 2004-10-04  Simon Josefsson  <jas@extundo.com>
123530         * config/srclist.txt: Add memmem from glibc.
123532 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123534         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
123536         * modules/argmatch, modules/argp, modules/closeout, modules/error,
123537         modules/exclude, modules/getdate, modules/getline,
123538         modules/getndelim2, modules/getpass, modules/getpass-gnu,
123539         modules/getusershell, modules/linebuffer, modules/md5,
123540         modules/mountlist, modules/posixtm, modules/readtokens,
123541         modules/readutmp, modules/regex, modules/sha1,
123542         modules/version-etc, modules/yesno:
123543         Remove dependency on unlocked-io.
123545 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123547         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
123549         * m4/unlocked-io.m4: Add copyright notice.
123550         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
123552 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123554         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
123555         * lib/xmalloc.c (xmemdup): Likewise.
123556         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
123557         XFREE): Remove these long-obsolescent macros.
123558         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
123559         * lib/xstrdup.c: Remove.
123561         * lib/regex.c (re_comp): Cast gettext return value to char *,
123562         Problem reported by Martin Neitzel via Mark D. Baushke.
123564 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123566         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
123567         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
123568         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
123569         regex.c, sha1.c, version-etc.c, yesno.c:
123570         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
123571         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
123572         the includer's responsibility.
123574         Sync from coreutils.
123576         * lib/modechange.c (mode_compile): Don't decrement a pointer that
123577         points to the start of a string, as the C Standard says the
123578         resulting behavior is undefined.
123580         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
123581         simple -> simple_backups, numbered_existing ->
123582         numbered_existing_backups, numbered -> numbered_backups
123583         to avoid shadowing problems.  All uses changed.
123584         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
123585         * lib/backupfile.c (check_extension, numbered_backup):
123586         Rename locals to avoid shadowing 'basename'.
123587         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
123588         once.
123590         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
123591         * lib/.cvsignore: Add getopt.h.
123593 2004-10-04  Bruno Haible  <bruno@clisp.org>
123595         * modules/README: New file.
123596         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
123597         not a module.
123599 2004-10-02  Jim Meyering  <jim@meyering.net>
123601         * lib/dirfd.h, getpagesize.h: Add copyright notice.
123603 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123605         * modules/strsep: New file.
123607 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123609         * m4/strsep.m4: New file.
123611 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123613         * lib/strsep.h: New file.
123614         * lib/strsep.c: New file.
123616 2004-10-01  Simon Josefsson  <jas@extundo.com>
123618         * lib/snprintf.c (snprintf): Handle size==0.
123620 2004-10-01  Simon Josefsson  <jas@extundo.com>
123621             Bruno Haible  <bruno@clisp.org>
123623         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
123624         (snprintf): Declare 'args'.
123626 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
123628         * lib/snprintf.c: Remove comments as to why each header is needed.
123630 2004-10-01  Bruno Haible  <bruno@clisp.org>
123632         * MODULES.html.sh: Add strsep.
123634 2004-09-30  Simon Josefsson  <jas@extundo.com>
123636         * modules/snprintf: New file.
123638 2004-09-30  Simon Josefsson  <jas@extundo.com>
123640         * m4/snprintf.m4: New file.
123642 2004-09-30  Simon Josefsson  <jas@extundo.com>
123644         * lib/snprintf.h, lib/snprintf.c: New files.
123646 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123648         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
123649         (hol_entry_help): Never translate an empty string.
123650         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
123651         * lib/argp.h (OPTION_NO_TRANS): New option.
123653 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
123655         * modules/argp (Maintainer): Replace Simon Josefsson
123656         by Sergey Poznyakoff.
123658 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
123660         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
123661         changes merged back into glibc.
123663 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
123665         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
123667 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
123669         * lib/xvasprintf.c: Include xalloc.h.
123670         (xvasprintf): Use xalloc_die, not xmalloc_die.
123672 2004-09-29  Bruno Haible  <bruno@clisp.org>
123674         * modules/alloca-opt: New file, derived from modules/alloca.
123675         * modules/allocsa: Depend on alloca-opt instead of alloca.
123676         * modules/setenv: Likewise.
123677         * modules/vasnprintf: Likewise.
123678         * MODULES.html.sh: Add alloca-opt.
123680 2004-09-28  Simon Josefsson  <jas@extundo.com>
123682         * gnulib-tool: New parameter --lgpl, to asseert that modules are
123683         LGPL, and to replace license template from GPL to LGPL.
123685 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
123687         * modules/dummy: Change license to LGPL.
123689 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
123691         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
123693 2004-09-24  Simon Josefsson  <jas@extundo.com>
123695         * modules/minmax (License): Change from GPL to LGPL.
123697 2004-09-23  Simon Josefsson  <jas@extundo.com>
123699         * gnulib-tool (--import): Typo.
123701 2004-09-23  Simon Josefsson  <jas@extundo.com>
123703         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
123705 2004-09-22  Bruno Haible  <bruno@clisp.org>
123707         * modules/*: Add 'License' field.
123708         * gnulib-tool: Accept --extract-license option.
123709         (func_get_license): New function.
123711 2004-09-21  Bruno Haible  <bruno@clisp.org>
123713         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
123714         Reported by Simon Josefsson.
123716 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
123718         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
123719         gl_AC_TYPE_LONG_LONG.
123721 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
123723         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
123725 2004-09-18  Simon Josefsson  <jas@extundo.com>
123726         and  Paul Eggert  <eggert@cs.ucla.edu>
123728         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
123729         calls with autoreconf.  Define GL_LIB.
123731 2004-09-14  Karl Berry  <karl@gnu.org>
123733         * config/srclist.txt: unsync setenv.c, sigh.
123735 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
123737         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
123738         Problem reported by Bruno Haible in:
123739         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
123741 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
123743         * config/srclist.txt: Comment out argp-pvh.c.
123745 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
123747         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
123748         in case some system header has #define'd it.  Problem reported by
123749         Soeren D. Schulze in
123750         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
123752 2004-09-09  Karl Berry  <karl@gnu.org>
123754         * regex.[ch]: delete from the root.  These were supposed to be
123755                 synced with emacs cvs, but this has not happened for about
123756                 a year, and anyway nothing else uses emacs regex.[ch].
123757                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
123758                 lib/regex[.ch] is untouched.
123760 2004-09-09  Bruno Haible  <bruno@clisp.org>
123762         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
123764 2004-09-09  Bruno Haible  <bruno@clisp.org>
123766         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
123767         modifications.
123768         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
123770 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
123772         * modules/xvasprintf: New file.
123773         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
123775 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
123777         * lib/xvasprintf.h: New file.
123778         * lib/xvasprintf.c: New file.
123779         * lib/xasprintf.c: New file.
123781 2004-09-08  Bruno Haible  <bruno@clisp.org>
123783         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
123785 2004-09-08  Bruno Haible  <bruno@clisp.org>
123787         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
123788         length is > INT_MAX.
123789         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
123790         more.
123792 2004-09-08  Bruno Haible  <bruno@clisp.org>
123794         * lib/stdint_.h: New file, taken from GNU clisp.
123796 2004-09-08  Bruno Haible  <bruno@clisp.org>
123797             Oskar Liljeblad  <oskar@osk.mine.nu>
123799         * modules/stdint: New file.
123800         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
123802 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
123804         Import from coreutils.
123805         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
123806         strings on unbounded length.  alloca's performance benefits aren't
123807         that important here.
123808         (V_STRDUP): Remove.
123809         (parse_with_separator): New function, with most of the internals
123810         of the old parse_user_spec.  Allow user to omit both user and group,
123811         for compatibility with FreeBSD.
123812         Clone only the user name, not the entire spec.
123813         Do not set *uid, *gid unless entirely successful.
123814         Avoid memory leak in some failing cases.
123815         Fix regression for USER.GROUP reported by Dmitry V. Levin in
123816         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
123817         (parse_user_spec): Rewrite to use parse_with_separator.
123819 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
123821         * modules/userspec: Don't depend on alloca.
123823 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
123825         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
123827 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
123829         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
123830         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
123831         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
123833 2004-08-16  Simon Josefsson  <jas@extundo.com>
123835         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
123836         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
123837         Add --dry-run for --import.
123838         Let user provided command line parameters override configure.ac
123839         settings.
123841 2004-08-12  Simon Josefsson  <jas@extundo.com>
123843         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
123844         as discussed with Paul Eggert in threads rooted at
123845         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
123846         and
123847         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
123848         Before, the test was empty, and relied on ELIDE_CODE in source
123849         code.)
123850         (gl_PREREQ_GETOPT): New macro.
123851         (gl_GETOPT): Use them.
123853 2004-08-12  Simon Josefsson  <jas@extundo.com>
123855         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
123856         * lib/getopt_.h: Renamed from getopt.h.
123858 2004-08-12  Simon Josefsson  <jas@extundo.com>
123860         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
123861         Change default library name from libfoo to libgnu.
123862         Now, if you have a configure.ac that says:
123863                 gl_SOURCE_BASE(gl)
123864                 gl_M4_BASE(gl/m4)
123865                 gl_MODULES(error getopt etcetera)
123866                 gl_INIT
123867         you can import all you need by running:
123868                 ../gnulib/gnulib-tool --import
123870         * modules/getopt (Files): Rename getopt.h to getopt_.h.
123871         (Makefile.am): Rewrite, use logic from argz.
123872         (Include): Use <getopt.h> instead of "getopt.h".
123874 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
123876         * modules/argp (Files): Add m4/unlocked-io.m4.
123877         (Depends-on): Add extensions.
123879 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
123881         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
123882         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
123883         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
123884         Check for program_invocation_name, program_invocation_short_name,
123885         flockfile, funlockfile, features.h, _getopt_long_only_r.
123887 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
123889         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
123890         its complicated substitute.
123891         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
123892         and program_invocation_name.
123893         (__argp_basename) [!_LIBC]: Remove; the only use was
123894         replaced by its body.
123895         (__argp_short_program_name): Change condition from
123896         !defined __argp_short_program_name to
123897         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
123898         to match argp-namefrob.h.
123899         (__argp_failure): Don't assume strerror_r returns char *.
123900         * lib/argp-parse.c (N_): Define unconditionally.
123901         (argp_default_options): Fill out initializers with 0 to avoid
123902         gcc warnings.
123904 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
123906         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
123907         getopt1.c.
123909 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
123911         Merge from coreutils.
123913         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
123915         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
123916         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
123918 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
123920         Merge from coreutils.
123922         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
123923         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
123924         for Reliant Unix 5.43.
123926         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
123927         (union fooround): Use uintmax_t, not long int.
123928         The rest is a merge from libc:
123929         [defined _LIBC]: Include <shlib-compat.h>.
123930         (_obstack) [defined _LIBC]: Remove after 2.3.4.
123932         * lib/settime.c (settime): Recode to avoid warning with
123933         Sun Forte C 6U2.
123935         * lib/strverscmp.c: Convert to UTF-8.
123937 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
123939         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
123940         m4/uintmax_t.m4.
123942 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
123944         * modules/xalloc-die: New file.
123945         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
123947         * modules/md5 (Files): Add m4/uint32_t.m4.
123948         * modules/sha1: Renamed from modules/sha.
123949         (Files):
123950         Rename lib/sha.h to lib/sha1.h.
123951         Rename lib/sha.c to lib/sha1.c.
123952         Rename m4/sha.m4 to m4/sha1.m4.
123953         (lib_SOURCES): Likewise.
123954         (configure.ac): Rename gl_SHA to gl_SHA1.
123955         (Include): sha.h -> sha1.h.
123957 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
123959         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
123960         * m4/sha1.m4: Renamed from sha.m4.
123961         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
123963 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
123965         * lib/obstack.h (obstack_empty_p):
123966         Don't assume that chunk->contents is suitably aligned.
123967         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
123968         Likewise. Problem reported by Benno in
123969         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
123971         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
123972         readable.  This could be improved further but it'd take some work.
123974 2004-08-08  Simon Josefsson  <jas@extundo.com>
123976         * modules/xgethostname (Depends-on): Remove exit and error (not
123977         used).
123979         * modules/getpass-gnu: Add getpass.h.
123980         (Depends-on): Add stdbool.
123981         * modules/getpass: Add getpass.h.
123983 2004-08-08  Simon Josefsson  <jas@extundo.com>
123985         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
123986         Check getpass declaration.
123988 2004-08-08  Simon Josefsson  <jas@extundo.com>
123990         * lib/xgethostname.c: Don't include error.h (not used).
123992         * lib/getpass.h: Add.
123993         * lib/getpass.c: Include getpass.h first.
123995 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
123997         * lib/xalloc-die.c: New file.
123998         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
123999         All uses removed.
124000         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
124001         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
124002         xalloc-die.c.
124003         (_, N_, xalloc_die): Move to xalloc-die.c.
124004         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
124005         so that we needn't mess with xalloc_msg_memory_exhausted.
124007         * lib/sha1.h: Renamed from sha.h.
124008         (SHA1_H): Renamed from _SHA_H.
124009         (sha1_ctx): Renamed from sha_ctx.
124010         (sha1_init_ctx): Renamed from sha_init_ctx.
124011         (sha1_process_block): Renamed from sha_process_block.
124012         (sha1_process_bytes): Renamed from sha_process_bytes.
124013         (sha1_finish_ctx): Renamed from sha_finish_ctx.
124014         (sha1_read_ctx): Renamed from sha_read_ctx.
124015         (sha1_stream): Renamed from sha_stream.
124016         (sha1_buffer): Renamed from sha_buffer.
124017         * lib/sha1.c: Likewise; renamed from sha.c.
124018         Do not include <sys/types.h>.
124019         Include <stddef.h> rather than <stdlib.h>.
124021 2004-08-08  Bruno Haible  <bruno@clisp.org>
124023         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
124024         FILESYSTEM_PREFIX_LEN.
124025         * lib/progreloc.c: Likewise.
124026         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
124028 2004-08-06  Simon Josefsson  <jas@extundo.com>
124030         * modules/progname (Depends-on): Don't depend on stdbool.
124032 2004-08-06  Simon Josefsson  <jas@extundo.com>
124034         * modules/getsubopt: New file.
124035         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
124036         getsubopt.
124038 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
124040         More merge from coreutils.
124042         * m4/utimens.m4, m4/utimecmp.m4: New files.
124043         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
124044         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
124045         prereq.m4, sha.m4: Import changes from coreutils.
124047 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
124049         More merge from coreutils.
124050         * modules/raise, modules/readtokens0, modules/utimens:
124051         * modules/utimecmp, module/xnanosleep: New files.
124052         * modules/strftime: Add lib/strftime.h.
124053         Change include from <time.h> to "strftime.h".
124054         * modules/yesno: Add lib/yesno.h.
124055         * modules/backupfile: Remove lib/addext.c.
124056         * modules/euidaccess: Add stat-macros.h.
124057         * modules/canonicalize, modules/euidaccess,
124058         modules/filemode, modules/lchown, modules/makepath,
124059         modules/rmdir, modules/stat: Likewise.
124061 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
124063         Merge from tar.
124064         * lib/argp-help.c (make_hol, hol_append): Don't assume that
124065         SIZE_MAX is a valid preprocessor constant.
124066         (__argp_basename): Change from "#ifndef _LIBC"
124067         to "#ifndef __argp_short_program_name", so that
124068         we don't compile these functions for tar.
124070         More merges from coreutils.
124071         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
124072         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
124073         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
124074         * lib/addext.c: Remove; no longer needed.
124075         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
124076         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
124077         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
124078         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
124079         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
124080         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
124081         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
124082         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
124083         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
124084         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
124085         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
124086         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
124087         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
124088         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
124089         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
124090         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
124091         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
124092         Import changes from coreutils.
124094 2004-08-05  Simon Josefsson  <jas@extundo.com>
124096         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
124098 2004-08-05  Simon Josefsson  <jas@extundo.com>
124100         * m4/getsubopt.m4: New file.
124102 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
124104         Merge from coreutils.
124106         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
124107         * m4/getcwd-path-max.m4: New files.
124109         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
124110         FILESYSTEM_PREFIX_LEN ->
124111         FILE_SYSTEM_PREFIX_LEN.
124112         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
124113         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
124114         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
124115         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
124117         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
124118         prerequisite modules now handle the DOS stuff.
124119         Don't check for unistd.h.
124121 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
124123         Merge from coreutils.
124125         * lib/.gdb-history: Remove; this doesn't belong here.
124127         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
124128         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
124129         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
124130         * lib/getcwd.c: New files.
124132         * lib/dirname.h: Include <stdbool.h>.
124133         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
124134         for consistency with POSIX terminology.  All uses changed.
124135         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
124136         (strip_trailing_slashes): Use bool for booleans.
124137         * lib/stripslash.c (strip_trailing_slashes): Likewise.
124139         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
124140         sometimes returns a positive errno value even when it succeeds.
124141         (print_errno_message) [!LIBC]: Fall back on strerror if
124142         __strerror_r fails.
124144         * lib/path-concat.c (mempcpy): Don't define if a system header defines
124145         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
124146         (longest_relative_suffix): New function.
124147         (path_concat): Use it.  Assume first argument is not NULL.
124148         Port to DOS.  Omit redundant separators.
124149         Report an error instead of returning NULL.
124150         Use mempcpy instead of memcpy.
124151         (xpath_concat): Remove: not declared or used.
124153         * lib/same.h: Include <stdbool.h>
124154         (same_name): Return bool, not int.
124155         * lib/same.c (same_name): Likewise.
124156         (errno): Don't declare; we assume C89 or better now.
124158         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
124159         if not already defined.
124161         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
124162         * lib/dup-safer.c (errno): Likewise.
124164 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
124166         Merge from coreutils.
124167         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
124168         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
124169         * modules/path-concat: Don't depend on strdup.
124171 2004-08-03  Simon Josefsson  <jas@extundo.com>
124173         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
124174         * lib/progname.h: Don't include stdbool.h.
124176 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
124178         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
124179         * MODULES.html.sh (func_all_modules): Remove fatal.
124181 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
124183         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
124185 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
124187         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
124188         working.
124190 2004-08-02  Simon Josefsson  <jas@extundo.com>
124192         * lib/getsubopt.h: New file, with comments from Bruno Haible.
124193         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
124194         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
124196 2004-08-01  Simon Josefsson  <jas@extundo.com>
124198         * lib/xgetdomainname.c: Include stdlib.h, for free().
124200 2004-07-19  Bruno Haible  <bruno@clisp.org>
124202         * MODULES.html.sh (func_all_modules): Add dummy.
124204 2004-07-16  Simon Josefsson  <jas@extundo.com>
124206         * modules/dummy: New file.
124208 2004-07-16  Simon Josefsson  <jas@extundo.com>
124210         * lib/dummy.c: New file.
124212 2004-07-16  Bruno Haible  <bruno@clisp.org>
124214         * lib/backupfile.h: Add extern "C" for C++.
124215         * lib/closeout.h: Likewise.
124216         * lib/copy-file.h: Likewise.
124217         * lib/findprog.h: Likewise.
124218         * lib/full-write.h: Likewise.
124219         * lib/pathname.h: Likewise.
124220         * lib/progname.h: Likewise.
124221         * lib/stpcpy.h: Likewise.
124222         * lib/stpncpy.h: Likewise.
124223         * lib/strcase.h: Likewise.
124224         * lib/strstr.h: Likewise.
124225         * lib/xalloc.h: Likewise.
124227         * lib/mbswidth.h: Add extern "C" for C++.
124228         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
124230 2004-07-13  Robert Millan  <robertmh@gnu.org>
124232         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
124234 2004-07-09  Simon Josefsson  <jas@extundo.com>
124236         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
124237         failed without this.)
124239 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
124241         * modules/chown (Files): Add lib/fchown-stub.c, since
124242         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
124244 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
124246         * lib/fchown-stub.c: New file.
124248 2004-06-24  Jim Meyering  <jim@meyering.net>
124250         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
124252 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
124254         * modules/argz: Omit "#include".
124256         * MODULES.html.sh (func_all_modules): Add calloc, to match
124257         2004-06-01 addition of calloc module.
124259 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
124261         * m4/argz.m4: New file, which is autoupdated from libtool.
124263 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
124265         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
124266         libtool.
124268 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
124270         * config/srclist-update: Don't insist on "USA." before the
124271         close-comment, as libtool omits the period and puts the */ on a
124272         separate line.
124273         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
124274         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
124276 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
124278         * modules/argz: New file.
124279         * MODULES.html.sh (func_all_modules): Add argz.
124281 2004-06-12  Jim Meyering  <jim@meyering.net>
124282         and  Paul Eggert  <eggert@cs.ucla.edu>
124284         * modules/hash (Files): Add lib/xalloc.h.
124285         * modules/pipe (Depends-on): Add wait-process.
124286         * modules/stat (Depends-on): Add xalloc.
124287         * modules/userspec (Files): Add lib/userspec.h.
124288         * modules/xstrto
124290         Upgrade from gettext-0.13.
124291         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
124292         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
124293         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
124295 2004-06-10  Jim Meyering  <jim@meyering.net>
124297         * lib/calloc.c: New file.
124299 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
124301         * lib/getdate.y (yylex): Allow space between sign and number.
124302         Problem reported by Dan Jacobson.
124304 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
124306         Merge from coreutils CVS.
124308         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
124309         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
124310         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
124311         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
124312         xstrtol.m4: Fix copyright date and/or serial number.
124314         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
124315         See if we need an fchown replacement.
124316         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
124317         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
124318         and use the replacement function if we detect either defect.
124320         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
124321         gl_UTIMECMP.
124323 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
124324         and  Jim Meyering  <jim@meyering.net>
124326         Merge from coreutils CVS.
124328         * lib/stat-macros.h: New file, with contents from file-type.h
124329         and coreutils' system.h.
124330         * lib/file-type.c: Include "stat-macros.h".
124331         * lib/file-type.h (file_type): Move all macro definitions to new file,
124332         stat-macros.h.
124334         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
124335         Wrap old code with this conditional.
124336         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
124337         function that does not dereference symlinks.
124338         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
124340         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
124341         dependency problems.
124342         (xreadlink): Accept new arg SIZE, for efficiency.
124343         All decls and uses changed.
124344         * lib/xreadlink.h: Include <stddef.h>, for size_t.
124346         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
124347         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
124349         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
124350         sysexits.h.
124352 2004-06-01  Jim Meyering  <jim@meyering.net>
124354         * m4/calloc.m4: New file.
124356 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
124358         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
124359         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
124360         Also, fix a typo in a diagnostic.
124362 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
124364         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
124365         or AC_FUNC_REALLOC.
124367 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
124369         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
124370         macros to be defined.
124371         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
124372         the allocator returns NULL because the requested size is zero.
124374 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
124376         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
124377         var.  Add comment explaining why libc still defines it.  This
124378         merges the following patch from glibc:
124379         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
124381 2004-05-20  Andreas Schwab  <schwab@suse.de>
124383         * m4/free.m4: Replace free if it not known to work, not the other
124384         way round.
124386 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
124388         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
124389         present in glibc since revision 1.1 of this file.
124390         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
124391         obstack_alignment_mask, obstack_alloc, obstack_base,
124392         obstack_blank, obstack_blank_fast, obstack_chunk_size,
124393         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
124394         obstack_grow0, obstack_init, obstack_int_grow,
124395         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
124396         obstack_next_free, obstack_object_size, obstack_ptr_grow,
124397         obstack_ptr_grow_fast, obstack_room): Remove declarations of
124398         nonexistent functions.
124400 2004-05-18  Karl Berry  <karl@gnu.org>
124402         * config/srclist.txt: break link for vasnprintf.c.
124404 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
124406         Port obstack to the AS/400, where pointers are 16 bytes wide and
124407         you cannot cast an integer to a valid pointer.  This patch is
124408         currently waiting to be integrated into glibc; see
124409         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
124411         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
124412         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
124413         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
124414         (struct obstack): temp member is now a union of a pointer and
124415         an integer, instead of an integer.  All integer uses changed.
124416         This does not affect the physical layout of struct obstack,
124417         except on hosts (like the AS/400) where the size or alignment of
124418         void * is greater than that of ptrdiff_t.
124419         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
124420         __STDC__)]: Store temporary in pointer member of union, not
124421         integer member.
124422         * lib/obstack.c: Include <stddef.h>, for offsetof.
124423         (struct fooalign): Remove; it doesn't need a name.
124424         (union fooround): Change double to long double, and add void *.
124425         (DEFAULT_ALIGNMENT): Use offsetof to compute.
124426         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
124427         not a macro.  Hence the values are always int; so remove all
124428         casts-to-int in uses.
124430 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
124432         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
124433         we can get this patch merged into glibc.
124435 2004-05-17  Derek R. Price  <derek@ximbiot.com>
124436             Paul Eggert  <eggert@cs.ucla.edu>
124438         * m4/argp: Depend on alloca.
124440 2004-05-17  Derek R. Price  <derek@ximbiot.com>
124441             Paul Eggert  <eggert@cs.ucla.edu>
124443         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
124444         freecoding.
124446 2004-05-17  Bruno Haible  <bruno@clisp.org>
124448         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
124449         precision that consists of a '.' followed by an empty digit string.
124450         Patch by Tor Lillqvist <tml@iki.fi>.
124452 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
124454         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
124455         for backward compatibility with older code.  We need our own
124456         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
124457         it under some other name, and our alloca.h will define it.
124459 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
124460             Derek Price  <derek@ximbiot.com>
124462         * lib/alloca.c: Include <alloca.h>, to get our interface.
124463         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
124464         include <alloca.h> first.  Use C89 prototype for alloca; this
124465         requires including <stddef.h> for size_t.  Use extern "C" if C++.
124466         Use #elif for simplicity, since we can assume C89 now.
124467         Don't try to source the system alloca.h since it will not be found
124468         and to prevent recursively including its replacement.
124469         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
124470         * lib/regex.c: Likewise.
124472 2004-05-16  Derek Price  <derek@ximbiot.com>
124473             Paul Eggert  <eggert@cs.ucla.edu>
124475         getline cleanup.  This changes the getndelim2 API: both order of
124476         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
124477         no delimiter).
124479         * lib/getline.c: Don't include stddef.h or stdio.h, since our
124480         interface does that.
124481         (getline): Always use getdelim, so that we don't have two
124482         copies of this code.
124483         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
124484         if available.
124485         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
124486         (GETNDELIM2_MAXIMUM): New macro.
124487         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
124488         instead of the old practice of delim2==0.  All callers changed.
124489         Return -1 on overflow, instead of returning junk.
124490         Do not set *linesize unless allocation succeeds.
124491         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
124492         that we include sys/types.h.
124493         * lib/getnline.h: Likewise.
124494         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
124495         (getndelim2): Reorder arguments.
124496         * lib/getnline.c (getnline, getndelim):
124497         Don't discard the NMAX argument.
124498         (getnline): Invoke getndelim, to avoid code duplication.
124499         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
124500         of (size_t) -1 by callers of the getnline family.
124502 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
124504         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
124505         Check for gettimeofday.
124506         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
124507         Check for settimeofday, stime.
124509 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
124511         * lib/nanosleep.c (suspended): Change its type from int to
124512         sig_atomic_t volatile.
124513         (first_call): Make it private to rpl_nanosleep, and have it
124514         be zero initially as that's a bit faster.
124515         (my_usleep): Round up fractional times instead of truncating them,
124516         as this is the usual meaning for 'sleep'.
124518         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
124519         doesn't work.
124520         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
124521         (ENOSYS): Define if not defined.
124522         (settime): Fall back on stime if it exists and settimeofday fails.
124523         But don't bother with fallbacks if a method fails with errno == EPERM.
124525 2004-05-11  Jim Meyering  <jim@meyering.net>
124527         Prior to this change, the save_cwd caller required read access to the
124528         current directory on most systems (ones with the fchdir function).
124530         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
124531         fails, try write-only, and finally, resort to using xgetcwd.
124533 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
124535         * lib/obstack.c, obstack.h: Import changes from libc.
124537 2004-04-28  Bruno Haible  <bruno@clisp.org>
124539         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
124540         also implicitly appends .exe to executables.
124541         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
124542         accepts Windows pathnames.
124543         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
124544         Treat Cygwin like Windows, since it now accepts Windows pathnames.
124545         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
124546         Treat Cygwin like Windows, since it now accepts Windows pathnames.
124547         Reported by Derek Robert Price <derek@ximbiot.com>.
124549 2004-04-21  Karl Berry  <karl@gnu.org>
124551         * config/srclist.txt (localcharset.c): break sync.
124553 2004-04-20  Paul Eggert  <eggert@twinsun.com>
124555         * m4/host-os.m4: Add a copyright notice.
124557 2004-04-20  Jim Meyering  <jim@meyering.net>
124559         Change UTILS_ to gl_ in AC_DEFINE'd names.
124560         Change utils_- and jm_-prefixed variables, too.
124561         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
124562         UTILS_FUNC_MKDIR_TRAILING_SLASH.
124563         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
124565         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
124566         Don't emit trailing blanks.
124567         Also rename jm_-prefixed variables to have gl_ prefix.
124569         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
124570         Also rename jm_-prefixed variables to have gl_ prefix.
124572         * m4/jm-macros.m4: Reflect the renamings.
124573         * m4/prereq.m4: Likewise.
124575 2004-04-20  Jim Meyering  <jim@meyering.net>
124577         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
124578         memory.
124580 2004-04-20  Jim Meyering  <jim@meyering.net>
124581             Bruno Haible  <bruno@clisp.org>
124583         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
124584         memory when realloc fails.
124586 2004-04-19  Jim Meyering  <jim@meyering.net>
124588         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
124589         now that readutmp.c may call `free (0)'.
124591 2004-04-19  Bruno Haible  <bruno@clisp.org>
124593         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
124594         * m4/inttypes_h.m4: Likewise.
124595         * m4/stdint_h.m4: Likewise.
124596         * m4/intmax_t.m4: Likewise.
124597         * m4/uintmax_t.m4: Likewise.
124599 2004-04-18  Jim Meyering  <jim@meyering.net>
124601         * m4/prereq.m4: Don't forbid jm_ prefix.
124603         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
124604         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
124605         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
124606         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
124607         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
124608         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
124609         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
124610         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
124611         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
124612         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
124613         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
124614         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
124615         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
124616         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
124617         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
124618         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
124619         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
124620         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
124621         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
124623 2004-04-18  Jim Meyering  <jim@meyering.net>
124625         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
124626         failure, don't leak memory and do call END_UTMP_ENT.
124628 2004-04-16  Jim Meyering  <jim@meyering.net>
124630         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
124631         coreutils' stat program.
124632         (gl_PREREQ): Don't require jm_PREREQ_STAT.
124634 2004-04-11  Paul Eggert  <eggert@twinsun.com>
124636         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
124637         C89.
124638         (CHAR_BIT): Remove, since we assume C89.
124639         Include <stdint.h> if available, as per current Autoconf CVS advice.
124641 2004-03-31  Jim Meyering  <jim@meyering.net>
124643         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
124644         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
124645         * m4/xalloc.m4: Likewise.
124647 2004-03-30  Paul Eggert  <eggert@twinsun.com>
124649         Merge from coreutils.
124651         * m4/inttostr.m4: New file.
124652         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
124653         Require AM_STDBOOL_H and gl_TIMESPEC instead.
124654         Require gl_CLOCK_TIME.
124655         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
124657 2004-03-30  Paul Eggert  <eggert@twinsun.com>
124659         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
124660         not bool, to be more consistent with Unix conventions.
124661         Suggested by Bruno Haible.
124663         Merge from coreutils.
124665         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
124666         * lib/umaxtostr.c: New files.
124668         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
124669         the usual <time.h> dance.
124670         (get_date): Change signature to support fractional time stamps.
124671         All callers changed.
124672         * lib/getdate.y: Include "getdate.h" first, as we can now
124673         assume C89 and don't need to worry about 'const'.
124674         Similarly, include "unlocked-io.h" near start, not in middle.
124675         Include <limits.h>.
124676         (textint.value): Use long int rather than int.
124677         (textint.digits): Use size_t rather than int.
124678         (BILLION, LOG10_BILLION): New constants.
124679         (parser_control): New member rel_ns.  Members day_ordinal,
124680         time_zone, month, day, hour, minutes, rel_year, rel_month,
124681         rel_day, rel_hour, rel_minutes, rel_seconds
124682         are now long int, not int.  Member seconds is now struct timespec,
124683         not int.  New member timespec_seen.  Members dates_seen, days_seen,
124684         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
124685         not int.
124686         (%union.intval): Now long int, not int.
124687         New member timespec.
124688         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
124689         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
124690         (spec): Now is a timespec or an item list.
124691         (timespec, items): New nonterminals.
124692         (time, rel, relunit, number, get_date):
124693         Add support for fractional seconds.
124694         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
124695         (gmtime, localtime, mktime): Remove decls; not needed with C89.
124696         (to_hour): First arg is now long int, not int.
124697         (to_year): Returns long int, not int.
124698         Don't treat year -70 like 70.
124699         (tm_diff): Returns long int, not int.
124700         (lookup_word): Use bool instead of int when appropriate.
124701         (yylex): Use size_t for count, not int.
124702         Detect overflow when parsing large integer constants.
124703         Add support for fractions.
124704         (get_date): Make pointers 'const' if possible.
124705         Use more-portable code to detect integer overflow.
124706         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
124707         Don't use ctime; it's not reliable if the year has >4 digits.
124709         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
124710         This is for compatibility with BSD.
124712         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
124713         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
124714         From coreutils' system.h.
124716         * lib/userspec.c: Don't include "posixver.h".
124717         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
124718         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
124719         compatible extension.  Simplify code by removing a boolean int
124720         that was always nonzero if a string was nonnull.
124722 2004-03-30  Jim Meyering  <jim@meyering.net>
124724         Merge from coreutils.
124726         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
124727         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
124728         on some systems one must include <grp.h> before it.
124729         Reported by Christian Krackowizer.
124731 2004-03-30  Jim Meyering  <jim@meyering.net>
124733         Merge from coreutils.
124735         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
124737         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
124738         an empty input stream.
124740         * lib/readtokens.c: Include <stdbool.h>.
124741         (readtoken): Use `size_t' rather than int/long.
124742         All callers adjusted.
124743         Use `bool' rather than `int' where appropriate.
124744         Use memset rather than an explicit loop.
124745         Use x2nrealloc rather than xrealloc.
124746         Allow the use of `\0' as a delimiter.
124747         (readtokens): Likewise.
124748         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
124750 2004-03-30  Jim Meyering  <jim@meyering.net>
124752         * m4/realloc.m4: Remove file, since now it does no more than
124753         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
124754         the `configure.ac' section of module/realloc.
124755         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
124757 2004-03-30  Bruno Haible  <bruno@clisp.org>
124759         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
124760         nonnull.
124762 2004-03-29  Paul Eggert  <eggert@twinsun.com>
124764         Merge changes to getloadavg.c from coreutils and Emacs.
124766         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
124767         Define to an expression, not to the empty string.
124768         Include cloexec.h and xalloc.h.
124769         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
124770         Use set_cloexec_flag rather than rolling our own.
124771         * lib/cloexec.c, lib/cloexec.h: New files.
124773 2004-03-29  Paul Eggert  <eggert@twinsun.com>
124775         * m4/cloexec.m4: New file.
124777 2004-03-18  Paul Eggert  <eggert@twinsun.com>
124779         * lib/getopt.h: Sync with libc CVS.
124781 2004-03-18  Paul Eggert  <eggert@twinsun.com>
124782             Bruno Haible  <bruno@clisp.org>
124784         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
124785         mbswidth.
124787 2004-03-18  Paul Eggert  <eggert@twinsun.com>
124788             Bruno Haible  <bruno@clisp.org>
124790         * lib/mbswidth.h: Include <wchar.h> only if
124791         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
124792         <wchar.h>.
124793         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
124795 2004-03-09  Paul Eggert  <eggert@twinsun.com>
124797         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
124798         Sync with libc CVS.
124799         * lib/getopt_int.h: New file, also synced from libc.
124801 2004-03-09  Paul Eggert  <eggert@twinsun.com>
124803         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
124804         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
124805         Bring back getopt.c, getopt.h, getopt1.c.
124807 2004-03-07  Paul Eggert  <eggert@twinsun.com>
124809         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
124810         All uses changed.  Check for sa_sigaction member; this fixes
124811         a bug first reported by Jason Andrade in
124812         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
124814 2004-03-07  Paul Eggert  <eggert@twinsun.com>
124816         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
124817         '#if' expressions.  Unlike the code it replaces, it does not
124818         depend on (defined _SC_PAGESIZE).  However, it does depend on
124819         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
124820         first reported by Jason Andrade in
124821         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
124823 2004-02-25  Simon Josefsson  <jas@extundo.com>
124825         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
124827 2004-02-25  Simon Josefsson  <jas@extundo.com>
124829         * lib/strdup.h: New file.
124830         * lib/strdup.c: Include it.
124831         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
124832         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
124834 2004-02-23  Karl Berry  <karl@gnu.org>
124836         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
124837         (from fencepost.gnu.org:/gd/gnuorg).
124839 2004-02-23  Karl Berry  <karl@gnu.org>
124841         * config/srclistvars.sh (GNUORG) [karl]: redefine.
124842         * config/srclist.txt: add maintain/standards documents.
124844 2004-02-18  Bruno Haible  <bruno@clisp.org>
124846         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
124847         Reported by Derek Robert Price <derek@ximbiot.com>.
124849 2004-02-16  Karl Berry  <karl@gnu.org>
124851         * config/mkinstalldirs, install-sh: update from automake.
124853 2004-02-06  Karl Berry  <karl@gnu.org>
124855         * m4/po.m4: update from gettext 0.14.1.
124857 2004-02-06  Karl Berry  <karl@gnu.org>
124859         * lib/config.charset: update from gettext 0.14.1.
124861 2004-02-05  Paul Eggert  <eggert@twinsun.com>
124863         Add comments and code, prompted by suggestions from Bruno Haible
124864         for sh-quote.
124865         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
124866         describing the enum quoting_style values.
124867         * lib/quotearg.c (quotearg_alloc): New function.
124868         (quotearg_buffer_restyled): Treat lone { and } as special.
124869         Treat = as special.  Work around bug with older shells
124870         that "see" a '\' that is really the 2nd byte of a multibyte char.
124871         Quote empty string with shell_quoting_style.
124873 2004-02-03  Bruno Haible  <bruno@clisp.org>
124875         * m4/pipe.m4: New file, from GNU gettext.
124877 2004-02-03  Bruno Haible  <bruno@clisp.org>
124879         * lib/pipe.h: New file, from GNU gettext.
124880         * lib/pipe.c: New file, from GNU gettext.
124882 2004-01-27  Bruno Haible  <bruno@clisp.org>
124884         * m4/execute.m4: New file, from GNU gettext.
124886 2004-01-27  Bruno Haible  <bruno@clisp.org>
124888         * lib/execute.h: New file, from GNU gettext.
124889         * lib/execute.c: New file, from GNU gettext.
124890         * lib/w32spawn.h: New file, from GNU gettext.
124892 2004-01-24  Paul Eggert  <eggert@twinsun.com>
124894         Merge from diffutils.
124896         * lib/file-type.c (file_type): Add typed memory objects.
124897         * lib/file-type.h (S_TYPEISTMO): New macro.
124899         * lib/c-stack.h (c_stack_action): Remove argv argument.
124900         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
124901         (die): Don't calculate message unless segv_action returns.
124902         (get_stack_location, min_address_from_argv, max_address_from_argv,
124903         volatile stack_base, volatile_stack_size): Remove.
124904         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
124905         that every segmentation violation is a stack overflow.  (Ouch!)
124906         See Debian bug 136249 (still outstanding) for more info about why
124907         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
124909 2004-01-24  Paul Eggert  <eggert@twinsun.com>
124911         Exit-status fix from coreutils.
124913         Use exit_failure consistently in place of EXIT_FAILURE,
124914         so that program exit statuses are consistent on failure.
124916         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
124917         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
124918         * lib/argmatch.h: Comment fix to match the above.
124919         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
124920         Now a macro referring to exit_failure, instead of a separate
124921         variable.  Include "exitfail.h" to get it.
124922         * lib/xstrtol.h: Include "exitfail.h".
124923         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
124925         * lib/long-options.c (parse_long_options): Use prototype
124926         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
124927         for clarity.
124929 2004-01-21  Jim Meyering  <jim@meyering.net>
124931         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
124932         so as not to conflict with a different-sized __mktime_internal
124933         function in GNU libc.
124934         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
124935         Problem building statically-linked `ls' reported by Michael Brunnbauer.
124937 2004-01-20  Karl Berry  <karl@gnu.org>
124939         * config/config.guess: update from config.
124941         * config/srclistvars.sh: GNUWWWLICENSES for karl.
124943 2004-01-20  Bruno Haible  <bruno@clisp.org>
124945         Safer stack allocation.
124946         * lib/setenv.c: Include allocsa.h.
124947         (alloca): Remove fallback definition.
124948         (freea): Remove macro.
124949         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
124950         instead of freea.
124952 2004-01-20  Bruno Haible  <bruno@clisp.org>
124954         * m4/eealloc.m4: New file, from GNU gettext.
124956 2004-01-20  Bruno Haible  <bruno@clisp.org>
124958         * m4/allocsa.m4: New file, from GNU gettext.
124960 2004-01-20  Bruno Haible  <bruno@clisp.org>
124962         * lib/xallocsa.h: New file, from GNU gettext.
124963         * lib/xallocsa.c: New file, from GNU gettext.
124965 2004-01-20  Bruno Haible  <bruno@clisp.org>
124967         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
124969 2004-01-20  Bruno Haible  <bruno@clisp.org>
124971         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
124972         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
124973         specially.
124975 2004-01-20  Bruno Haible  <bruno@clisp.org>
124977         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
124978         patch.
124980 2004-01-20  Bruno Haible  <bruno@clisp.org>
124982         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
124984 2004-01-20  Bruno Haible  <bruno@clisp.org>
124986         * lib/eealloc.h: New file.
124988 2004-01-20  Bruno Haible  <bruno@clisp.org>
124990         * lib/binary-io.h: Avoid warnings on Cygwin.
124992 2004-01-20  Bruno Haible  <bruno@clisp.org>
124994         * lib/allocsa.h: New file, from GNU gettext.
124995         * lib/allocsa.c: New file, from GNU gettext.
124997 2004-01-18  Karl Berry  <karl@gnu.org>
124999         * doc/gpl.texi, doc/lgpl.texi: new files.
125001 2004-01-18  Karl Berry  <karl@gnu.org>
125003         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
125004         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
125006 2004-01-15  Paul Eggert  <eggert@twinsun.com>
125008         Merge from coreutils.
125010         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
125011         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
125012         (gl_DEFAULT_POSIX2_VERSION): Move
125013         the documentation from 'configure' into 'config.hin',
125014         so that 'configure --help' isn't burdened by it and
125015         we don't have to worry about its formatting there.
125016         Reword the documentation so that it's more succinct
125017         and can be run together into a single paragraph.
125018         * m4/same.m4 (gl_SAME): Check for pathconf.
125020 2004-01-15  Paul Eggert  <eggert@twinsun.com>
125022         Merge from coreutils.
125024         * lib/posixver.c: Include posixver.h.
125026         * lib/same.c: Include <stdbool.h>, <limits.h>.
125027         (_POSIX_NAME_MAX): Define if not defined.
125028         (MIN): New macro.
125029         (same_name): If file names are silently truncated, report
125030         that the file names are the same if they are the same after
125031         the silent truncation.
125033         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
125034         conversion function.
125035         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
125036         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
125037         longer needed.
125039 2004-01-15  Jim Meyering  <jim@meyering.net>
125041         Merge from coreutils.
125043         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
125044         if no library is required.
125045         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
125046         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
125047         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
125048         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
125049         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
125050         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
125051         value, $ac_cv_search_crypt, if it's "none required".
125052         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
125053         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
125054         not gl_FUNC_GETLOADAVG.
125055         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
125056         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
125058 2004-01-15  Jim Meyering  <jim@meyering.net>
125060         Merge from coreutils.
125062         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
125063         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
125064         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
125066         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
125067         optional configure-time default.
125069         * lib/version-etc.c (version_etc_copyright): Update copyright date.
125071         * lib/xreadlink.c (xreadlink): Correct outdated comment.
125073 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
125075         Merge from coreutils.
125077         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
125078         value, $ac_cv_search_nanosleep, if it's "none required".
125080 2004-01-14  Paul Eggert  <eggert@twinsun.com>
125082         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
125083         with like-named macro in fnmatch.c.
125084         (EXT): Use an internal constant instead.
125086         Merge fnmatch patches from glibc.
125087         * lib/fnmatch.c (mbsinit): Remove define.
125088         Add libc_hidden_ver (__fnmatch, fnmatch).
125089         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
125090         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
125092 2004-01-14  Karl Berry  <karl@gnu.org>
125094         * config/install-sh: update from automake.
125096 2004-01-13  Karl Berry  <karl@gnu.org>
125098         * config/install-sh: update from automake.
125100 2004-01-09  Karl Berry  <karl@gnu.org>
125102         * config/install-sh: update from automake.
125104 2004-01-05  Karl Berry  <karl@gnu.org>
125106         * config/config.{sub,guess}: update from config.
125108 2003-12-31  Karl Berry  <karl@gnu.org>
125110         * config/depcomp: update from automake.
125112 2003-12-14  Karl Berry  <karl@gnu.org>
125114         * lib/config.charset: update from gettext-runtime.
125116 2003-12-03  Paul Eggert  <eggert@twinsun.com>
125118         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
125119         Bug reported by Alfred M. Szmidt.
125121 2003-12-03  Bruno Haible  <bruno@clisp.org>
125123         * m4/gettext.m4: Upgrade from gettext-0.13.
125124         * m4/po.m4: Upgrade from gettext-0.13.
125125         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
125126         * m4/intmax.m4: New file, from gettext-0.13.
125127         * m4/printf-posix.m4: New file, from gettext-0.13.
125129 2003-11-29  Karl Berry  <karl@gnu.org>
125131         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
125133 2003-11-25  Paul Eggert  <eggert@twinsun.com>
125134             Bruno Haible  <bruno@clisp.org>
125136         * lib/printf-parse.h: Don't include sys/types.h.
125137         (ARG_NONE): New macro.
125138         (char_directive): Change type of *arg_index fields to size_t.
125139         * lib/printf-parse.c: Don't include sys/types.h.
125140         (SSIZE_MAX): Remove macro.
125141         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
125142         Remove unnecessary overflow check.
125143         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
125144         fields.
125146 2003-11-25  Bruno Haible  <bruno@clisp.org>
125148         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
125150 2003-11-25  Bruno Haible  <bruno@clisp.org>
125152         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
125153         gt_TYPE_SSIZE_T.
125155 2003-11-24  Paul Eggert  <eggert@twinsun.com>
125157         * modules/alloca: Remove dependency on xalloc.
125159 2003-11-24  Paul Eggert  <eggert@twinsun.com>
125161         * lib/alloca.c: Remove dependency on xalloc module.
125162         (xalloc_die): Remove.
125163         (memory_full) [!defined emacs]: New macro.
125164         [!defined emacs]: Don't include xalloc.h.
125165         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
125166         address arithmetic overflows.  Change datatypes a bit to avoid
125167         unnecessary casts.
125169 2003-11-22  Jim Meyering  <jim@meyering.net>
125171         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
125172         s/size/size_t/.
125174 2003-11-21  Karl Berry  <karl@gnu.org>
125176         * config/config.{sub,guess}: update from config.
125178 2003-11-18  Karl Berry  <karl@gnu.org>
125180         * config/config.{sub,guess}: update from config.
125182         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
125184 2003-11-17  Paul Eggert  <eggert@twinsun.com>
125186         * README: Mention that S+T cannot overflow if S is the size of
125187         an existing object and T is sufficiently small.
125189 2003-11-17  Jim Meyering  <jim@meyering.net>
125191         On systems without utime and without a utimes function capable of
125192         dealing with a NULL struct utimbuf* argument, this utime replacement
125193         could -- in unusual circumstances -- leak a file descriptor.
125194         * lib/utime.c: Include <unistd.h> and <errno.h>.
125195         (utime_null): Be sure to close `fd' and to preserve errno.
125196         Reported by Geoff Collyer via Arnold Robbins.
125198 2003-11-17  Bruno Haible  <bruno@clisp.org>
125200         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
125201         (Depends-on): Add xsize.
125203 2003-11-17  Bruno Haible  <bruno@clisp.org>
125205         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
125207 2003-11-17  Bruno Haible  <bruno@clisp.org>
125209         * lib/vasnprintf.c (alloca): Remove fallback definition.
125210         (freea): Remove definition.
125211         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
125212         Reported by Paul Eggert.
125214 2003-11-16  Paul Eggert  <eggert@twinsun.com>
125215             Bruno Haible  <bruno@clisp.org>
125217         Protect against address arithmetic overflow.
125218         * lib/printf-args.h: Include stddef.h.
125219         (arguments): Change type of field 'count' to size_t.
125220         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
125221         'unsigned int' where appropriate.
125222         * lib/printf-parse.h: Include sys/types.h.
125223         (char_directive): Change type of *arg_index fields to ssize_t.
125224         (char_directives): Change type of fields 'count', max_*_length to
125225         size_t.
125226         * lib/printf-parse.c: Include sys/types.h and xsize.h.
125227         (SSIZE_MAX): Define fallback value.
125228         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
125229         instead of 'int' where appropriate. Check a_allocated, d_allocated
125230         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
125231         * lib/vasnprintf.c: Include xsize.h.
125232         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
125233         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
125234         overflow. Avoid wraparound when converting a width or precision from
125235         decimal to binary.
125237 2003-11-16  Bruno Haible  <bruno@clisp.org>
125239         Update from GNU gettext.
125240         * lib/printf-parse.c: Generalize to it can be compiled for wide
125241         strings.
125242         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
125243         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
125244         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
125245         SNPRINTF): New macros.
125246         Don't include <alloca.h> if the file is used inside libintl.
125247         (local_wcslen): New function, for Solaris 2.5.1.
125248         (VASNPRINTF): Use it instead of wcslen.
125250 2003-11-16  Bruno Haible  <bruno@clisp.org>
125252         * lib/xsize.h (xmax): New function.
125253         (xsum, xsum3, xsum4): Declare as "pure" functions.
125255 2003-11-12  Paul Eggert  <eggert@twinsun.com>
125257         * modules/xalloc (Files): Undo latest change, since xalloc.h
125258         no longer needs SIZE_MAX or PTRDIFF_MAX.
125260 2003-11-12  Paul Eggert  <eggert@twinsun.com>
125262         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
125263         gl_PTRDIFF_MAX.
125265 2003-11-12  Paul Eggert  <eggert@twinsun.com>
125267         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
125268         "return", to pacify some unknown compiler.  Problem reported
125269         by Joerg Schilling.
125271 2003-11-12  Paul Eggert  <eggert@twinsun.com>
125273         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
125274         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
125275         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
125276         heuristic is just as accurate as far as we know, and it removes a
125277         dependency on size_max.m4 and ptrdiff_max.m4.
125279 2003-11-11  Bruno Haible  <bruno@clisp.org>
125281         * modules/xsize (Files): Add m4/size_max.m4.
125282         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
125284 2003-11-11  Bruno Haible  <bruno@clisp.org>
125286         * m4/size_max.m4: New file.
125287         * m4/ptrdiff_max.m4: New file.
125288         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
125289         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
125290         (gl_XALLOC): Invoke it.
125292 2003-11-11  Bruno Haible  <bruno@clisp.org>
125294         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
125295         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
125296         defined.
125298 2003-11-10  Paul Eggert  <eggert@twinsun.com>
125300         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
125301         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
125302         rejected some allocations of exactly SIZE_MAX - 2 bytes.
125303         From Bruno Haible.
125304         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
125305         not (size_t) -1, since it's defined here.
125307 2003-11-09  Karl Berry  <karl@gnu.org>
125309         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
125311 2003-11-06  Paul Eggert  <eggert@twinsun.com>
125313         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
125314         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
125315         Reject sizes of exactly SIZE_MAX bytes.
125316         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
125317         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
125319 2003-11-05  Bruno Haible  <bruno@clisp.org>
125321         * lib/xsize.h: Include limits.h, to avoid a possible collision with
125322         SIZE_MAX defined in <limits.h> on Solaris.
125324 2003-11-04  Jim Meyering  <jim@meyering.net>
125326         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
125327         variable names, rather than @VAR@.
125328         * modules/poll: Likewise.
125330 2003-11-04  Bruno Haible  <bruno@clisp.org>
125332         * modules/xsize: New file.
125333         * modules/linebreak: Depend on xsize.
125334         * MODULES.html.sh (func_all_modules): Add xsize.
125336 2003-11-04  Bruno Haible  <bruno@clisp.org>
125338         * m4/xsize.m4: New file.
125340 2003-11-04  Bruno Haible  <bruno@clisp.org>
125342         * lib/xsize.h: New file.
125343         * lib/linebreak.c: Include xsize.h.
125344         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
125345         argument for overflow.
125346         Suggested by Paul Eggert.
125348 2003-11-03  Karl Berry  <karl@gnu.org>
125350         * config/config.{guess,sub}: update from config.
125352 2003-11-03  Jim Meyering  <jim@meyering.net>
125354         * modules/userspec (lib_SOURCES): Add userspec.h.
125355         (Include): Add "userspec.h".
125356         Improve description.
125358 2003-11-03  Jim Meyering  <jim@meyering.net>
125360         * lib/userspec.c: Include "userspec.h".
125361         * lib/userspec.h: New file.
125363 2003-11-03  Bruno Haible  <bruno@clisp.org>
125365         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
125367 2003-11-03  Bruno Haible  <bruno@clisp.org>
125369         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
125370         available, to avoid (extremely rare) race condition.
125371         Suggested by Paul Eggert.
125373 2003-11-02  Karl Berry  <karl@gnu.org>
125375         * config/srclist.txt (vasprintf.c): sync broken, sigh.
125377 2003-10-31  Paul Eggert  <eggert@twinsun.com>
125379         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
125380         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
125381         (read_filesystem_list): Set and use me_type_malloced.
125382         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
125383         whatever the type happens to be), for brevity and consistency.
125384         Check for size calculation overflow on Alphas running OSF/1.
125386 2003-10-31  Jim Meyering  <jim@meyering.net>
125388         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
125390         * lib/linebuffer.c: Include <string.h> for declaration of memset.
125392 2003-10-30  Paul Eggert  <eggert@twinsun.com>
125393             Bruno Haible  <bruno@clisp.org>
125395         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
125396         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
125398 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
125400         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
125401         netbsd*-gnu*.  Suggested by Robert Millan.
125403 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125405         * modules/group-member: Depend on stdbool.
125407 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125409         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
125411 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125413         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
125414         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
125415         after the 'gnu' in these cases.  This fixes some bugs in the
125416         previous change, and is based on suggestions by Robert Millan.
125418 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125420         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
125421         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
125422         no longer needed.
125423         * lib/quotearg.c (quotearg_n_options): Use it.
125424         * lib/group-member.c: Include <stdbool.h>.
125425         (free_group_info): Arg is now const *; don't free arg.
125426         (get_group_info): Now returns bool and accepts struct group_info *,
125427         rather than returning a malloc'ed struct group_info *.
125428         All uses changed.  Check for overflow in internal size calculation.
125430         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
125431         rather than xmalloc/xrealloc.
125432         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
125433         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
125434         conformance bug: the old code used a pointer after freeing the
125435         storage that it addressed.
125436         * lib/hash.c (hash_initialize): Simplify the code by using
125437         xalloc_oversized rather than doing it by hand.
125438         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
125439         the buffer preserved.  Use free and xmalloc instead.
125440         * lib/quotearg.c (quotearg_n_options): Likewise.
125441         Use a simpler test for size overflow.  Don't use xalloc_oversized
125442         because unsigned int might be wider than size_t (!); this suggests
125443         that we should switch from unsigned int to size_t for slot numbers.
125445 2003-10-28  Paul Eggert  <eggert@twinsun.com>
125447         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
125448         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
125449         NetBSD kernels.  Requested by Richard Stallman.
125451 2003-10-27  Paul Eggert  <eggert@twinsun.com>
125453         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
125454         to allocate the returned structure.  Do not allocate a subarray,
125455         as x2nrealloc will do that.
125456         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
125457         instead of xnrealloc.
125458         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
125460 2003-10-27  Bruno Haible  <bruno@clisp.org>
125462         * lib/stdbool_.h: Better support for BeOS.
125464 2003-10-26  Paul Eggert  <eggert@twinsun.com>
125466         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
125467         now uses inline.
125469 2003-10-26  Paul Eggert  <eggert@twinsun.com>
125471         * lib/xalloc.h (xalloc_oversized): New static inline function, for
125472         callers that want to do their own size-overflow checking.  Include
125473         <stdbool.h>, since xalloc_oversized returns bool.
125474         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
125475         to use xalloc_oversized.
125477         Add two functions x2realloc, x2nrealloc, for programs that grow
125478         arrays dynamically by doubling their sizes.
125479         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
125480         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
125481         New functions.
125483         Port to C99 semantics for 'inline' of external functions.
125484         Bug reported by Bruno Haible.
125485         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
125486         with the old contents of xnmalloc.
125487         (xnmalloc, xmalloc): Use it.
125488         (xnrealloc_inline): New static inline function,
125489         with the old contents of xnrealloc.
125490         (xnrealloc, xrealloc): Use it.
125492         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
125493         that.
125495 2003-10-26  Karl Berry  <karl@gnu.org>
125497         * config/srclist.txt (COPYING.DOC): no longer available from
125498         /gd/gnuorg; don't know where the ultimate source is.
125500 2003-10-25  Paul Eggert  <eggert@twinsun.com>
125502         Fix several address-calculation bugs in the hash modules,
125503         plus some minor code cleanup.
125505         * lib/hash.h: Include <stdbool.h>, for bool.
125506         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
125507         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
125508         hash_get_n_entries, hash_get_max_bucket_length,
125509         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
125510         hash_rehash): Use size_t rather than unsigned.
125511         * lib/hash.c (struct hash_table, hash_get_n_buckets,
125512         hash_get_n_buckets_used, hash_get_n_entries,
125513         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
125514         hash_get_entries, hash_do_for_each, hash_string, is_prime,
125515         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
125516         Likewise.
125517         (SIZE_MAX): Define if not defined.
125518         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
125519         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
125520         hash_print):
125521         Use const * when possible.
125522         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
125523         (check_tuning): Fix bug: if tuning parameters were very close to
125524         0 or 1, rounding errors could have caused subscript violations.
125525         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
125526         (hash_initialize): Add 'fail:' label
125527         to free table and return NULL, and use it to simplify code.
125528         Use calloc rather than clearing the storage ourself.
125529         (hash_initialize, hash_rehash): Check for arithmetic overflow in
125530         buffer size calculations.
125531         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
125532         Include <stddef.h>, for size_t.
125533         * lib/hash-pjw.c (hash_pjw): Likewise.
125534         Switch to method described by Bruno Haible.
125535         Include <limits.h>, for CHAR_BIT.
125536         (SIZE_BITS): New macro.
125538 2003-10-23  Paul Eggert  <eggert@twinsun.com>
125540         * m4/getline.m4 (AM_FUNC_GETLINE):
125541         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
125542         hosts.  Problem reported by Derek Robert Price in
125543         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
125544         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
125545         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
125547 2003-10-21  Paul Eggert  <eggert@twinsun.com>
125549         * lib/getndelim2.c (getndelim2): When size calculation overflows,
125550         ceiling the allocation at NMAX bytes rather than silently
125551         discarding input bytes before NMAX is reached.  This makes
125552         a difference only if NMAX exceeds SIZE_MAX / 2.
125554         * lib/obstack.c: Merge from glibc.
125555         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
125556         Add libc_hidden_def (_obstack_newchunk).
125557         (_obstack_free) [! defined _LIBC]: Remove.
125558         [defined _LIBC]: Make a strong alias from obstack_free, rather than
125559         a clone of the function body.
125560         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
125561         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
125563         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
125564         glibc.
125565         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
125566         arg to memcpy.
125568         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
125569         (obstack_ptr_grow_fast, obstack_int_grow_fast):
125570         Don't use lvalue casts, as GCC plans to remove support for them
125571         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
125572         was also present in the non-GCC version, indicating that this
125573         code had always been buggy and had never been widely used.
125574         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
125575         Use the fast variant of each macro, rather than copying the
125576         definiens of the fast variant; that way, we'll be more likely to
125577         catch future bugs in the fast variants.
125579 2003-10-20  Bruno Haible  <bruno@clisp.org>
125581         * modules/wait-process: New file.
125582         * MODULES.html.sh (func_all_modules): Add wait-process.
125584 2003-10-20  Bruno Haible  <bruno@clisp.org>
125586         * m4/wait-process.m4: New file.
125588 2003-10-20  Bruno Haible  <bruno@clisp.org>
125590         * lib/wait-process.h: New file, from GNU gettext.
125591         * lib/wait-process.c: New file, from GNU gettext.
125593 2003-10-19  Jim Meyering  <jim@meyering.net>
125595         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
125596         HPUX 10.20.
125598 2003-10-18  Karl Berry  <karl@gnu.org>
125600         * config/config.guess: update from config.
125602 2003-10-16  Paul Eggert  <eggert@twinsun.com>
125604         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
125605         (getgroups): First arg is int, not size_t.
125606         Don't let 'free' mangle errno.
125608 2003-10-16  Paul Eggert  <eggert@twinsun.com>
125610         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
125612 2003-10-16  Karl Berry  <karl@gnu.org>
125614         * config/config.{guess,sub}: update from config.
125616 2003-10-16  Jim Meyering  <jim@meyering.net>
125618         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
125619         memcpy.
125621 2003-10-15  Paul Eggert  <eggert@twinsun.com>
125623         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
125624         (SIZE_MAX): Remove.
125625         (new_exclude, add_exclude_file): Initial size no longer needs to
125626         be a power of 2.
125627         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
125628         our own address arithmetic overflow checking.
125630         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
125631         (fnmatch): Do not alloca more than 2000 wide characters;
125632         instead, use malloc for large buffers.
125633         Check for address arithmetic overflow, and return -1
125634         with errno set to ENOMEM in that case.
125635         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
125636         (NEW_PATTERN): Do not alloca more than 8000 bytes;
125637         instead, return -1.  Check for address arithmetic overflow.
125639 2003-10-14  Paul Eggert  <eggert@twinsun.com>
125641         Handle invalid suffixes and overflow independently, so that
125642         callers can treat them independently as needed.  Fix some bugs in
125643         suffix handling, e.g., "100k@" was not diagnosed as an invalid
125644         suffix for a human-readable blocksize.  The major caller-visible
125645         change is the addition of a new
125646         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
125647         that both overflow and suffix chars were found.
125649         * lib/human.c (humblock): Don't check separately for invalid suffix
125650         char; that is xstrtoumax's job (now that its bug is fixed).
125651         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
125652         INTMAX_MAX]: New macros.
125653         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
125654         TYPE_MAXIMUM): New macros.
125655         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
125656         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
125657         if overflow occurs, as it's what __strtol does and it's more useful
125658         in practice.
125659         (__xstrtol): If __strtol reports some error other than ERANGE,
125660         reflect it to the caller as LONGINT_INVALID.  If it reports
125661         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
125662         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
125663         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
125664         value.
125665         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
125666         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
125667         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
125668         [defined UINTMAX_MAX]: New macros.
125670 2003-10-14  Bruno Haible  <bruno@clisp.org>
125672         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
125674 2003-10-14  Bruno Haible  <bruno@clisp.org>
125676         * m4/sig_atomic_t: New file, from GNU gettext.
125677         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
125679 2003-10-14  Bruno Haible  <bruno@clisp.org>
125681         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
125682         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
125683         Also use volatile where needed.
125685 2003-10-12  Paul Eggert  <eggert@twinsun.com>
125687         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
125688         Change maintainer from Bruno Haible to 'all'.
125690 2003-10-12  Paul Eggert  <eggert@twinsun.com>
125692         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
125694 2003-10-12  Paul Eggert  <eggert@twinsun.com>
125696         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
125697         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
125698         and define in terms of the other primitives.
125699         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
125700         (SIZE_MAX): Define if not already defined.
125701         (array_size_overflow): New function.
125702         (xalloc_die): Abort instead of exiting if 'error' returns.
125703         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
125704         (xmalloc, xrealloc): Use them.
125705         (xcalloc): Check for address arithmetic overflow.
125706         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
125707         a bit faster than strcpy.
125709 2003-10-10  Simon Josefsson  <jas@extundo.com>
125711         * modules/argp (Depends-on): Add restrict and strcase.
125713 2003-10-10  Simon Josefsson  <jas@extundo.com>
125715         * m4/argp.m4: Add AC_C_INLINE.
125717 2003-10-08  Paul Eggert  <eggert@twinsun.com>
125719         Merge getpass from libc, plus a few fixes.
125721         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
125722         Include <stdbool.h>.
125723         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
125724         __fsetlocking to empty.
125725         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
125726         do include <bits/libc-lock.h>.
125727         Do not include <fcntl.h>; not needed.
125728         [_LIBC]: Include <wchar.h>.
125729         (NOTCANCEL_MODE): New macro.
125730         (flockfile, funlockfile) [_LIBC]: New macros.
125731         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
125732         [!_LIBC]: New macros.
125733         (call_fclose): New function.
125734         (getpass): Use it.  Save tty stream separately; this simplifies the
125735         code and makes it more reliable if stdin happens to equal stdout.
125736         Invoke __fsetlocking on tty.
125737         Handle thread cancellation if needed.
125738         Namespace cleanup (use __tcgetattr, __getline).
125739         Use bool for Booleans.
125740         [USE_IN_LIBIO]: Handle wide streams.
125741         [!_LIBC]: Unconditionally do the fseek, since we don't know what
125742         stream might go where.
125744         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
125745         doesn't have to include <stdio.h> before us.
125746         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
125747         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
125748         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
125749         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
125750         if not declared, so that we can use getpass.c code from libc without
125751         rewriting it.
125752         (flockfile, ftrylockfile, funlockfile): New macros.
125754 2003-10-08  Paul Eggert  <eggert@twinsun.com>
125756         * modules/getpass: Depend on stdbool.
125758 2003-10-08  Paul Eggert  <eggert@twinsun.com>
125760         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
125762 2003-10-07  Karl Berry  <karl@gnu.org>
125764         * config/config.{guess,sub}: update from config.
125766 2003-10-06  Jim Meyering  <jim@meyering.net>
125767             Bruno Haible  <bruno@clisp.org>
125769         This lets translators provide better translations for the
125770         "Written by ..." part of --version output.
125771         * lib/version-etc.h: Include stdarg.h.
125772         (version_etc_copyright): Declare as readonly.
125773         (version_etc): Make this function variadic with a NULL-terminated list
125774         of author name strings.
125775         (version_etc_va): New declaration.
125776         * lib/version-etc.c: Include stdarg.h, stdlib.h.
125777         (version_etc_copyright): Declare as readonly.
125778         (version_etc_va): New function. Provide a different translatable string
125779         for each possible number of authors < 10. Abbreviate when there are 10
125780         authors or more.
125781         (version_etc): Make this function variadic. Call version_etc_va.
125782         Suggestion from Gary V. Vaughan.
125784         * lib/long-options.h (parse_long_options): Change prototype: the
125785         authors string is moved to the end and becomes variadic.
125786         * lib/long-options.c: Include stdarg.h.
125787         (parse_long_options): Make this function variadic, too.
125788         Call version_etc_va, not version_etc.
125790 2003-10-06  Bruno Haible  <bruno@clisp.org>
125792         * modules/version-etc-2: Remove file.
125793         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
125795 2003-10-06  Bruno Haible  <bruno@clisp.org>
125797         * modules/fatal-signal: New file.
125798         * MODULES.html.sh (func_all_modules): Add fatal-signal.
125800 2003-10-06  Bruno Haible  <bruno@clisp.org>
125802         * m4/fatal-signal.m4: New file.
125803         * m4/signalblocking.m4: New file, from GNU gettext.
125805 2003-10-06  Bruno Haible  <bruno@clisp.org>
125807         * lib/version-etc-2.h: Remove file.
125808         * lib/version-etc-2.c: Remove file.
125810 2003-10-06  Bruno Haible  <bruno@clisp.org>
125812         * lib/fatal-signal.h: New file, from GNU gettext.
125813         * lib/fatal-signal.c: New file, from GNU gettext.
125815 2003-10-05  Paul Eggert  <eggert@twinsun.com>
125817         * README: Rework advice for preventing empty .o files.
125818         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
125819         not <sys/types.h>.
125821 2003-10-04  Karl Berry  <karl@gnu.org>
125823         * lib/argp*: update from libc.
125825 2003-10-04  Karl Berry  <karl@gnu.org>
125827         * config/config.{guess,sub}: update from config.
125829 2003-10-02  Bruno Haible  <bruno@clisp.org>
125831         * modules/lchown (Include): Add lchown.h.
125832         * modules/time_r (Include): Use "..." syntax.
125833         * modules/xgetdomainname (Include): Add xgetdomainname.h.
125835 2003-10-01  Simon Josefsson  <jas@extundo.com>
125837         * MODULES.html.sh (func_all_modules): Move gethostname from section
125838         'based on' to section 'lacking' POSIX:2001.
125840 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
125842         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
125843         to output mode on the same stream.
125845 2003-09-29  Paul Eggert  <eggert@twinsun.com>
125847         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
125848         Fix arg typo in previous patch.
125850 2003-09-28  Jim Meyering  <jim@meyering.net>
125852         * lib/error.c: Correct cpp indentation.
125854 2003-09-27  Paul Eggert  <eggert@twinsun.com>
125856         * modules/free: New file.
125858 2003-09-27  Paul Eggert  <eggert@twinsun.com>
125860         * m4/free.m4: New file.
125862 2003-09-27  Paul Eggert  <eggert@twinsun.com>
125864         * lib/minmax.h (MIN, MAX)
125865         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
125866         Omit the special code that used __typeof__, since we worry that
125867         it could be more trouble than it's worth.  See:
125868         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
125869         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
125871         * lib/free.c: New file.
125873 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
125875         Trivial fixes to Makefile.am parts of module listings.
125876         * modules/strstr: Append strstr.h to lib_SOURCES.
125877         * modules/strcase: Likewise, for strcase.h.
125879 2003-09-27  Karl Berry  <karl@gnu.org>
125881         * config/mkinstalldirs: update from automake.
125883 2003-09-26  Paul Eggert  <eggert@twinsun.com>
125885         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
125886         (error_tail): Do not loop, reallocating temporary buffer, since
125887         the output cannot contain more wide characters than the input
125888         contains bytes, the size must be big enough already.  This avoids
125889         one potential size overflow calculation.  Check for size overflow
125890         when calculating temporary buffer size.  Free temporary buffer
125891         when done, if it was allocated with malloc; this plugs a memory
125892         leak.  Remove casts from void * to pointers, that are no longer
125893         needed now that we're assuming C89 or better.
125895         Merge error changes from glibc.
125897         * lib/error.c, error.h: Update copyright notice header to match glibc.
125898         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
125899         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
125900         Disable cancellation while printing error.
125901         * lib/error.h: Prepend __ to parameter names.
125903 2003-09-26  Jim Meyering  <jim@meyering.net>
125905         * lib/error.c (error_tail): Move some declarations
125906         into inner scope where the local variables are used.
125908 2003-09-26  Bruno Haible  <bruno@clisp.org>
125910         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
125911         stpncpy().
125912         Don't define stpncpy through config.h; it's now done through stpncpy.h.
125914 2003-09-26  Bruno Haible  <bruno@clisp.org>
125916         * lib/stpncpy.h (gnu_stpncpy): New declaration.
125917         (stpncpy): Define as alias for gnu_stpncpy.
125918         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
125920 2003-09-25  Simon Josefsson  <jas@extundo.com>
125922         * lib/xgetdomainname.h: New file.
125923         * lib/xgetdomainname.c: New file.
125925 2003-09-25  Simon Josefsson  <jas@extundo.com>
125926             Bruno Haible  <bruno@clisp.org>
125928         * modules/getdomainname: New file.
125929         * modules/xgetdomainname: New file.
125930         * MODULES.html.sh (func_all_modules): Add getdomainname,
125931         xgetdomainname.
125933 2003-09-25  Simon Josefsson  <jas@extundo.com>
125934             Bruno Haible  <bruno@clisp.org>
125936         * m4/getdomainname.m4: New file.
125938 2003-09-25  Simon Josefsson  <jas@extundo.com>
125939             Bruno Haible  <bruno@clisp.org>
125941         * lib/getdomainname.h: New file.
125942         * lib/getdomainname.c: New file.
125944 2003-09-25  Karl Berry  <karl@gnu.org>
125946         * lib/argp-fmtstream.c, argp-help.c: update from libc.
125948 2003-09-25  Karl Berry  <karl@gnu.org>
125950         * config/install-sh: update from automake.
125952 2003-09-25  Bruno Haible  <bruno@clisp.org>
125954         * modules/version-etc-2: New file, from modules/version-etc with
125955         modifications.
125956         * MODULES.html.sh (func_all_modules): Add version-etc-2.
125958 2003-09-25  Bruno Haible  <bruno@clisp.org>
125960         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
125961         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
125963 2003-09-24  Simon Josefsson  <jas@extundo.com>
125965         * modules/xgethostname: Add xgethostname.h.
125967 2003-09-24  Paul Eggert  <eggert@twinsun.com>
125969         * lib/linebuffer.c (freebuffer): Don't free the argument, just
125970         the buffer associated with the argument.  Bug reported by
125971         Simon Josefsson.
125973 2003-09-24  Paul Eggert  <eggert@twinsun.com>
125975         * README: Document assumptions that 'int' is at least 32 bits
125976         wide, that integer arithmetic is 2's complement without overflow,
125977         that there are no holes in integer values, that adding sizes of
125978         two nonoverlapping objects can't overflow, and that all-bits-zero
125979         yields scalar zero.  Fix spelling and capitalization typos.
125981 2003-09-19  Karl Berry  <karl@gnu.org>
125983         * lib/argp.h: update from libc.
125985 2003-09-17  Paul Eggert  <eggert@twinsun.com>
125987         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
125988         to avoid spurious warnings like "AC_RUN_IFELSE was called before
125989         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
125991 2003-09-17  Paul Eggert  <eggert@twinsun.com>
125993         * gnulib-tool: Use "test -h", not "test -L", for portability
125994         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
125995         (tags_regexp): Remove, since \| doesn't conform to POSIX.
125996         (sed_extract_prog): Issue s commands one-by-one, rather than
125997         using \| in one s command.
125999 2003-09-16  Paul Eggert  <eggert@twinsun.com>
126001         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
126002         input error, instead of returning NULL the next time we are called
126003         (and therefore losing track of errno).
126005 2003-09-16  Bruno Haible  <bruno@clisp.org>
126007         * gnulib-tool (func_create_testdir): Warn about duplicated
126008         dependencies.
126010 2003-09-15  Paul Eggert  <eggert@twinsun.com>
126012         * modules/argmatch, modules/fatal, modules/obstack,
126013         modules/xalloc, modules/xgethostname: Sort dependencies by
126014         importance, not alphabetically.
126016 2003-09-15  Paul Eggert  <eggert@twinsun.com>
126018         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
126019         fails, so that the caller gets the proper errno.
126021         * lib/readutmp.c (read_utmp): Likewise.
126022         Check for fstat error.  Close stream and free storage
126023         when failing.
126025 2003-09-14  Karl Berry  <karl@gnu.org>
126027         * config/srclist.txt (strdup.c): disable for c89 changes.
126029 2003-09-14  Jim Meyering  <jim@meyering.net>
126031         * lib/getloadavg.c: Correct cpp indentation.
126032         * lib/strdup.c: Likewise.
126033         * lib/vasnprintf.c: Likewise.
126035 2003-09-14  Bruno Haible  <bruno@clisp.org>
126037         * modules/fwriteerror: New file.
126038         * MODULES.html.sh (func_all_modules): Add fwriteerror.
126040 2003-09-14  Bruno Haible  <bruno@clisp.org>
126042         * lib/fwriteerror.h: New file.
126043         * lib/fwriteerror.c: New file.
126045 2003-09-12  Paul Eggert  <eggert@twinsun.com>
126047         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
126048         modules/xgethostname, modules/xalloc: Depend on exit.
126050 2003-09-12  Paul Eggert  <eggert@twinsun.com>
126052         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
126054         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
126055         and AC_MINIX, too, so that their extensions are available.
126057         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
126058         This macro has been superseded by gl_BACKUPFILE.
126060         More patches to assume C89 or better.
126062         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
126064         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
126065         unconditionally.
126066         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
126067         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
126068         Include <string.h>, <stdlib.h> unconditionally.
126069         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
126070         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
126071         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
126072         headers or for string.h.
126073         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
126074         or strtoul.
126076         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
126077         headers.
126078         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
126079         * m4/userspec.m4 (gl_USERSPEC): Likewise.
126080         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
126081         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
126082         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
126083         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
126084         memcpy, memset.
126085         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
126086         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
126087         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
126088         strtol.
126089         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
126090         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
126091         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
126092         strtoul.
126094 2003-09-12  Paul Eggert  <eggert@twinsun.com>
126096         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
126097         * lib/obstack.c [!defined _LIBC]: Likewise.
126098         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
126099         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
126100         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
126102         More changes to assume C89 or better.
126104         * lib/error.c (error_tail): Assume vprintf.
126106         * lib/argmatch.c (getenv): Remove decl.
126107         * lib/progreloc.c (get_full_program_name): Define via prototype.
126108         * lib/setenv.c (clearenv): Likewise.
126109         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
126110         needed.
126111         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
126112         (malloc, memcpy): Remove decls.
126113         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
126114         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
126115         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
126116         (memcpy): Remove macro.
126117         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
126118         (__P): Remove.  All uses removed.
126119         (PTR): Remove.  All uses changed to void *.
126120         (CHAR_BIT, NULL): Remove.
126121         (spaces, zeros, memset_space, memset_zero)
126122         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
126123         Remove.
126124         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
126125         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
126126         Define with prototype.
126127         Remove now-unnecessary prototype decl.
126128         (extra_args_spec): Assume ANSI C.  All uses changed.
126129         (extra_args_spec_iso): Remove.
126130         (my_strftime, emacs_strftimeu): Define via prototype.
126131         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
126132         unconditionally.
126133         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
126134         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
126135         (strtoul, strtol): Remove decls.
126136         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
126137         LONG_MAX): Remove.
126138         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
126139         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
126140         (LOCALE_PARAM_PROTO): New macro.
126141         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
126142         (INTERNAL (strtol), strtol): Define with a prototype.
126143         (PARAMS): Remove.  All uses removed.
126144         * lib/tempname.c: Include <string.h> unconditionally.
126145         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
126146         * lib/xgethostname.c (main): Define with a prototype.
126147         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
126148         Include <stdlib.h> unconditionally.
126149         (calloc, malloc, realloc, free): Remove decls.
126150         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
126151         Include <stdlib.h> unconditionally.  Sort include file names.
126152         (strtod): Remove.
126153         (xstrtod): Define with a prototype.
126154         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
126155         (strtol, strtoul): Remove decls.
126157 2003-09-11  Paul Eggert  <eggert@twinsun.com>
126159         More patches to assume C89 or better.
126160         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
126161         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
126162         string.h, memchr, STDC_HEADERS.
126164 2003-09-11  Paul Eggert  <eggert@twinsun.com>
126166         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
126167         Include <stdlib.h>, <string.h> unconditionally.
126168         Remove now-unnecessary cast to char *.
126169         * lib/strnlen.c: Include <string.h> unconditionally.
126170         * lib/yesno.c (yesno): Define with a prototype.
126172 2003-09-11  Bruno Haible  <bruno@clisp.org>
126174         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
126176 2003-09-10  Jim Meyering  <jim@meyering.net>
126178         * lib/error.c: Correct indentation of cpp directives.
126180 2003-09-10  Bruno Haible  <bruno@clisp.org>
126182         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
126183         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
126184         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
126185         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
126186         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
126187         <stdlib.h> and <string.h> checks.
126188         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
126189         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
126191 2003-09-10  Bruno Haible  <bruno@clisp.org>
126193         * lib/strcspn.c: Include <string.h> unconditionally.
126194         * lib/strpbrk.c: Include <string.h> unconditionally.
126195         * lib/strstr.c: Include <string.h> unconditionally.
126196         * lib/unicodeio.c: Include <string.h> unconditionally.
126197         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
126198         * lib/unsetenv.c: Likewise.
126199         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
126200         * lib/yesno.c: Include <stdlib.h> unconditionally.
126201         (rpmatch): Add prototype.
126203 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126205         More patches to assume C89 or better.
126206         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
126207         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
126208         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
126209         or for string.h.
126210         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
126211         stdlib.h.
126212         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
126213         C headers.
126214         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
126215         string.h.
126216         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
126217         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
126218         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
126219         or for string.h.
126220         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
126221         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
126222         C headers.
126223         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
126224         memcpy.
126225         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
126226         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
126227         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
126228         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
126229         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
126230         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
126231         string.h, free.
126232         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
126233         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
126234         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
126235         C headers, or for string.h.
126236         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
126237         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
126238         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
126239         headers, memory.h, stdlib.h, string.h, strings.h.
126240         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
126241         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
126242         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
126243         strchr.
126244         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
126245         headers, memory.h, string.h.
126246         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
126247         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
126248         free.
126249         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
126250         headers.
126251         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
126252         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
126253         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
126254         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
126255         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
126257 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126259         More K&R removal.
126261         * lib/acosl.c (main): Use a prototype.
126262         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
126263         tanl.c: Likewise.
126265         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
126267         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
126268         (getopt, etopt_long, getopt_long_only, _getopt_internal)
126269         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
126270         with a prototype.
126271         * lib/getopt.c (const): Remove macro.
126272         Include <string.h> unconditionally.
126273         (my_index): Remove; all uses changed to strchr.
126274         (strlen): Remove decl.
126275         (exchange): Remove forward decl; no longer needed.
126276         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
126277         Define with prototype.
126278         * lib/getopt1.c (const): Remove macro.
126279         (getopt_long, getopt_long_only, main): Define with prototype.
126281         * lib/getugroups.c: Include <string.h> unconditionally.
126283         * lib/getusershell.c: Include <stdlib.h> unconditionally.
126284         (getusershell, setusershell, endusershell, readname, main):
126285         Define with prototypes.
126287         * lib/group-member.c: Include group-member.h first.
126288         Include <stdlib.h> unconditionally.
126290         * lib/hard-locale.c: Include hard-locale.h first.
126291         Include <stdlib.h>, <string.h> unconditionally.
126293         * lib/hash.c (free, malloc): Remove decls.
126294         Include <stdlib.h> unconditionally.
126296         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
126297         (getenv): Do not declare.
126299         * lib/idcache.c: Include <string.h> unconditionally.
126301         * lib/long-options.c: Include long-options.h first, to test interface.
126302         Include <stdlib.h> unconditionally.
126304         * lib/makepath.c: Include makepath.h first, to test interface.
126305         Include <stdlib.h> and <string.h> unconditionally.
126307         * lib/linebuffer.c: Include <stdlib.h>.
126308         (free): Remove decl.
126310         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
126311         stddef.h. rpl_malloc returns void *, not char *.
126312         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
126313         prototype.
126315         * lib/md5.h: Include <limits.h> unconditionally.
126316         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
126317         (__P): Remove; all uses removed.
126318         * lib/md5.c: Include "md5.h" first.
126319         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
126320         md5_buffer, md5_process_bytes, md5_process_block):
126321         Define with prototypes.
126322         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
126323         * lib/sha.c: Include "sha.h" first.
126324         Include <stdlib.h>, <string.h> unconditionally.
126326         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
126327         * lib/memcmp.c (__ptr_t): Likewise.
126328         * lib/memrchr.c (__ptr_t): Likewise.
126329         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
126330         Include <string.h> unconditionally.
126331         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
126332         * lib/memchr.c: Include <stdlib.h> unconditionally.
126333         * lib/memchr.c (LONG_MAX): Remove.
126334         * lib/memrchr.c (LONG_MAX): Likewise.
126335         * lib/memchr.c (__memchr): Define via a prototype.
126336         * lib/memrchr.c (__memrchr): Likewise.
126337         * lib/memcmp.c (__P): Remove, and remove all uses.
126338         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
126339         Remove forward decls; no longer needed.
126340         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
126341         Use types required by C89 in prototype.
126343         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
126344         * lib/savedir.c: Likewise.
126345         * lib/mkdir.c (free): Remove decl.
126346         * lib/rmdir.c (rmdir): Define with a prototype.
126347         * lib/savedir.c: Include savedir.h first, to test interface.
126349         * lib/mktime.c (STDC_HEADERS): Remove.
126350         Include <stdlib.h>, <string.h> unconditionally.
126352         * lib/modechange.c: Include <stdlib.h> unconditionally.
126353         (malloc): Remove decl.
126355         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
126356         (free): Remove decl.
126358         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
126359         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
126360         (This type really should be intptr_t, but that's a C99ism.)
126361         (_obstack_memcpy): Remove: all uses changed to memcpy.
126362         Include <string.h> unconditionally.
126363         (struct obstack): Assume __STDC__ for types of members
126364         chunkfun, freefun, extra_arg.
126365         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
126366         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
126367         obstack_begin, obstack_specify_allocation,
126368         obstack_specify_allocation_with_arg, obstack_chunkfun,
126369         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
126370         Remove unprototyped decls and the macros that use them.
126371         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
126372         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
126373         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
126374         (defined __STDC__ && __STDC__)]:
126375         Remove nonprototyped code.
126376         Include <stdlib.h> unconditionally.
126377         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
126378         _obstack_allocated_p, _obstack_free, obstack_free,
126379         _obstack_memory_used, print_and_abort):
126380         Define using prototypes.
126381         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
126382         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
126383         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
126384         obstack_next_free, obstack_object_size, obstack_room) [0]:
126385         Remove unused, unprototyped code.
126387         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
126389         * lib/physmem.c (physmem_total, physmem_available, main): Define
126390         with prototypes.
126392         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
126393         (main): Define with a prototype.
126395         * lib/posixver.c (getenv): Remove decl.
126397         * lib/putenv.c (malloc): Returns void *, not char *.
126398         Include <string.h> unconditionally.
126399         (strchr, memcpy, NULL): Do not define.
126401         * lib/readtokens.c: Include readtokens.h first, to test interface.
126402         Include <stdlib.h>, <string.h> unconditionally.
126403         (init_tokenbuffer): Define with a prototype.
126405         * lib/regex.c (PARAMS): Remove.  All uses removed.
126406         All uses of _RE_ARGS removed, too.
126407         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
126408         unconditionally.
126409         (bzero): Assume memset exists.
126410         (memcmp, memcpy, NULL): Remove.
126411         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
126412         char, or assignments to local vars of type signed char.
126413         (init_syntax_once, PREFIX(extract_number_and_incr),
126414         PREFIX(print_partial_compiled_pattern),
126415         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
126416         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
126417         PREFIX(regex_grow_registers), PREFIX(regex_compile),
126418         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
126419         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
126420         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
126421         wcs_compile_range, byte_compile_range, truncate_wchar,
126422         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
126423         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
126424         count_mbs_length, wcs_re_match_2_internal,
126425         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
126426         PREFIX(alt_match_null_string_p),
126427         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
126428         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
126429         regfree, PREFIX(extract_number)): Define with prototype.  Remove
126430         now-unnecessary declaration, if any.
126431         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
126432         regcomp, regexec):
126433         Remove now-unnecessary casts among pointer types.
126434         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
126436         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
126437         (free): Remove decl.
126439         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
126441         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
126442         (free): Remove decl.
126444         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
126445         * lib/xgetcwd.c: Likewise.
126447         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
126448         (free): Remove decl.
126450         * lib/strchrnul.c (strchrnul): Define with a prototype.
126451         Fix bug: c_in was not converted to char before searching.
126453         The following changes are not K&R related:
126455         * lib/group-member.h: Include <sys/types.h>, so that this file is
126456         self-contained.
126457         * lib/makepath.h: Likewise.
126459         * lib/getusershell.c (readname, default_index, line_size, readname):
126460         Use size_t, not int, for sizes.
126461         (readname): If the size overflows, report an error instead of
126462         looping forever.
126464 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126466         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
126467         libc.
126469 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126471         * README: New section: portability guidelines.
126473 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
126475         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
126476         C89 spec.
126478 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
126480         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
126482 2003-09-08  Paul Eggert  <eggert@twinsun.com>
126484         Assume C89 or better; remove K&R cruft.
126485         A few of these changes were first proposed by Derek Robert Price
126486         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
126488         * lib/addext.c: Include <string.h> unconditionally.
126489         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
126490         Don't declare getenv or malloc.
126492         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
126493         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
126494         (NULL): Remove.
126495         (find_stack_direction, alloca): Use prototypes.
126497         * lib/atexit.c (atexit): Define using a prototype.
126499         * lib/basename.c, dirname.c, stripslash.c:
126500         Include <string.h> unconditionally.
126502         * lib/bcopy.c: Include <stddef.h>.
126503         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
126505         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
126507         * lib/error.h (error, error_at_line, error_print_progname)
126508         [! (defined (__STDC__) && __STDC__)]: Remove decls.
126509         * lib/error.c: Include error.h first, to check interface.
126510         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
126511         (VA_START): Remove; all uses changeed to va_start.
126512         (exit, strerror): Remove decls.
126513         (error_print_progname): Prototype uncondionally.
126514         Don't include <errno.h>; no longer needed.
126515         (private_strerror): Remove.
126516         (error_tail): Always define.
126517         (error, error_at_line): Assume C89 or better; always use prototypes.
126518         * lib/fatal.c: Include "fatal.h" first, to test interface.
126519         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
126520         (VA_START): Remove; all uses changed to va_start.
126521         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
126522         this case.
126523         (exit): Remove decl.
126524         (fatal): Prototype unconditionally.  Assume va_start works.
126525         Abort at end, to pacify gcc.
126527         * lib/euidaccess.c (main): Define with a prototype.
126529         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
126531         * lib/exitfail.c: Include <stdlib.h> unconditionally.
126533         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
126534         prototypes.
126535         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
126536         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
126537         (getenv): Remove decl.
126538         (fnmatch): Define using a prototype.
126539         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
126540         (FCT): Define using a prototype.
126542         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
126544         * lib/gethostname.c: Include <stddef.h>.
126545         (gethostname): Define with prototype.  Length is size_t, not int.
126547 2003-09-08  Paul Eggert  <eggert@twinsun.com>
126549         Assume C89 or better; remove K&R cruft.
126550         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
126551         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
126552         string.h, getenv, malloc.
126553         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
126554         headers.
126555         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
126556         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
126557         do not check for strerror.
126558         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
126559         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
126560         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
126561         do not check for doprnt or vprintf.
126562         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
126563         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
126565 2003-09-08  Paul Eggert  <eggert@twinsun.com>
126567         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
126568         getversion.c should have been removed then, but was accidentally
126569         preserved.
126571         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
126572         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
126574 2003-09-08  Karl Berry  <karl@gnu.org>
126576         * config/config.sub, config.guess, srclistvars.sh: update from savannah
126577                 config, forget about prep.
126579         * config/depcomp, missing: update from automake.
126581 2003-09-07  Paul Eggert  <eggert@twinsun.com>
126583         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
126584         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
126586 2003-09-07  Paul Eggert  <eggert@twinsun.com>
126588         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
126589         copy_tm_result.  Bug reported by Simon Josefsson in
126590         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
126592 2003-09-06  Paul Eggert  <eggert@twinsun.com>
126594         * m4/time_r.m4: New file.
126595         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
126596         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
126597         is. Check for timegm declaration.
126598         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
126599         Do not check for gmtime_r.
126600         Replace mktime if __mktime_internal does not exist and if mktime
126601         hasn't been replaced already.
126603 2003-09-06  Paul Eggert  <eggert@twinsun.com>
126605         * lib/time_r.c, lib/time_r.h: New files.
126607         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
126608         __localtime_r.
126609         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
126610         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
126612         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
126613         __gmtime_r.
126614         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
126615         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
126616         Include <time_r.h>.
126618         * lib/timegm.c: Switch to glibc implementation, with the following
126619         changes:
126620         [defined HAVE_CONFIG_H]: Include <config.h>.
126621         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
126622         (__mktime_internal) [!defined _LIBC]: New decl.
126623         (__gmtime_r) [!defined _LIBC]: New macro and function.
126624         (timegm): Use a prototype, since gnulib assumes C89.
126625         Do not bother declaring tmp to be const, as it's not really usefu.
126626         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
126627         (timegm): Declare only if HAVE_DECL_TIMEGM.
126629 2003-09-06  Paul Eggert  <eggert@twinsun.com>
126631         * MODULES.html.sh (func_all_modules): Add time_r.
126632         * modules/time_r: New file.
126633         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
126634         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
126636 2003-09-03  Paul Eggert  <eggert@twinsun.com>
126638         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
126639         Bug reported by Lute Kamstra in
126640         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
126642         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
126643         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
126644         course with correspondingly smaller numbers for tomorrow and
126645         yesterday.  From Tadayoshi Funaba.  Originally installed into
126646         sh-utils on 1999-08-07, but the patch got lost (I guess during the
126647         coreutils merge?).
126649 2003-08-31  Simon Josefsson  <jas@extundo.com>
126651         * modules/timegm: New file.
126652         * MODULES.html.sh (func_all_modules): Add timegm.
126654 2003-08-31  Simon Josefsson  <jas@extundo.com>
126656         * m4/timegm.m4: New file.
126658 2003-08-31  Simon Josefsson  <jas@extundo.com>
126660         * lib/timegm.h: New file.
126661         * lib/timegm.c: New file.  Based on
126662         wget-1.8.2/src/http.c:mktime_from_utc.
126664 2003-08-31  Karl Berry  <karl@gnu.org>
126666         * lib/argp.h: update from libc.
126668 2003-08-28  Bruno Haible  <bruno@clisp.org>
126670         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
126671         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
126672         followed by '#define fnmatch fnmatch_posix' gives an error.
126674 2003-08-28  Bruno Haible  <bruno@clisp.org>
126676         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
126677         warning on QNX, which defines O_BINARY to 000000.
126679 2003-08-27  Jim Meyering  <jim@meyering.net>
126681         * m4/mkstemp.m4: Require that the system mkstemp be able to create
126682         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
126683         would fail after 32.  Reported by Danny Levinson.  Details here:
126684         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
126686 2003-08-24  Bruno Haible  <bruno@clisp.org>
126688         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
126689         MSVC7 <stdio.h> is included later.
126691 2003-08-22  Simon Josefsson  <jas@extundo.com>
126693         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
126695 2003-08-20  Karl Berry  <karl@gnu.org>
126697         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
126699 2003-08-20  Bruno Haible  <bruno@clisp.org>
126701         * modules/progname: New file.
126702         * MODULES.html.sh (func_all_modules): Add progname.
126704 2003-08-20  Bruno Haible  <bruno@clisp.org>
126706         * lib/progname.h: New file, from GNU gettext.
126707         * lib/progname.c: New file, from GNU gettext.
126708         * lib/progreloc.c: New file, from GNU gettext.
126710 2003-08-19  Jim Meyering  <jim@meyering.net>
126712         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
126713         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
126715 2003-08-19  Bruno Haible  <bruno@clisp.org>
126717         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
126718         more.
126720 2003-08-19  Bruno Haible  <bruno@clisp.org>
126722         * lib/xstrdup.c: Assume <string.h> exists.
126724 2003-08-18  Paul Eggert  <eggert@twinsun.com>
126726         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
126727         in makefile rules.
126729 2003-08-18  Jim Meyering  <jim@meyering.net>
126731         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
126732         * m4/lib-ld.m4: Likewise.
126734 2003-08-18  Jim Meyering  <jim@meyering.net>
126736         * lib/setenv.h: Indent nested cpp directive.
126737         * lib/vasnprintf.c: Remove trailing blanks.
126739 2003-08-17  Simon Josefsson  <jas@extundo.com>
126741         * modules/xstrndup: New file.
126742         * MODULES.html.sh (func_all_modules): Add xstrndup.
126744 2003-08-17  Simon Josefsson  <jas@extundo.com>
126746         * modules/argp: Fix autoconf macro name. Add more dependencies.
126748 2003-08-17  Simon Josefsson  <jas@extundo.com>
126750         * m4/xstrndup.m4: New file.
126752 2003-08-17  Simon Josefsson  <jas@extundo.com>
126754         * m4/argp.m4: New file.
126756 2003-08-17  Simon Josefsson  <jas@extundo.com>
126757             Bruno Haible  <bruno@clisp.org>
126759         * lib/xstrndup.h: New file.
126760         * lib/xstrndup.c: New file.
126762 2003-08-17  Bruno Haible  <bruno@clisp.org>
126764         * modules/strndup (Files, Include): Add lib/strndup.h.
126766 2003-08-17  Bruno Haible  <bruno@clisp.org>
126768         * modules/euidaccess (Files): Add lib/euidaccess.h.
126770 2003-08-17  Bruno Haible  <bruno@clisp.org>
126772         * lib/strndup.h: New file.
126774 2003-08-17  Bruno Haible  <bruno@clisp.org>
126776         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
126777         like AC_GNU_SOURCE.
126778         * modules/extensions (configure.ac): Comment out the invocation of
126779         gl_USE_SYSTEM_EXTENSIONS.
126781 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126783         Merges from coreutils, etc.
126784         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
126785         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
126786         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
126787         fixing a typo.
126788         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
126789         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
126791 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126793         Document merge from coreutils.
126794         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
126795         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
126796         * modules/utime: Add m4/utimes-null.m4.
126798 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126800         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
126801         space, undoing this 2003-08-12 change:
126802         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
126804 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126806         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
126807         strtoul.c from libc, undoing this 2003-08-12 change:
126808         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
126810 2003-08-16  Jim Meyering  <jim@meyering.net>
126812         Merges from coreutils.
126813         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
126814         prefix.  Adjust cache variables similarly.  Create 500 rather than
126815         just 300 files, to exercise bug on Darwin6.5, too.
126816         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
126817         $missing_dir.
126818         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
126819         AM_SYS_POSIX_TERMIOS.
126820         Reported by mkc@mathdogs.com.
126821         Also change use of $am_cv_sys_posix_termios
126822         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
126823         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
126824         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
126825         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
126826         in /proc/mounts until it finds one with matching device number.  This
126827         is unnecessary when the FILE argument *is* a mount point.  No stat call
126828         is necessary in that case.  So, disable the statvfs-testing code on
126829         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
126830         as RedHat bug# 84846.
126831         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
126832         to 1MB, so as not to render systems with no stack size limit (e.g.,
126833         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
126834         Include <unistd.h>.  On some systems,
126835         it is required for the definition of _SC_PAGESIZE.
126837 2003-08-16  Jim Meyering  <jim@meyering.net>
126839         Merge from coreutils.
126840         * lib/xstrtoimax.c: #else #if -> #elif.
126841         * lib/xstrtoumax.c: Likewise.
126843 2003-08-16  Jim Meyering  <jim@meyering.net>
126845         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
126846         * m4/utimes.m4: Removed.
126847         * m4/utimes-null.m4: Renamed from utimes.m4.
126849         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
126850         to 1MB, so as not to render systems with no stack size limit (e.g.,
126851         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
126852         Include <unistd.h>.  On some systems,
126853         it is required for the definition of _SC_PAGESIZE.
126855 2003-08-16  Jim Meyering  <jim@meyering.net>
126856         and Paul Eggert  <eggert@cs.ucla.edu>
126858         Merges from coreutils, etc.
126860         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
126861         using the latest version from cvs.  This avoids problems with #line
126862         directives using a vendor (Sun) compiler.
126863         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
126864         Don't set GETGROUPS_LIB here; now it's
126865         done via getgroups.m4's wrapper function.
126866         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
126867         rather than just in sh-util/configure.in, so that the
126868         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
126869         same.
126870         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
126871         AC_FUNC_GETLOADAVG where to find getloadavg.c.
126872         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
126873         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
126874         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
126875         Remove code that is now done by the newly-required macros.
126876         Append $(EXEEXT) to DF_PROG.
126877         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
126878         Do not invoke or require the following here,
126879         since prereq.m4 or some gnulib .m4 now does this for us:
126880         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
126881         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
126882         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
126883         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
126884         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
126885         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
126886         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
126887         AC_FUNC_OBSTACK.
126888         Do not replace the following functions, as this is now the job
126889         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
126890         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
126891         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
126892         atexit getpass, strdup, getpagesize.
126893         Replace 'raise'.
126894         Do not check for the following functions, as this is now the job
126895         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
126896         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
126897         setregid.
126898         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
126899         Check for sys/sysctl.h.
126900         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
126901         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
126902         of checking for ssize_t ourselves.
126904         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
126905         Require every macro that gnulib/modules/* suggests for us.
126906         (jm_PREREQ_ADDEXT): New macro.
126907         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
126908         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
126910         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
126911         (gl_PHYSMEM): Use it.
126912         Also check for `table' function.
126913         Check for new headers and functions.
126914         Add check for sys/sysmp.h.
126915         With suggestions from Kaveh Ghazi.
126916         Ignore headers that are present but cannot be compiled.  This
126917         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
126918         C 5.4.
126920 2003-08-15  Paul Eggert  <eggert@twinsun.com>
126922         Document merge from coreutils.
126923         * modules/userspec: Depend on posixver.
126924         * modules/strftime: Depend on tzset.
126926 2003-08-15  Paul Eggert  <eggert@twinsun.com>
126928         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
126929         rather than tab, after '#' in shell-script copyright notices.
126930         Suggested by Bruno Haible.
126932 2003-08-15  Paul Eggert  <eggert@twinsun.com>
126934         * config/srclist-update: Use three spaces, rather than tab, after '#'
126935         in shell-script copyright notices.  Suggested by Bruno Haible.
126936         Remove unnecessary parenthesization in regular expression.
126938 2003-08-15  Jim Meyering  <jim@meyering.net>
126940         Merge from coreutils.
126941         * lib/xgethostname.c: Include <stdlib.h>.
126942         (xghostname): Don't exit for anything other than memory-related
126943         failure; just return NULL.
126944         * lib/userspec.c: Include "posixver.h".
126945         (parse_user_spec): Accept `.' as a separator only
126946         in pre-POSIX-200112 mode.
126947         * lib/strtoimax.c: Use #elif rather than #else #if.
126948         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
126949         Remove function, now that we can rely on a working tzset function.
126950         [!_LIBC]: Ensure that the required autoconf test has been run.
126951         [!defined _NL_CURRENT && HAVE_STRFTIME]:
126952         Use underlying_strftime for %r.
126953         * lib/sha.c: Merge in some clean-up and optimization changes from
126954         glibc.
126955         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
126956         Ensure that it is a multiple of 64.
126957         Rearrange loop exit tests so as to avoid performing an
126958         additional fread after encountering an error or EOF.
126959         * lib/realloc.c: Update copyright date.
126961 2003-08-15  Jim Meyering  <jim@meyering.net>
126962         and Paul Eggert  <eggert@twinsun.com>
126964         Merge from coreutils.
126965         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
126966         member but strut utmpx does not.  Needed for AIX 4.3.3.
126967         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
126969 2003-08-15  Jim Meyering  <jim@meyering.net>
126970         and Paul Eggert  <eggert@cs.ucla.edu>
126972         Merges from coreutils, etc.
126973         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
126974         Require gl_FUNC_TZSET_CLOBBER.
126975         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
126976         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
126977         members.
126979 2003-08-14  Paul Eggert  <eggert@twinsun.com>
126981         Help the merge from coreutils.
126982         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
126983         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
126984         * m4/tzset.m4: Use it too.
126986 2003-08-14  Paul Eggert  <eggert@twinsun.com>
126988         * modules/tzset: New file.
126990 2003-08-14  Jim Meyering  <jim@meyering.net>
126992         Merges from coreutils.
126993         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
126994         variable names, rather than @FNMATCH_H@.
126995         * modules/alloca: Likewise for $(ALLOCA_H).
126997         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
126998         the three copies of the literal target, `fnmatch.h'.
126999         * modules/alloca (alloca.h): Likewise.
127001 2003-08-14  Jim Meyering  <jim@meyering.net>
127003         Merge from coreutils.
127004         * m4/tzset.m4: New file.
127005         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
127006         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
127007         otherwise, AIX 5.1 systems would end up using the latter.
127008         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
127009         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
127010         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
127011         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
127013 2003-08-14  Jim Meyering  <jim@meyering.net>
127015         Merge from coreutils.
127016         * lib/obstack.h: Whitespace changes.
127017         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
127018         and xcalloc return values.
127019         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
127020         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
127021         hang on OSF/1 5.1 for DIR on both local and remote file systems.
127022         Reported by (and fix confirmed by) Nelson H. F. Beebe.
127023         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
127024         error from mntctl.
127025         Use mntctl's return value to drive the entry-processing loop, since
127026         we can't rely on the value of the vmt_length member in the last
127027         entry.  On some systems doing so could result in exhausting
127028         virtual memory.  Based in part on a patch from Mike Jetzer.
127030 2003-08-14  Jim Meyering  <jim@meyering.net>
127031         and Paul Eggert  <eggert@twinsun.com>
127033         Merges from coreutils, plus other fixes.
127034         * lib/physmem.c: Merge in portability changes from gcc/libiberty
127035         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
127036         for credits and details.  Thanks to Kaveh Ghazi for helping
127037         to keep these files in sync.
127038         (ARRAY_SIZE): Define it.
127039         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
127040         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
127041         (memcasecmp): Don't assume size_t fits in unsigned int.
127042         Remove casts and duplicate code.
127043         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
127044         (memcpy): Remove definition.
127045         Merge in some clean-up and optimization changes from glibc.
127046         [BLOCKSIZE]: Move definition to top of file.
127047         Ensure that it is a multiple of 64.
127048         Rearrange loop exit tests so as to avoid performing an
127049         additional fread after encountering an error or EOF.
127050         * lib/md5.h (md5_uintptr): Define.
127051         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
127052         return to the initial working directory.  Preserve errno
127053         for caller.
127054         * lib/idcache.c: Include "xalloc.h".
127055         (xmalloc, xrealloc): Remove decls.
127056         (getuser): Remove casts no longer required in C89.
127057         * lib/human.c: Include stdio.h, for sprintf.
127058         * lib/group-member.c: Include "xalloc.h".
127059         (xmalloc, xrealloc): Remove decls.
127060         (get_group_info): Remove casts no longer required in C89.
127061         * lib/getusershell.c (readname): Remove casts no longer required in
127062         C89.
127063         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
127064         * lib/getline.c: Whitespace fix, from coreutils.
127066 2003-08-13  Paul Eggert  <eggert@twinsun.com>
127068         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
127069         Check for isascii.
127071         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
127072         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
127073         Undo previous (whitespace-only) change.
127075 2003-08-13  Paul Eggert  <eggert@twinsun.com>
127077         * lib/exclude.c: Include <ctype.h>
127078         (IN_CTYPE_DOMAIN): New macro.
127079         (is_space): New fn.
127080         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
127081         and empty lines.
127083         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
127084         Undo previous (whitespace-only) change.
127086 2003-08-13  Paul Eggert  <eggert@twinsun.com>
127088         * config/srclist-update: Change update back to the old behavior,
127089         leaving whitespace alone.  Use one 'sed' command rather than a
127090         pipeline.
127091         (fixlicense): Now a variable, not a function.
127092         (remove_trailing_blanks): Remove.
127093         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
127094         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
127095         Undo previous (whitespace-only) change.
127097 2003-08-12  Paul Eggert  <eggert@twinsun.com>
127099         Merge from coreutils.
127100         * modules/euidaccess: Add lib_SOURCES, include for new
127101         file euidaccess.h
127103 2003-08-12  Paul Eggert  <eggert@twinsun.com>
127105         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
127106         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
127107         Normalize leading white space and remove trailing white space.
127109         Merge from coreutils
127110         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
127112         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
127113         0.12.1.  These files are now being upgraded automatically by
127114         ../config/srclist-update.
127116 2003-08-12  Paul Eggert  <eggert@twinsun.com>
127118         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
127119         Normalize leading white space and remove trailing white space.
127120         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
127121         notice, as per ../config/srclist-update.
127123         Merge from coreutils.
127124         * lib/euidaccess.h: New file.
127125         * lib/euidaccess.c: Include it.
127126         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
127127         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
127128         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
127130 2003-08-12  Paul Eggert  <eggert@twinsun.com>
127132         * config/srclist-update: Add copyright notice.
127133         (remove_id_lines, remove_trailing_blanks): New constants.
127134         (fixfile): Use them to normalize spacing a bit in copied files.
127135         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
127136         Normalize leading white space and remove trailing white space.
127138         * config/texinfo.tex: Sync with texinfo.
127140         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
127141         strtoul.c from libc, to merge coreutils whitespace changes.
127143         * config/srclist.txt: Get the following m4 files from gettext:
127144         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
127145         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
127146         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
127147         wint_t.m4.
127149 2003-08-12  Karl Berry  <karl@gnu.org>
127151         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
127152         been made.
127154 2003-08-11  Paul Eggert  <eggert@twinsun.com>
127156         * modules/gnu-source, m4/gnu-source.m4:
127157         Remove; we're assuming Autoconf 2.54 or later now.
127158         Suggested by Bruno Haible.
127159         * MODULES.html.sh (func_all_modules): Remove gnu-source.
127161 2003-08-11  Bruno Haible  <bruno@clisp.org>
127163         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
127165 2003-08-11  Bruno Haible  <bruno@clisp.org>
127167         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
127168         (vasnprintf): Use it instead of wcslen.
127170 2003-08-11  Bruno Haible  <bruno@clisp.org>
127172         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
127173         value to ensure that _Bool promotes to int. Use #define for _Bool when
127174         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
127176 2003-08-10  Karl Berry  <karl@gnu.org>
127178         * lib/regex.h: update from libc (whitespace fix).
127180 2003-08-09  Paul Eggert  <eggert@twinsun.com>
127182         Merge some files from coreutils.  These changes were
127183         originally made by Jim Meyering.
127184         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
127185         many older Unixes require this.
127186         * lib/alloca.c (alloca): Remove cast to argument of free;
127187         no longer needed in C89.
127188         * lib/alloca_.h, regex.h: Fix white space to match
127189         what GNU indent does.
127191 2003-08-09  Paul Eggert  <eggert@twinsun.com>
127193         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
127194         apparently Emacs's Unicode mode got confused before my 2003-08-05
127195         checkin.
127197 2003-08-08  Paul Eggert  <eggert@twinsun.com>
127199         * m4/extensions.m4: New file.
127200         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
127201         Require gl_USE_SYSTEM_EXTENSIONS.
127202         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
127203         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
127205 2003-08-08  Paul Eggert  <eggert@twinsun.com>
127207         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
127208         * modules/extensions, modules/gnu-source: New files.
127209         * modules/timespec, modules/unlocked-io: Depend on extensions.
127211 2003-08-07  Paul Eggert  <eggert@twinsun.com>
127213         * modules/restrict: New file.
127214         * MODULES.html.sh (func_all_modules): Add restrict.
127215         * modules/regex: Depend on restrict.
127217 2003-08-07  Paul Eggert  <eggert@twinsun.com>
127219         * m4/restrict.m4: New file.
127220         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
127222 2003-08-07  Bruno Haible  <bruno@clisp.org>
127224         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
127225         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
127227 2003-08-07  Bruno Haible  <bruno@clisp.org>
127229         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
127230         makes the module 'getndelim2' compatible with the module 'getline'.
127232 2003-08-05  Paul Eggert  <eggert@twinsun.com>
127234         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
127235         byte with "\201" to avoid glitches when editing that source file
127236         with multi-gnome-terminal.
127238 2003-08-05  Paul Eggert  <eggert@twinsun.com>
127240         * lib/bumpalloc.h: Remove.
127242 2003-08-05  Paul Eggert  <eggert@twinsun.com>
127244         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
127245         * modules/bumpalloc: Remove.
127247 2003-08-04  Paul Eggert  <eggert@twinsun.com>
127249         * lib/getloadavg.c: Change copyright notice and spacing to conform to
127250         GNU coding style.
127252         Merge from coreutils.
127253         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
127254         1. From glibc.
127255         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
127256         from Karl Berry, implemented by Jim Meyering.
127257         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
127258         from Dmitry V. Levin.
127259         Remove anachronistic cast of xrealloc.
127260         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
127261         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
127262         type. Otherwise, it wouldn't compile with at least /bin/cc on
127263         ymp-cray-unicos9.0.2.X.
127264         Combine two mostly-identical uses of alloca into one.
127265         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
127267 2003-08-04  Dave Love  <d.love@dl.ac.uk>
127269         [From Emacs.]
127271         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
127272         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
127273         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
127274         obsolete NLIST_NAME_UNION.
127275         [__GNU__]: Undef BSD and FSCALE.
127276         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
127278 2003-08-03  Paul Eggert  <eggert@twinsun.com>
127280         * lib/stdbool_.h (_Bool): Make it signed char, instead of
127281         an enum type, so that it's guaranteed to promote to int.  See:
127282         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
127284 2003-08-03  Karl Berry  <karl@gnu.org>
127286         * config/depcomp: update from automake.
127288 2003-07-31  Paul Eggert  <eggert@twinsun.com>
127290         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
127291         (strerror): Don't assume that a printable int fits in 14 bytes.
127293 2003-07-31  Bruno Haible  <bruno@clisp.org>
127295         * modules/getpass-gnu: New file.
127296         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
127298 2003-07-31  Bruno Haible  <bruno@clisp.org>
127300         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
127302 2003-07-24  Karl Berry  <karl@gnu.org>
127304         * config/missing: update from automake.
127306 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
127307             Bruno Haible  <bruno@clisp.org>
127309         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
127310         * lib/getline.c (getline, getdelim): Likewise.
127311         Remove _GNU_SOURCE define; now it's defined in config.h through
127312         m4/getline.m4.
127314 2003-07-23  Karl Berry  <karl@gnu.org>
127316         * config/config.sub: update from prep.
127318 2003-07-22  Paul Eggert  <eggert@twinsun.com>
127320         * modules/xalloc (Depends-on): Add exitfail.
127321         * modules/xmemcoll: Likewise.
127323 2003-07-22  Paul Eggert  <eggert@twinsun.com>
127325         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
127326         over-parenthesization in macros.
127328         Sync with coreutils.
127330         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
127331         required by C99.
127333         Use `exit_failure' for xalloc and xmemcoll instead of their own
127334         private exit-failure variables.
127335         * lib/xalloc.h (xalloc_exit_failure): Remove.
127336         * lib/xmalloc.c: Likewise.  Include exitfail.h.
127337         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
127338         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
127339         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
127340         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
127342 2003-07-20  Jim Meyering  <jim@meyering.net>
127344         * modules/closeout (Depends-on): Add exitfail.
127345         Suggestion from Bruno Haible.
127347 2003-07-19  Karl Berry  <karl@gnu.org>
127349         * config/config.sub: update from prep.
127351 2003-07-18  Paul Eggert  <eggert@twinsun.com>
127353         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
127354         Remove.
127355         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
127356         to test that it can stand by itself.  Include "exitfail.h".
127357         Clients should set exit_failure instead.
127358         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
127360 2003-07-18  Bruno Haible  <bruno@clisp.org>
127362         * modules/getndelim2: New file.
127363         * modules/getline: Share files with module getndelim2.
127364         * modules/getnline: Depend on getndelim2 instead of sharing files with
127365         it. Add getnline.c to lib_SOURCES.
127366         * MODULES.html.sh (func_all_modules): Add getndelim2.
127368 2003-07-18  Bruno Haible  <bruno@clisp.org>
127370         * m4/getndelim2.m4: New file.
127371         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
127372         invoke gl_PREREQ_GETNDELIM2.
127373         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
127374         gl_PREREQ_GETNDELIM2.
127375         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
127376         gl_GETNDELIM2.
127378 2003-07-18  Bruno Haible  <bruno@clisp.org>
127380         * lib/getndelim2.h: New file.
127381         * lib/getndelim2.c: Make into a module of its own. Include config.h,
127382         getndelim2.h.
127383         (getndelim2): Make non-static. Change return type to ssize_t.
127384         * lib/getline.h: Change argument names.
127385         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
127386         * lib/getnline.c: Include getndelim2.h.
127388 2003-07-18  Andreas Schwab  <schwab@suse.de>
127390         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
127392 2003-07-17  Karl Berry  <karl@gnu.org>
127394         * config/config.sub: update from prep.
127396 2003-07-17  Bruno Haible  <bruno@clisp.org>
127398         * modules/getnline: New file.
127399         * modules/getline: Add lib/getndelim2.c to source file list.
127400         * MODULES.html.sh (func_all_modules): Add getnline.
127402 2003-07-17  Bruno Haible  <bruno@clisp.org>
127404         * m4/getnline.m4: New file.
127406 2003-07-17  Bruno Haible  <bruno@clisp.org>
127408         * m4/Makefile.am.in: Remove file.
127409         * m4/Makefile.am: Remove file.
127410         * m4/Makefile.in: Remove file.
127412 2003-07-17  Bruno Haible  <bruno@clisp.org>
127414         * lib/getnline.h: New file.
127415         * lib/getnline.c: New file.
127416         * lib/getndelim2.c: New file, extracted from getline.c.
127417         (getndelim2): Renamed from getdelim2, with added nmax argument.
127418         * lib/getline.c: Include getndelim2.c.
127419         (getdelim2): Moved out to getndelim2.c.
127420         (getline, getdelim): Update.
127422 2003-07-17  Bruno Haible  <bruno@clisp.org>
127424         * lib/Makefile.am: Remove file.
127425         * lib/Makefile.in: Remove file.
127427 2003-07-17  Bruno Haible  <bruno@clisp.org>
127429         * configure.in: Remove file.
127430         * Makefile.in: Remove file.
127432 2003-07-17  Bruno Haible  <bruno@clisp.org>
127434         * MODULES.html.sh: Put the </BODY> right before </HTML>.
127436 2003-07-16  Karl Berry  <karl@gnu.org>
127438         * config/srclist-update: was running fixlicense twice, which caused
127439                 texinfo.tex to be nullified for some reason.  Simplify,
127440                 $gplsrc is no longer needed as far as I can see?
127442 2003-07-16  Jim Meyering  <jim@meyering.net>
127444         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
127446 2003-07-15  Paul Eggert  <eggert@twinsun.com>
127448         * config/srclist.txt: Get the following files from gettext-runtime/intl
127449         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
127450         ref-del.sin.  From Bruno Haible.
127451         * config/srclist-update (fixfile): Change grep pattern again, since the
127452         previous fix didn't work (there was another trailing $).  Use
127453         '[$]' to escape the $s.
127455 2003-07-15  Karl Berry  <karl@gnu.org>
127457         * lib/vasnprintf.c: update from gettext.
127459 2003-07-15  Karl Berry  <karl@gnu.org>
127461         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
127462         gets expanded when surrounded by '$'.
127464 2003-07-15  Jim Meyering  <jim@meyering.net>
127466         * modules/save-cwd: Don't depend on error.  From Derek Price.
127468 2003-07-15  Jim Meyering  <jim@meyering.net>
127470         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
127472 2003-07-14  Simon Josefsson  <jas@extundo.com>
127474         * modules/mempcpy: New file.
127475         * MODULES.html.sh (func_all_modules): Add mempcpy.
127477 2003-07-14  Simon Josefsson  <jas@extundo.com>
127479         * m4/mempcpy.m4: New file.
127481 2003-07-14  Simon Josefsson  <jas@extundo.com>
127483         * lib/mempcpy.h: New file.
127484         * lib/mempcpy.c: New file.
127486 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127488         * modules/getdate, modules/posixtm: Depend on mktime.
127490 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127492         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
127493         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
127494         unicodeio.c, unicodeio.h, unlocked-io.h:
127495         Switch from LGPL to GPL.
127497 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127499         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
127500         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
127501         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
127502         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
127503         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
127504         updated automatically by ../config/srclist-update.  This changes
127505         their license from LPGL to GPL.
127507 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127509         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
127510         assumed to refer to the root of the most recent stable gettext version.
127511         * config/srclistvars.sh: Add defaults for eggert.
127512         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
127513         Match "This program" as well as "The program".  This is needed
127514         for gettext.
127516 2003-07-14  Jim Meyering  <jim@meyering.net>
127518         Don't emit diagnostics.  Let callers do that.
127519         * lib/save-cwd.c: Don't include "error.h".
127520         (save_cwd): Don't call error.  Ensure that errno is valid
127521         when returning nonzero.
127523         * lib/save-cwd.h (restore_cwd): Update prototype.
127524         * lib/save-cwd.c (restore_cwd): Remove two parameters.
127525         Simplify.  Don't call error upon failure.  Let callers do that.
127526         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
127527         when auditing is enabled.  But don't bother updating the #if.
127529 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
127531         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
127532         it breaks C++ compilation.
127533         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
127535 2003-07-10  Simon Josefsson  <jas@extundo.com>
127537         * modules/strchrnul (Makefile.am): Add strchrnul.h.
127539 2003-07-10  Jim Meyering  <jim@meyering.net>
127541         * m4/clock_time.m4: Remove trailing blank.
127542         * m4/intmax_t.m4: Likewise.
127544 2003-07-10  Jim Meyering  <jim@meyering.net>
127546         * lib/vasnprintf.c: Remove trailing blanks.
127547         Make cpp indentation consistent.
127549 2003-07-09  Paul Eggert  <eggert@twinsun.com>
127551         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
127552         posixver.c, strftime.c, strnlen.c, strverscmp.c:
127553         Switch from LGPL to GPL.
127555 2003-07-09  Paul Eggert  <eggert@twinsun.com>
127557         * config/srclist.txt: Sort sublists.  Add
127558         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
127559         that differ from gnulib for one reason or another; we'd like this list
127560         to be smaller but for now let's document what we have.
127562 2003-07-08  Paul Eggert  <eggert@twinsun.com>
127564         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
127565         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
127566         and sweeter "eval x=$x".
127567         * config/srclist.txt: Get lib/argp* from glibc.
127569 2003-07-07  Paul Eggert  <eggert@twinsun.com>
127571         * lib/mktime.c: Fix some boundary cases and remove need for floating
127572         point.
127574         Issue a compile-time diagnostic if time_t is floating point, or if
127575         two's complement arithmetic is not in effect, or if arithmetic
127576         right shift does not propagate the sign.  These assumptions were
127577         all in the original code but they weren't checked.
127579         (TIME_T_MIDPOINT, verify): New macros.
127580         (__isleap): Remove; it has integer overflow problems.
127581         (leapyear): New function, without those problems.
127582         (ydhms_tm_diff): Remove; splitting into two parts.
127583         (ydhms_diff): New function, containing the arithmetic part of
127584         the old ydhms_tm_diff function.  Issue a compile-time
127585         diagnostic if we are not using C99 integer division.
127586         Avoid casts when possible.
127587         (guess_time_tm): New function, containing the checking part of
127588         the old ydhms_tm_diff function.  Return the new value, rather than
127589         the difference between it and the old.  Accept a new argument T
127590         so that *T specifies the old value.  Check for overflow in the result.
127592         (__mktime_internal): Use a time_t offset, not a long int offset.
127593         This undoes the 2003-06-04 change, which is no longer needed now
127594         that we have better overflow checking.
127595         (localtime_offset): Likewise.
127597         (__mktime_internal): Avoid harmful overflow on hosts where time_t
127598         and long are 64-bit but int is only 32-bit.
127599         (ydhms_diff): Use long int to store year1 and yday1.
127600         Issue a compile-time diagnostic if long int is not wide enough.
127602         (__mktime_internal): Use long int to store adjusted year and yday.
127603         Use plain C rather than preprocessor commands, if that doesn't
127604         affect efficiency.
127605         Check for overflow (and try to repair) after each probe
127606         rather than checking only at the very end.  This avoids some bugs
127607         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
127608         does not equal GMT offset at maximum time).
127609         Use integer to check for overflow rather than floating point; this
127610         is more portable to non-IEEE hosts, and is a tad faster.
127611         When we detect that we are oscillating between two values,
127612         don't check whether tm_isdst has the requested value, since
127613         we already know the answer.  When tm_isdst has the wrong value,
127614         use a different heuristic to find the right one, based on the
127615         extreme values actually observed in practice in tz2003a,
127616         rather than the (overly optimistic) "previous 3 calendar quarters".
127618         (not_equal_tm, print_tm, check_result): Use "const T" rather than
127619         "T const" to accommodate glibc style.
127620         (check_result): Use less-confusing report format.  "long" -> "long int.
127621         (main): Likewise.
127622         Don't loop if the iteration overflows time_t.
127623         Allow a negative step in the iteration.
127625 2003-07-06  Karl Berry  <karl@gnu.org>
127627         * config/depcomp: update from automake.
127628         * config/config.sub: update from prep.
127630 2003-07-03  Karl Berry  <karl@gnu.org>
127632         * config/config.guess: update from prep.
127634 2003-07-01  Paul Eggert  <eggert@twinsun.com>
127636         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
127637         xreadlink.c now includes it unconditionally.
127639 2003-07-01  Paul Eggert  <eggert@twinsun.com>
127641         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
127642         having it depend on HAVE_SYS_TYPES_H.
127644 2003-07-01  Bruno Haible  <bruno@clisp.org>
127646         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
127647         <sys/types.h> should be sufficient.
127648         Reported by Paul Eggert.
127650 2003-06-26  Karl Berry  <karl@gnu.org>
127652         * config/depcomp: update from automake.
127654 2003-06-26  Bruno Haible  <bruno@clisp.org>
127656         * modules/human: Depend on module stdbool.
127658 2003-06-25  Bruno Haible  <bruno@clisp.org>
127660         * modules/readlink: New file.
127661         * modules/xreadlink: Depend on it.
127662         * MODULES.html.sh (func_all_modules): Add readlink.
127664 2003-06-25  Bruno Haible  <bruno@clisp.org>
127666         * m4/readlink.m4: New file.
127668 2003-06-25  Bruno Haible  <bruno@clisp.org>
127670         * lib/readlink.c: New file.
127672 2003-06-22  Karl Berry  <karl@gnu.org>
127674         * config/srclist.txt: update mkinstalldirs from automake.
127675         * config/mkinstalldirs: update.
127677 2003-06-22  Bruno Haible  <bruno@clisp.org>
127679         Portability to mingw32.
127680         * m4/ssize_t.m4: New file, from GNU gettext.
127681         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
127682         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
127684 2003-06-22  Bruno Haible  <bruno@clisp.org>
127686         * modules/safe-read: Add m4/ssize_t.m4.
127687         * modules/xreadlink: Add m4/ssize_t.m4.
127689 2003-06-20  Bruno Haible  <bruno@clisp.org>
127691         Assume C89, so PARAMS isn't needed.
127692         * lib/unicodeio.h (PARAMS): Remove.
127693         * lib/unicodeio.c: Don't use PARAMS.
127695 2003-06-18  Karl Berry  <karl@gnu.org>
127697         * config/config.{guess,sub}: update from prep.
127699 2003-06-18  Jim Meyering  <jim@meyering.net>
127701         Merge changes from coreutils.
127702         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
127703         Remove explicit declarations of xmalloc and realloc.
127704         Include xalloc.h.
127705         (read_utmp): Remove anachronistic cast of xmalloc.
127707 2003-06-17  Paul Eggert  <eggert@twinsun.com>
127709         Assume C89, so PARAMS isn't needed.
127710         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
127711         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
127712         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
127713         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
127714         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
127715         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
127716         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
127717         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
127718         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
127719         lib/xstrtod.h, lib/xstrtol.h: Likewise.
127720         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
127721         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
127722         no longer needed. Anyway, config.h should always be included before any
127723         other file.
127725 2003-06-11  Simon Josefsson  <jas@extundo.com>
127727         * modules/sysexits: New file.
127728         * MODULES.html.sh (func_all_modules): Add sysexits.
127730 2003-06-11  Simon Josefsson  <jas@extundo.com>
127732         * lib/sysexit_.h: New file.
127734 2003-06-11  Derek Price  <derek@ximbiot.com>
127736         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
127737         necessary.
127739 2003-06-11  Bruno Haible  <bruno@clisp.org>
127741         * m4/sysexits.m4: New file.
127743 2003-06-10  Simon Josefsson  <jas@extundo.com>
127745         * lib/argp.h: New file, from glibc.
127746         * lib/argp-ba.c: New file, from glibc.
127747         * lib/argp-eexst.c: New file, from glibc.
127748         * lib/argp-fmtstream.c: New file, from glibc.
127749         * lib/argp-fmtstream.h: New file, from glibc.
127750         * lib/argp-fs-xinl.c: New file, from glibc.
127751         * lib/argp-help.c: New file, from glibc.
127752         * lib/argp-namefrob.h: New file, from glibc.
127753         * lib/argp-parse.c: New file, from glibc.
127754         * lib/argp-pv.c: New file, from glibc.
127755         * lib/argp-pvh.c: New file, from glibc.
127756         * lib/argp-xinl.c: New file, from glibc.
127758 2003-06-10  Simon Josefsson  <jas@extundo.com>
127760         * modules/strchrnul: New file.
127762 2003-06-10  Simon Josefsson  <jas@extundo.com>
127764         * modules/argp: New file.
127766 2003-06-10  Simon Josefsson  <jas@extundo.com>
127768         * m4/strchrnul.m4: New file.
127770 2003-06-10  Simon Josefsson  <jas@extundo.com>
127772         * lib/strchrnul.h: New file.
127773         * lib/strchrnul.c: New file.
127775 2003-06-10  Bruno Haible  <bruno@clisp.org>
127777         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
127779 2003-06-07  Karl Berry  <karl@gnu.org>
127781         * config/config.{guess,sub}: update from prep.
127783 2003-06-07  Jim Meyering  <jim@meyering.net>
127785         * modules/strtod: Use $(...) notation, not @...@ for
127786         AC_REPLACE'd variables.
127787         * modules/localcharset: Likewise.
127789 2003-06-07  Jim Meyering  <jim@meyering.net>
127791         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
127792         in place of my name in the copyright comment.
127793         Remove definition and uses of __P.
127795         From coreutils.
127796         * lib/stat.c: Don't declare xmalloc explicitly.
127797         Instead, include "xalloc.h".
127798         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
127799         xrealloc, and xcalloc return values.
127800         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
127801         Improve comment.
127802         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
127804 2003-06-07  Bruno Haible  <bruno@clisp.org>
127806         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
127807         avoid AC_CONFIG_LINKS.
127808         * modules/fnmatch (Makefile.am): Use explicit creation rule for
127809         fnmatch.h, to avoid AC_CONFIG_LINKS.
127810         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
127812 2003-06-07  Bruno Haible  <bruno@clisp.org>
127814         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
127815         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
127816         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
127817         directory.
127818         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
127819         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
127820         directory.
127822 2003-06-06  Jim Meyering  <jim@meyering.net>
127824         Merge from coreutils.
127825         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
127826         Consolidate declarations and initializations of *_base* locals.
127828         Merge from coreutils.
127829         This avoids a core dump on systems without GNU putenv,
127830         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
127831         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
127832         (unsetenv): New static function, from GNU libc.
127833         (rpl_putenv): Use it.
127835         * lib/modechange.c: Remove trailing blanks.
127837         Merge from coreutils.
127838         * lib/fsusage.c: Remove declaration of statfs.
127839         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
127841         * lib/posixtm.c: Include <stdbool.h> unconditionally.
127843 2003-06-06  Jim Meyering  <jim@meyering.net>
127845         * lib/stdbool_.h: Renamed from stdbool.h.in.
127847 2003-06-06  Jim Meyering  <jim@meyering.net>
127848             Bruno Haible  <bruno@clisp.org>
127850         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
127851         Adjust Makefile.am snippet not to redirect directly to target.
127852         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
127854 2003-06-05  Paul Eggert  <eggert@twinsun.com>
127856         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
127857         mismatch, look in future quarters as well as past.  This fixes a
127858         bug when processing fall-backwards gaps immediately after a long
127859         period of daylight-saving time.
127861         * lib/mktime.c: Assume freestanding C89 or better.
127862         (HAVE_LIMITS_H): Remove.  Assume it's 1.
127863         (__P): Remove; not used.
127864         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
127865         (mktime, not_equal_tm, print_tm, check_result,
127866         main): Use prototypes.  Use const * where appropriate.
127867         (main): Fix typo in testing code that uncovered by above changes.
127868         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
127870 2003-06-04  Paul Eggert  <eggert@twinsun.com>
127872         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
127873         locale.h, localeconv.  This merges changes from coreutils.
127875         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
127876         It can be removed after the next Autoconf is released.
127877         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
127878         needed.
127880 2003-06-04  Paul Eggert  <eggert@twinsun.com>
127882         * lib/mktime.c: Fix Debian bug 177940
127883         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
127884         (localtime_offset): Now long int, not time_t, because we want it
127885         to be guaranteed to be signed.  All uses changed.
127886         (__mktime_internal): If overflow would occur when adding offset,
127887         don't add it.
127889         Merge 'human' changes from coreutils.  Rewrite to support
127890         locale-specific notations like thousands separators.
127891         * lib/human.c: Simplify authorship notice.
127892         Include human.h immediately after config.h.
127893         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
127894         <limits.h>: Do not include, since human.h does.
127895         (SIZE_MAX, UINTMAX_MAX): New macros.
127896         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
127897         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
127898         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
127899         (power_letter): Renamed from suffixes.
127900         (generate_suffix_backwards): Remove.
127901         (adjust_value): Now takes int style (because of human.h changes)
127902         and long double value (for greater precision on some platforms).
127903         (group_number): New function.
127904         (human_readable): Use it.  Use integer options, not enum.
127905         Put the options before the sizes in the arg list.
127906         Support all the new options.
127907         The old human_readable function has been removed;
127908         use inttostr.h instead.
127909         (human_readable, default_block_size, humblock):
127910         Use uintmax_t, not int, for block sizes.
127911         (human_readable_inexact, block_size_types): Remove.
127912         (block_size_opts): New constant.
127913         (human_options): Renamed from human_block_size, with new signature
127914         that allows block sizes up to UINTMAX_MAX.  All callers changed.
127915         * lib/human.h: Add copyright and authorship notice.
127916         Include <limits.h> and <stdbool.h> unconditionally.
127917         (PARAMS): Remove.  All uses removed.
127918         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
127919         (enum human_inexact_style): Remove tag; now a nameless enum.
127920         (human_floor, human_ceiling, human_round_to_even): Now have
127921         values 2, 0, 1 rather than -1, 1, 0.
127922         (human_group_digits, human_suppress_point_zero, human_autoscale,
127923         human_base_1024, human_SI, human_B): New constants.
127924         (human_readable_inexact, human_block_size): Remove.
127925         (human_readable): Size args are now uintmax_t, not int.
127926         (human_options): New decl.
127928         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
127929         unnecessary now that we assume C89 or better.  This change
127930         imported from coreutils.
127932         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
127933         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
127934         in the 2003-05-30 sync from glibc.
127936         .h files should stand alone, but we shouldn't include <sys/types.h>
127937         if we can get away with just <stddef.h>.
127939         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
127940         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
127941         rather than <sys/types.h>, as we merely need size_t.
127942         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
127943         to get size_t.
127944         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
127945         Include <stdio.h>, to get FILE.
127946         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
127947         memcasecmp.h has included <stddef.h> and all we need is size_t.
127948         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
127949         our interface, instead of including <sys/types.h>
127951 2003-06-04  Paul Eggert  <eggert@twinsun.com>
127953         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
127954         now, as glibc mktime is buggy on non-glibc systems.
127956 2003-06-03  Karl Berry  <karl@gnu.org>
127958         * config/config.sub: update from prep.
127960 2003-06-02  Paul Eggert  <eggert@twinsun.com>
127962         [from coreutils]
127963         Fix some minor time-related bugs with POSIX time arguments.
127964         Some valid time stamps were being rejected (notably -1, and
127965         time stamps before 1900 on 64-bit hosts).  And some invalid
127966         time stamps were being accepted, e.g. September 31.
127968         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
127969         that we can return (time_t) -1 successfully.
127970         * lib/posixtm.c: Likewise.
127971         [HAVE_STDBOOL_H]: Include <stdbool.h>.
127972         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
127973         (t): Remove static var.
127974         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
127975         of static var.  All uses changed.
127976         (year): Do not reject years before 1900; they can occur with
127977         64-bit time_t.
127978         (posix_time_parse): Do not check for out-of-range components;
127979         that is now the caller's responsibility, since our checks were
127980         only approximations.
127981         (posixtime): Use mktime to check for out-of-range components,
127982         since it knows them exactly.
127983         If mktime returns (time_t) -1, check whether an error actually occurred
127984         by invoking localtime on -1.
127985         (main) [TEST_POSIXTIME]: Check for input data errors, and report
127986         posixtime failures better.
127987         Improve the test data (in comments only).
127989 2003-06-02  Karl Berry  <karl@gnu.org>
127991         * config/mkinstalldirs (version): new variable.
127992         (--version): new option.
127993         (usage): improve message.
127995 2003-05-30  Karl Berry  <karl@gnu.org>
127997         * lib/mktime.c: update from libc.
127999 2003-05-30  Bruno Haible  <bruno@clisp.org>
128001         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
128002         * config/config.rpath: Upgrade to gettext-0.12.1.
128004 2003-05-30  Bruno Haible  <bruno@clisp.org>
128006         * m4/gettext.m4: Upgrade to gettext-0.12.1.
128007         * m4/nls.m4: New file, from gettext-0.12.1.
128008         * m4/po.m4: New file, from gettext-0.12.1.
128009         * m4/progtest.m4: Upgrade to gettext-0.12.1.
128011 2003-05-30  Bruno Haible  <bruno@clisp.org>
128013         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
128014         * lib/localcharset.h: Likewise.
128015         * lib/localcharset.c: Likewise.
128017 2003-05-29  Karl Berry  <karl@gnu.org>
128019         * config/config.rpath: update from gettext.
128021 2003-05-28  Paul Eggert  <eggert@twinsun.com>
128023         Assume the headers required for C89 freestanding compilers.
128024         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
128025         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
128026         * m4/human.m4 (gl_HUMAN): Likewise.
128027         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
128028         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
128029         * m4/userspec.m4 (gl_USERSPEC): Likewise.
128030         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
128031         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
128032         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
128034 2003-05-28  Paul Eggert  <eggert@twinsun.com>
128036         Assume the headers required for C89 freestanding compilers.
128037         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
128038         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
128039         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
128040         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
128041         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
128042         define, since <limits.h> is guaranteed to do that.
128043         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
128044         * lib/exclude.c: Include <stdbool.h> unconditionally.
128045         * lib/tempname.c: Include <stddef.h> unconditionally.
128046         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
128047         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
128048         <stddef.h> does that.
128049         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
128050         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
128051         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
128052         needed.
128053         * lib/xstrtol.c: Likewise.
128054         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
128055         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
128057         * lib/addext.c (addext): Use assignment rather than cast, to avoid
128058         warnings on some platforms.
128060         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
128061         arbitrarily.
128063 2003-05-26  Jim Meyering  <jim@meyering.net>
128065         Merge in a change from coreutils:
128066         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
128067         that is guaranteed to be `no'.  Use `no_such_member' to indicate
128068         that condition, rather than `-1' which is slightly misleading.
128069         Change the name of the cache variable to have the gl_ prefix.
128070         Prompted by a patch from Richard Dawe for DJGPP.
128072 2003-05-24  Karl Berry  <karl@gnu.org>
128074         * config/config.guess: update from prep.
128076 2003-05-22  Karl Berry  <karl@gnu.org>
128078         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
128080 2003-05-20  Karl Berry  <karl@gnu.org>
128082         * config/config.guess: update from prep.
128084 2003-05-18  Karl Berry  <karl@gnu.org>
128086         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
128087         might actually be set by the user.
128089         * config/depcomp, install-sh, mdate-sh: update from automake.
128091 2003-05-17  Bruno Haible  <bruno@clisp.org>
128093         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
128094         invalid expansion for AC_EGREP_CPP.
128095         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
128096         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
128097         Suggested by Akim Demaille <akim@epita.fr> in
128098         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
128100 2003-05-12  Jim Meyering  <jim@meyering.net>
128102         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
128103         the space-padded-by-default conversion specifiers, %e, %k, %l.
128105 2003-05-12  Bruno Haible  <bruno@clisp.org>
128107         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
128108         the string is longer than 4 KB.
128110 2003-05-11  Karl Berry  <karl@gnu.org>
128112         * config/config.{guess,sub}: update from prep.
128114 2003-05-09  Bruno Haible  <bruno@clisp.org>
128116         * modules/error: Add m4/strerror_r.m4 to file list.
128118 2003-05-03  Bruno Haible  <bruno@clisp.org>
128120         Upgrade to Unicode-4.0.
128121         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
128122         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
128123         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
128124         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
128125         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
128126         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
128127         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
128128         Change width of U+E0100..U+E01EF from 1 to 0.
128130 2003-04-25  Jim Meyering  <jim@meyering.net>
128132         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
128133         of type size_t, not int.
128135 2003-04-25  Bruno Haible  <bruno@clisp.org>
128137         * lib/copy-file.c: Include <stddef.h>, for size_t.
128139 2003-04-21  Paul Eggert  <eggert@twinsun.com>
128141         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
128142         code which expansion is under static control.  Patch imported from
128143         Akim Demaille's patch to Bison; see
128144         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
128146 2003-04-14  Bruno Haible  <bruno@clisp.org>
128148         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
128150 2003-04-11  Jim Meyering  <jim@meyering.net>
128152         Merge changes from Coreutils.
128154         2003-03-22  Jim Meyering  <jim@meyering.net>
128156         * lib/strftime.c (widen): Cast alloca return value to proper type.
128158         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
128160         From GNU libc.
128161         * lib/strftime.c (my_strftime): Handle very large width
128162         specifications for numeric values correctly.  Improve checks for
128163         overflow.
128165         2003-01-19  Jim Meyering  <jim@meyering.net>
128167         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
128168         definitions.
128169         (nl_get_alt_digit) [! defined my_strftime]: Define.
128170         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
128171         _nl_get_alt_digit and _nl_get_walt_digit.
128173         * lib/strftime.c (my_strftime): Merge in locale-related changes from
128174         libc. These changes have no effect outside of _LIBC.
128176 2003-04-10  Bruno Haible  <bruno@clisp.org>
128178         * modules/findprog: New file.
128179         * MODULES.html.sh (func_all_modules): Add it.
128181 2003-04-10  Bruno Haible  <bruno@clisp.org>
128183         * m4/findprog.m4: New file.
128184         * m4/eaccess.m4: New file.
128186 2003-04-10  Bruno Haible  <bruno@clisp.org>
128188         * lib/findprog.h: New file, from GNU gettext.
128189         * lib/findprog.c: New file, from GNU gettext.
128191 2003-04-05  Jim Meyering  <jim@meyering.net>
128193         Merge changes from Coreutils.
128195         * lib/exclude.h (PARAMS): Remove definition and uses.
128196         * lib/exclude.c: Remove uses of `PARAMS'.
128198         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
128199         Add test-cases for DOS filenames. Declare program_name.
128200         (main): Set up program_name.  Patch by Rich Dawe.
128202         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
128203         error from mntctl.
128204         Use mntctl's return value to drive the entry-processing loop, since
128205         we can't rely on the value of the vmt_length member in the last
128206         entry.  On some systems doing so could result in exhausting
128207         virtual memory.  Based in part on a patch from Mike Jetzer.
128209 2003-04-04  Bruno Haible  <bruno@clisp.org>
128211         * modules/linebreak: New file.
128212         * MODULES.html.sh (func_all_modules): Add it.
128214 2003-04-04  Bruno Haible  <bruno@clisp.org>
128216         * m4/linebreak.m4: New file.
128218 2003-04-04  Bruno Haible  <bruno@clisp.org>
128220         * lib/linebreak.h: New file, from GNU gettext.
128221         * lib/linebreak.c: New file, from GNU gettext with slight
128222         modifications.
128223         * lib/lbrkprop.h: New file, from GNU gettext.
128225 2003-04-03  Bruno Haible  <bruno@clisp.org>
128227         * modules/utf8-ucs4: New file.
128228         * modules/utf16-ucs4: New file.
128229         * modules/ucs4-utf8: New file.
128230         * modules/ucs4-utf16: New file.
128231         * MODULES.html.sh (func_all_modules): Add them.
128233 2003-04-03  Bruno Haible  <bruno@clisp.org>
128235         * m4/utf-ucs4.m4: New file.
128236         * m4/ucs4-utf.m4: New file.
128238 2003-04-03  Bruno Haible  <bruno@clisp.org>
128240         * lib/utf8-ucs4.h: New file, from GNU gettext.
128241         * lib/utf16-ucs4.h: New file, from GNU gettext.
128242         * lib/ucs4-utf8.h: New file, from GNU gettext.
128243         * lib/ucs4-utf16.h: New file, from GNU gettext.
128245 2003-04-02  Bruno Haible  <bruno@clisp.org>
128247         * modules/binary-io: New file.
128248         * MODULES.html.sh (func_all_modules): Add it.
128250 2003-04-02  Bruno Haible  <bruno@clisp.org>
128252         * lib/binary-io.h: New file, from GNU gettext.
128254 2003-04-01  Bruno Haible  <bruno@clisp.org>
128256         * modules/pathname: New file.
128257         * MODULES.html.sh (func_all_modules): Add it.
128259 2003-04-01  Bruno Haible  <bruno@clisp.org>
128261         * lib/pathname.h: New file, from GNU gettext.
128262         * lib/concatpath.c: New file, from GNU gettext.
128264 2003-03-30  Bruno Haible  <bruno@clisp.org>
128266         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
128268 2003-03-30  Bruno Haible  <bruno@clisp.org>
128270         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
128271         function chown() doesn't exist.
128273 2003-03-28  Bruno Haible  <bruno@clisp.org>
128275         * modules/copy-file: New file.
128276         * MODULES.html.sh (func_all_modules): Add it.
128278 2003-03-28  Bruno Haible  <bruno@clisp.org>
128280         * m4/copy-file.m4: New file.
128282 2003-03-28  Bruno Haible  <bruno@clisp.org>
128284         * lib/copy-file.h: New file, from GNU gettext.
128285         * lib/copy-file.c: New file, from GNU gettext.
128287 2003-03-18  Jim Meyering  <jim@meyering.net>
128289         * lib/quote.c (quote_n): Fix typo in comment.
128291 2003-03-18  Bruno Haible  <bruno@clisp.org>
128293         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
128294         checking.
128295         * m4/onceonly_2_57.m4: Likewise.
128297 2003-03-17  Bruno Haible  <bruno@clisp.org>
128299         * m4/onceonly.m4: Require autoconf 2.54 or newer.
128300         (m4_quote): Remove macro.
128301         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
128303 2003-03-14  Jim Meyering  <jim@meyering.net>
128305         Merge changes from Coreutils.
128306         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
128307         to be const, in order to avoid warnings.
128308         (obstack_room): Likewise.
128309         (obstack_empty_p): Likewise.
128311 2003-03-14  Bruno Haible  <bruno@clisp.org>
128313         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
128314         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
128316 2003-03-13  Paul Eggert  <eggert@twinsun.com>
128318         Merge changes from Bison.
128319         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
128320         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
128321         when compiling Bison 1.875's `bitset bset = obstack_alloc
128322         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
128323         * lib/hash.c: Include <stdbool.h> unconditionally.
128325 2003-03-13  Paul Eggert  <eggert@twinsun.com>
128327         * m4/onceonly.m4 (m4_quote): New macro.
128328         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
128329         Quote AC_FOREACH variable-expansions properly.
128331 2003-03-13  Paul Eggert  <eggert@twinsun.com>
128333         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
128335 2003-03-09  Paul Eggert  <eggert@twinsun.com>
128337         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
128338         Reported by Bruce Becker; see:
128339         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
128341 2003-03-03  Paul Eggert  <eggert@twinsun.com>
128342             Bruno Haible  <bruno@clisp.org>
128344         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
128345         Reported by John Hughes, see
128346         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
128348 2003-02-20  Bruno Haible  <bruno@clisp.org>
128350         * MODULES.html.sh (func_all_modules): Add poll.
128352 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
128354         * modules/poll: New file.
128356 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
128358         * lib/poll_.h: New file.
128359         * lib/poll.c: New file.
128361 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
128363         * m4/poll.m4: New file.
128365 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
128367         * modules/mathl: New file.
128369 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
128371         * lib/mathl.h: New file.
128372         * lib/acosl.c: New file.
128373         * lib/asinl.c: New file.
128374         * lib/atanl.c: New file.
128375         * lib/ceill.c: New file.
128376         * lib/cosl.c: New file.
128377         * lib/expl.c: New file.
128378         * lib/floorl.c: New file.
128379         * lib/frexpl.c: New file.
128380         * lib/ldexpl.c: New file.
128381         * lib/logl.c: New file.
128382         * lib/sincosl.c: New file.
128383         * lib/sinl.c: New file.
128384         * lib/sqrtl.c: New file.
128385         * lib/tanl.c: New file.
128386         * lib/trigl.c: New file.
128387         * lib/trigl.h: New file.
128389 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
128391         * m4/mathl.m4: New file.
128393 2003-02-18  Bruno Haible  <bruno@clisp.org>
128395         * MODULES.html.sh (func_all_modules): Add mathl.
128397 2003-02-17  Bruno Haible  <bruno@clisp.org>
128399         * modules/mkdtemp: New module.
128400         * MODULES.html.sh (func_all_modules): Add it.
128402 2003-02-17  Bruno Haible  <bruno@clisp.org>
128404         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
128406 2003-02-17  Bruno Haible  <bruno@clisp.org>
128408         * lib/mkdtemp.h: New file, from GNU gettext.
128409         * lib/mkdtemp.c: New file, from GNU gettext.
128411 2003-02-02  Jim Meyering  <jim@meyering.net>
128413         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
128414         e.g. glibc-2.2.93.
128416 2003-01-31  Bruno Haible  <bruno@clisp.org>
128418         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
128419         'rpl_rename'.
128420         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
128421         'rpl_strnlen'.
128422         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
128423         'rpl_strtod'.
128424         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
128425         'rpl_utime'.
128427 2003-01-31  Bruno Haible  <bruno@clisp.org>
128429         * lib/rename.c: #undef rename before defining rpl_rename.
128430         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
128432 2003-01-30  Bruno Haible  <bruno@clisp.org>
128434         * modules/vasnprintf, modules/vasprintf: New modules.
128435         * MODULES.html.sh (func_all_modules): Add them.
128437 2003-01-30  Bruno Haible  <bruno@clisp.org>
128439         * m4/signed.m4: New file, from GNU gettext.
128440         * m4/longdouble.m4: New file, from GNU gettext.
128441         * m4/wchar_t.m4: New file, from GNU gettext.
128442         * m4/wint_t.m4: New file, from GNU gettext.
128443         * m4/vasnprintf.m4: New file.
128444         * m4/vasprintf.m4: New file.
128446 2003-01-30  Bruno Haible  <bruno@clisp.org>
128448         * lib/printf-args.h: New file, from GNU gettext.
128449         * lib/printf-args.c: New file, from GNU gettext.
128450         * lib/printf-parse.h: New file, from GNU gettext.
128451         * lib/printf-parse.c: New file, from GNU gettext.
128452         * lib/vasnprintf.h: New file, from GNU gettext.
128453         * lib/vasnprintf.c: New file, from GNU gettext.
128454         * lib/asnprintf.c: New file, from GNU gettext.
128455         * lib/vasprintf.h: New file, from GNU gettext with modifications.
128456         * lib/vasprintf.c: New file, from GNU gettext.
128457         * lib/asprintf.c: New file, from GNU gettext.
128459 2003-01-29  Bruno Haible  <bruno@clisp.org>
128461         * modules/stpncpy: New module.
128462         * MODULES.html.sh (func_all_modules): Add it.
128464 2003-01-29  Bruno Haible  <bruno@clisp.org>
128466         * m4/stpncpy.m4: New file.
128468 2003-01-29  Bruno Haible  <bruno@clisp.org>
128470         * lib/stpncpy.h: New file, from GNU gettext with modifications.
128471         * lib/stpncpy.c: New file, from GNU gettext with modifications.
128473 2003-01-28  Bruno Haible  <bruno@clisp.org>
128475         * modules/c-ctype: New module.
128476         * MODULES.html.sh (func_all_modules): Add it.
128478 2003-01-28  Bruno Haible  <bruno@clisp.org>
128480         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
128481         Paul Eggert.
128482         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
128483         Paul Eggert.
128485 2003-01-27  Bruno Haible  <bruno@clisp.org>
128487         * modules/xsetenv: New module.
128488         * MODULES.html.sh (func_all_modules): Add it.
128490 2003-01-27  Bruno Haible  <bruno@clisp.org>
128492         * lib/xsetenv.h: New file, from GNU gettext.
128493         * lib/xsetenv.c: New file, from GNU gettext.
128495 2003-01-23  Jim Meyering  <jim@meyering.net>
128497         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
128498         from working on systems without dirfd (at least Irix and OSF1/Tru64).
128500 2003-01-23  Bruno Haible  <bruno@clisp.org>
128502         * modules/minmax: New module.
128503         * MODULES.html.sh (func_all_modules): Add it.
128505 2003-01-23  Bruno Haible  <bruno@clisp.org>
128507         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
128508         Eggert.
128510 2003-01-22  Bruno Haible  <bruno@clisp.org>
128512         * modules/exit: New module.
128513         * MODULES.html.sh (func_all_modules): Add it.
128515 2003-01-22  Bruno Haible  <bruno@clisp.org>
128517         * lib/exit.h: New file, from GNU gettext.
128519 2003-01-19  Bruno Haible  <bruno@clisp.org>
128521         * gnulib-tool: Recognize option --extract-maintainer.
128522         (func_get_maintainer): New function.
128523         * modules/*: Add Maintainer entry.
128525 2003-01-16  Jim Meyering  <jim@meyering.net>
128527         * m4/regex.m4: The `regex' struct is both input and output.
128528         Initialize it before each use.  Patch by Tim Waugh.
128530 2003-01-16  Bruno Haible  <bruno@clisp.org>
128532         * MODULES.html.sh: Add a table of contents. Add the module name as
128533         leftmost column. Add hyperlinks.
128535 2003-01-15  Bruno Haible  <bruno@clisp.org>
128537         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
128539 2003-01-15  Bruno Haible  <bruno@clisp.org>
128541         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
128542         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
128543         suffix.
128545 2003-01-15  Bruno Haible  <bruno@clisp.org>
128547         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
128549 2003-01-15  Bruno Haible  <bruno@clisp.org>
128551         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
128552         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
128554 2003-01-14  Jim Meyering  <jim@meyering.net>
128556         * lib/same.c (same_name): Tweak a comment.
128558 2003-01-14  Bruno Haible  <bruno@clisp.org>
128560         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
128561         when a string comparison is sufficient.
128563 2003-01-14  Bruno Haible  <bruno@clisp.org>
128565         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
128566         'unsigned int'.
128568 2003-01-14  Bruno Haible  <bruno@clisp.org>
128570         * lib/hash-pjw.c: Add comment about low quality of this function.
128572 2003-01-13  Bruno Haible  <bruno@clisp.org>
128574         * modules/stpcpy: Distribute lib/stpcpy.h.
128575         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
128577 2003-01-13  Bruno Haible  <bruno@clisp.org>
128579         * modules/*: Add a description.
128580         * modules/strpbrk: Fix Makefile.am snippet.
128581         * modules/strtoimax: Fix dependencies.
128582         * modules/strtoumax: Likewise.
128584 2003-01-13  Bruno Haible  <bruno@clisp.org>
128586         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
128587         * modules/alloca (Makefile.am): All object files depend on alloca.h.
128588         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
128590 2003-01-13  Bruno Haible  <bruno@clisp.org>
128592         * gnulib-tool (func_create_testdir): Store config/* files in the main
128593         directory.
128594         * config.rpath: Move to ...
128595         * config/config.rpath: ... here.
128596         * modules/gettext: Contains config/config.rpath, not config.rpath.
128597         * modules/iconv: Likewise.
128599 2003-01-12  Paul Eggert  <eggert@twinsun.com>
128601         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
128602         to avoid collisions with libcurses and libreadline.
128604         * m4/getstr.m4: Remove.
128605         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
128607 2003-01-12  Paul Eggert  <eggert@twinsun.com>
128609         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
128610         to avoid collisions with libcurses and libreadline.
128612         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
128613         * lib/getstr.h, getstr.c: Remove.
128614         * lib/getline.c: Include "getline.h", to check interface.
128615         Move body of old getstr.c here: this defines MIN_CHUNK and
128616         declares getdelim2, which is renamed from getstr.
128617         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
128619         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
128620         All uses changed.
128621         * lib/linebuffer.h: Likewise.
128622         (readline): Remove backward-compatibility macro.
128624 2003-01-12  Paul Eggert  <eggert@twinsun.com>
128626         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
128627         to avoid collisions with libcurses and libreadline.
128628         * getstr: Remove.
128629         * MODULES.html.sh: Remove getstr.
128630         * modules/getline: Depend on unlocked-io, not getstr.
128632 2003-01-12  Jim Meyering  <jim@meyering.net>
128634         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
128636 2003-01-10  Bruno Haible  <bruno@clisp.org>
128638         * modules/alloca: Change Makefile.am requirements. Simplify Include
128639         requirements. Add lib/alloca_.h to file list.
128641 2003-01-10  Bruno Haible  <bruno@clisp.org>
128643         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
128645 2003-01-10  Bruno Haible  <bruno@clisp.org>
128647         * lib/alloca_.h: New file.
128648         * lib/getdate.y: Unconditionally include alloca.h.
128649         * lib/makepath.c: Likewise.
128650         * lib/setenv.c: Likewise.
128651         * lib/userspec.c: Likewise.
128653 2003-01-09  Karl Berry  <karl@gnu.org>
128655         * MODULES.html.sh: include `dirname $0` in PATH, to find
128656         gnulib-tool.
128658 2003-01-09  Bruno Haible  <bruno@clisp.org>
128660         * modules/stdbool: Change configure.ac, Makefile.am requirements.
128661         Simplify Include requirements. Add lib/stdbool.h.in to file list.
128663 2003-01-09  Bruno Haible  <bruno@clisp.org>
128665         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
128667 2003-01-09  Bruno Haible  <bruno@clisp.org>
128669         * lib/stdbool.h.in: New file.
128671 2003-01-09  Bruno Haible  <bruno@clisp.org>
128673         * gnulib-tool (func_all_modules): Ignore files ending in ~.
128674         * MODULES.html.sh: Likewise.
128676 2003-01-08  Jim Meyering  <jim@meyering.net>
128678         * lib/full-write.c: Undefine and define-away `const' after inclusion
128679         of errno.h, not before.  Suggestion from Bruno Haible.
128681 2003-01-08  Bruno Haible  <bruno@clisp.org>
128683         * modules/full-read: Depend on full-write.
128685 2003-01-08  Bruno Haible  <bruno@clisp.org>
128687         * lib/safe-read.c: Include specification header first, to ensure its
128688         selfcontainedness.
128689         * lib/full-write.c: Likewise.
128691 2003-01-07  Jim Meyering  <jim@meyering.net>
128693         * lib/full-write.c: Rework so that it may serve to define full_read,
128694         too.
128695         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
128697 2003-01-07  Bruno Haible  <bruno@clisp.org>
128699         * lib/strtoimax.c: Include <stdint.h> as an alternative to
128700         <inttypes.h>.
128701         * lib/xstrtol.h: Likewise.
128702         * lib/xstrtoimax.c: Likewise.
128703         * lib/xstrtoumax.c: Likewise.
128704         * lib/human.h: Likewise.
128706         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
128707         on systems that have <inttypes.h> but not <stdint.h>.
128709 2003-01-07  Bruno Haible  <bruno@clisp.org>
128711         * MODULES.html.sh: Add copyright notice.
128712         (missed_files): Omit CVS directory entries.
128713         (func_module): Make it work with sed-3.02.
128714         * MODULES.txt: Remove file.
128716 2003-01-06  Jim Meyering  <jim@meyering.net>
128718         * lib/version-etc.c: Update year in translatable copyright string.
128720 2003-01-03  Karl Berry  <karl@gnu.org>
128722         * config/config.{guess,sub}: update from prep.
128724 2003-01-02  Karl Berry  <karl@gnu.org>
128726         * doc/COPYING.DOC: belatedly updated to 1.2.
128728 2003-01-01  Karl Berry  <karl@gnu.org>
128730         * gnulib-tool (func_verify_module): report module name $module in
128731         error message, not $1.
128732         * gnulib-tool (create-testdir): don't complain if destdir couldn't
128733         be created, only if it doesn't exist.
128734         * gnulib-tool (last_checkin_date): don't expand the $Date here.
128736 2002-12-31  Paul Eggert  <eggert@twinsun.com>
128738         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
128740 2002-12-31  Paul Eggert  <eggert@twinsun.com>
128742         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
128743         memcmp if strcoll doesn't work.
128745 2002-12-31  Bruno Haible  <bruno@clisp.org>
128747         * lib/utime.c (utime_null): No need to call ftruncate if the file was
128748         nonempty.
128750 2002-12-31  Bruno Haible  <bruno@clisp.org>
128752         * lib/memcoll.c (STRCOLL): New macro.
128753         (memcoll): Use it.
128755 2002-12-31  Bruno Haible  <bruno@clisp.org>
128757         * lib/localcharset.h: New file.
128758         * lib/localcharset.c: Include it.
128759         * lib/unicodeio.c: Likewise.
128761 2002-12-31  Bruno Haible  <bruno@clisp.org>
128763         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
128764         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
128766 2002-12-31  Bruno Haible  <bruno@clisp.org>
128768         * lib/getline.h: Include <stddef.h>, for size_t.
128770         * lib/unicodeio.h: Include <stddef.h>, for size_t.
128771         * lib/unicodeio.c: Don't include <stddef.h>.
128773 2002-12-31  Bruno Haible  <bruno@clisp.org>
128775         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
128776         HAVE_TM_ZONE.
128778 2002-12-24  Karl Berry  <karl@gnu.org>
128780         * config/config.guess: update from prep.
128782 2002-12-24  Bruno Haible  <bruno@clisp.org>
128784         General infrasructure.
128785         * m4/README: Rewritten.
128786         * m4/onceonly.m4: New file.
128787         * m4/onceonly_2_57.m4: New file.
128789         Module atexit.
128790         * m4/atexit.m4: New file.
128792         Module strtod.
128793         * m4/strtod.m4: New file.
128795         Module strtol.
128796         * m4/strtol.m4: New file.
128798         Module strtoul.
128799         * m4/strtoul.m4: New file.
128801         Module memchr.
128802         * m4/memchr.m4: New file.
128804         Module memcmp.
128805         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
128806         (jm_FUNC_MEMCMP): Invoke it.
128808         Module memcpy.
128809         * m4/memcpy.m4: New file.
128811         Module memmove.
128812         * m4/memmove.m4: New file.
128814         Module memset.
128815         * m4/memset.m4: New file.
128817         Module strcspn.
128818         * m4/strcspn.m4: New file.
128820         Module strpbrk.
128821         * m4/strpbrk.m4: New file.
128823         Module strstr.
128824         * m4/strstr.m4: New file.
128826         Module strerror.
128827         * m4/strerror.m4: New file.
128829         Module mktime.
128830         * m4/mktime.m4: Renamed from jm-mktime.m4.
128831         (gl_PREREQ_MKTIME): New macro.
128832         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
128834         Module malloc.
128835         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
128836         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
128837         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
128839         Module realloc.
128840         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
128841         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
128842         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
128844         Module strftime.
128845         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
128846         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
128847         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
128848         gl_TM_GMTOFF.
128849         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
128851         Module xalloc.
128852         * m4/xalloc.m4: New file.
128854         Module alloca.
128855         * m4/alloca.m4: New file.
128857         Module putenv.
128858         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
128859         (jm_FUNC_PUTENV): Invoke it.
128861         Module setenv.
128862         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
128863         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
128864         when invoked twice.
128865         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
128866         gt_FUNC_SETENV.
128868         Module memrchr.
128869         * m4/memrchr.m4: New file.
128871         Module stpcpy.
128872         * m4/stpcpy.m4: New file.
128874         Module strcase.
128875         * m4/strcase.m4: New file.
128877         Module strdup.
128878         * m4/strdup.m4: New file.
128880         Module strnlen.
128881         * m4/strnlen.m4: New file.
128883         Module strndup.
128884         * m4/strndup.m4: New file.
128886         Module xstrtod.
128887         * m4/xstrtod.m4: New file.
128889         Module xstrtol.
128890         * m4/xstrtol.m4: New file.
128892         Module getdate.
128893         * m4/getdate.m4: New file.
128895         Module unlocked-io.
128896         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
128897         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
128898         * m4/jm-glibc-io.m4n: Remove file.
128900         Module long-options.
128901         * m4/long-options.m4: New file.
128903         Module md5.
128904         * m4/md5.m4: New file.
128906         Module sha.
128907         * m4/sha.m4: New file.
128909         Module getstr.
128910         * m4/getstr.m4: New file.
128912         Module getline.
128913         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
128914         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
128915         <sys/types.h>, for size_t. Use the function name gnu_getline, not
128916         simply getline. Infoke gl_PREREQ_GETLINE.
128918         Module obstack.
128919         * m4/obstack.m4: New file.
128921         Module hash.
128922         * m4/hash.m4: New file.
128924         Module readtokens.
128925         * m4/readtokens.m4: New file.
128927         Module strverscmp.
128928         * m4/strverscmp.m4: New file.
128930         Module stdbool.
128931         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
128932         OSF/1.
128934         Module strtoll.
128935         * m4/strtoll.m4: New file.
128937         Module strtoull.
128938         * m4/strtoull.m4: New file.
128940         Module strtoimax.
128941         * m4/strtoimax.m4: New file.
128943         Module strtoumax.
128944         * m4/strtoumax.m4: New file.
128946         Module xstrtoimax.
128947         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
128948         jm_AC_PREREQ_XSTRTOIMAX.
128949         Moved the strtol prerequisites to strtol.m4.
128950         Moved the strtoll prerequisites to strtoll.m4.
128951         Moved the strtoimax prerequisites to strtoimax.m4.
128953         Module xstrtoumax.
128954         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
128955         jm_AC_PREREQ_XSTRTOUMAX.
128956         Moved the strtoul prerequisites to strtoul.m4.
128957         Moved the strtoull prerequisites to strtoull.m4.
128958         Moved the strtoumax prerequisites to strtoumax.m4.
128960         Module chown.
128961         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
128962         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
128964         Module dup2.
128965         * m4/dup2.m4: New file.
128967         Module ftruncate.
128968         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
128969         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
128971         Module getgroups.
128972         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
128973         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
128975         Module gettimeofday.
128976         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
128977         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
128978         gl_PREREQ_GETTIMEOFDAY.
128980         Module mkdir.
128981         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
128982         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
128984         Module mkstemp.
128985         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
128986         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
128987         jm_AC_TYPE_UINTMAX_T.
128988         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
128990         Module stat.
128991         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
128992         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
128994         Module lstat.
128995         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
128996         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
128998         Module timespec.
128999         * m4/timespec.m4 (gl_TIMESPEC): New macro.
129000         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
129001         * m4/st_mtim.m4: Indentation.
129003         Module nanosleep.
129004         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
129005         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
129006         gl_PREREQ_NANOSLEEP.
129008         Module regex.
129009         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
129010         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
129011         (gl_REGEX): New macro.
129013         Module rename.
129014         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
129015         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
129017         Module rmdir.
129018         * m4/rmdir.m4: New file.
129020         Module utime.
129021         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
129022         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
129023         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
129025         Module dirname.
129026         * m4/dirname.m4: New file.
129028         Module getopt.
129029         * m4/getopt.m4: New file.
129031         Module unistd-safer.
129032         * m4/unistd-safer.m4: New file.
129034         Module fnmatch.
129035         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
129036         declaration.
129037         (gl_PREREQ_FNMATCH_EXTRA): New macro.
129038         (gl_FUNC_FNMATCH_POSIX): New macro.
129039         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
129040         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
129041         simply fnmatch.
129043         Module exclude.
129044         * m4/exclude.m4: New file.
129046         Module human.
129047         * m4/human.m4: New file.
129049         Module acl.
129050         * m4/acl.m4: Nop.
129052         Module backupfile.
129053         * m4/backupfile.m4: New file.
129054         * m4/d-ino.m4: Indentation.
129056         Module fsusage.
129057         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
129058         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
129059         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
129061         Module dirfd.
129062         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
129063         requirements.
129065         Module euidaccess.
129066         * m4/euidaccess.m4: New file.
129068         Module file-type.
129069         * m4/file-type.m4: New file.
129071         Module fileblocks.
129072         * m4/fileblocks.m4: New file.
129074         Module filemode.
129075         * m4/filemode.m4: New file.
129077         Module isdir.
129078         * m4/isdir.m4: New file.
129080         Module lchown.
129081         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
129082         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
129084         Module makepath.
129085         * m4/makepath.m4: New file.
129087         Module modechange.
129088         * m4/modechange.m4: New file.
129090         Module mountlist.
129091         * m4/mountlist.m4: New file.
129092         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
129093         Indentation.
129095         Module path-concat.
129096         * m4/path-concat.m4: New file.
129098         Module pathmax.
129099         * m4/pathmax.m4: New file.
129101         Module same.
129102         * m4/same.m4: New file.
129104         Module save-cwd.
129105         * m4/save-cwd.m4: New file.
129107         Module savedir.
129108         * m4/savedir.m4: New file.
129110         Module xgetcwd.
129111         * m4/xgetcwd.m4: New file.
129112         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
129114         Module xreadlink.
129115         * m4/xreadlink.m4: New file.
129117         Module safe-read.
129118         * m4/safe-read.m4: New file.
129120         Module safe-write.
129121         * m4/safe-write.m4: New file.
129123         Module closeout.
129124         * m4/closeout.m4: New file.
129126         Module stdio-safer.
129127         * m4/stdio-safer.m4: New file.
129129         Module getpass.
129130         * m4/getpass.m4: New file.
129132         Module getugroups.
129133         * m4/getugroups.m4: New file.
129135         Module group-member.
129136         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
129137         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
129139         Module idcache.
129140         * m4/idcache.m4: New file.
129142         Module userspec.
129143         * m4/userspec.m4: New file.
129145         Module gettime.
129146         * m4/clock_time.m4: New file.
129147         * m4/gettime.m4: New file.
129149         Module settime.
129150         * m4/settime.m4: New file.
129152         Module posixtm.
129153         * m4/posixtm.m4: New file.
129155         Module gethostname.
129156         * m4/gethostname.m4: New file.
129158         Module canon-host.
129159         * m4/canon-host.m4: New file.
129161         Module gettext.
129162         * m4/codeset.m4: New file, from gettext-0.11.5.
129163         * m4/gettext.m4: New file, from gettext-0.11.5.
129164         * m4/glibc21.m4: New file, from gettext-0.11.5.
129165         * m4/iconv.m4: New file, from gettext-0.11.5.
129166         * m4/intdiv0.m4: New file, from gettext-0.11.5.
129167         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
129168         * m4/inttypes.m4: New file, from gettext-0.11.5.
129169         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
129170         * m4/isc-posix.m4: New file, from gettext-0.11.5.
129171         * m4/lcmessage.m4: New file, from gettext-0.11.5.
129172         * m4/lib-ld.m4: New file, from gettext-0.11.5.
129173         * m4/lib-link.m4: New file, from gettext-0.11.5.
129174         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
129175         * m4/progtest.m4: New file, from gettext-0.11.5.
129176         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
129177         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
129178         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
129180         Module localcharset.
129181         * m4/localcharset.m4: New file.
129183         Module hard-locale.
129184         * m4/hard-locale.m4: New file.
129186         Module mbswidth.
129187         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
129188         onceonly macros.
129189         * m4/mbrtowc.m4: Add comment.
129191         Module memcasecmp.
129192         * m4/memcasecmp.m4: New file.
129194         Module memcoll.
129195         * m4/memcoll.m4: New file.
129197         Module unicodeio.
129198         * m4/unicodeio.m4: New file.
129200         Module rpmatch.
129201         * m4/rpmatch.m4: New file.
129203         Module yesno.
129204         * m4/yesno.m4: New file.
129206         Module exitfail.
129207         * m4/exitfail.m4: New file.
129209         Module c-stack.
129210         * m4/c-stack.m4 (gl_C_STACK): New macro.
129211         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
129213         Module error.
129214         * m4/error.m4 (gl_ERROR): New macro.
129215         (jm_PREREQ_ERROR): Use onceonly macros.
129217         Module fatal.
129218         * m4/fatal.m4: New file.
129220         Module getloadavg.
129221         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
129222         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
129224         Module getpagesize.
129225         * m4/getpagesize.m4: New file.
129227         Module getusershell.
129228         * m4/getusershell.m4: New file.
129230         Module physmem.
129231         * m4/physmem.m4: New file.
129233         Module posixver.
129234         * m4/posixver.m4: New file.
129236         Module quotearg.
129237         * m4/quotearg.m4: New file.
129239         Module quote.
129240         * m4/quote.m4: New file.
129242         Module readutmp.
129243         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
129245         Module sig2str.
129246         * m4/sig2str.m4: New file.
129248         Other.
129249         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
129250         ulonglong.m4.
129251         * m4/intmax_t.m4: New file.
129252         * m4/d-type.m4: Indentation.
129253         * m4/jm-macros.m4: Update.
129254         * m4/prereq.m4 (jm_PREREQ): Update.
129255         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
129256         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
129257         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
129258         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
129259         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
129260         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
129261         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
129262         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
129263         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
129264         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
129265         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
129266         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
129267         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
129268         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
129269         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
129270         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
129271         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
129272         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
129273         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
129275 2002-12-24  Bruno Haible  <bruno@clisp.org>
129277         * MODULES.txt: Update according to m4/ changes.
129279         Module gettext.
129280         * config.rpath: New file, from gettext-0.11.5.
129282         * modules/*: New module descriptions.
129283         * gnulib-tool: New file.
129284         * MODULES.html.sh: New file.
129286 2002-12-21  Karl Berry  <karl@gnu.org>
129288         * doc/fdl.texi: update to version 1.2.
129290 2002-12-19  Karl Berry  <karl@gnu.org>
129292         * config/config.guess: update from prep.
129294 2002-12-18  Bruno Haible  <bruno@clisp.org>
129296         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
129297         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
129299 2002-12-17  Bruno Haible  <bruno@clisp.org>
129301         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
129302         stdlib.h, string.h.
129304 2002-12-17  Bruno Haible  <bruno@clisp.org>
129306         * lib/canon-host.c (strdup): Remove unused declaration.
129308         * lib/fsusage.c: Include full_read.h.
129309         (get_fs_usage): Use full_read instead of safe_read.
129311         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
129313 2002-12-12  Karl Berry  <karl@gnu.org>
129315         * config/config.guess: update from prep.
129317 2002-12-11  Bruno Haible  <bruno@clisp.org>
129319         * m4/setenv.m4: New file, from gettext-0.11.5.
129321 2002-12-11  Bruno Haible  <bruno@clisp.org>
129323         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
129324         not unsetenv().
129325         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
129326         modifications:
129328         2002-12-11  Bruno Haible  <bruno@clisp.org>
129330                 * setenv.c (alloca): Fall back to malloc.
129331                 (freea): New macro.
129332                 (setenv): Use freea() to free memory allocated with alloca().
129334         2002-11-13  Bruno Haible  <bruno@clisp.org>
129336                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
129337                 function declarations.
129338                 * unsetenv.c (unsetenv): Likewise.
129340         2002-03-04  Bruno Haible  <bruno@clisp.org>
129342                 Portability to AIX 4.3.3.
129343                 * unsetenv.c: New file, extracted from setenv.c.
129344                 * setenv.c: Move the unsetenv() function to unsetenv.c.
129346         2001-12-20  Bruno Haible  <bruno@clisp.org>
129348                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
129349                 use malloc instead. For SunOS 4.
129351         2001-12-11  Bruno Haible  <bruno@clisp.org>
129353                 * setenv.c: Declare alloca.
129354                 (compar_fn_t): New typedef.
129355                 (KNOWN_VALUE, STORE_VALUE): Use it.
129357         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
129358         setenv.h.
129360 2002-12-10  Paul Eggert  <eggert@twinsun.com>
129362         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
129363         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
129364         Choose values that are less likely to collide with system fnmatch
129365         options.
129366         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
129367         defined (e.g., a pure POSIX system).
129368         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
129369         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
129371 2002-12-06  Paul Eggert  <eggert@twinsun.com>
129373         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
129374         a pain in practice to deal with generated m4 files.  This change
129375         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
129377         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
129378         and jm-glibc-io.m4, as they are no longer a special case.
129379         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
129380         kludge and the auto-generation stuff.  Check only whether the
129381         functions are declared, not whether they exist, since older hosts
129382         that don't declare the functions can't use the optimization anyway.
129384 2002-12-06  Jim Meyering  <jim@meyering.net>
129386         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
129388         Merge in changes from libc's misc/error.c, in preparation
129389         for the merge of gnulib's changes back into libc.
129391         * lib/error.c (_): Define only if not already defined.
129392         Move definition to follow all #include directives.
129393         Include unlocked-io.h only if !_LIBC.
129394         [_LIBC]: Include <libio/libioP.h>.
129395         [USE_IN_LIBIO]: Include <libio/iolibio.h>
129396         (fflush): Tweak definition to use INTUSE.
129397         (putc): Define.
129399 2002-12-05  Paul Eggert  <eggert@twinsun.com>
129401         * lib/alloca.c [defined emacs]: Include "lisp.h".
129402         (xalloc_die) [defined emacs]: New macro.
129403         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
129404         [! defined emacs]: Include <xalloc.h>.
129405         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
129406         (pointer): Typedef to POINTER_TYPE *.
129407         (malloc): Remove decl; we now always use xmalloc.
129408         (alloca): Use old-style definition, since Emacs needs this.
129409         Check for arithmetic overflow when computing combined size.
129411 2002-12-04  Paul Eggert  <eggert@twinsun.com>
129413         Do not generate unlocked-io.h automatically, since it's easier to
129414         maintain it by hand.
129416         * lib/unlocked-io.h: New file, from GNU diffutils,
129417         but with proper copyright notice and attribution.
129418         * lib/gen-uio: Remove.
129419         * lib/Makefile.am: Add copyright notice.
129420         (libfetish_a_SOURCES): Add unlocked-io.h.
129421         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
129422         (DISTCLEANFILES, io_functions): Remove macros.
129423         (EXTRA_DIST): Remove gen_uio.
129424         (unlocked-io.h): Remove rule.
129426 2002-12-04  Jim Meyering  <jim@meyering.net>
129428         Reflect the fact that stat.c and lstat.c are no longer generated.
129429         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
129430         (DISTCLEANFILES): Likewise.
129431         (EXTRA_DIST): Likewise.
129432         (all_local): Don't depend on stat.c or lstat.c.
129433         (stat.c, lstat.c): Remove rules.
129434         (EXTRA_DIST): Remove xstat.in.
129436         * lib/xstat.in: Remove file.  Contents moved into stat.c.
129437         * lib/stat.c: New file.  Contents mostly from xstat.in.
129438         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
129439         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
129441         * lib/safe-read.c: Rework so that it may serve to define safe_write,
129442         too.
129443         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
129445 2002-12-03  Jim Meyering  <jim@meyering.net>
129447         * lib/safe-read.c, safe-write.c: Change variable names and comments,
129448         but not semantics, to minimize the differences between these two files.
129449         (safe_read): Change comment to mention SAFE_READ_ERROR.
129451         * lib/safe-read.c (IS_EINTR): Define.
129452         (safe_read): Use IS_EINTR in place of in-function cpp directives.
129454 2002-12-02  Jim Meyering  <jim@meyering.net>
129456         * lib/safe-read.c (EINTR): Define.
129457         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
129458         (INT_MAX): Provide fallback.
129459         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
129461         * lib/safe-read.h (SAFE_READ_ERROR): Define.
129463 2002-12-02  Bruno Haible  <bruno@clisp.org>
129465         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
129466         Define, taken from safe-read.c.
129467         (INT_MAX): Provide fallback.
129468         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
129469         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
129471         * lib/safe-read.c (EINTR): Remove definition.
129472         (safe_read): Don't use EINTR if it is absent.
129474 2002-12-01  Jim Meyering  <jim@meyering.net>
129476         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
129477         zero.
129478         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
129480 2002-11-27  Paul Eggert  <eggert@twinsun.com>
129482         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
129483         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
129484         with `if (! (value < limit)) abort ();', for readability.
129486 2002-11-26  Karl Berry  <karl@gnu.org>
129488         * lib/strdup.c: copy from libc again, with jim's ok.
129489         * lib/.cppi-disable: re-add strdup.c
129491 2002-11-25  Karl Berry  <karl@gnu.org>
129493         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
129494         instead of "strtol.c".
129496 2002-11-25  Karl Berry  <karl@gnu.org>
129498         * config/install-sh: update from automake for variable quoting, $0 in
129499         error msgs, etc.
129501         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
129502         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
129503         entry.
129505 2002-11-25  Jim Meyering  <jim@meyering.net>
129507         * lib/mktime.c: Sync from libc, now that it has the latest fix.
129509 2002-11-24  Karl Berry  <karl@gnu.org>
129511         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
129512         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
129514 2002-11-24  Jim Meyering  <jim@meyering.net>
129516         Update from coreutils:
129518         * lib/mktime.c: Merge in changes from libc.
129520         Avoid a link-time failure on some Linux systems.
129521         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
129522         (otherwise).
129523         (__mon_yday): Declare with the STATIC attribute.
129524         (__mktime_internal): Likewise.
129525         Based on a report from Greg Schafer.
129527 2002-11-23  Jim Meyering  <jim@meyering.net>
129529         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
129530         Use `unsigned', not `int', as type of index.
129532         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
129534         * lib/fsusage.c: Remove unneeded parentheses around operands of
129535         `defined'.
129537 2002-11-22  Paul Eggert  <eggert@twinsun.com>
129539         * lib/quotearg.h: Allow multiple inclusion by surrounding with
129540         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
129541         so that we can be included first.
129542         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
129543         * lib/quotearg.c: Include quotearg.h immediately after config.h.
129544         No need to include stddef.h or sys/types.h any more.
129545         Surround local include files with "", not "<>".
129546         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
129547         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
129548         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
129549         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
129550         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
129551         (ISPRINT): Remove; no longer needed now that we assume C89.
129553         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
129554         Preserve errno.
129556         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
129557         quotearg_char): Use SIZE_MAX rather than
129558         (size_t) -1 when we are talking about "infinity".
129560         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
129562 2002-11-22  Paul Eggert  <eggert@twinsun.com>
129564         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
129565         hint that one should use `if (! x) abort ();' rather than `assert
129566         (x);', and anyway it's one less thing to worry about configuring.
129567         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
129568         hash_rehash, hash_insert): Use abort rather than assert.
129570 2002-11-22  Bruno Haible  <bruno@clisp.org>
129572         * lib/safe-read.h: Assume C89. Add comments.
129573         (safe_read): Change return type to size_t.
129574         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
129575         byte counts > SSIZE_MAX correctly.
129576         * lib/safe-write.h: New file.
129577         * lib/safe-write.c: New file.
129578         * lib/full-read.h: New file.
129579         * lib/full-read.c: New file.
129580         * lib/full-write.h: Assume C89. Add comments.
129581         * lib/full-write.c: Include safe-write.h.
129582         (full_write): Rewritten to use safe_write.
129583         Suggested by Jim Meyering and Paul Eggert.
129585 2002-11-21  Jim Meyering  <jim@meyering.net>
129587         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
129589         Merge in changes from the coreutils.
129591         2002-09-25  Paul Eggert  <eggert@twinsun.com>
129592         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
129593         <stdint.h>.
129594         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
129595         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
129596         int.  Work more efficiently if X is the same width as uintmax_t.
129597         Do not compare X to -1, to avoid bogus compiler warning.
129598         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
129599         Don't assume that f_frsize and f_bsize are the same type.
129601         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
129602         warning on FreeBSD.
129604         * lib/makepath.c (make_path): Restore umask *before* creating the final
129605         component.
129606         (make_path): Minor reformatting.
129608         * lib/xmalloc.c: Adjust to work with new autoconf macros,
129609         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
129610         HAVE_MALLOC/HAVE_REALLOC.
129612         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
129613         dummy ones.  At least on GNU/Linux systems, `auto' means something
129614         else.
129615         From Michael Stone.
129617 2002-11-21  Bruno Haible  <bruno@clisp.org>
129619         Remove case insensitive option matching.
129620         * lib/argmatch.h (argcasematch): Remove declaration.
129621         (ARGCASEMATCH): Remove macro.
129622         (__xargmatch_internal): Remove case_sensitive argument.
129623         (XARGMATCH): Update.
129624         (XARGCASEMATCH): Remove macro.
129625         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
129626         case_sensitive argument.
129627         (argcasematch): Remove function.
129628         (__xargmatch_internal): Remove case_sensitive argument.
129629         (main): Use XARGMATCH instead of XARGCASEMATCH.
129631         * lib/xmalloc.c: Change compile-time error message. Add comment about
129632         required autoconf version.
129634 2002-11-20  Paul Eggert  <eggert@twinsun.com>
129636         Merge argmatch cleanups from Bison.  Assume C89.
129638         * lib/argmatch.c: Include config.h here, not in argmatch.h.
129639         Include stdlib.h, for EXIT_FAILURE.
129640         Always include <string.h>, since we assume C89.
129641         (EXIT_FAILURE): Remove pre-C89 bug workaround.
129642         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
129643         Include <stddef.h> instead, since it's all we need for size_t.
129644         (PARAMS): Remove.  All uses removed.
129645         (ARRAY_CARDINALITY): Do not bother to #undef.
129646         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
129647         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
129648         Remove unnecessary parentheses.
129649         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
129650         Insert necessary parentheses.
129651         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
129652         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
129654 2002-11-19  Bruno Haible  <bruno@clisp.org>
129656         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
129657         * lib/mbswidth.h: Include <stddef.h>, for size_t.
129659         * lib/mbswidth.h (PARAMS): Remove macro.
129660         (mbswidth, mbsnwidth): Use ANSI C function declarations.
129661         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
129663         * lib/gcd.h (PARAMS): Remove macro.
129664         (gcd): Use ANSI C function declarations.
129665         * lib/gcd.c (gcd): Likewise.
129667 2002-11-15  Bruno Haible  <bruno@clisp.org>
129669         * lib/strcspn.c: Include <stddef.h>.
129670         (strcspn): Use ANSI C function declaration. Change return type to
129671         size_t. Use NULL.
129672         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
129673         (strpbrk): Use NULL.
129674         * lib/strpbrk.h (PARAMS): Remove macro.
129675         (strpbrk): Use ANSI C function declaration.
129676         * lib/strstr.c: Don't include <sys/types.h>.
129677         * lib/strstr.h (PARAMS): Remove macro.
129678         (strstr): Use ANSI C function declarations.
129680 2002-11-14  Karl Berry  <karl@gnu.org>
129682         * config/mkinstalldirs: `do' on separate line, instead of
129683         `for var; do'.
129685 2002-11-06  Bruno Haible  <bruno@clisp.org>
129687         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
129688         * lib/gcd.c (gcd): Likewise.
129690 2002-11-05  Bruno Haible  <bruno@clisp.org>
129692         * lib/gcd.h: New file, from gettext-0.11.5.
129693         * lib/gcd.c: New file, from gettext-0.11.5.
129695 2002-11-05  Bruno Haible  <bruno@clisp.org>
129697         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129698         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129699         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129700         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129702         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
129703         <libintl.h>.
129704         * lib/makepath.c: Include gettext.h instead of <locale.h> and
129705         <libintl.h>.
129707         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
129708         * lib/human.c: Include gettext.h instead of <libintl.h>.
129709         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
129710         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
129711         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
129712         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
129713         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
129714         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
129715         (textdomain): Remove definition.
129716         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
129718         * lib/long-options.c: Remove include of <libintl.h> and definition of
129719         _.
129720         * lib/same.c: Remove include of <libintl.h> and definition of _.
129722 2002-11-04  Owen Taylor  <otaylor@redhat.com>
129724         * lib/config.charset: A few additions for Solaris.
129726 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
129728         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
129729         * lib/localcharset.c (locale_charset): Declare as extern "C".
129731 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
129733         * lib/config.charset: msdos in uk_UA uses CP1125.
129735 2002-11-04  Bruno Haible  <bruno@clisp.org>
129737         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
129738         * lib/strcase.h: New file, from GNU gettext-0.11.5.
129739         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
129740         * lib/strstr.h: New file, from GNU gettext-0.11.5.
129741         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
129743 2002-11-04  Bruno Haible  <bruno@clisp.org>
129745         * lib/localcharset.c (locale_charset): Don't return an empty string.
129747 2002-11-04  Bruno Haible  <bruno@clisp.org>
129749         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
129750         aliases.
129752 2002-11-04  Bruno Haible  <bruno@clisp.org>
129754         * lib/config.charset: Update for newest glibc. Add canonical names
129755         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
129757 2002-11-04  Bruno Haible  <bruno@clisp.org>
129759         * lib/config.charset: Add support for NetBSD.
129761 2002-11-04  Bruno Haible  <bruno@clisp.org>
129763         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
129765 2002-11-01  Bruno Haible  <bruno@clisp.org>
129767         * configure.in: Add AC_CONFIG_AUX_DIR call.
129768         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
129769         test/Makefile.
129770         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
129772 2002-09-28  Karl Berry  <karl@gnu.org>
129774         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
129775         installed automake until the next release, since changes have been
129776         made.
129778 2002-09-25  Karl Berry  <karl@gnu.org>
129780         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
129781         * lib/getopt*: copy from libc/posix.
129782         * lib/gettext.h: copy from gettext.
129783         * lib/.cppi-disable: add strdup.c, gettext.h.
129785 2002-09-25  Karl Berry  <karl@gnu.org>
129787         * config/srclist.txt: enable gettext.h check.
129788         * config/config.{guess,sub}: update from prep.
129789         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
129790                 from automake 1.6.3.
129791         See srclist*.
129793 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
129795         * regex.c (PATFETCH): Remove the translating fetch.
129796         (PATFETCH_RAW): Rename to PATFETCH.
129797         (set_image_of_range): New fun.
129798         (SET_RANGE_TABLE_WORK_AREA): Use it.
129799         (regex_compile): Don't translate the pattern chars so eagerly.
129800         Only do it when inserting an `exactn' bytecode or when handling
129801         a char-range.
129802         (mutually_exclusive_p): Avoid empty statement.
129804 2002-07-06  Jim Meyering  <meyering@lucent.com>
129806         * m4/README: Don't mention Makefile.am.in.
129807         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
129809 2002-07-01  Jim Meyering  <meyering@lucent.com>
129811         * lib/c-stack.c: Include sys/time.h.
129812         From Volker Borchert.
129814 2002-06-26  Paul Eggert  <eggert@twinsun.com>
129816         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
129818 2002-06-26  Paul Eggert  <eggert@twinsun.com>
129820         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
129821         New macro.  Use it uniformly instead of
129822         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
129823         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
129824         reported by Vin Shelton.
129826 2002-06-22  Paul Eggert  <eggert@twinsun.com>
129828         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
129829         Do not assume SA_SIGINFO behavior.
129830         Bug reported by Jim Meyering on NetBSD 1.5.2.
129832 2002-06-22  Jim Meyering  <meyering@lucent.com>
129834         * m4/c-stack.m4: New file, from diffutils-2.8.2.
129835         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
129837         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
129838         now that configure.ac uses AC_GNU_SOURCE.
129839         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
129840         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
129842         Update to latest tools.  Suggestions from Paul Eggert.
129843         * m4/stdbool.m4: New file, from diffutils-2.8.2.
129844         * m4/gnu-source.m4: Update from diffutils-2.8.2.
129845         * m4/fnmatch.m4: Likewise.
129846         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
129847         to AC_HEADER_STDBOOL
129849 2002-06-22  Jim Meyering  <meyering@lucent.com>
129851         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
129852         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
129854 2002-06-22  Jim Meyering  <meyering@lucent.com>
129856         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
129858         * lib/exitfail.c, exitfail.h: Likewise.
129859         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
129861         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
129862         of fnmatch.h.
129863         (EXTRA_DIST): Add fnmatch_loop.c.
129864         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
129866         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
129867         * lib/fnmatch.c: Update from diffutils-2.8.2.
129868         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
129869         * lib/fnmatch.h: Remove file.
129871 2002-06-21  Jim Meyering  <meyering@lucent.com>
129873         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
129874         * m4/mbrtowc.m4: Likewise.
129876         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
129877         * m4/mbswidth.m4: Reflect name change:
129878         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
129879         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
129881         * m4/lib-link.m4: Update from gettext-0.11.2.
129882         * m4/gettext.m4: Likewise.
129884         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
129885         From Alfred M. Szmidt.
129887 2002-06-18  Paul Eggert  <eggert@twinsun.com>
129889         * lib/file-type.h: Report an error if neither S_ISREG nor
129890         S_IFREG is defined, instead of using a test specific to glibc
129891         2.2.  This should be safe, since POSIX requires S_ISREG and
129892         Unix Version 7 had S_IFREG.  We don't need to check for
129893         <sys/types.h> since we don't use any symbols that it defines.
129895 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
129897         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
129898         $@-t, so that each temporary file name is unique and valid in the first
129899         8 characters, for operation under DOS.
129901 2002-06-15  Paul Eggert  <eggert@twinsun.com>
129903         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
129905 2002-06-15  Jim Meyering  <meyering@lucent.com>
129907         Work even with DJGPP 2.03, which lacks support for symlinks.
129908         From Richard Dawe.
129909         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
129910         is defined.
129911         * lib/lchown.c (S_ISLNK): Likewise.
129913 2002-06-15  Jim Meyering  <meyering@lucent.com>
129915         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
129916         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
129917         have been included before this file.
129919 2002-06-14  Jim Meyering  <meyering@lucent.com>
129921         * lib/file-type.h: Use the version from diffutils-2.8.2.
129922         * lib/file-type.c: Likewise.
129924 2002-06-07  Jim Meyering  <meyering@lucent.com>
129926         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
129927         They're needed at least for NetBSD 1.5.2.
129928         ($statxfs_includes): Include those same headers.
129929         ($statxfs_includes): Include sys/vfs.h if available.
129930         ($statxfs_includes): Likewise for sys/statvfs.h.
129931         Check for the following members in both structs statfs and statvfs:
129932         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
129934 2002-06-01  Jim Meyering  <meyering@lucent.com>
129936         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
129937         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
129939 2002-05-28  Jim Meyering  <meyering@lucent.com>
129941         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
129942         Reported by Volker Borchert.
129944 2002-05-27  Jim Meyering  <meyering@lucent.com>
129946         Fix a problem seen only on nonconforming systems whereby ls.c's
129947         use of localtime, and then of gettimeofday would cause trouble:
129948         the localtime call used to initialize rpl_gettimeofday's save
129949         mechanism would clobber ls's current local time information so
129950         that in any long listing the first file would always be listed
129951         with date 1970-01-01.  Analysis by Volker Borchert.
129953         * lib/gettimeofday.c (localtime): Undefine.
129954         (rpl_localtime): New function.
129956 2002-05-27  Jim Meyering  <meyering@lucent.com>
129958         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
129959         localtime.
129961         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
129962         use the replacement function; it wouldn't resolve at link time.
129963         Reported by Volker Borchert.
129965 2002-05-22  Jim Meyering  <meyering@lucent.com>
129967         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
129968         file-type.h.
129969         * lib/file-type.h: New file.
129970         * lib/file-type.c (file_type): New file/function.  Extracted from
129971         diffutils.
129973 2002-04-30  Jim Meyering  <meyering@lucent.com>
129975         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
129977 2002-04-29  Paul Eggert  <eggert@twinsun.com>
129979         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
129981 2002-04-29  Paul Eggert  <eggert@twinsun.com>
129983         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
129984         Do not check for alloca.h (no longer used) or stdbool.h (was never
129985         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
129987 2002-04-29  Paul Eggert  <eggert@twinsun.com>
129989         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
129991 2002-04-29  Jim Meyering  <meyering@lucent.com>
129993         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
129994         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
129995         Use AC_FUNC_STRNLEN here instead.
129997         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
129998         With autoconf-2.53a, it's part of AC_PROG_CC.
130000 2002-04-28  Paul Eggert  <eggert@twinsun.com>
130002         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
130003         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
130005 2002-04-28  Paul Eggert  <eggert@twinsun.com>
130007         * lib/sig2str.h, lib/sig2str.c: New files.
130008         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
130010 2002-04-28  Paul Eggert  <eggert@twinsun.com>
130012         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
130013         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
130014         of 127, since 64 is the largest conceivable number for ancient
130015         nonstandard hosts.
130016         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
130018 2002-04-28  Jim Meyering  <meyering@lucent.com>
130020         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
130022 2002-04-24  Jim Meyering  <meyering@lucent.com>
130024         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
130025         (jm_PREREQ): Use it.
130027         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
130028         mach/mach.h fcntl.h.
130029         Check for this function: setlocale.
130031 2002-04-24  Jim Meyering  <meyering@lucent.com>
130033         * lib/gettext.h: New file, from Gettext.
130034         * lib/Makefile.am (INCLUDES): Remove -I../intl.
130035         (libfetish_a_SOURCES): Add gettext.h.
130037 2002-04-16  Jim Meyering  <meyering@lucent.com>
130039         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
130040         ut_pid, ut_id, ut_exit.
130042 2002-04-16  Jim Meyering  <meyering@lucent.com>
130044         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
130045         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
130046         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
130048 2002-04-12  Jim Meyering  <meyering@lucent.com>
130050         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
130051         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
130052         existence of the getmntinfo function.  Needed for Darwin 5.3.
130054         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
130055         This is necessary at least on Darwin 5.3.
130057         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
130058         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
130059         strnlen.o in the library, and that makes some versions of ranlib
130060         object.
130062 2002-04-12  Jim Meyering  <meyering@lucent.com>
130064         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
130066 2002-04-09  Jim Meyering  <meyering@lucent.com>
130068         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
130069         to be more precise.  Rather than saying we're checking whether the
130070         function `works', say what we're testing.
130071         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
130072         Reported by Bruno Haible.
130074 2002-03-10  Jim Meyering  <meyering@lucent.com>
130076         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
130077         Suggestion from Santiago Vila.
130079 2002-03-08  Jim Meyering  <meyering@lucent.com>
130081         * lib/rename.c: Mention that this wrapper is needed also on
130082         mips-dec-ultrix4.4 systems.
130084 2002-03-02  Jim Meyering  <meyering@lucent.com>
130086         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
130087         not HAVE_CLOCK_SETTIME.
130089 2002-02-27  Paul Eggert  <eggert@twinsun.com>
130091         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
130092         Check for clock_settime.
130094 2002-02-27  Paul Eggert  <eggert@twinsun.com>
130096         * lib/nanosleep.h: Rename to....
130097         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
130099         * lib/gettime.c: New file.
130100         * lib/settime.c: New file.
130101         * lib/stime.c: Remove.
130103         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
130104         timespec.h.  Remove nanosleep.h.
130106 2002-02-25  Paul Eggert  <eggert@twinsun.com>
130108         * m4/acl.m4: New file.
130109         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
130110         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
130112 2002-02-25  Paul Eggert  <eggert@twinsun.com>
130114         * lib/acl.c, lib/acl.h: New files.
130115         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
130117 2002-02-24  Jim Meyering  <meyering@lucent.com>
130119         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
130120         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
130121         cause trouble.  Reported by Nelson Beebe.
130123 2002-02-23  Paul Eggert  <eggert@twinsun.com>
130125         * lib/path-concat.c (xpath_concat): Reorder code to pacify
130126         compilers that don't know that xalloc_die never returns.
130128 2002-02-20  Jim Meyering  <meyering@lucent.com>
130130         * lib/getdate.c: Regenerate using bison-1.33.
130132 2002-02-17  Jim Meyering  <meyering@lucent.com>
130134         * config/config.guess (main): Don't use `head -1'; it's no longer
130135         portable. Use `sed 1q' instead.
130137 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
130139         * m4/codeset.m4: Upgrade to gettext-0.11.
130140         * m4/gettext.m4: Upgrade to gettext-0.11.
130141         * m4/glibc21.m4: Upgrade to gettext-0.11.
130142         * m4/iconv.m4: Upgrade to gettext-0.11.
130143         * m4/isc-posix.m4: Upgrade to gettext-0.11.
130144         * m4/lcmessage.m4: Upgrade to gettext-0.11.
130145         * m4/lib-ld.m4: New file, from gettext-0.11.
130146         * m4/lib-link.m4: New file, from gettext-0.11.
130147         * m4/lib-prefix.m4: New file, from gettext-0.11.
130148         * m4/progtest.m4: Upgrade to gettext-0.11.
130150 2002-02-15  Paul Eggert  <eggert@twinsun.com>
130152         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
130153         (jm_PREREQ): Use it.
130155 2002-02-15  Paul Eggert  <eggert@twinsun.com>
130157         * lib/posixver.c, lib/posixver.h: New files.
130158         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
130160 2002-02-02  Paul Eggert  <eggert@twinsun.com>
130161             Bruno Haible  <bruno@clisp.org>
130163         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
130164         (fwrite_success_callback): New declaration.
130165         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
130166         print_unicode_char. Call failure callback instead of error.
130167         (fwrite_success_callback): New function.
130168         (exit_failure_callback): New function.
130169         (fallback_failure_callback): New function.
130170         (print_unicode_char): Call unicode_to_mb.
130172 2002-01-26  Jim Meyering  <meyering@lucent.com>
130174         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
130175         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
130177 2002-01-26  Jim Meyering  <meyering@lucent.com>
130179         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
130181 2002-01-22  Paul Eggert  <eggert@twinsun.com>
130183         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
130185 2002-01-22  Jim Meyering  <meyering@lucent.com>
130187         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
130188         Otherwise, some versions of automake would omit the rule that makes
130189         Makefile from Makefile.in.
130191 2002-01-21  Paul Eggert  <eggert@twinsun.com>
130193         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
130194         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
130195         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
130196         (memcoll): Set errno to zero if there is no error.
130198         * lib/quotearg.c (quotearg_buffer_restyled):
130199         Fix bug with quoting buffers containing NUL when backslashing escapes.
130200         This bug was exposed by the other changes in this patch.
130201         (quotearg_n_options): New arg ARGSIZE.
130202         All callers changed.
130203         (quoting_options_from_style): New function.
130204         (quotearg_n_style): Use it.
130205         (quotearg_n_style_mem): New function.
130207         * lib/quotearg.h (quotearg_n_style_mem): New function.
130209 2002-01-19  Jim Meyering  <meyering@lucent.com>
130211         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
130212         Remove useless quotes: DF_PROG="df".
130213         * m4/strnlen.m4: New file.
130215 2002-01-16  Paul Eggert  <eggert@twinsun.com>
130217         * lib/backupfile.c (ISDIGIT): Comment fix.
130218         * lib/getdate.y (ISDIGIT): Likewise.
130219         * lib/posixtm.c (ISDIGIT, year): Likewise.
130220         * lib/strverscmp.c (ISDIGIT): Likewise.
130221         * lib/userspec.c (ISDIGIT): Likewise.
130223 2002-01-16  Jim Meyering  <meyering@lucent.com>
130225         * lib/getdate.y: Add three semicolons, each just before a closing
130226         brace. Bison (as of version 1.31) no longer papers over that mistake.
130228 2002-01-05  Jim Meyering  <meyering@lucent.com>
130230         * lib/version-etc.c (version_etc_copyright): Update copyright year.
130232 2001-12-19  Paul Eggert  <eggert@twinsun.com>
130234         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
130235         not silently exit merely because the output buffer happens to
130236         have nothing pending.
130238 2001-12-18  Paul Eggert  <eggert@twinsun.com>
130240         See the big note in ../ChangeLog.
130241         * lib/human.c (suffixes): Prefer K to k for 1024.
130242         (generate_suffix_backwards): New function.
130243         (human_readable_inexact): Use it.
130244         * lib/xstrtol.c (__xstrtol): If there is no number but there
130245         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
130246         Accept 'K' as well as 'k'.
130248 2001-12-15  Jim Meyering  <meyering@lucent.com>
130250         * lib/regex.h (__restrict_arr): Update from libc.
130252         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
130253         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
130254         (STREQ): Define.
130256 2001-12-14  Jim Meyering  <meyering@lucent.com>
130258         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
130259         Suggestion from Bruno Haible.
130261 2001-12-10  Jim Meyering  <meyering@lucent.com>
130263         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
130264         xrealloc, Instead, include "xalloc.h".
130265         (initbuffer): Don't cast xmalloc return value to char*.
130266         (readline): Reword comment.
130267         Don't cast xrealloc return value to char*
130268         Return NULL, not 0.
130270 2001-12-09  Jim Meyering  <meyering@lucent.com>
130272         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
130273         about `signed and unsigned type in conditional expression'.
130274         * lib/posixtm.c (posix_time_parse): Likewise.
130276         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
130278         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
130279         to avoid a pedantic warning.
130281         * lib/getstr.c: Don't include assert.h.
130282         (getstr): Remove warning-evoking assertions.
130283         Return -1 if offset parameter is out of bounds.
130284         Change the type of a local from int to size_t.
130286         * lib/strftime.c (my_strftime_localtime_r): Include this function
130287         definition in the `#if ! HAVE_TM_GMTOFF' block.
130289         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
130290         Include xalloc.h instead.
130292 2001-12-02  Jim Meyering  <meyering@lucent.com>
130294         * lib/tempname.c: Don't declare getenv, thus reverting the change of
130295         2001-11-18.  It's no longer necessary, now that stdlib.h is always
130296         included.
130298         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
130299         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
130301 2001-11-30  Akim Demaille  <akim@epita.fr>
130303         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
130304         before being defined.
130306 2001-11-27  Paul Eggert  <eggert@twinsun.com>
130308         * lib/quotearg.h (quotearg_n, quotearg_n_style):
130309         First arg is int, not unsigned.
130310         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
130311         (SIZE_MAX, UINT_MAX): New macros.
130312         (quotearg_n_options): Abort if N is negative.
130313         Avoid overflow check on hosts where size_t is 64 bits and int
130314         is 32 bits, as overflow is impossible there.
130315         Fix off-by-one typo that caused unnecessary reallocation.
130317 2001-11-27  Jim Meyering  <meyering@lucent.com>
130319         * lib/tempname.c: Merge with version from libc.
130320         * lib/regex.c: Likewise.
130322         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
130323         systems for which STDC_HEADERS is 0, it was not included, resulting in
130324         a warning about an integer-to-pointer conversion problem with getenv.
130325         Reported by Volker Borchert.
130327 2001-11-26  Jim Meyering  <meyering@lucent.com>
130329         * lib/gtod.h: Remove file.
130330         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
130331         * lib/gettimeofday.c: Don't include gtod.h.
130332         (GTOD_init): Remove function.
130333         (rpl_gettimeofday): Do its job here instead, rather than aborting.
130334         Suggestion from Volker Borchert.
130336 2001-11-23  Jim Meyering  <meyering@lucent.com>
130338         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
130339         it.
130340         * lib/hash.c (struct hash_table): Define it here instead.
130342 2001-11-22  Jim Meyering  <meyering@lucent.com>
130344         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
130346 2001-11-20  Jim Meyering  <meyering@lucent.com>
130348         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
130349         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
130351 2001-11-19  Jim Meyering  <meyering@lucent.com>
130353         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
130354         directory.  Use "conftestXXXXXX" as the template.
130355         Suggestion from Paul Eggert.
130357         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
130358         immediately, so the test doesn't mistakenly hit the max-open-files
130359         limit.
130361 2001-11-18  Paul Eggert  <eggert@twinsun.com>
130363         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
130364         (TEMPORARIES): New macro.
130365         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
130366         removes an artificial limitation (e.g. HP-UX 10.20, where
130367         TMP_MAX is 17576).
130369 2001-11-18  Jim Meyering  <meyering@lucent.com>
130371         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
130373 2001-11-18  Jim Meyering  <meyering@lucent.com>
130375         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
130376         on SunOS 4.
130378         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
130379         files will be created before anything else.
130381 2001-11-17  Paul Eggert  <eggert@twinsun.com>
130383         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
130384         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
130386 2001-11-17  Jim Meyering  <meyering@lucent.com>
130388         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
130389         Prompted by a report from Bob Proulx.
130391         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
130392         Instead, require UTILS_FUNC_MKSTEMP.
130394 2001-11-17  Jim Meyering  <meyering@lucent.com>
130396         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
130397         Now, that's done as part of AC_FUNC_STRTOD.
130399 2001-11-17  Jim Meyering  <meyering@lucent.com>
130401         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
130402         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
130403         rather than group writable.  Patch by Juan F. Codagnone.
130405         * lib/readtokens.c: Remove explicit declarations of xmalloc and
130406         xrealloc, Instead, include "xalloc.h".
130408         * lib/mountlist.c: Include unlocked-io.h after all system headers.
130409         Remove explicit declarations of xmalloc, xrealloc,
130410         and xstrdup.  Instead, include "xalloc.h".
130412         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
130413         unlocked-io.h.
130414         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
130415         Likewise.
130416         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
130418         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
130419         Reported by Padraig Brady.
130421         * lib/mkstemp.c: #undef mkstemp.
130422         Include config.h.
130423         (rpl_mkstemp): Rename from mkstemp.
130424         Protoize.
130426 2001-11-16  Jim Meyering  <meyering@lucent.com>
130428         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
130429         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
130430         determine the amount of total physical memory, use pstat_getstatic.
130431         HPUX-11 doesn't define _SC_PHYS_PAGES.
130432         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
130433         If sysconf couldn't be used to determine the amount of available
130434         physical memory, use both pstat_getstatic and pstat_getdynamic.
130435         Based on a patch from Bob Proulx.
130437 2001-11-10  Jim Meyering  <meyering@lucent.com>
130439         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
130440         (jm_PREREQ): Use it.
130442 2001-11-09  Jim Meyering  <meyering@lucent.com>
130444         * m4/jm-macros.m4: Require autoconf-2.52f.
130445         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
130446         Use these AC_-prefixed names, not the AM_-prefixed ones.
130448         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
130450 2001-11-05  Jim Meyering  <meyering@lucent.com>
130452         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
130454 2001-11-04  Jim Meyering  <meyering@lucent.com>
130456         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
130457         $DEFS.
130459 2001-11-03  Jim Meyering  <meyering@lucent.com>
130461         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
130462         of AC_DEFUN.
130464         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
130465         know the name of the variable in the macro definition.
130467 2001-11-03  Jim Meyering  <meyering@lucent.com>
130469         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
130470         in argmatch_to_argument call.
130472         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
130473         argument.
130475         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
130476         e.g., a fault due to an attempt to free a NULL pointer.
130478 2001-11-01  Jim Meyering  <meyering@lucent.com>
130480         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
130481         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
130483 2001-11-01  Jim Meyering  <meyering@lucent.com>
130485         * lib/dirfd.c, lib/dirfd.h: New files.
130486         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
130488         * lib/hash.c (hash_print) [TESTING]: Clean up.
130490 2001-10-22  Paul Eggert  <eggert@twinsun.com>
130492         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
130493         to avoid a warning if -Wall.
130495 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
130497         * README: New file
130498         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
130499         (per RMS's instructions, this is now the canonical source)
130500         * lgpl/, gpl/: New directories.
130502 2001-10-21  Paul Eggert  <eggert@twinsun.com>
130504         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
130506 2001-10-21  Jim Meyering  <meyering@lucent.com>
130508         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
130509         this code would end up calling gettext even in packages built
130510         with --disable-nls.
130511         * lib/getopt.c (_): Likewise.
130512         * lib/regex.c (_): Likewise.
130514 2001-10-20  Paul Eggert  <eggert@twinsun.com>
130516         * m4/error.m4 (jm_PREREQ_ERROR):
130517         Do not invoke AC_CHECK_FUNCS with strerror_r, as
130518         AC_FUNC_STRERROR_R does that.
130519         Check for strerror declaration.
130521         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
130522         are supposed to have them these days.
130523         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
130524         Merge changes from latest Autoconf CVS.
130525         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
130526         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
130527         POSIX decided to standardize on the int flavor of strerror_r.
130529 2001-10-20  Paul Eggert  <eggert@twinsun.com>
130531         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
130532         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
130533         Use strerror_r that is only a macro, even if it is not a function.
130534         (strerror): Check for HAVE_DECL_STRERROR before declaring.
130535         (private_strerror): Use prototypes, not old-style function definition.
130536         (print_errno_message): New function.
130537         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
130538         char*-flavored one.
130539         (error_tail, error, error_at_line): Use it.
130541 2001-10-11  Jim Meyering  <meyering@lucent.com>
130543         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
130544         and quote_n (1, ... to avoid clobbering a buffer.
130546 2001-10-05  Jim Meyering  <meyering@lucent.com>
130548         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
130549         hash-pjw.h.
130550         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
130551         * lib/hash-pjw.h: New file.
130553 2001-09-30  Jim Meyering  <meyering@lucent.com>
130555         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
130556         `struct fsstat' has the `f_fstypename' member.
130557         Use that to define FS_TYPE, which is now used to make
130558         the getfsstat link test tighter.
130560 2001-09-30  Jim Meyering  <meyering@lucent.com>
130562         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
130563         Include <sys/ucred.h>, for Apple Darwin.
130564         Include sys/mount.h and sys/fs_types.h only if available.
130565         (FS_TYPE): Define.
130566         (read_filesystem_list): Use FS_TYPE.
130568 2001-09-29  Paul Eggert  <eggert@twinsun.com>
130570         * lib/exclude.c (excluded_filename): 0 -> false, since it's
130571         a boolean context.
130573 2001-09-29  Jim Meyering  <meyering@lucent.com>
130575         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
130576         [one-argument getmntent function]): Include stdio.h before mntent.h.
130577         SunOS 4.1.x needs it for the declaration of `FILE'.
130578         Patch by Volker Borchert.
130580         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
130581         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
130582         sys/fs_types.h, and make the link-test for getfsstat guard #include
130583         directives with appropriate #if HAVE_*_H tests so that we can
130584         detect getfsstat on Apple Darwin1.3.7 systems.
130585         Reported by Nelson Beebe.
130586         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
130588 2001-09-28  Paul Eggert  <eggert@twinsun.com>
130590         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
130591         #defines strtoimax.  Also treat the other strto* functions
130592         like strtoimax.
130594         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
130595         Check for strtoul and strtoumax,
130596         as those declarations are made even in the signed case.
130597         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
130598         Likewise, for strtol and strtoimax.
130600 2001-09-28  Paul Eggert  <eggert@twinsun.com>
130602         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
130603         #defines strtoimax.  Also treat the other strto* functions
130604         like strtoimax.
130606         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
130607         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
130608         (strtoimax, strtoumax): Do not declare if already defined as a macro.
130610 2001-09-26  Jim Meyering  <meyering@lucent.com>
130612         Most macros in unlocked-io.h had the wrong number of arguments.
130613         * lib/gen-uio: New script.
130614         (USE_UNLOCKED_IO): Define to 1 if not already defined.
130615         * lib/unlocked-io.hin: Remove file.
130616         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
130617         rather than trying to embed it here.
130618         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
130619         Reported by Padraig Brady.
130621 2001-09-25  Volker Borchert  <bt@teknon.de>
130623         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
130624         `result'.
130626 2001-09-24  Jim Meyering  <meyering@lucent.com>
130628         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
130630 2001-09-23  Jim Meyering  <meyering@lucent.com>
130632         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
130633         instead of the mere test for existence of mntent.h.  The latter
130634         would get a false-positive on AIX 3.4 systems.
130635         In the outer getmntent if-block, don't die if neither of the getmntent
130636         tests succeeds.  Instead, just fall through and continue with the
130637         remaining tests.
130639 2001-09-23  Jim Meyering  <meyering@lucent.com>
130641         * lib/mountlist.c: Remove useless parentheses in #if directives.
130642         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
130643         the deprecated MOUNTED symbol is no longer defined in mntent.h.
130645 2001-09-22  Jim Meyering  <meyering@lucent.com>
130647         * m4/gettext.m4: New file.  From gettext.
130648         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
130649         * m4/progtest.m4: Likewise
130650         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
130651         * m4/glibc21.m4: Likewise.
130653         * m4/libintl.m4: Remove.  No longer used.
130655 2001-09-22  Jim Meyering  <meyering@lucent.com>
130657         * lib/localcharset.c: Update from latest gettext.
130658         * lib/config.charset: Likewise.
130660 2001-09-20  Jim Meyering  <meyering@lucent.com>
130662         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
130663         strtoimax.
130664         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
130665         strtoumax.
130667 2001-09-20  Jim Meyering  <meyering@lucent.com>
130669         * lib/xstrtol.c (strtoimax): Guard declaration with
130670         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
130671         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
130672         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
130673         (strtoumax): Likewise, for completeness (it wasn't necessary).
130675 2001-09-17  Paul Eggert  <eggert@twinsun.com>
130677         * lib/strtoimax.c (HAVE_LONG_LONG):
130678         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
130679         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
130680         to work around bug in IBM C compiler.
130682 2001-09-17  Jim Meyering  <meyering@lucent.com>
130684         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
130685         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
130686         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
130687         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
130688         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
130689         whenever the right hand side need not be expanded by the shell.
130691 2001-09-16  Paul Eggert  <eggert@twinsun.com>
130693         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
130694         library.  It's not correct, as some older glibcs are buggy.
130695         fnmatch wasn't fixed until glibc 2.2.
130697         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
130698         special shell magic here.
130700 2001-09-16  Jim Meyering  <meyering@lucent.com>
130702         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
130703         * m4/jm-macros.m4: Require it.
130705 2001-09-16  Jim Meyering  <meyering@lucent.com>
130707         * lib/mkdir.c: New file.
130709 2001-09-15  Jim Meyering  <meyering@lucent.com>
130711         * m4/jm-macros.m4: Check for help2man.
130713 2001-09-11  Jim Meyering  <meyering@lucent.com>
130715         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
130716         The body, by Paul Eggert, was moved here from configure.in.
130717         * m4/jm-macros.m4: Require UTILS_HOST_OS.
130719 2001-09-04  Paul Eggert  <eggert@twinsun.com>
130721         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
130722         (jm_PREREQ): Use it.
130724 2001-09-04  Paul Eggert  <eggert@twinsun.com>
130726         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
130727         Use ssize_t, not int, to store result of readlink.
130728         Check for ssize_t overflow as well as size_t overflow,
130729         as POSIX says the result of readlink is implementation-defined
130730         when ssize_t overflows.
130731         Remove unnecessary cast to char*.
130732         Use free+malloc instead of realloc, as the storage doesn't need
130733         to be preserved and it's clearer and can be more efficient that way.
130734         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
130735         * lib/xreadlink.h (xreadlink): Update prototype.
130737 2001-09-04  Paul Eggert  <eggert@twinsun.com>
130739         * lib/xgetcwd.c: Revert some of the previous change; intead,
130740         fix the HAVE_GETCWD_NULL code to behave more like the
130741         !HAVE_GETCWD_NULL code used to.
130743         Include "xalloc.h".
130744         (xgetcwd): Do not return NULL when memory is exhausted; instead,
130745         invoke xalloc_die.
130747 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130749         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
130750         sys/param.h, as pathmax.h includes them.
130752 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130754         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
130755         (jm_PREREQ_XGETCWD): New macro.
130757         * m4/getcwd.m4: New file.
130759 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130761         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
130762         like the HAVE_GETCWD_NULL code.
130763         Include pathmax.h if not HAVE_GETCWD.
130764         Do not include xalloc.h.
130765         (INITIAL_BUFFER_SIZE): New symbol.
130766         Do not use xmalloc / xrealloc, since the caller is responsible for
130767         handling errors.  Preserve errno around `free' during failure.
130768         Do not overrun buffer when using getwd.
130770 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130772         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
130773         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
130774         getcwd (NULL, 0).
130776 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130778         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
130779         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
130780         spotted by Jim Meyering.
130782 2001-09-03  Jim Meyering  <meyering@lucent.com>
130784         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
130785         failure.
130787 2001-09-02  Jim Meyering  <meyering@lucent.com>
130789         * lib/error.c: Update from GNU libc.
130791 2001-09-01  Jim Meyering  <meyering@lucent.com>
130793         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
130794         Used by df.
130796 2001-09-01  Jim Meyering  <meyering@lucent.com>
130798         * lib/xreadlink.c: New file.
130799         * lib/xreadlink.h: New file.
130800         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
130801         xreadlink.h.
130803         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
130804         doesn't conflict with sparc Solaris 7's definition in
130805         /usr/include/sys/int_types.h.
130807         * lib/exclude.c: Use `""', not `<>' to #include non-system header
130808         files.
130809         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
130810         and strncasecmp as r-values.  Unixware didn't have declarations.
130812 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130814         * lib/xstrtol.h: Add copyright notice.
130815         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
130816         LONGINT_INVALID_SUFFIX_CHAR.
130818 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130820         * lib/xstrtol.c (strtoimax): New decl.
130822 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130824         * lib/xgetcwd.c: Don't include pathmax.h.
130825         Include stdlib.h and unistd.h if available.
130826         Include xalloc.h.
130827         (xmalloc, xstrdup, free): Remove decls.
130828         (xgetcwd): Don't assume sizes fit in unsigned.
130829         Check for overflow when computing sizes.
130830         Simplify reallocation code.
130832 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130834         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
130835         a directory's st_size can have an arbitrary value, so the old
130836         usage could waste an arbitrary amount of memory.  All uses
130837         changed.
130838         * lib/savedir.h: Update prototype.
130840 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130842         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
130844         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
130845         old strtoimax.c.
130847         Also, make the following further changes to make this file's
130848         configuration more similar to that of strtol.c:
130849         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
130850         (strtoumax, uintmax_t, strtoull, strtol): Remove.
130851         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
130852         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
130853         changed to signed values.
130855         And make the following changes as well:
130856         Fix copyright notice, as 1999 was missing.
130857         (verify): New macro.
130858         (strtoimax): Check sizes at compile-time, not run-time.
130859         Prefer strtol to strtoll if both work.
130860         (main): Remove; it was not that useful and was a pain to maintain.
130862         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
130864 2001-08-31  Jim Meyering  <meyering@lucent.com>
130866         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
130867         Use an initial, malloc'd, buffer of length 128 rather than
130868         a statically allocated one of length 1024.
130870 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130872         Simplify code, partly by assuming autoconf 2.52 semantics.
130874         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
130876         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
130877         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
130878         All uses removed.
130879         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
130880         Move AC_REQUIRE to next-to-top level, to avoid confusion.
130881         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
130882         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
130883         jm_AC_HEADER_INTTYPES_H.
130884         * m4/jm-macros.m4 (jm_MACROS): Likewise.
130886         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
130888         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
130889         Quote first arg of AC_DEFUN.
130890         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
130891         since they are needed to parse the include file even if we need
130892         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
130893         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
130894         but with opposite signedness.
130896 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130898         Merge 'exclude' changes from tar 1.13.22.
130899         This fixes one or two unlikely storage allocation overflow bugs,
130900         but doesn't change user-visible behavior otherwise.
130902 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130904         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
130905         (jm_PREREQ_EXCLUDE): New macro.
130907 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130909         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
130910         tm to be declared.
130912 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130914         * lib/hash.c: Remove '2001' from copyright notice.
130916 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130918         * lib/full-write.h: New file.
130919         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
130920         * lib/full-write.c: Correct credits, as cccp.c no longer
130921         exists and anyway it was so heavily changed from the old cccp
130922         code as to be unrecognizable.  Include full-write.h.
130923         (full_write): Return size_t, with short writes meaning failure.
130924         All callers changed.  This fixes a bug with large buffers
130925         on 64-bit hosts.
130926         * lib/utime.c: Include full-write.h.
130928 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130930         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
130931         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
130932         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
130933         Include if available.
130934         (<xalloc.h>): Include
130935         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
130936         (verify): New macro.  Use it to verify that EXCLUDE macros do not
130937         collide with FNM macros.
130938         (struct patopts): New struct.
130939         (struct exclude): Use it, as exclude patterns now come with options.
130940         (new_exclude): Support above changes.
130941         (new_exclude, add_exclude_file):
130942         Initial size must now be a power of two to simplify overflow checking.
130943         (free_exclude, fnmatch_no_wildcards): New function.
130944         (excluded_filename): No longer requires options arg, as the options
130945         are determined by add_exclude.  Now returns bool, not int.
130946         (excluded_filename, add_exclude):
130947         Add support for the fancy new exclusion options.
130948         (add_exclude, add_exclude_file): Now takes int options arg.
130949         Check for arithmetic overflow when computing sizes.
130950         (add_exclude_file): xrealloc might modify errno, so don't
130951         realloc until after errno might be used.
130953         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
130954         New macros.
130955         (free_exclude): New decl.
130956         (add_exclude, add_exclude_file): Now takes int options arg.
130957         (excluded_filename): No longer requires options arg, as the options
130958         are determined by add_exclude.  Now returns bool, not int.
130960 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130962         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
130964 2001-08-27  Jim Meyering  <meyering@lucent.com>
130966         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
130968         * lib/version-etc.c (N_): Remove definition.
130969         Revert most of last change.
130970         Instead, simply don't mark the `Copyright...' string for translation.
130971         Based on advice from Paul Eggert.
130973         * lib/strtoxmax.c: Tweak comment.
130975 2001-08-26  Jim Meyering  <meyering@lucent.com>
130977         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
130979         * m4/xstrtoimax.m4: New file.
130980         * m4/xstrtoumax.m4: Add comments explaining why we
130981         AC_REPLACE_FUNCS(strtol).
130983 2001-08-26  Jim Meyering  <meyering@lucent.com>
130985         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
130986         of copyright with `%s' so translators don't get an untranslated
130987         message in 2002.
130988         (COPYRIGHT_YEAR): Define.
130989         (version_etc): Use fprintf rather than fputs.
130990         Suggestion from Ulrich Drepper.
130992         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
130994         * lib/strtoll.c: New file, from GNU libc.
130995         * lib/xstrtoimax.c: New file.
130997         * lib/xstrtol.h: Add xstrtoimax.
130998         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
130999         * lib/strtoimax.c: New file.  Likewise, but first define
131000         STRTOUXMAX_SIGNED.
131002         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
131003         ...
131004         * lib/strtoxmax.c: ... then renamed to this.
131006 2001-08-18  Paul Eggert  <eggert@twinsun.com>
131008         * m4/inttypes.m4: Add AC_PREREQ(2.13).
131009         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
131010         (jm_AC_TYPE_INTMAX_T): New macro.
131011         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
131013         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
131015         * m4/longlong.m4: Renamed from ulonglong.m4.
131016         * m4/inttypes.m4: Renamed from inttypes_h.m4.
131017         * m4/uintmax_t.m4: Removed.
131019 2001-08-13  Paul Eggert  <eggert@twinsun.com>
131021         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
131022         Port to Solaris 8, where 'sed' requires a space after the 'r'
131023         command, and where sh dislikes "$/".  Clean up the spacing a bit.
131024         Redirect output to $tmp just once.
131026 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
131028         * lib/addext.c (<errno.h>): Include.
131029         (errno): Declare if not defined.
131030         (addext): Work correctly when pathconf returns -1 and leaves
131031         errno alone because there is no limit.  Also, work even if
131032         pathconf returns a value greater than SIZE_MAX.
131034 2001-08-12  Jim Meyering  <meyering@lucent.com>
131036         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
131037         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
131038         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
131039         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
131040         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
131041         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
131042         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
131043         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
131044         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
131045         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
131046         utime.m4, utimes.m4, xstrtoumax.m4:
131047         Quote the first argument in each use of AC_DEFUN.
131049 2001-08-12  Jim Meyering  <meyering@lucent.com>
131051         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
131052         Simply `return getcwd (NULL, 0);'.
131053         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
131054         Use 1300 as initial value for length, not PATH_MAX.
131056         * lib/pathmax.h: Clean up cpp syntax.
131058 2001-08-12  Jim Meyering  <meyering@lucent.com>
131060         * lib/gettimeofday.c: New file.
131061         * lib/gtod.h: New file.
131062         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
131064 2001-08-05  Jim Meyering  <meyering@lucent.com>
131066         * m4/jm-macros.m4: Require autoconf-2.52.
131068 2001-08-04  Jim Meyering  <meyering@lucent.com>
131070         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
131071         stmt, to get in sync with glibc.
131073 2001-08-03  Paul Eggert  <eggert@twinsun.com>
131075         The following changes are from gettext 0.10.39 as maintained by
131076         Bruno Haible.
131078         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
131079         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
131080         with inverted sense.  All uses changed.
131082         * lib/mbswidth.c: Don't include <limits.h>.
131083         Include <stdlib.h> and <string.h> unconditionally.
131084         (iswcntrl, mbsinit, ISCNTRL): New macros.
131085         (mbsnwidth): Use K&R style function declarations.
131086         Don't bother checking for MB_LEN_MAX == 1, since the compiler
131087         can optimize it when MB_CUR_MAX == 1.
131088         The width of control characters is zero, not 1.
131090 2001-08-03  Paul Eggert  <eggert@twinsun.com>
131092         The following changes are from gettext 0.10.39 as maintained by
131093         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
131095         * m4/codeset.m4: Upgrade to serial AM1.
131096         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
131097         all uses changed.  Quote first arg of AC_DEFUN.
131098         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
131100         * m4/iconv.m4: Upgrade to serial AM2.
131101         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
131102         Add --with-libconv-prefix.
131103         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
131104         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
131105         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
131106         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
131107         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
131109         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
131110         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
131111         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
131112         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
131113         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
131114         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
131115         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
131116         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
131117         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
131119         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
131120         string.h any more.
131122         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
131123         not the default value.
131125         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
131126         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
131127         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
131128         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
131129         Also check for iswcntrl, used for wcwidth fallback.
131130         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
131131         to Autoconf 2.13.
131133 2001-08-03  Jim Meyering  <meyering@lucent.com>
131135         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
131136         as it was in the original.  Reported by Paul Eggert.
131138 2001-07-16  Jim Meyering  <meyering@lucent.com>
131140         * m4/gettimeofday.m4: New file.
131141         Prompted by a report from Bernhard Baehr.
131143 2001-07-15  Jim Meyering  <meyering@lucent.com>
131145         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
131146         stuff. Now it's in ../Makefile.cfg.
131148 2001-07-15  Jim Meyering  <meyering@lucent.com>
131150         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
131151         (BUILT_SOURCES): Add unlocked-io.h.
131152         (io_functions): Define.
131153         (unlocked-io.h): New rule.
131154         (DISTCLEANFILES): Add unlocked-io.h.
131155         (all-local): Depend on unlocked-io.h, to ensure it is created.
131157         * lib/unlocked-io.hin: New file
131159         * lib/regex.c: Update from glibc.
131161 2001-07-05  Jim Meyering  <meyering@lucent.com>
131163         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
131164         recommendation.
131165         (libfetish_a_SOURCES): Put all .h files here instead.
131166         Remove a thus-exposed (better checks in automake) duplicate and
131167         two unnecessary .h files.
131169 2001-07-04  Jim Meyering  <meyering@lucent.com>
131171         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
131172         that generates jm-glibc-io.m4 so that it doesn't trigger any make
131173         distcheck failure.
131175 2001-07-02  Jim Meyering  <meyering@lucent.com>
131177         The following changes were prompted by suggestions from Bruno Haible.
131179         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
131180         is now generated.
131181         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
131182         definition of EXTRA_DIST.
131183         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
131184         ensure that the generated file is created/updated whenever the list
131185         of $(unlocked_functions) is changed.
131186         (jm-glibc-io.m4): New rule.
131187         (unlocked-io.h): New rule -- currently unused.
131189 2001-06-24  Jim Meyering  <meyering@lucent.com>
131191         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
131192         unmatched right bracket, rather than kludging it with an extra,
131193         falsely-matching quote in a comment.  Patch by Akim Demaille.
131195 2001-06-11  Jim Meyering  <meyering@lucent.com>
131197         * lib/regex.c: Update from GNU libc.
131199 2001-05-27  Jim Meyering  <meyering@lucent.com>
131201         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
131202         Check for ut_type in struct utmp.
131204 2001-05-27  Jim Meyering  <meyering@lucent.com>
131206         * lib/readutmp.h (UT_TYPE): Define.
131208 2001-05-24  Jim Meyering  <meyering@lucent.com>
131210         * lib/argmatch.c: Include "quote.h".
131211         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
131212         quote function.  Reported by Göran Uddeborg.
131214 2001-05-22  Jim Meyering  <meyering@lucent.com>
131216         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
131217         now that we use the package-supplied version unconditionally.
131218         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
131220 2001-05-21  Jim Meyering  <meyering@lucent.com>
131222         * m4/regex.m4: Change a couple backticks to single quotes to avoid
131223         shell syntax errors.
131225 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
131227         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
131229 2001-05-20  Paul Eggert  <eggert@twinsun.com>
131231         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
131232         Don't bother to check library strftime, since
131233         we'll be using our own my_strftime function anyway.
131234         Define my_strftime instead of strftime.
131236 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
131238         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
131239         which is not yet declared.
131241 2001-05-15  Jim Meyering  <meyering@lucent.com>
131243         * m4/regex.m4: Use proper quoting so brackets appear in the test
131244         program.
131245         Reported by, and with help from, Bruno Haible.
131247 2001-05-13  Jim Meyering  <meyering@lucent.com>
131249         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
131250         undefined.
131252 2001-05-11  Paul Eggert  <eggert@twinsun.com>
131254         dirname code cleanup.  base_name now behaves more compatibly
131255         with POSIX basename when given file names that have trailing
131256         slashes, and similarly for dir_name.  Add new primitives
131257         base_len and dir_len.  Put the directory-name-related decls
131258         into dirname.h.
131260         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
131261         * lib/backupfile.c (base_name): Likewise.
131262         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
131263         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
131264         * lib/makepath.c (strip_trailing_slashes): Likewise.
131265         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
131266         ISSLASH): Likewise.
131267         * lib/rename.c (strip_trailing_slashes): Likewise.
131268         * lib/same.c (base_name): Likewise.
131269         * lib/stripslash.c (ISSLASH): Likewise.
131271         * lib/addext.c: Include <dirname.h> after size_t is defined.
131272         * lib/backupfile.c: Likewise.
131274         * lib/addext.c (addext): Use base_len to trim redundant
131275         trailing slashes instead of doing it ourselves.
131276         But do not trim the last slash if it is not redundant.
131278         * lib/backupfile.c (find_backup_file_name,
131279         max_backup_version): Use base_len instead of rolling it ourselves.
131280         Handle the case of "" and (on DOS) "C:" correctly.
131282         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
131283         needed. Include <string.h>, <dirname.h>.
131284         (base_name): Allow file names ending in slashes, other than names
131285         that are all slashes.  In this case, return the basename followed
131286         by the slashes.  This is more general, and can be used in places
131287         where the original base_name purposely had an assertion failure.
131288         (base_len): New function.
131290         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
131291         Do not include <assert.h>; no longer needed.
131292         Include xalloc.h.
131293         (memrchr): Remove decl.
131294         (dir_name_r): Remove.
131295         (dir_len): Renamed from dirlen.  All callers changed.
131296         Rewrite in terms of base_name, for simplicity and consistency.
131297         (dir_name): Never return NULL.  All callers changed.
131298         Do not include <stdlib.h> in test program; no longer needed.
131299         return 0; is fine for test program.
131301         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
131302         New macros.
131303         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
131305         * lib/path-concat.c (path_concat): Use base_len to compute
131306         base length, not strlen; this means we cannot rely on memcpy
131307         to null-terminate.
131309         * lib/same.c (STREQ): Remove.
131310         (same_name): Handle the case where the basename ends in trailing '/'.
131312         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
131313         a slash was stripped.  Do not strip the last slash after a
131314         file system prefix.
131316 2001-05-11  Paul Eggert  <eggert@twinsun.com>
131318         * lib/Makefile.am (libfetish_a_SOURCES):
131319         Add strftime.c, since we now compile it on all hosts.
131321         * lib/strftime.c (my_strftime):
131322         Define to nstrftime if emacs, but only if my_strftime is not defined.
131323         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
131324         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
131325         Add one more extra argument: a nanoseconds value.
131326         All uses changed.
131327         (ns): New macro.
131328         (my_strftime function): Add %N format.
131329         (emacs_strftimeu): Renamed from emacs_strftime,
131330         with extra ut argument.
131332 2001-05-09  Paul Eggert  <eggert@twinsun.com>
131334         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
131336 2001-04-21  Jim Meyering  <meyering@lucent.com>
131338         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
131339         doesn't interfere.
131341 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
131343         * m4/ftruncate.m4: Check for chsize.
131344         Link with ftruncate.o unconditionally if ftruncate is missing.
131345         This was required when cross-compiling to i586-mingw32msvc.
131347 2001-04-08  Jim Meyering  <meyering@lucent.com>
131349         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
131350         recomputed; that's necessary when the offset spans a DST transition.
131351         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
131353 2001-04-02  Jim Meyering  <meyering@lucent.com>
131355         * lib/regex.h, regex.c: Update from GNU libc.
131357 2001-03-24  Jim Meyering  <meyering@lucent.com>
131359         * m4/jm-macros.m4: Require autoconf-2.49d.
131361 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
131363         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
131365 2001-03-19  Paul Eggert  <eggert@twinsun.com>
131367         * lib/version-etc.c (version_etc_copyright): Update to 2001.
131369 2001-03-17  Jim Meyering  <meyering@lucent.com>
131371         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
131372         now that the version in autoconf is equivalent.
131373         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
131375         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
131376         Suggestion from Akim Demaille.
131378         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
131379         (jm_PREREQ_TEMPNAME): New function.
131381 2001-03-16  Paul Eggert  <eggert@twinsun.com>
131383         * lib/tempname.c (uint64_t): Define to uintmax_t if
131384         not defined, and if UINT64_MAX is not defined.
131385         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
131386         Reported by John David Anglin.
131388 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
131390         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
131391         resolve alias if codeset is empty.
131392         * lib/config.charset (BeOS): Use wildcard syntax.
131394 2001-03-13  Jim Meyering  <meyering@lucent.com>
131396         * lib/path-concat.c (path_concat)
131397         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
131398         concatenating e.g., `C:' and `foo'.
131399         From Bruno Haible.
131401 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
131403         * lib/localcharset.c (locale_charset): Don't use
131404         setlocale(LC_CTYPE,NULL). Don't return NULL.
131405         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
131407 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
131409         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
131410         support for DOS/DJGPP.
131412 2001-03-01  Paul Eggert  <eggert@twinsun.com>
131414         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
131415         lacks mkstemp.  Compile our own tempname.c if we compile our own
131416         mkstemp.c, as mkstemp relies on tempname.
131418 2001-03-01  Jim Meyering  <meyering@lucent.com>
131420         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
131421         AH_VERBATIM really does output its argument verbatim.
131423 2001-02-28  Paul Eggert  <eggert@twinsun.com>
131425         * lib/Makefile.am (libfetish_a_SOURCES):
131426         Add dup-safer.c, fopen-safer.c.
131427         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
131429         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
131430         * lib/unistd-safer.h: New files.
131432 2001-02-25  Paul Eggert  <eggert@twinsun.com>
131434         The mkstemp replacement is taken from glibc 2.2.2, with some
131435         portability fixes for use outside glibc, as follows:
131437         * lib/tempname.c (struct_stat64): New macro.
131438         (direxists, __gen_tempname): Use it.
131439         This avoids a portability problem with Solaris 8.
131441         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
131442         (<stddef.h>, <stdint.h>, <string.h>):
131443         Include only if STDC_HEADERS || _LIBC.
131444         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
131445         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
131446         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
131447         (__set_errno): Define this macro if <errno.h> doesn't.
131448         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
131449         Define these macros if <stdio.h> doesn't.
131450         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
131451         Define these macros if <sys/stat.h>
131452         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
131453         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
131454         __xstat64): Define if not _LIBC.
131455         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
131456         (__gen_tempname): Invoke gettimeofday only if
131457         HAVE_GETTIMEOFDAY || _LIBC;
131458         otherwise, fall back on plain "time".
131459         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
131461         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
131463         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
131465 2001-02-18  Paul Eggert  <eggert@twinsun.com>
131467         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
131469 2001-02-17  Paul Eggert  <eggert@twinsun.com>
131471         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
131472         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
131473         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
131474         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
131476 2001-02-17  Paul Eggert  <eggert@twinsun.com>
131478         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
131479         Remove workaround macros for hosts that have mbrtowc but not
131480         mbstate_t, as we now insist on proper declarations for both
131481         before using mbrtowc.
131483 2001-02-17  Jim Meyering  <meyering@lucent.com>
131485         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
131486         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
131487         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
131488         UnixWare 7.1.1.
131490         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
131491         rather than AC_CACHE_VAL.
131493 2001-02-17  Jim Meyering  <meyering@lucent.com>
131495         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
131496         around included file name.
131498         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
131500         * lib/strftime.c: Update from GNU libc (the only changes were to
131501         comments).
131503 2001-02-17  Jim Meyering  <meyering@lucent.com>
131505         * lib/regex.c: Update from libc.
131507 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
131509         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
131510         clash.
131512 2001-02-16  Paul Eggert  <eggert@twinsun.com>
131514         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
131515         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
131516         Reported by Mark Hounschell via Paul Eggert.
131518 2001-02-07  Jim Meyering  <meyering@lucent.com>
131520         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
131522 2001-02-05  Jim Meyering  <meyering@lucent.com>
131524         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
131525         it includes the patch required for `large file' support with at least
131526         HP-UX's 10.20 /bin/cc.
131528 2001-02-03  Jim Meyering  <meyering@lucent.com>
131530         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
131531         AS_IF, now that it works once again (mysteriously).
131532         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
131534 2001-01-30  Jim Meyering  <meyering@lucent.com>
131536         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
131537         * m4/chown.m4: Rename conftestchown to conftest.chown.
131538         * m4/rename.m4: s/conftestdir/conftest.d1/ and
131539         s/conftestdir2/conftest.d2/.
131540         * m4/utimes.m4: s/conftestdata/conftest.data/
131541         Inspired by Pavel Roskin's change in autoconf.
131543 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
131545         * lib/config.charset: Update for FreeBSD 4.2.
131547 2001-01-27  Jim Meyering  <meyering@lucent.com>
131549         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
131550         a use of AS_IF.
131551         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
131553 2001-01-26  Jim Meyering  <meyering@lucent.com>
131555         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
131556         quotearg.c includes it.
131558 2001-01-26  Jim Meyering  <meyering@lucent.com>
131560         * lib/quotearg.c: Include stddef.h.
131561         * lib/quote.c: Include stddef.h.
131562         Reported by Axel Kittenberger.
131564         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
131565         line in double quotes so that it evokes a better diagnostic.
131566         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
131567         Reported by Axel Kittenberger.
131569 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
131571         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
131572         as if it was a `charset'.
131574 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
131576         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
131577         has const.
131579 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
131581         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
131582         to avoid a warning.  Add back 'const' to inptr.
131584 2001-01-20  Jim Meyering  <meyering@lucent.com>
131586         Be sure that headers are checked before used in code compiled
131587         for the type checks.
131588         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
131589         In place of that, invoke jm_CHECK_ALL_TYPES.
131590         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
131591         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
131592         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
131593         The check for ssize_t was mistakenly run before the test for unistd.h.
131595         The configure-time check for stdbool.h was missing.
131596         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
131597         (jm_PREREQ_HASH): New function.
131599 2001-01-17  Jim Meyering  <meyering@lucent.com>
131601         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
131602         for autoconf-2.49c.
131603         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
131605 2001-01-16  Jim Meyering  <meyering@lucent.com>
131607         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
131608         From Bruno Haible.
131610 2001-01-14  Jim Meyering  <meyering@lucent.com>
131612         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
131613         foo and bar.  Create conftestdir/ in the script, not in the C code.
131614         Remove directories in the script, not in the C code.
131615         Remove conftestdir{,2} before trying to create the directory.
131616         Make the entire configure script fail if the mkdir fails.
131618 2001-01-14  Jim Meyering  <meyering@lucent.com>
131620         * lib/rename.c: New file.  From Volker Borchert.
131621         Include stdlib.h, string.h or strings.h, and xalloc.h.
131622         Use strip_trailing_slashes rather than open-coding it.
131624 2001-01-03  Paul Eggert  <eggert@twinsun.com>
131626         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
131628 2001-01-03  Jim Meyering  <meyering@lucent.com>
131630         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
131631         of local `inptr' to avoid warning with some system declarations of
131632         iconv.
131634 2001-01-02  Volker Borchert  <bt@teknon.de>
131636         * m4/rename.m4: New file.
131637         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
131639 2001-01-01  Jim Meyering  <meyering@lucent.com>
131641         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
131642         even on systems with utmpx.h.  It's necessary for the declaration of
131643         utmp's ut_user member.  Reported by Andreas Jaeger.
131645         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
131646         available. They are required for the declarations of getgrgid and
131647         getpwuid resp.
131648         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
131649         Reported by Andreas Jaeger.
131651 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
131653         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
131654         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
131655         so `make install' also works in VPATH builds.
131657 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
131659         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
131660         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
131661         can be used in subdirectories.
131663 2000-12-29  Paul Eggert  <eggert@twinsun.com>
131665         * lib/modechange.c: Do not assume that mode_t uses the
131666         traditional octal encoding.  E.g. "chmod 1 FOO" should set
131667         the other-execute bit of FOO even if S_IXOTH != 1.
131669         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
131670         WOTH, XOTH, ALLM): New macros.
131671         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
131672          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
131673         Use them.
131674         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
131675         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
131676         (mode_compile):
131677         No need to use uintmax_t; unsigned long is long enough.
131678         Don't bother to get suffix since we don't use it.
131680 2000-12-26  Jim Meyering  <meyering@lucent.com>
131682         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
131683         better with autoheader.
131685 2000-12-24  Jim Meyering  <meyering@lucent.com>
131687         * lib/hash.c (is_prime): Return explicit boolean values.
131688         (hash_get_first): Return NULL to appease Irix5.6's 89.
131689         Reported by Nelson Beebe.
131691 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
131693         * lib/localcharset.c (locale_charset): Add support for Win32.
131695 2000-12-18  Paul Eggert  <eggert@twinsun.com>
131697         * lib/physmem.h, lib/physmem.c: New files.
131699         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
131700         (noinst_HEADERS): Add physmem.h.
131702         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
131703         't' for compatibility with Solaris 8 sort.
131705 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
131707         * lib/config.charset: Add support for BeOS.
131709 2000-12-17  Jim Meyering  <meyering@lucent.com>
131711         * m4/dos.m4 (jm_AC_DOS): New file and macro.
131712         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
131714 2000-12-16  Jim Meyering  <meyering@lucent.com>
131716         This bug had a serious impact on chown: `chown N:M FILE' (for integer
131717         N and M) would have treated it like `chown N:N FILE'.
131719         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
131721 2000-12-16  Jim Meyering  <meyering@lucent.com>
131723         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
131724         SHELLS_FILE to a file name that's useful on djgpp systems.
131725         Include stdlib.h.
131726         (ADDITIONAL_DEFAULT_SHELLS): Define.
131727         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
131728         Based mostly on a patch from Prashant TR.
131730 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
131732         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
131733         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
131734         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
131736 2000-12-08  Andreas Schwab  <schwab@suse.de>
131738         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
131739         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
131741 2000-12-07  Jim Meyering  <meyering@lucent.com>
131743         * lib/stripslash.c (ISSLASH): Define.
131744         (strip_trailing_slashes): Use ISSLASH rather than comparing against
131745         `/'.
131746         From Prashant TR.
131748         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
131749         (dir_name_r): Declare this function as static.
131750         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
131751         manifest itself on a name containing a mix of slashes and
131752         backslashes.
131753         Make this function work with names starting with a DOS-style
131754         drive letter and colon prefix.
131755         (dir_name): Append `.' if necessary.
131756         Based mostly on patches from Prashant TR and Eli Zaretskii.
131758         * lib/dirname.h (dir_name_r): Remove prototype.
131760 2000-12-06  Paul Eggert  <eggert@twinsun.com>
131762         * m4/off_t-format.m4: Remove this file.
131763         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
131765 2000-12-06  Jim Meyering  <meyering@lucent.com>
131767         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
131768         replacement strtoull, we may well need the replacement strtoul, too.
131769         Check for declarations of strtoul and strtoull.
131770         Check for strtol.  Mainly as a cue to cause automake to include
131771         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
131772         Check for limits.h -- strtol.c needs it.
131774 2000-12-05  Jim Meyering  <meyering@lucent.com>
131776         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
131778 2000-12-04  Jim Meyering  <meyering@lucent.com>
131780         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
131781         Also include memory.h, stdlib.h, unistd.h if appropriate.
131782         Reported by Andreas Jaeger (conflicting declaration of malloc).
131784 2000-12-02  Jim Meyering  <meyering@lucent.com>
131786         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
131787         * m4/jm-macros.m4 (jm_MACROS): require it.
131789 2000-12-02  Jim Meyering  <meyering@lucent.com>
131791         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
131793 2000-12-01  Paul Eggert  <eggert@twinsun.com>
131795         * lib/memrchr.c: Include <config.h> before any system include file.
131797 2000-11-30  Jim Meyering  <meyering@lucent.com>
131799         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
131801 2000-11-30  Jim Meyering  <meyering@lucent.com>
131803         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
131805 2000-11-29  Paul Eggert  <eggert@twinsun.com>
131807         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
131809 2000-11-26  Jim Meyering  <meyering@lucent.com>
131811         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
131813 2000-11-22  Paul Eggert  <eggert@twinsun.com>
131815         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
131816         size of (size_t) -1; it's not portable.
131818 2000-11-17  Jim Meyering  <meyering@lucent.com>
131820         * lib/strstr.c: Update from GNU libc.
131822 2000-11-17  Akim Demaille  <akim@epita.fr>
131824         * lib/obstack.h: Formatting changes.
131825         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
131826         prevent type checking.
131827         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
131828         cast the value to (void *): assigning a `foo *' to a `void *'
131829         variable is valid.
131830         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
131832 2000-11-16  Jim Meyering  <meyering@lucent.com>
131834         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
131836 2000-11-11  Jim Meyering  <meyering@lucent.com>
131838         * lib/error.c: Add a couple #includes, merging from GNU libc version.
131840 2000-11-10  Jim Meyering  <meyering@lucent.com>
131842         * lib/obstack.h: Update from GNU libc.
131843         * lib/obstack.c: Likewise.
131845 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
131847         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
131849 2000-11-06  Paul Eggert  <eggert@twinsun.com>
131851         * lib/getusershell.c (setusershell): Use rewind rather than
131852         fseek/fseeko, to avoid configuration hassles with fseeko.
131853         Don't bother opening SHELLS_FILE if shellstream is NULL;
131854         it's not necessary.
131856 2000-11-05  Jim Meyering  <meyering@lucent.com>
131858         * lib/makepath.h (make_dir): Declare.
131859         * lib/makepath.c (make_dir): Remove `static' attribute.
131860         Tweak a comment.
131862 2000-11-04  Jim Meyering  <meyering@lucent.com>
131864         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
131866 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
131868         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
131869         last one in a bucket, advance to the next bucket.
131871 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
131873         * lib/fnmatch.c: Do not comment out all the code if we are using
131874         the GNU C library, because in some cases we are replacing buggy
131875         code in the GNU C library itself.
131877 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
131879         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
131880         (regex_compile): Catch bogus \(\1\).
131882 2000-10-30  Paul Eggert  <eggert@twinsun.com>
131884         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
131885         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
131886         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
131888 2000-10-30  Paul Eggert  <eggert@twinsun.com>
131890         * lib/error.h, getline.h, modechange.h:
131891         Remove "2000" from Copyright line, as the file hasn't been
131892         changed this year other than in the copyright notice.
131894         * lib/xalloc.h: Add "2000" to Copyright line, as this file
131895         was changed this year.
131897 2000-10-29  Jim Meyering  <meyering@lucent.com>
131899         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
131900         renaming.
131901         * m4/ls-mntd-fs.m4: Likewise
131903 2000-10-29  Jim Meyering  <meyering@lucent.com>
131905         * lib/xstat.in: Fix grammar in comment.
131907 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
131909         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
131910         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
131911         doesn't define __restrict_arr.
131913 2000-10-28  Jim Meyering  <meyering@lucent.com>
131915         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
131916         (jm_PREREQ_MEMCHR): New function.
131918 2000-10-28  Jim Meyering  <meyering@lucent.com>
131920         * lib/memchr.c: Update from libc.
131921         Adjust for portability:
131922         [HAVE_STDLIB_H]: Include stdlib.h.
131923         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
131924         Undef __memchr, too.
131925         [!weak_alias]: Define __memchr to memchr.
131927         * lib/regex.c: Update from libc.
131928         * lib/regex.h: Likewise.
131929         * lib/getopt1.c: Likewise.
131930         * lib/memcmp.c: Likewise.
131932         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
131933         Avoid using fseek, when possible -- it's broken by design.
131934         Patch by Ulrich Drepper.
131936 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
131938         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
131939         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
131940         Giving in to popular pressure to shut up the compiler with casts.
131942 2000-10-26  Jim Meyering  <meyering@lucent.com>
131944         * lib/strftime.c: Update from libc.
131946 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
131948         * regex.c: More `unsigned char' -> `re_char' changes.
131949         Also change several `int' into `re_wchar_t'.
131950         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
131951         (PUSH_FAILURE_POINTER): Don't cast any more.
131952         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
131953         We want GCC to complain, since this piece of code makes
131954         re_match non-reentrant, which *should* be fixed.
131955         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
131956         (EXTEND_BUFFER): Use RETALLOC.
131957         (SET_LIST_BIT): Don't cast.
131958         (re_wchar_t): New type.
131959         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
131960         that those two functions will always properly return.
131961         (IMMEDIATE_QUIT_CHECK): Cast to void.
131962         (analyse_first): Use recursion rather than an explicit stack.
131963         (re_compile_fastmap): Can't fail anymore.
131964         (re_search_2): Don't check re_compile_fastmap for failure.
131965         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
131966         Now also sets the new value (passed in a new argument).
131967         (re_match_2_internal): Use it.
131968         Also, use a new var `reg' of type size_t when looping through regs
131969         rather than reuse the inappropriate `mcnt'.
131971 2000-10-25  Jim Meyering  <meyering@lucent.com>
131973         * lib/obstack.c: Update from libc.
131975 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
131977         * regex.c (regex_compile): Change the way of handling a range from
131978         a char less than 256 to a char not less than 256.
131980 2000-10-24  Andrew Innes  <andrewi@gnu.org>
131982         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
131983         NT-Emacs only.
131984         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
131985         so that re_search functions only quit when callers expect them to.
131987 2000-10-23  Jim Meyering  <meyering@lucent.com>
131989         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
131990         wrong.  That set_locale call must not have any side effects.
131991         From Paul Eggert.
131993 2000-10-22  Jim Meyering  <meyering@lucent.com>
131995         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
131996         [CYCLIC]: Remove now-unused definition.
131998         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
131999         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
132000         Suggestion from Ulrich Drepper.
132002 2000-10-21  Jim Meyering  <meyering@lucent.com>
132004         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
132005         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
132006         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
132008 2000-10-21  Jim Meyering  <meyering@lucent.com>
132010         * lib/dirname.c (memrchr): Declare if necessary.
132011         (dir_name): Remove the restriction that there be no
132012         trailing slashes.  Now, this code skips past them, effectively
132013         ignoring them.
132014         [TEST_DIRNAME] (main): New unit tests.
132016         * lib/memrchr.c: New file from GNU libc.
132017         Undef __memrchr, too.
132018         [!weak_alias]: Define __memrchr to memrchr.
132019         Guard weak_alias use with `#ifdef weak_alias'.
132021 2000-10-21  Jim Meyering  <meyering@lucent.com>
132023         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
132024         (dir_name): Use dir_name_r.
132025         * lib/dirname.h (dir_name_r): Declare it.
132027 2000-10-17  Jim Meyering  <meyering@lucent.com>
132029         * lib/quote.h (PARAMS): Define and use.
132030         Reported by Akim Demaille.
132032         * lib/getopt.c: Update from libc.
132034 2000-10-16  Jim Meyering  <meyering@lucent.com>
132036         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
132037         setlocale.
132038         From Jan Fedak.
132040 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
132042         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
132044 2000-09-25  Jim Meyering  <meyering@lucent.com>
132046         * lib/md5.h (rol): Define (from GnuPG).
132048         * lib/sha.c: Give credit (GnuPG) where due.
132049         (M): Use rol rather than open-coding it.
132050         Add a FIXME comment.
132052 2000-09-21  Jim Meyering  <meyering@lucent.com>
132054         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
132055         Reported by Michael Stone.
132057 2000-09-20  Jim Meyering  <meyering@lucent.com>
132059         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
132060         (noinst_HEADERS): Add sha.h.
132061         Based on code from Scott G. Miller and from GnuPG.
132063 2000-09-18  Jim Meyering  <meyering@lucent.com>
132065         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
132066         LIBS. Otherwise, everyone ends up linking with -lelf for some
132067         configurations.
132068         Reported by Mike Stone.
132070 2000-09-15  Jim Meyering  <meyering@lucent.com>
132072         * lib/regex.c: Update from libc.
132074 2000-09-10  Jim Meyering  <meyering@lucent.com>
132076         * lib/getopt.c (_getopt_internal): Update from glibc.
132078 2000-09-09  Jim Meyering  <meyering@lucent.com>
132080         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
132081         think it should be used as a general replacement for isascii.
132082         * lib/fnmatch.c: Likewise.
132083         * lib/mbswidth.c: Likewise
132084         * lib/regex.c: Likewise.
132086         Don't use atoi.
132087         * lib/userspec.c: Include sys/param.h and limits.h.
132088         Include xstrtol.h.
132089         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
132090         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
132091         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
132092         UID, GID.  Check range.
132094 2000-09-06  Jim Meyering  <meyering@lucent.com>
132096         * lib/getopt.c (_getopt_internal): Update from glibc.
132098 2000-08-30  Jim Meyering  <meyering@lucent.com>
132100         * lib/strftime.c: Merge in changes from GNU libc.
132102 2000-08-26  Jim Meyering  <meyering@lucent.com>
132104         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
132105         * m4/fpending.m4: New file.
132107 2000-08-26  Jim Meyering  <meyering@lucent.com>
132109         * lib/closeout.c: Include "__fpending.h".
132110         (close_stdout_status): Return right away if there's nothing to flush.
132112         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
132113         * lib/__fpending.c: New file.
132114         * lib/__fpending.h: New file.
132116 2000-08-20  Jim Meyering  <meyering@lucent.com>
132118         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
132119         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
132120         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
132122 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
132124         Improve fileutils installation on systems where running
132125         programs (like install) can't be unlinked.
132126         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
132127         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
132129 2000-08-07  Paul Eggert  <eggert@twinsun.com>
132131         Standardize on "memory exhausted" instead of "Memory exhausted"
132132         or "virtual memory exhausted".
132133         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
132134         "virtual memory exhausted".
132135         * lib/same.c (same_name): Invoke xalloc_die instead of printing
132136         our own message.
132137         * lib/userspec.c (parse_user_spec): Likewise.
132138         * lib/bumpalloc.h: comment fix
132139         * lib/same.c, userspec.c: Include xalloc.h.
132141         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
132142         not char *const and pointing to a constant array.
132143         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
132144         (xrealloc): Comment fix.
132146         * lib/userspec.c (parse_user_spec):
132147         Don't translate a message until just before returning,
132148         to avoid unnecessary translation.
132150 2000-08-07  Jim Meyering  <meyering@lucent.com>
132152         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
132153         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
132154         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
132155         getgroups.c, gethostname.c, getopt.h, group-member.c,
132156         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
132157         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
132158         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
132159         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
132160         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
132161         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
132162         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
132163         yesno.c: Back out Copyright date changes for each file with no change
132164         this year.  This eases coordination with other programs using the same
132165         source code modules.  From Paul Eggert.
132167 2000-08-06  Paul Eggert  <eggert@twinsun.com>
132169         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
132170         not char, for compatibility with glibc 2.1.3 strftime.c.
132172 2000-08-03  Greg McGary  <greg@mcgary.org>
132174         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
132175         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
132176         (EXTEND_BUFFER): Use them.
132178 2000-08-01  Jim Meyering  <meyering@lucent.com>
132180         * lib/dirname.c (ISSLASH): Define.
132181         (BACKSLASH_IS_PATH_SEPARATOR): Define.
132182         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
132183         both `\' and `/' may be use as path separators.
132184         Based on a patch from Prashant TR.
132186 2000-07-31  Paul Eggert  <eggert@twinsun.com>
132188         * lib/quotearg.c (quotearg_n_options): Don't make the initial
132189         slot vector a constant, since it might get modified.
132191 2000-07-31  Jim Meyering  <meyering@lucent.com>
132193         * lib/xmalloc.c: Use `virtual memory exhausted', not
132194         `Memory exhausted'.
132195         * lib/obstack.c (print_and_abort): Likewise.
132197 2000-07-30  Paul Eggert  <eggert@twinsun.com>
132199         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
132200         buffer, so that the caller can always quote one small
132201         component of a "memory exhausted" message in slot 0.
132202         From a suggestion by Jim Meyering.
132204 2000-07-30  Jim Meyering  <meyering@lucent.com>
132206         * lib/makepath.c (make_path): Quote the other instance, too.
132208         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
132209         (STATIC_BUF_SIZE): Define.
132210         (quotearg_n_options): Use only statically allocated storage when
132211         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
132212         than STATIC_BUF_SIZE.
132214 2000-07-29  Jim Meyering  <meyering@lucent.com>
132216         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
132217         * lib/dirname.c (dir_name): Likewise.
132219         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
132220         `/'.
132222         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
132223         (dir_name): Assert that there are no trailing slashes.
132225 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
132227         * lib/mbswidth.h (mbswidth): Add a flags argument.
132228         (mbswidth): New declaration.
132229         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
132230         * lib/mbswidth.c (mbswidth): Add a flags argument.
132231         (mbsnwidth): New function.
132233 2000-07-24  Jim Meyering  <meyering@lucent.com>
132235         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
132237 2000-07-23  Paul Eggert  <eggert@twinsun.com>
132239         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
132241 2000-07-23  Paul Eggert  <eggert@twinsun.com>
132243         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
132244         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
132245         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
132246         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
132247         invoke multibyte primitives.
132249 2000-07-23  Paul Eggert  <eggert@twinsun.com>
132251         * lib/quotearg.c:
132252         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
132253         so that mbstate_t is always defined.
132255         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
132256         be 1 in at least one GCC installation, and this configuration
132257         error is likely to be common.  Ignoring MB_LEN_MAX hurts
132258         performance on hosts that have mbrtowc but have only unibyte
132259         locales, but I assume these hosts are rare.
132261 2000-07-23  Paul Eggert  <eggert@twinsun.com>
132263         * lib/mbswidth.c (_XOPEN_SOURCE):
132264         Don't define; this causes problems on Solaris 7.
132265         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
132267 2000-07-23  Jim Meyering  <meyering@lucent.com>
132269         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
132270         too: getgrgid, getpwuid, getuid.
132272 2000-07-23  Jim Meyering  <meyering@lucent.com>
132274         * lib/basename.c (base_name): Add an assertion.
132276 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
132278         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
132279         shadow its mbsinit function.
132281 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
132283         * lib/mbswidth.h: New file.
132284         * lib/mbswidth.c: New file.
132285         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
132286         (noinst_HEADERS): Add mbswidth.h.
132288 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
132290         * lib/config.charset: Add support for FreeBSD. Improve support for
132291         HP-UX and IRIX 6.
132293 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
132295         * m4/mbswidth.m4: New file.
132296         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
132298 2000-07-15  Jim Meyering  <meyering@lucent.com>
132300         * lib/makepath.c: Include quote.h.
132301         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
132302         corresponding argument in a `quote (...)' call.
132303         Give better diagnostics.
132305         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
132306         (noinst_HEADERS): Add quote.h.
132308         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
132309         from tar's src/misc.c.
132310         * lib/quote.h: New file.  Prototypes for same.
132312 2000-07-14  Paul Eggert  <eggert@twinsun.com>
132314         From a suggestion by Bruno Haible.
132315         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
132316         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
132317         to decide whether to define the BeOS workaround macro;
132318         this adjusts to the change to AC_MBSTATE_T.
132320 2000-07-14  Jim Meyering  <meyering@lucent.com>
132322         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
132323         jm_AC_TYPE_UINTMAX_T.
132325 2000-07-13  Paul Eggert  <eggert@twinsun.com>
132327         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
132329         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
132330         quotearg_buffer_restyled): Add support for
132331         clocale_quoting_style.  Undo previous change to
132332         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
132333         and "{RIGHT QUOTATION MARK}" msgids.
132335 2000-07-10  Paul Eggert  <eggert@twinsun.com>
132337         From a suggestion by Bruno Haible.
132338         * m4/mbstate_t.m4 (AC_MBSTATE_T):
132339         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
132340         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
132341         and mbstate_t, to a single-part test that simply defines mbstate_t.
132342         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
132343         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
132345 2000-07-10  Jim Meyering  <meyering@lucent.com>
132347         * m4/strerror_r.m4: Mirror the correction made in autoconf.
132349         * m4/gnu-source.m4: Output to confdefs.h directly.
132350         Suggestion from Akim Demaille.
132352 2000-07-09  Paul Eggert  <eggert@twinsun.com>
132354         The old behavior of quoting `like this' doesn't look good with
132355         newer, ISO-style fonts.  See:
132356         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
132358         Instead, quote "like this" by default.  Let the translator
132359         tailor the locale-specific quoting behavior by providing
132360         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
132362         * lib/quotearg.c (N_): New macro.
132363         (gettext_default): New function.
132364         (quotearg_buffer_restyled): Use
132365         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
132366         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
132368 2000-07-09  Jim Meyering  <meyering@lucent.com>
132370         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
132371         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
132373         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
132374         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
132376 2000-07-09  Jim Meyering  <meyering@lucent.com>
132378         * lib/Most files: Update copyright dates to include 2000.
132380 2000-07-08  Jim Meyering  <meyering@lucent.com>
132382         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
132383         if not defined.
132384         (xgethostname): Remove now-unnecessary #ifdef.
132385         Move declaration of `err' into loop where it's used.
132387 2000-07-05  Paul Eggert  <eggert@twinsun.com>
132388         and Bruno Haible  <haible@clisp.cons.org>
132390         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
132391         only if the test for an object-type mbstate_t fails.  This
132392         prevents us from mistakenly reporting that mbstate_t is a
132393         system object type after we "#define mbstate_t int" to work
132394         around its lack.
132396 2000-07-05  Paul Eggert  <eggert@twinsun.com>
132397         and Bruno Haible  <haible@clisp.cons.org>
132399         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
132401 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
132403         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
132404         to strerror_r.
132405         Include <ctype.h> for use of isalpha.
132407 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
132409         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
132410         by allocating a larger buffer. Test the gethostname return value for
132411         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
132412         returns an error and ENAMETOOLONG isn't defined.
132414 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
132416         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
132417         dimension.
132419 2000-07-04  Jim Meyering  <meyering@lucent.com>
132421         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
132422         of the deprecated AC_CHECKING.
132424 2000-07-04  Jim Meyering  <meyering@lucent.com>
132426         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
132427         Reported by Bruno Haible.
132429 2000-07-04  Jim Meyering  <meyering@lucent.com>
132431         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
132432         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
132433         lacks mbrtowc.
132435 2000-07-03  Paul Eggert  <eggert@twinsun.com>
132437         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
132438         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
132440 2000-07-03  Paul Eggert  <eggert@twinsun.com>
132441         and Bruno Haible  <haible@clisp.cons.org>
132443         * lib/quotearg.c (mbrtowc):
132444         Assign to *pwc, and return 1 only if result is nonzero.
132445         (iswprint): Use ISPRINT when substituting our own mbrtowc.
132447 2000-07-03  Jim Meyering  <meyering@lucent.com>
132449         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
132451 2000-07-03  Jim Meyering  <meyering@lucent.com>
132453         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
132454         This is necessary to get a definition of e.g., UTMP_FILE on
132455         HP-UX 10.20.
132456         From Bob Proulx.
132458 2000-07-02  Jim Meyering  <meyering@lucent.com>
132460         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
132462         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
132463         AC_LIBOBJ(function_name).
132464         * m4/chown.m4: Likewise.
132465         * m4/fnmatch.m4: Likewise.
132466         * m4/ftruncate.m4: Likewise.
132467         * m4/getgroups.m4: Likewise.
132468         * m4/getline.m4: Likewise.
132469         * m4/group-member.m4: Likewise.
132470         * m4/jm-macros.m4: Likewise.
132471         * m4/lstat.m4: Likewise.
132472         * m4/malloc.m4: Likewise.
132473         * m4/memcmp.m4: Likewise.
132474         * m4/nanosleep.m4: Likewise.
132475         * m4/putenv.m4: Likewise.
132476         * m4/realloc.m4: Likewise.
132477         * m4/regex.m4: Likewise.
132478         * m4/stat.m4: Likewise.
132479         * m4/strftime.m4: Likewise.
132481 2000-07-02  Jim Meyering  <meyering@lucent.com>
132483         * lib/quotearg.c (mbstate_t): Don't define here.
132485 2000-07-02  Jim Meyering  <meyering@lucent.com>
132487         * lib/nanosleep.c (SIGCONT): Define if not already defined.
132489 2000-07-01  Jim Meyering  <meyering@lucent.com>
132491         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
132493 2000-07-01  Jim Meyering  <meyering@lucent.com>
132495         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
132496         problem.
132498 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
132500         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
132501         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
132503 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
132505         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
132506         per change in ../m4/ls-mntd-fs.m4.
132507         (read_filesystem_list): Ignore symbolic links.
132509 2000-06-29  Jim Meyering  <meyering@lucent.com>
132511         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
132512         for declaration of strcmp.
132514         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
132516         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
132517         Avoid warning by casting result to `char *' to remove `const'.
132519 2000-06-28  Jim Meyering  <meyering@lucent.com>
132521         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
132522         included by quotearg.c, for which we perform this test.  From
132523         Bruno Haible.
132525 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
132527         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
132528         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
132529         <utmpx.h> exists, put readutmp.o into LIBOBJS.
132531 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
132533         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
132535 2000-06-26  Paul Eggert  <eggert@twinsun.com>
132537         savedir now sets errno on failure and invokes xmalloc to get memory.
132538         Fix a couple of other minor bugs while we're at it.
132540         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
132541         (NAMLEN): Remove macro.
132542         (malloc, realloc): Remove decls.
132543         (stpcpy): Likewise.
132544         ("xalloc.h"): Include.
132545         (NAME_SIZE_DEFAULT): New macro.
132546         (savedir): Use xmalloc / xrealloc to allocate memory.
132547         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
132548         Skip "" directory entries.
132549         Use strlen to calculate directory entry length, since the old method
132550         is rarely used these days and isn't worth supporting.
132551         Don't use a pointer after freeing it.
132552         Check for integer overflow when calculating allocation size.
132553         Use memcpy to copy entries, instead of stpcpy.
132554         Set errno properly when returning NULL.
132555         Check for readdir error.
132557 2000-06-26  Jim Meyering  <meyering@lucent.com>
132559         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
132561 2000-06-25  Jim Meyering  <meyering@lucent.com>
132563         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
132564         Linux header bug when _XOPEN_SOURCE is defined to 500.
132566 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
132568         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
132569         deficiency.
132571 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
132573         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
132574         Include xalloc.h.
132575         Don't include <stdlib.h>.  Don't declare malloc, realloc.
132577 2000-06-24  Jim Meyering  <meyering@lucent.com>
132579         * m4/strerror_r.m4: Revive this file -- to try out an experimental
132580         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
132581         for which strerror does return char*, but which lacks a conveniently
132582         accessible declaration of the function.  If the compile-test says
132583         strerror_r doesn't work, then resort to a `run'-test that works on
132584         BeOS and segfaults on DEC Unix.
132586 2000-06-24  Jim Meyering  <meyering@lucent.com>
132588         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
132590 2000-06-23  Paul Eggert  <eggert@twinsun.com>
132592         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
132593         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
132595 2000-06-23  Paul Eggert  <eggert@twinsun.com>
132597         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
132598         (mbrtowc, mbstate_t): Define substitutes if
132599         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
132600         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
132601         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
132603 2000-06-23  Jim Meyering  <meyering@lucent.com>
132605         * m4/afs.m4: Add missing AC_MSG_RESULT.
132606         Reported by Bruno Haible.
132608         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
132609         Suggestion from Bruno Haible.
132611 2000-06-23  Jim Meyering  <meyering@lucent.com>
132613         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
132615 2000-06-21  Jim Meyering  <meyering@lucent.com>
132617         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
132619 2000-06-21  Jim Meyering  <meyering@lucent.com>
132621         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
132622         (noinst_HEADERS): Add getstr.h.
132624         * lib/getline.c (getstr): Move into a separate file.
132625         * lib/getstr.c (getstr): New file, extracted from getline.c, with
132626         the following changes: new parameter, delim2; both delim[12]
132627         parameters have type `int', not `char'.  The latter would lose
132628         with 8-bit delimiters.
132629         * lib/getstr.h: New file.
132631 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
132633         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
132634         than 1024, return a memory chunk of least possible size, instead
132635         of size PATH_MAX + 2. In the loop, increment the size proportionally.
132636         Use free/xmalloc instead of xrealloc to avoid copying for very long
132637         paths.
132639 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
132641         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
132642         the empty string.
132644 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
132646         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
132647         address, not strdup.  Include <stdlib.h> and don't declare free().
132649 2000-06-19  Jim Meyering  <meyering@lucent.com>
132651         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
132653 2000-06-18  Jim Meyering  <meyering@lucent.com>
132655         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
132657         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
132658         `checking whether...' message to be consistent with that of the
132659         lstat test.
132661 2000-06-18  Jim Meyering  <meyering@lucent.com>
132663         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
132664         Besides, these days every porting target provides a mkdir function.
132666         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
132667         needed. (this snippet comes from src/system.h).
132669 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
132671         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
132673 2000-06-15  Paul Eggert  <eggert@twinsun.com>
132675         * lib/human.c (adjust_value): New function.
132676         (human_readable_inexact): Apply rounding style even when
132677         printing approximate values.
132679 2000-06-14  Paul Eggert  <eggert@twinsun.com>
132681         * lib/human.c (human_readable_inexact): Allow an input block
132682         size that is not a multiple of the output block size, and vice versa.
132683         Reported by Piergiorgio Sartor.
132685 2000-06-14  Paul Eggert  <eggert@twinsun.com>
132687         * lib/getdate.y (get_date): Apply relative times after time
132688         zone indicator, not before.  Reported by Todd A. Jacobs.
132690 2000-06-13  Jim Meyering  <meyering@lucent.com>
132692         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
132694         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
132696 2000-06-12  Paul Eggert  <eggert@twinsun.com>
132698         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
132700 2000-06-12  Jim Meyering  <meyering@lucent.com>
132702         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
132703         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
132704         optional argument.
132705         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
132706         the optional argument, `lib'.
132708 2000-06-08  Jim Meyering  <meyering@lucent.com>
132710         * m4/largefile.m4: Remove file (now that it's part of autoconf).
132712 2000-06-04  Paul Eggert  <eggert@twinsun.com>
132714         Rewrite largefile configuration so that we don't need to run
132715         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
132716         AC_CANONICAL_HOST in configure.in -- jmm]
132718         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
132719         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
132720         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
132721         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
132722         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
132723         All uses changed.
132724         Instead of inspecting the output of getconf, try to compile the
132725         test program without and with the macro definition.
132726         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
132727         for getconf.  Instead, check for the needed flags by compiling
132728         test programs.
132730 2000-06-04  Paul Eggert  <eggert@twinsun.com>
132732         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
132734 2000-06-04  Jim Meyering  <meyering@lucent.com>
132736         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
132737         SunOS 4.1.4 for which gid_t is an unsigned type.
132739 2000-06-03  Jim Meyering  <meyering@lucent.com>
132741         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
132742         now that autoconf requires that.
132744         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
132745         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
132746         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
132748 2000-06-03  Jim Meyering  <meyering@lucent.com>
132750         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
132752 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
132754         * m4/glibc21.m4: New file.
132755         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
132757 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
132759         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
132760         newer, don't install charset.alias.
132761         * lib/config.charset: Change the Linux/glibc rules so they become empty
132762         on glibc-2.1 or newer.
132764 2000-06-02  Jim Meyering  <meyering@lucent.com>
132766         * lib/mountlist.c: Back out last change.  Instead, do this...
132767         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
132768         me_dummy member using the same `ignore'-testing code.
132769         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
132770         fs_type strings.
132771         From Mark D. Roth.
132773 2000-05-29  Jim Meyering  <meyering@lucent.com>
132775         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
132776         mounts with the `ignore' attribute.  Based on a patch from
132777         Mark D. Roth.
132779 2000-05-28  Jim Meyering  <meyering@lucent.com>
132781         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
132782         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
132783         * m4/stat.m4: Likewise.
132784         * m4/lstat.m4: Likewise.
132785         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
132787         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
132788         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
132790 2000-05-26  Jim Meyering  <meyering@lucent.com>
132792         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
132794 2000-05-24  Jim Meyering  <meyering@lucent.com>
132796         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
132797         autoconf requires that.
132798         * m4/lib-check.m4: Likewise.
132799         * m4/jm-macros.m4: Likewise.
132800         * m4/strftime.m4: Likewise.
132802         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
132803         AC_CHECK_DECLS, now that autoconf requires that.
132805 2000-05-22  Jim Meyering  <meyering@lucent.com>
132807         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
132808         * m4/lstat.m4: Likewise.
132810 2000-05-22  Jim Meyering  <meyering@lucent.com>
132812         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
132814 2000-05-20  Jim Meyering  <meyering@lucent.com>
132816         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
132817         (jm_PREREQ): Use it.
132819 2000-05-18  Jim Meyering  <meyering@lucent.com>
132821         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
132822         back, too, since it may have been modified by allocate_entry.
132823         (hash_delete): Rewrite to use neither the assignment operator
132824         nor the comma operator in an if-expression.
132826 2000-05-15  Paul Eggert  <eggert@twinsun.com>
132828         * lib/closeout.c:
132829         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
132830         Remove; no longer needed.
132831         "quotearg.h": Add include.
132832         (file_name): Do not bother to explicitly initialize to NULL; it's less
132833         efficient on some hosts.
132834         (close_stdout_status): Remove test as to whether stdout was already
132835         closed; it breaks for the case "echo x | sort >&-".
132836         Quote file name colons.
132837         Do not assume that _("write error") lacks format strings.
132839 2000-05-15  Jim Meyering  <meyering@lucent.com>
132841         * lib/version-etc.c (version_etc_copyright): Update the copyright
132842         string used in all --version output.
132844 2000-05-14  Jim Meyering  <meyering@lucent.com>
132846         * lib/closeout.c (close_stdout_set_file_name): New function.
132847         (close_stdout_status): Use new file-scoped global.
132848         Return right away if fstat says the stdout file descriptor is invalid.
132849         * lib/closeout.h (close_stdout_set_file_name): Declare.
132851 2000-05-10  Jim Meyering  <meyering@lucent.com>
132853         * lib/closeout.c [default_exit_status]: New file-scoped variable.
132854         (close_stdout_set_status): New function.
132855         * lib/closeout.h (close_stdout_set_status): Declare.
132857 2000-05-09  Jim Meyering  <meyering@lucent.com>
132859         * m4/gettext.m4: Rename this...
132860         * m4/libintl.m4: ...to this.
132862 2000-05-08  Jim Meyering  <meyering@lucent.com>
132864         * lib/long-options.c: Don't include closeout.h.
132865         (parse_long_options): Don't call close_stdout for --version.
132867 2000-05-06  Paul Eggert  <eggert@twinsun.com>
132869         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
132870         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
132871         2.1.3 bug.  This avoids a clash when files like regex.c define
132872         _GNU_SOURCE.
132874 2000-05-06  Jim Meyering  <meyering@lucent.com>
132876         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
132877         (AC_REPLACE_FUNCS): Add strnlen.
132879         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
132880         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
132882         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
132883         AC_SEARCH_LIBS call for nanosleep.
132884         (LIB_NANOSLEEP): Set and AC_SUBST.
132886 2000-05-06  Jim Meyering  <meyering@lucent.com>
132888         * lib/strnlen.c: Undefine __strnlen and strnlen.
132889         [!weak_alias]: Define __strnlen to strnlen.
132891         * lib/atexit.c: New file, from libiberty.
132893 2000-05-06  Jim Meyering  <meyering@lucent.com>
132895         * lib/closeout.c (close_stdout_status): Also check for errors on the
132896         stderr stream.
132898 2000-05-05  Jim Meyering  <meyering@lucent.com>
132900         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
132901         AC_SEARCH_LIBS call for clock_gettime.
132902         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
132904         * m4/search-libs.m4: Update from autoconf.
132906         su doesn't work on Solaris 2.6.
132907         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
132908         <shadow.h>.  Reported by Dragos Harabor.
132910 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
132912         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
132913         memcpy instead of xmalloc, xrealloc, path_concat.
132914         (locale_charset): Treat empty environment variables as absent.
132915         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
132917 2000-05-04  Jim Meyering  <meyering@lucent.com>
132919         * lib/getopt.c: Update from glibc.
132920         * lib/obstack.c: Likewise.
132921         * lib/obstack.h: Likewise.
132922         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
132923         file
132925         * lib/regex.h: Likewise.
132926         * lib/strndup.c: Likewise.
132927         * lib/strnlen.c: New file, from glibc.
132929 2000-05-03  Jim Meyering  <meyering@lucent.com>
132931         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
132933 2000-05-02  Paul Eggert  <eggert@twinsun.com>
132935         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
132936         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
132937         compile-time test, rather than inspecting host and OS, to
132938         decide whether to define _LARGEFILE_SOURCE.
132940 2000-05-01  Jim Meyering  <meyering@lucent.com>
132942         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
132944         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
132945         Based on a patch from Bruno Haible.
132947 2000-05-01  Jim Meyering  <meyering@lucent.com>
132949         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
132951 2000-04-29  Jim Meyering  <meyering@lucent.com>
132953         * lib/path-concat.c: Declare strdup only if it's not defined.
132954         * lib/canon-host.c: Likewise.
132956 2000-04-28  Jim Meyering  <meyering@lucent.com>
132958         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
132959         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
132960         is included first, then limits.h is included by locale.h by libintl.h.
132961         From John David Anglin.
132963 2000-04-25  Jim Meyering  <meyering@lucent.com>
132965         * lib/makepath.c (S_IRWXUGO): Define.
132966         (make_path): Always perform explicit chmod if MODE specifies any
132967         of the `special' permission bits.  Prompted by a bug report against
132968         install from Mate Wierdl and Joost van Baal.
132970 2000-04-18  Jim Meyering  <meyering@lucent.com>
132972         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
132973         (jm_PREREQ): Use it.
132975 2000-04-18  Jim Meyering  <meyering@lucent.com>
132977         * lib/README: New file.
132979         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
132980         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
132982 2000-04-17  Jim Meyering  <meyering@lucent.com>
132984         Get it right :-)
132985         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
132986         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
132987         Suggestion from Akim Demaille.
132989 2000-04-17  Jim Meyering  <meyering@lucent.com>
132991         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
132992         the definition of it to rpl_strftime also defined-away the system's
132993         declaration.
132995 2000-04-15  Jim Meyering  <meyering@lucent.com>
132997         Use `C' to denote so-called `contiguous' files, the same way
132998         that tar does.
132999         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
133000         (ftypelet): Use S_ISCTG.
133001         From Michael Deutschmann.
133003 2000-04-14  Jim Meyering  <meyering@lucent.com>
133005         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
133006         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
133007         clobbered.
133009 2000-04-14  Jim Meyering  <meyering@lucent.com>
133011         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
133013 2000-04-13  Jim Meyering  <meyering@lucent.com>
133015         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
133016         AH_VERBATIM to insert required #ifndef into config.h.in.
133017         Suggestion from Akim Demaille.
133019 2000-04-12  Jim Meyering  <meyering@lucent.com>
133021         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
133022         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
133023         Christian Krackowizer.
133025         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
133026         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
133027         (AC_SYS_LARGEFILE): Require.
133028         (AM_C_PROTOTYPES): Require.
133030 2000-04-08  Jim Meyering  <meyering@lucent.com>
133032         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
133033         names don't conflict.  Reported by Eli Zaretskii.
133035 2000-04-07  Jim Meyering  <meyering@lucent.com>
133037         * lib/putenv.c: Move inclusion of errno.h so it follows that of
133038         sys/types.h, to work around system header problems on AIX 3.2.5.
133039         From Bruno Haible.
133041 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
133043         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
133044         bug.  Deal with the different error behavior of Irix iconv.
133046 2000-04-05  Paul Eggert  <eggert@twinsun.com>
133048         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
133049         IRIX if the installer said otherwise.
133051 2000-04-05  Jim Meyering  <meyering@lucent.com>
133053         Portability tweaks required for ultrix4.3.
133054         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
133055         (jm_CHECK_DECLS): Add getutent to the list of functions.
133056         (_jm_DECL_HEADERS): Add utmpx.h.
133057         From John David Anglin.
133059         * m4/strftime.m4: Back out the 2000-04-02 change.
133060         Instead of that change, simply undefine putenv in the test program.
133062 2000-04-05  Jim Meyering  <meyering@lucent.com>
133064         Portability tweaks required for ultrix4.3.
133065         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
133066         getutent.
133067         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
133068         * lib/canon-host.c: Declare strdup.
133069         * lib/path-concat.c: Likewise.
133070         From John David Anglin.
133072 2000-04-04  Jim Meyering  <meyering@lucent.com>
133074         Be more DOS 8.3-friendly.
133075         * lib/ref-add.sin: Renamed from ref-add.sed.in.
133076         * lib/ref-del.sin: Renamed from ref-del.sed.in.
133077         * lib/Makefile.am: Reflect renaming.
133078         Reported by Eli Zaretskii.
133080         Use a temporary file name that won't clash with `charset.alias'
133081         in the DOS 8.3 name space.
133082         * lib/Makefile.am (charset_tmp): Define.
133083         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
133084         (uninstall-local): Likewise.
133085         Reported by Eli Zaretskii.
133087 2000-04-03  Jim Meyering  <meyering@lucent.com>
133089         * m4/gettext.m4: Fix typo in comment.
133091         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
133092         textutils/configure.in).  Suggestion from Paul Eggert.
133093         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
133095 2000-04-02  Paul Eggert  <eggert@twinsun.com>
133097         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
133098         variable in the shell rather than using putenv, which isn't
133099         portable.  This avoids the configure-time inter-test dependency
133100         on the potentially-renamed putenv function.
133102 2000-03-30  Paul Eggert  <eggert@twinsun.com>
133104         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
133105         before checking struct stat.st_blksize, so that
133106         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
133108 2000-03-29  Paul Eggert  <eggert@twinsun.com>
133110         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
133111         since strftime.c uses HAVE_STRFTIME to decide whether to use
133112         the underlying strftime.
133114 2000-03-29  Paul Eggert  <eggert@twinsun.com>
133116         * lib/time/strftime.c (my_strftime): Make sure we call the system
133117         strftime, not ourselves, when invoking the underlying strftime.
133119 2000-03-24  Jim Meyering  <meyering@lucent.com>
133121         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
133122         (charset_alias): Define.
133123         (install-exec-local): Factor out common code.
133124         (uninstall-local): Split lines longer than 80.
133125         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
133126         (SUFFIXES): Define.
133127         (.sed.in.sed): New rule.  Don't redirect directly to $@.
133128         (CLEANFILES): Add ref-add.sed and ref-del.sed.
133130 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
133132         * lib/config.charset: Output a line containing "Packages using this
133133         file".
133134         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
133135         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
133136         ref-del.sed): New rules.
133138 2000-03-17  Jim Meyering  <meyering@lucent.com>
133140         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
133141         Otherwise, include <strings.h>
133143 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
133145         * lib/unicodeio.c (utf8_wctomb): New function.
133146         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
133147         format instead of in UCS-4 with platform dependent endianness.
133149 2000-03-10  Jim Meyering  <meyering@lucent.com>
133151         * m4/lib-check.m4: Look for getspnam in -lgen, too.
133152         From Marco Franzen.
133154 2000-03-07  Paul Eggert  <eggert@twinsun.com>
133156         * lib/savedir.c (savedir): Work even if directory size is
133157         negative; this can happen with some screwy NFS configurations.
133159 2000-03-06  Jim Meyering  <meyering@lucent.com>
133161         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
133162         if it's NULL (because we ran out of memory).  From Bruno Haible.
133164 2000-03-05  Jim Meyering  <meyering@lucent.com>
133166         * lib/localcharset.c ("path-concat.h"): Include.
133167         (get_charset_aliases): Use path_concat instead of ANSI string
133168         concatenation.
133170         * lib/unicodeio.h (PARAMS): Define.
133171         Use it to guard prototype.
133173 2000-03-04  Jim Meyering  <meyering@lucent.com>
133175         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
133176         for lib/localcharset.c.
133178 2000-03-04  Jim Meyering  <meyering@lucent.com>
133180         * lib/Makefile.am (install-exec-local): Create $(libdir) before
133181         installing into it.
133182         (uninstall-local): Uncomment this rule so `make distcheck' works
133183         once again.
133185         * lib/unicodeio.c (<errno.h>): Include it.
133186         (errno): Declare if not defined.
133188         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
133190         * lib/config.charset: New version, incorporating remarks from a linux
133191         i18n mailing list.  From Bruno Haible.
133193 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
133195         * m4/codeset.m4: New file.
133196         * m4/iconv.m4: New file.
133197         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
133199 2000-03-03  Jim Meyering  <meyering@lucent.com>
133201         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
133203 2000-03-02  Jim Meyering  <meyering@lucent.com>
133205         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
133206         the messages come out on separate lines.
133208         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
133209         rather than jm_CHECK_DECLARATIONS.
133210         * m4/decl.m4: Remove now-unused file.
133212         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
133213         geteuid.
133215 2000-03-02  Jim Meyering  <meyering@lucent.com>
133217         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
133219 2000-03-01  Jim Meyering  <meyering@lucent.com>
133221         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
133222         * lib/unicodeio.c: Likewise.
133224 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
133226         * lib/config.charset: New file.
133227         * lib/localcharset.c: New file.
133228         * lib/unicodeio.h, lib/unicodeio.c: New files.
133229         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
133230         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
133231         (noinst_HEADERS): Add unicodeio.h.
133232         (all-local, install-exec-local, charset.alias): New targets.
133234 2000-02-28  Paul Eggert  <eggert@twinsun.com>
133236         * lib/quotearg.c (ALERT_CHAR): New macro.
133237         (quotearg_buffer_restyled): Use it.
133239 2000-02-27  Jim Meyering  <meyering@lucent.com>
133241         * m4/check-decl.m4: Add getenv to the list.
133243 2000-02-27  Jim Meyering  <meyering@lucent.com>
133245         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
133246         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
133248         * lib/backupfile.c: Guard inclusion of stdlib.h with
133249         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
133250         Declare malloc if needed.
133252         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
133253         `#ifndef HAVE_DECL..'
133254         now that autoconf always defines the HAVE_DECL_ symbols.
133255         * lib/human.c: Likewise.
133256         * lib/same.c: Likewise.
133257         * lib/strtoumax.c: Likewise.
133259         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
133260         declaration check was not run.
133261         * lib/hash.c: Likewise.
133262         * lib/human.c: Likewise.
133263         * lib/same.c: Likewise.
133264         * lib/strtoumax.c: Likewise.
133266         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
133267         `.', then first look up the entire `.'-containing string as a login
133268         name.
133270 2000-02-23  Jim Meyering  <meyering@lucent.com>
133272         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
133273         in place of my hack.
133275 2000-02-18  Paul Eggert  <eggert@twinsun.com>
133277         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
133278         (textint): New typedef.
133279         (parser_control): Member year changed from int to textint.
133280         All uses changed.
133281         (YYSTYPE): Removed; replaced by %union with int and textint members.
133282         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
133283         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
133284         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
133285         (tSNUMBER, tUNUMBER): Now of type <textintval>.
133286         (date, number, to_year): Use width of number in digits, not its value,
133287         to determine whether it's a 2-digit year, or a 2-digit time.
133288         (yylex): Store number of digits of numeric tokens.
133289         Reported by John Kendall.
133291         (parser_control): Changed from struct parser_control to typedef (for
133292         consistency).  All uses changed.
133294         (tID): Removed; not used.
133295         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
133297 2000-02-14  Paul Eggert  <eggert@twinsun.com>
133299         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
133300         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
133302 2000-02-12  Jim Meyering  <meyering@lucent.com>
133304         * lib/userspec.c (ISDIGIT): Define it.
133305         (isdigit): Remove definition.
133306         (is_number): Use ISDIGIT, not isdigit.
133307         <libintl.h>: Include.
133308         (_ and N_): Define.
133309         (parse_user_spec): Mark translatable strings.
133311 2000-02-10  Jim Meyering  <meyering@lucent.com>
133313         With these changes, nanosleep.[ch] are finally enough like the other
133314         lib/* replacement files to compile on a few more losing systems.
133316         * lib/nanosleep.h: Don't include config.h.
133317         Remove prototype from declaration of nanosleep.
133318         (PARAMS): Remove now-unneeded definition.
133319         * lib/nanosleep.c: #undef nanosleep.
133320         (rpl_nanosleep): Rename from nanosleep.
133322 2000-02-10  Jim Meyering  <meyering@lucent.com>
133324         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
133325         gnu_nanosleep to rpl_nanosleep.
133327 2000-02-09  Jim Meyering  <meyering@lucent.com>
133329         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
133330         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
133332 2000-02-08  Akim Demaille  <akim@epita.fr>
133334         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
133335         `[' and `]' and remove uses of `changequote'.
133336         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
133337         (AC_SYS_LARGEFILE): Likewise.
133338         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
133339         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
133340         of changequote.
133341         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
133342         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
133343         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
133344         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
133346 2000-02-05  Jim Meyering  <meyering@lucent.com>
133348         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
133349         Remove explicit use of AC_HEADER_TIME.  It is required by
133350         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
133351         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
133352         in autoconf whereby the expansion of the latter ended up preceding
133353         the expansion of its prerequisite, AC_HEADER_TIME.
133354         Reported by Volker Borchert.
133356 2000-02-03  Jim Meyering  <meyering@lucent.com>
133358         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
133360 2000-02-03  Jim Meyering  <meyering@lucent.com>
133362         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
133363         rather than with `#if HAVE_UTMPNAME'.
133365 2000-02-02  Jim Meyering  <meyering@lucent.com>
133367         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
133368         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
133369         Reported by Eli Zaretskii.
133371 2000-02-01  Jim Meyering  <meyering@lucent.com>
133373         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
133375 2000-01-31  Jim Meyering  <meyering@lucent.com>
133377         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
133378         functions.  Add the time.h and sys/time.h headers along with the
133379         AC_REQUIRE'ment of AC_HEADER_TIME.
133381 2000-01-31  Jim Meyering  <meyering@lucent.com>
133383         * lib/nanosleep.h (nanosleep): Guard declaration with
133384         `#if ! HAVE_DECL_NANOSLEEP'.
133385         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
133386         the declaration in that vendor's sys/timers.h.
133387         Reported by Christian Krackowizer.
133389         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
133390         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
133391         (ISPRINT): Likewise.
133392         Reported by Tom Tromey.
133394 2000-01-30  Jim Meyering  <meyering@lucent.com>
133396         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
133398         * m4/prereq.m4 (utmp_includes): Define.
133399         Check for ut_user and ut_name members in both struct utmpx
133400         and struct utmp.
133402 2000-01-30  Jim Meyering  <meyering@lucent.com>
133404         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
133405         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
133406         header files where only utmpx.ut_user is declared.
133408         * lib/readutmp.h (UT_USER): Define.
133410 2000-01-29  Jim Meyering  <meyering@lucent.com>
133412         * m4/lib-check.m4: New file containing library-related checks from
133413         fileutils and sh-utils (textutils had none).
133415 2000-01-28  Jim Meyering  <meyering@lucent.com>
133417         * m4/perl.m4: Change format of warning message to look more like that
133418         from the missing script.  Suggestion from François Pinard.
133420 2000-01-25  Jim Meyering  <meyering@lucent.com>
133422         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
133423         well as time.h in the compile check.
133424         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
133425         Fix typo in cross-compiling case: s/yes/no/.
133427 2000-01-23  Jim Meyering  <meyering@lucent.com>
133429         * m4/jm-macros.m4: Move df-related tests here from
133430         fileutils/configure.in
133432         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
133433         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
133435         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
133436         s/space/ac_fsusage_space/.
133437         (jm_FILE_SYSTEM_USAGE): Take two parameters.
133439         * m4/ftruncate.m4: New file (derived from part of
133440         fileutils/configure.in).
133441         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
133442         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
133444         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
133445         AC_SUBST these here, rather than just in sh-util/configure.in, so
133446         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
133447         all the same.
133448         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
133449         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
133450         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
133451         (AC_SUBST(POW_LIBM)): Likewise.
133452         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
133454 2000-01-23  Jim Meyering  <meyering@lucent.com>
133456         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
133457         obstack.c.
133459 2000-01-22  Jim Meyering  <meyering@lucent.com>
133461         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
133463         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
133465         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
133466         configure.in
133467         (AC_CHECK_HEADERS): Likewise for sh-utils.
133468         (AC_CHECK_HEADERS): Likewise for textutils.
133469         Merge the three lists of headers.
133471         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
133472         from fileutils' configure.in.
133474         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
133475         code. Moved tests into their own function (_jm_DECL_HEADERS) in
133476         check-decl.m4.
133478         * m4/check-decl.m4: Use #if rather than #ifdef.
133479         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
133480         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
133481         (_jm_DECL_HEADERS): Define new function.
133482         (jm_CHECK_DECLARATIONS): Require it.
133484 2000-01-22  Jim Meyering  <meyering@lucent.com>
133486         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
133487         [! HAVE_DECL_STRTOULL]: Declare strtoull.
133488         Required for some AIX systems.  Reported by Christian Krackowizer.
133489         [TESTING] (main): New function.
133491         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
133492         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
133493         letters.
133495         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
133496         iswprint.
133498         * lib/strverscmp.c (ISDIGIT): Define.
133499         (strverscmp): Use ISDIGIT, not isdigit.
133501 2000-01-19  Jim Meyering  <meyering@lucent.com>
133503         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
133504         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
133505         defines `struct timespec' in <sys/time.h>
133507         * m4/c-bs-a.m4: Remove uses of changequote altogether.
133508         Thanks to Akim for explaining.
133510 2000-01-17  Paul Eggert  <eggert@twinsun.com>
133512         * lib/nanosleep.c (nanosleep):
133513         Don't use SA_INTERRUPT to decide whether to call sigaction, as
133514         POSIX.1 doesn't require SA_INTERRUPT and some systems
133515         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
133516         it's been part of POSIX.1 since day 1 (in 1988).
133518 2000-01-17  Jim Meyering  <meyering@lucent.com>
133520         * lib/interlock: Remove unused file.  Reported by François Pinard.
133522 2000-01-16  Paul Eggert  <eggert@twinsun.com>
133524         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
133525         alert, backslash, formfeed, and vertical tab unnecessarily in
133526         shell quoting style.
133528 2000-01-16  Jim Meyering  <meyering@lucent.com>
133530         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
133531         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
133532         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
133533         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
133535 2000-01-16  Jim Meyering  <meyering@lucent.com>
133537         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
133538         because the latter didn't work.
133540 2000-01-15  Jim Meyering  <meyering@lucent.com>
133542         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
133543         (AC_REPLACE_FUNCS): Add memcpy and memset.
133544         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
133545         Add strpbrk.
133546         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
133548 2000-01-12  Jim Meyering  <meyering@lucent.com>
133550         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
133551         (jm_PREREQ): Use it.
133552         (jm_PREREQ_READUTMP): New macro.
133553         (jm_PREREQ): Use it.
133555 2000-01-11  Paul Eggert  <eggert@twinsun.com>
133557         Quote multibyte characters correctly.
133558         * m4/c-bs-a.m4: New file.
133559         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
133560         (jm_PREREQ): Use it.
133562 2000-01-11  Paul Eggert  <eggert@twinsun.com>
133564         * m4/uintmax_t.m4: Port to autoconf 2.13.
133566 2000-01-08  Jim Meyering  <meyering@ascend.com>
133568         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
133569         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
133571 2000-01-04  Jim Meyering  <meyering@ascend.com>
133573         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
133574         jm_STRUCT_DIRENT_D_TYPE.
133575         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
133576         jm_STRUCT_DIRENT_D_INO.
133577         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
133578         jm_STRUCT_UTIMBUF.
133579         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
133580         renamings.
133581         * m4/utime.m4: Likewise.
133583         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
133584         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
133586 2000-01-03  Paul Eggert  <eggert@twinsun.com>
133588         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
133589         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
133591 2000-01-02  Jim Meyering  <meyering@ascend.com>
133593         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
133594         remember if this is necessary.
133596 1999-12-26  Jim Meyering  <meyering@ascend.com>
133598         * m4/jm-macros.m4: Use it here.
133599         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
133601 1999-12-23  Jim Meyering  <meyering@ascend.com>
133603         * m4/jm-macros.m4: Check for clock_gettime (moved from
133604         fileutils/configure.in)
133605         Check for gettimeofday.
133607 1999-12-20  Jim Meyering  <meyering@ascend.com>
133609         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
133610         autoconf-2.14a-1999-12-20.
133612 1999-12-19  Jim Meyering  <meyering@ascend.com>
133614         * m4/lstat-slash.m4: New file.
133615         * m4/jm-macros.m4: Use the new macro:
133616         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
133618 1999-12-07  Jim Meyering  <meyering@ascend.com>
133620         * m4/perl.m4: Require that File::Compare be available, too.
133621         Too many systems seem to lack it.
133623         * m4/strftime.m4: Add checks for most of the cpp macros tested in
133624         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
133626 1999-11-18  Paul Eggert  <eggert@twinsun.com>
133628         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
133629         problem with the QNX 4.25 shell, which doesn't propagate exit
133630         status of failed commands inside shell assignments.
133632 1999-11-17  Jim Meyering  <meyering@ascend.com>
133634         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
133636 1999-11-07  Jim Meyering  <meyering@ascend.com>
133638         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
133640 1999-11-06  Jim Meyering  <meyering@ascend.com>
133642         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
133643         * m4/jm-macros.m4 (jm_MACROS): Use it here.
133645 1999-11-05  Jim Meyering  <meyering@ascend.com>
133647         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
133648         configure.in of textutils, fileutils, and sh-utils into this one
133649         (shared between those packages) file.
133650         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
133651         AC_STRUCT_ST_BLKSIZE.
133653 1999-11-03  Jim Meyering  <meyering@ascend.com>
133655         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
133656         of AC_CHECK_TYPE checks includes unistd.h.
133657         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
133658         Suggestion from Akim Demaille.
133660 1999-10-30  Jim Meyering  <meyering@ascend.com>
133662         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
133663         m4-quoted string.
133664         * m4/ls-mntd-fs.m4: Likewise.
133665         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
133666         * m4/jm-winsz1.m4: Likewise.
133668         * m4/const.m4: Remove file, since the fix made it into the experimental
133669         version of autoconf.
133670         * m4/mktime.m4: Likewise.
133672         * m4/check-type.m4: Remove file, now that the latest version of
133673         AC_CHECK_TYPE takes a third arg to specify additional #includes.
133675         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
133676         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
133677         AC_CHECK_TYPE.
133679 1999-10-04  Jim Meyering  <meyering@ascend.com>
133681         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
133683 1999-09-22  Paul Eggert  <eggert@twinsun.com>
133685         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
133686         2.95.1 bug with HP-UX 10.20.
133688 1999-09-17  Jim Meyering  <meyering@ascend.com>
133690         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
133691         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
133692         due to missing strdup (against sh-utils-2.0).
133694 1999-08-29  Jim Meyering  <meyering@ascend.com>
133696         * m4/jm-macros.m4: Require jm_BISON.
133697         * m4/bison.m4: New file.
133699 1999-08-17  Paul Eggert  <eggert@twinsun.com>
133701         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
133702         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
133704 1999-08-05  Jim Meyering  <meyering@ascend.com>
133706         * m4/getline.m4: Rename test file from conftestdata to conftest.data
133707         to avoid conflicts with `conftest' on 8+3 filesystems.
133708         Suggestion from Eli Zaretskii.
133710 1999-08-04  Jim Meyering  <meyering@ascend.com>
133712         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
133713         fileutils and sh-utils (textutils's getline test was inadequate).
133714         (AM_FUNC_GETLINE): Run this test.
133715         (AC_CHECK_FUNCS): Check for getdelim.
133716         Reported by Bob Proulx.
133718 1999-08-02  Jim Meyering  <meyering@ascend.com>
133720         * m4/jm-macros.m4: Add a comment.
133722 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133724         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
133725         <inttypes.h> defines strtoumax as a macro (and not as a
133726         function).
133728 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133730         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
133731         that we can shift, multiply and divide unsigned long long
133732         values; Ultrix cc can't do it.
133734 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133736         * m4/mktime.m4: New file, which is a preview of what should appear
133737         in the next public autoconf release.
133739 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133741         * m4/lfs.m4: Remove this file.
133742         * m4/largefile.m4: New file.  It contains the old contents of
133743         lfs.m4, except that all names with prefix AC_LFS have been
133744         changed to use the prefix AC_SYS_LARGEFILE instead, to be
133745         compatible with future autoconf versions.  Also, some minor m4
133746         quoting problems have been fixed.
133748 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133750         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
133751         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
133752         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
133753         and simplify the shell code.
133755 1999-08-01  Jim Meyering  <meyering@ascend.com>
133757         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
133758         m4.
133760 1999-07-20  Jim Meyering  <meyering@ascend.com>
133762         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
133764 1999-07-15  Jim Meyering  <meyering@ascend.com>
133766         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
133768 1999-05-22  Jim Meyering  <meyering@ascend.com>
133770         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
133772 1999-05-20  Jim Meyering  <meyering@ascend.com>
133774         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
133775         Add a colon after each `then' in case $4 is empty.
133777 1999-05-16  Jim Meyering  <meyering@ascend.com>
133779         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
133781 1999-05-10  Jim Meyering  <meyering@ascend.com>
133783         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
133785         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
133786         AC_FUNC_MKTIME.
133788 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
133790         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
133792 1999-05-04  Paul Eggert  <eggert@twinsun.com>
133794         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
133795         not CPPFLAGS, so that linking works correctly in IRIX.
133797 1999-04-30  Paul Eggert  <eggert@twinsun.com>
133799         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
133801 1999-04-20  Paul Eggert  <eggert@twinsun.com>
133803         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
133804         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
133805         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
133806         jm_AC_TYPE_UNSIGNED_LONG_LONG.
133807         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
133809         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
133811 1999-04-20  Jim Meyering  <meyering@ascend.com>
133813         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
133814         AC_REPLACE xstroull if necessary.  From Paul Eggert.
133815         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
133817 1999-04-18  Jim Meyering  <meyering@ascend.com>
133819         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
133820         * m4/jm-macros.m4: Use it.
133822 1999-04-06  Jim Meyering  <meyering@ascend.com>
133824         * m4/strftime.m4: Remove test for %f.
133826 1999-03-29  Jim Meyering  <meyering@ascend.com>
133828         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
133829         superset of the AC_TYPE_* checks in the textutils, fileutils,
133830         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
133831         AC_TYPE_PID_T.
133833 1999-03-28  Jim Meyering  <meyering@ascend.com>
133835         * m4/jm-macros.m4: Define GNU_PACKAGE here.
133836         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
133837         replaced e.g., in the *.sh files of the sh-utils.
133839 1999-03-20  Jim Meyering  <meyering@ascend.com>
133841         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
133842         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
133843         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
133845 1999-03-19  Jim Meyering  <meyering@ascend.com>
133847         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
133849 1999-03-12  Jim Meyering  <meyering@ascend.com>
133851         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
133853 1999-03-07  Jim Meyering  <meyering@ascend.com>
133855         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
133856         declared.
133858 1999-02-17  Jim Meyering  <meyering@ascend.com>
133860         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
133861         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
133863 1999-02-07  Jim Meyering  <meyering@ascend.com>
133865         * m4/group-member.m4: New file -- extracted from sh-utils'
133866         configure.in.
133868         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
133869         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
133871 1999-02-06  Jim Meyering  <meyering@ascend.com>
133873         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
133874         * m4/fnmatch.m4: Likewise.
133875         * m4/getgroups.m4: Likewise.
133876         * m4/lstat.m4: Likewise.
133877         * m4/malloc.m4: Likewise.
133878         * m4/putenv.m4: Likewise.
133879         * m4/realloc.m4: Likewise.
133880         * m4/regex.m4: Likewise.
133881         * m4/stat.m4: Likewise.
133882         * m4/strftime.m4: Likewise.
133883         Suggestion from Alain Magloire.
133885         * m4/chown.m4: Use `.$ac_objext', not `.o'.
133886         * m4/fnmatch.m4: Likewise.
133887         * m4/getgroups.m4: Likewise.
133888         * m4/getline.m4: Likewise.
133889         * m4/lstat.m4: Likewise.
133890         * m4/malloc.m4: Likewise.
133891         * m4/memcmp.m4: Likewise.
133892         * m4/putenv.m4: Likewise.
133893         * m4/realloc.m4: Likewise.
133894         * m4/regex.m4: Likewise.
133895         * m4/stat.m4: Likewise.
133896         * m4/strftime.m4: Likewise.
133897         Suggestion from Alain Magloire.
133899         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
133900         an argument.
133902         * m4/regex.m4: Add a run-time Test for proper operation of
133903         re_compile_pattern.
133905 1999-01-31  Jim Meyering  <meyering@ascend.com>
133907         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
133909 1999-01-30  Jim Meyering  <meyering@ascend.com>
133911         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
133913         * m4/jm-mktime.m4: Make this a wrapper around the official
133914         AM_FUNC_MKTIME rather than my private copy, now that the official one
133915         is up to date.
133916         * m4/mktime.m4: Remove file.
133918         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
133919         * m4/uptime.m4: Likewise.
133920         * m4/uintmax_t.m4: Likewise.
133922 1999-01-28  Jim Meyering  <meyering@ascend.com>
133924         * m4/jm-macros.m4: Use jm_AFS.
133925         * m4/afs.m4: New file (from fileutils' configure.in).
133927         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
133928         * m4/chown.m4: Likewise.
133929         * m4/d-ino.m4: Likewise.
133930         * m4/d-type.m4: Likewise.
133931         * m4/fnmatch.m4: Likewise.
133932         * m4/getgroups.m4: Likewise.
133933         * m4/gettext.m4: Likewise.
133934         * m4/jm-mktime.m4: Likewise.
133935         * m4/jm-winsz2.m4: Likewise.
133936         * m4/lcmessage.m4: Likewise.
133937         * m4/ls-mntd-fs.m4: Likewise.
133938         * m4/malloc.m4: Likewise.
133939         * m4/memcmp.m4: Likewise.
133940         * m4/putenv.m4: Likewise.
133941         * m4/realloc.m4: Likewise.
133942         * m4/st_mtim.m4: Likewise.
133943         * m4/strftime.m4: Likewise.
133945 1999-01-16  Jim Meyering  <meyering@ascend.com>
133947         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
133948         (ARGMATCH_DIE_DECL): Define.
133950 1999-01-12  Jim Meyering  <meyering@ascend.com>
133952         * m4/Makefile.am.in: Rewrite to avoid using fmt.
133953         Reported by Lars Hecking.
133955 1999-01-10  Jim Meyering  <meyering@ascend.com>
133957         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
133958         gross kludge.
133959         * m4/inttypes_h.m4: Likewise.
133960         * m4/lstat.m4: Likewise.
133961         * m4/malloc.m4: Likewise.
133962         * m4/readdir.m4: Likewise.
133963         * m4/realloc.m4: Likewise.
133964         * m4/st_dm_mode.m4: Likewise.
133965         * m4/stat.m4: Likewise.
133966         * m4/utimbuf.m4: Likewise.
133967         * m4/utimes.m4: Likewise.
133969         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
133970         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
133971         comments in config.h.in are meaningful.
133973         * m4/jm-macros.m4: Require autoconf-2.13 here.
133975         * m4/regex.m4: By default, don't use the included regex.c on systems
133976         with glibc 2.  Suggestion from Uli Drepper.
133978 1999-01-02  Jim Meyering  <meyering@ascend.com>
133980         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
133982 1998-12-18  Jim Meyering  <meyering@ascend.com>
133984         * m4/Makefile.am.in (Makefile.am): Simplify rule.
133985         Based on a suggestion from Lars Hecking.
133987 1998-11-16  Paul Eggert  <eggert@twinsun.com>
133989         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
133991 1998-11-16  Jim Meyering  <meyering@ascend.com>
133993         * m4/lfs.m4: Double-quote the `uname...` expression.
133995 1998-11-14  Jim Meyering  <meyering@ascend.com>
133997         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
133998         * m4/stat.m4: Likewise.
134000 1998-11-03  Jim Meyering  <meyering@ascend.com>
134002         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
134003         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
134005 1998-10-18  Jim Meyering  <meyering@ascend.com>
134007         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
134009 1998-10-17  Jim Meyering  <meyering@ascend.com>
134011         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
134012         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
134013         calls for those previously hard-coded headers.  Instead, take a new
134014         parameter.
134015         (jm_CHECK_DECLARATIONS): Reflect interface change.
134016         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
134017         (jm_CHECK_DECL_LOCALTIME_R): New macro.
134019         * m4/mktime.m4: Test for spring-forward gap before long-running test.
134021 1998-10-14  Jim Meyering  <meyering@ascend.com>
134023         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
134024         instead of "TZ=America/Vancouver".  From Paul Eggert.
134026 1998-10-11  Jim Meyering  <meyering@ascend.com>
134028         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
134029         This adds a test for a recently added compatibility fix for mktime.c.
134030         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
134032 1998-09-27  Jim Meyering  <meyering@ascend.com>
134034         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
134036         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
134037         ../configure.in, including a change from Gordon Matzigkeit to allow
134038         cross-compiling for the Hurd.
134040         * m4/glibc.m4: New file/macro to test for the GNU C Library
134041         versions 1 and 2.  From Gordon Matzigkeit.
134042         Indent.
134044 1998-09-21  Jim Meyering  <meyering@ascend.com>
134046         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
134048 1998-08-18  Paul Eggert  <eggert@twinsun.com>
134050         Port nanosecond-resolution times to UnixWare 2.1.2 and
134051         pedantic Solaris 2.6.
134053         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
134054         AC_STRUCT_ST_MTIM.
134055         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
134056         Generate name of ns member, instead of just 1 or undef.
134057         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
134059 1998-08-15  Jim Meyering  <meyering@ascend.com>
134061         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
134062         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
134063         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
134064         instead of jm_TYPE_SSIZE_T.
134066 1998-08-12  Jim Meyering  <meyering@ascend.com>
134068         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
134070 1998-08-02  Jim Meyering  <meyering@ascend.com>
134072         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
134073         in acconfig.h manually.
134075 1998-07-31  Paul Eggert  <eggert@twinsun.com>
134077         * m4/st_mtim.m4: New file.
134079 1998-07-28  Jim Meyering  <meyering@ascend.com>
134081         * m4/utimes.m4: Undef stat.
134083 1998-07-25  Jim Meyering  <meyering@ascend.com>
134085         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
134086         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
134088 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
134090         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
134091         uid and gid actually remain unchanged.
134093 1998-07-07  Jim Meyering  <meyering@ascend.com>
134095         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
134097 1998-07-04  Jim Meyering  <meyering@ascend.com>
134099         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
134100         to prove that this macro can be used in packages without regex.c.
134102 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
134104         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
134105         is to be used.
134107 1998-07-03  Jim Meyering  <meyering@ascend.com>
134109         * m4/gettext.m4: Add -lintl if it's found to be necessary.
134111         * m4/gettext.m4: New file -- from gettext-0.10.35.
134112         * m4/lcmessage.m4: Likewise.
134113         * m4/progtest.m4: Likewise.
134115         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
134116         * m4/jm-macros.m4: Require the new macro.
134118 1998-06-29  Jim Meyering  <meyering@ascend.com>
134120         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
134121         for the definition of NGROUPS (used in a system header included
134122         by sys/mount.h).
134124 1998-06-28  Jim Meyering  <meyering@ascend.com>
134126         * m4/ls-mntd-fs.m4: New file.
134127         * m4/fstypename.m4: New file.
134129         * m4/jm-macros.m4: Require the new macro.
134130         * m4/jm-glibc-io.m4: New file.
134132 1998-05-19  Jim Meyering  <meyering@ascend.com>
134134         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
134135         * m4/lchown.m4: New file.
134137         * m4/Makefile.am.in: New file.
134138         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
134140 1998-05-14  Jim Meyering  <meyering@ascend.com>
134142         * m4/Makefile.am (EXTRA_DIST): Add them.
134143         * m4/jm-macros.m4: New file.
134144         * m4/utimbuf.m4: New file.
134146 1998-05-12  Jim Meyering  <meyering@ascend.com>
134148         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
134150 1998-05-11  Jim Meyering  <meyering@ascend.com>
134152         * m4/isc-posix.m4: New file.
134154 1998-05-10  Jim Meyering  <meyering@ascend.com>
134156         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
134158 1998-05-09  Jim Meyering  <meyering@ascend.com>
134160         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
134161         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
134162         with automake.
134164         * m4/ssize_t.m4: New file.
134165         * m4/mktime.m4: Remove file -- the new automake has this now.
134167 1998-04-26  Jim Meyering  <meyering@ascend.com>
134169         * m4/assert.m4: New file.
134170         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
134172 1998-04-05  Jim Meyering  <meyering@ascend.com>
134174         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
134175         (jm_PREREQ): Use it here.
134177 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
134179         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
134180         in acconfig.h.
134182 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
134184         * m4/prereq.m4: New file.
134185         * m4/error.m4: New file.
134186         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
134188 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
134190         * m4/getline.m4: Don't set am_cv_func_working_getline before the
134191         cache-check for the same variable -- that defeated the purpose of
134192         the test; the test program was never run.  This was a problem only
134193         on systems with losing getline functions -- HP-UX 10.20 is one.
134194         Reported by Bjorn Helgaas.
134196 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
134198         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
134200 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
134202         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
134204         * m4/const.m4: New file.  Use an initializer in this declaration
134205         typedef int charset[2]; const charset x;
134206         Reported by Bob Glickstein.
134208 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
134210         * m4/chown.m4: Fix reversed types on -1 args to chown.
134211         From Kaveh Ghazi.
134213 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
134215         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
134216         Add lseek and memchr.
134218         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
134219         T.E.Dickey <dickey@clark.net> said that some older preprocessors
134220         have a 20-character limit on names.
134222 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
134224         * m4/inttypes_h.m4: New file.
134225         * m4/uintmax_t.m4: New file.
134226         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
134229         -----
134231         Local Variables:
134232         coding: utf-8
134233         End:
134235         Copyright (C) 1997-2020 Free Software Foundation, Inc.
134237         Copying and distribution of this file, with or without
134238         modification, are permitted provided the copyright notice
134239         and this notice are preserved.